FINS3646 Toolkit for Finance- Abnormal Returns

$20 Bonus + 25% OFF

Securing Higher Grades Costing Your Pocket?
Book Your Assignment at The Lowest Price
Now!

Students Who Viewed This Also Studied

FINS3646 Toolkit for Finance

Task

After setting up your PyCharm development environment with the project files (see instructions above), modify the zid_project2.py module by following the steps below, in sequence.

Part 1: Read the relevant documentation

For this assessment, read the documentation for the following methods:

  • pandas.DataFrame.mean (note the parameter axis which will indicate if the mean will be computed column-wise or row-wise)
  • pandas.Series.add
  • pandas.Series.prod
  •  pandas.Series.dropna

Part 2: Include a statement to import the config.py module

Open the config.py file included in this project in PyCharm. Note that this file includes many constants (e.g., DATADIR, FF_CSV, TICMAP) and a function called standardise_colnames. You should not modify the file config.py.

To get access these constants and the standardise_colnames function, the config.py module needs to be imported first.

Complete the import portion of the zid_project2.py module by creating a new import statement. This statement should import the module config.py which is part of the zip file provided to you. Make sure you import this module using the “cfg” alias (so, “as cfg”).

After including this import statement, you can use the test function _test_cfg to make sure the config module is being imported correctly and tho check the location of the files for this project.

Part 3: Complete the read_prc_csv function

Complete the indicated part of the function read_prc_csv. so it produces the data frame described in the docstring.

You can test this function by calling the _test_read_prc_csv test function.

Part 4: Complete the mk_prc_df function

Complete the indicated part of the function mk_prc_df. Make sure that this function returns a data frame as described in the docstring.

Remember that the sample period for the docstring example may be different than that in your specific source data. You can test this function by calling the _test_mk_prc_df function.

Part 5: Complete the mk_ret_df function

Complete the indicated part of the function mk_ret_df. Make sure that this function returns a data frame with the same format as described in the docstring. You can test this function by calling the _test_mk_ret_df test function.

Part 6: Complete the mk_aret_df function

Complete the indicated part of the function mk_aret_df. Make sure that this function returns a data frame with the same format as described in the docstring. You can test this function by calling the _test_mk_aret_df test function.

Part 7: Complete the auxiliary functions

Complete the following auxiliary functions following the instructions specified in their docstrings:

  • get_avg: Calculates the average value of a column for a given year
  • get_ew_rets: Calculates the returns on an equally-weighted portfolio of stocks.
  •  get_ann_ret: Calculate the annualised return for a given period.

You can test these functions by calling appropriate test functions.

Part 8: Answer a few questions

For this part of this project, you should answer the following questions:

Q1: Which stock in your sample has the highest average daily return for the year 2020 (ignoring missing values)? The sample should include all tickers included in the dictionary config.TICMAP. Your answer should include the ticker for this stock.

Q2: What is the annualised return for the EW portfolio of all your stocks in the config. TICMAP dictionary from the beginning of 2010 to the end of 2020?

Q3: What is the annualised daily return for the period from 2010 to 2020 for the stock with the highest average return in 2020 (the one you identified in the first question above)?

Q4: What is the annualised daily abnormal return for the period from 2010 to 2020 for the stock with the highest average return in 2020 (the one you identified in the first question Q1 above)? Abnormal returns are calculated by subtracting the market return from the individual stock return. 

FINS3646 Toolkit for Finance

Answer in Detail


Solved by qualified expert

Get Access to This Answer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

21 More Pages to Come in This Document. Get access to the complete answer.

If you want genuine assignment help in Australia, pay MyAssignmenthelp.com a visit. Apart from providing you with regular assignment help for different subjects, we also offer urgent assignment help for those students who need their assignments done quickly. Our online assignment help is fairly affordable, and you never have to worry about extravagant prices. Call us if you need assignment help.

More FINS3646 FINS3646 Toolkit for Finance: Questions & Answers

Information Technology

Using the following structure, to develop a simple student management (DBMS) to store student id, student name and college. Program should be able to add these details in a linked list and should be able to display the details in the output. You are free to hardcode the details in the main method …

View Answer

Engineering

1. Calculate the impedance for both real and imaginary part for each component using a for loop where i is the index of the component in the array: a.  If component i is a resistor:    Then impedance real i is the size of the component and impedance imaginary i is 0  &n …

View Answer

ICT167 – Principle of Computer Science

