Professional Documents
Culture Documents
Collaborative Task M1
Collaborative Task M1
CAPM Model
1. Write the CAPM the equation, specifying what each term means.
ER = Rf + β*(ERm-Rf)
Where,
Rf – Risk-free return
3. Choose a stock. Download 1 year worth of data of the adjusted closing price.
Downloaded MSFT stock prices from 15-Jun’21 to 14’Jun’21.
Read command on R: msft<-read.csv(“MSFT.csv”)
8. Formulate the CAPM using your stock’s return, the benchmark return, and a risk-free
rate
US Rick Free Rate = 1.47%
MSFT 1Y, Daily Beta:
msftData <- merge(msft, spx, by=’Date’)
beta<-cov(msftData$lret.x, msftData$lret.y)/var(msftData$lret.y)
which comes out to be ~1.288406
Expected Return for MSFT using CAPM:
1.47 + 1.288*(-0.209-1.47) = -0.422%