logo

Data Analysis Project for Desklib

Pls finish the tasks according to the requirements. Pls copy all of your R code in the end of this word file, and then submit your word file. You do not need to upload your data file. Task 1: CAPM and Fama French three factors model. [6 marks] Pls download the daily price data of the assigned stock from Yahoo finance (https://au.finance.yahoo.com/) from January 3, 2011 to December 31, 2018. Student ID ending number Stock 0 The Boeing Company 1 IBM 2 Microsoft 3 Wal-Mart 4 American Express 5 Apple 6 Goldman Sachs 7 Intel 8 Google (Alphabet) 9 Amazon Download Fama French daily three factors data from Ken French’s data library (https://mba.tuck.dartmouth.edu/pages/faculty/ken.french/data_library.html). Calculate daily log return of your assigned stock using the daily adjusted price (Adj Close). Merge your stock data with the Fama French three factors data. [Hint: you can use the function of “merge”], and fill up the following summary statistic table. [Ensure stock return and three factors are measured in the same scale.] [2 marks] Table 1: Summary Statistics (2011-2018) Variable Stock Return Mkt.Rf SMB HML RF Min Max Mean Median SD N (Mkt.Rf

9 Pages2087 Words218 Views
   

Added on  2022-10-06

About This Document

The project includes two tasks. The first task involves calculating daily log returns, merging data, and running regression analysis. The second task involves running OLS regression and plotting the median and mean of cash holding by year.

Data Analysis Project for Desklib

Pls finish the tasks according to the requirements. Pls copy all of your R code in the end of this word file, and then submit your word file. You do not need to upload your data file. Task 1: CAPM and Fama French three factors model. [6 marks] Pls download the daily price data of the assigned stock from Yahoo finance (https://au.finance.yahoo.com/) from January 3, 2011 to December 31, 2018. Student ID ending number Stock 0 The Boeing Company 1 IBM 2 Microsoft 3 Wal-Mart 4 American Express 5 Apple 6 Goldman Sachs 7 Intel 8 Google (Alphabet) 9 Amazon Download Fama French daily three factors data from Ken French’s data library (https://mba.tuck.dartmouth.edu/pages/faculty/ken.french/data_library.html). Calculate daily log return of your assigned stock using the daily adjusted price (Adj Close). Merge your stock data with the Fama French three factors data. [Hint: you can use the function of “merge”], and fill up the following summary statistic table. [Ensure stock return and three factors are measured in the same scale.] [2 marks] Table 1: Summary Statistics (2011-2018) Variable Stock Return Mkt.Rf SMB HML RF Min Max Mean Median SD N (Mkt.Rf

   Added on 2022-10-06

ShareRelated Documents
1
Data Analysis Project
Name:
Institution:
Data Analysis Project for Desklib_1
2
Task 1: CAPM and Fama French three factors model. [6 marks]
a. Pls download the daily price data of the assigned stock from Yahoo finance
(https://au.finance.yahoo.com/) from January 3, 2011 to December 31, 2018.
Student ID ending number Stock
0 The Boeing Company
1 IBM
2 Microsoft
3 Wal-Mart
4 American Express
5 Apple
6 Goldman Sachs
7 Intel
8 Google (Alphabet)
9 Amazon
b. Download Fama French daily three factors data from Ken French’s data library
(https://mba.tuck.dartmouth.edu/pages/faculty/ken.french/data_library.ht
ml).
c. Calculate daily log return of your assigned stock using the daily adjusted price (Adj
Close).
d. Merge your stock data with the Fama French three factors data. [Hint: you can use the
function of “merge”], and fill up the following summary statistic table. [Ensure stock
return and three factors are measured in the same scale.] [2 marks]
Table 1: Summary Statistics (2011-2018)
Variable Stock Return Mkt.Rf SMB HML RF
Min -0.0624011 -6.970 -1.9200 -1.6900 0
Max 0.045543 5.0600 3.600000 2.390 0.01
Mean 0.0004208 0.0447 -0.005266 -0.006607 0.001412
Median 0.0004884 0.0600 -0.0100 -0.0300 0
SD 0.00988367 0.9461735 0.5150679 0.4845208 0.002458
N 2010 2010 2010 2010 2010
(Mkt.Rf stands for market risk premium, SD stands for standard deviation and N stands
Data Analysis Project for Desklib_2
3
for number of observations)
e. Pls create a new variable Stock.Rf, which equals to the difference between Stock
Return and RF, and run a regression of :
Stock . Rf =α + βMkt . Rf +u.
Report the regression results in a table (1 mark) and also make a figure, where
Mkt.Rf is in the X-axis, and Stock.Rf is in the Y-axis, and also plot the fitted line
in the figure (1 mark).
Call:
lm(formula = Merged_data$Stock_Returns ~ Merged_data$Mkt.RF)
Residuals:
Min 1Q Median 3Q Max
-0.061725 -0.005351 0.000098 0.005811 0.044641
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.0003866 0.0002202 1.756 0.079304 .
Merged_data$Mkt.RF 0.0007702 0.0002325 3.312 0.000942 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 0.009859 on 2007 degrees of freedom
Multiple R-squared: 0.005436, Adjusted R-squared: 0.004941
F-statistic: 10.97 on 1 and 2007 DF, p-value: 0.0009421
At significance level 0.05, the results above exhibit the p-value of 0.0009421
which is less than 0.05 thus the model is adequate. Moreover, the coefficients
exhibit the regression estimate as follows;
stock . Rf =0.00386+0.0007702 Mkt . Rf
Data Analysis Project for Desklib_3

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Model 1 Call: lm(formula = age ~ proportion.black) Residuals:
|2
|151
|260

Model parameter are tested for statistical
|14
|3949
|14

Frequency Analysis of Regenerate Vegetative or by Seed and Cross-Classified Plant Species
|9
|1580
|251

Data Analysis: Assignment
|16
|2057
|325

Research on Microorganisms | Study
|16
|2055
|294

Linear Regression and Correlation Analysis Assignment
|13
|1372
|109