Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Description: Wrte a program on python that calculates the CAPM Beta for a portfolio of at least 1 0 stocks. For the purposes of this

Description:
Wrte a program on python that calculates the CAPM Beta for a portfolio of at least 10 stocks. For the purposes of this assignment assume the stocks are equally weighted in the portfolio. Requirements 1. Calculate Beta (35%) Read in remote stock data for a single stock Get the market factor and risk free rate from Ken French's data library and merge it onto the stock information Calculate the CAPM Beta using the data from the previous steps
2. A CAPM Function (35%) Take the code from the first requirement and cre@te a function that accepts a ticker, a beginning date, and an end date as inputs The function should return the beta for the stock using the time interval specified
3. Portfolio Beta (30%) Cre@te a list of at least ten stocks that you will hold in a hypothetical portfolio Use a loop and the CAPM function you wrote to calculate the beta of each of the stocks in your hypothetical portfolio Calculate the portfolio beta by combining the betas of the individual stocks using equal weights
4.)1. Custom Weights (10%) Repeat the work done in step 3 above, however, allow the user to specify asset specific weights for the portfolio beta calculation, rather than using equal weights.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial Management For Nurse Managers Merging The Heart With The Dollar

Authors: Janne Dunham-Taylor, Joseph Z. Pinczuk

1st Edition

1284031039, 9781284031034

More Books

Students also viewed these Finance questions

Question

2. What role should job descriptions play in training at Apex?

Answered: 1 week ago