Quit (exit the program)2.Add (to the array) all information about a courseworkor researchstudent (except the overall mark and the grade) by reading it from another text fileand determine the student’s overall mark and grade.3.Output from the array the details (all information including the ove …

View Answer

Management

Student must complete the following:  a.    Analysis documentation should include:       Analysis – Requirements list including functional and non-functional, Actors and Use Cases, Prototypes, Initial Architecture, Communication diagrams, Class diagram w …

View Answer

Content Removal Request

If you are the original writer of this content and no longer wish to have your work published on Myassignmenthelp.com then please raise the
content removal request.

Choose Our Best Expert to Help You

Cannon Farrell

Completed Ph.D. in English Literature from the University of Edinburgh

150 – Completed Orders

Hire Me

Still in Two Minds? The Proof is in Numbers!

33845 Genuine Reviews With a Rating of 4.9/5.

Management

Assignment: 5 Pages, Deadline:
5 days

good Expert he do all the requirements as mentioned, I appreciate your efforts and I am so happy to do the assignment for me

User ID: 6***84 Saudi Arabia

Assignment

Assignment: 10 Pages, Deadline:
4 days

The research essay was prepared based on all the requirements provided. All the references were well placed.

User ID: 4***87 Australia

Assignment

Essay: 5.2 Pages, Deadline:
6 days

Learning Portfolio was well written and to the point/precise. It was updated based on my review. Prompt responses from the experts and the team

User ID: 4***87 Australia

Healthcare

Assignment: 8 Pages, Deadline:
5 days

All the requirements are well covered. There are good amount of articles referenced in the work. Thks

User ID: 8***91 Singapore

Assignment

Essay: 1.6 Pages, Deadline:
3 days

very high grade, good assignment, very quick service , easy to ready, professional

User ID: 5***21 Blanchardstown, Ireland

Management

Essay: 4 Pages, Deadline:
9 days

I want to THANK YOU for a great semester and I excelled in that class because of you all. The timeless hours you put into making sure I passed all of …

User ID: 6***28 Tarboro, United States

Business Law

Essay: 3 Pages, Deadline:
9 days

Definitely great work by a reliable source. I will use this company and will recommend them. I got a passing grade!

User ID: 8***30 United States

Business Law

Course Work: 3 Pages, Deadline:
7 days

I was pressed on time and opt to seek help. Well the product was great and delivered timely.

User ID: 8***30 United States

Business Law

Course Work: 3 Pages, Deadline:
10 days

Remarkable job on this assignment and it was greatly beneficial. The paper was excellent!

User ID: 8***30 United States

It Write Up

Thesis: 16 Pages, Deadline:
6 days

The work is very excellent and honestly this is the first time I deal with you and work at the top of creativity and I hope to have a second chance in …

User ID: 7***76 Oman

Management

Assignment: 5 Pages, Deadline:
5 days

good Expert he do all the requirements as mentioned, I appreciate your efforts and I am so happy to do the assignment for me

User ID: 6***84 Saudi Arabia

Assignment

Assignment: 10 Pages, Deadline:
4 days

The research essay was prepared based on all the requirements provided. All the references were well placed.

User ID: 4***87 Australia

Assignment

Essay: 5.2 Pages, Deadline:
6 days

Learning Portfolio was well written and to the point/precise. It was updated based on my review. Prompt responses from the experts and the team

User ID: 4***87 Australia

Healthcare

Assignment: 8 Pages, Deadline:
5 days

All the requirements are well covered. There are good amount of articles referenced in the work. Thks

User ID: 8***91 Singapore

Assignment

Essay: 1.6 Pages, Deadline:
3 days

very high grade, good assignment, very quick service , easy to ready, professional

User ID: 5***21 Blanchardstown, Ireland

Management

Essay: 4 Pages, Deadline:
9 days

I want to THANK YOU for a great semester and I excelled in that class because of you all. The timeless hours you put into making sure I passed all of …

User ID: 6***28 Tarboro, United States

Business Law

Essay: 3 Pages, Deadline:
9 days

Definitely great work by a reliable source. I will use this company and will recommend them. I got a passing grade!

User ID: 8***30 United States

Business Law

Course Work: 3 Pages, Deadline:
7 days

I was pressed on time and opt to seek help. Well the product was great and delivered timely.

User ID: 8***30 United States

Business Law

Course Work: 3 Pages, Deadline:
10 days

Remarkable job on this assignment and it was greatly beneficial. The paper was excellent!

User ID: 8***30 United States

It Write Up

Thesis: 16 Pages, Deadline:
6 days

The work is very excellent and honestly this is the first time I deal with you and work at the top of creativity and I hope to have a second chance in …

User ID: 7***76 Oman

Have any Query?

GET HELP WITH YOUR HOMEWORK PAPERS @ 25% OFF

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

Write My Paper Button

WeCreativez WhatsApp Support
We are here to answer your questions. Ask us anything!
👋 Hi, how can I help?
Scroll to Top