Instructions:
To solve the following questions, please download the excel file “Data” from LMS. In “Data” excel file, there are a total of 8 (eight) sheets.
Question 1: (To be performed in Stata) (Marks: 30)
Identify whether systematic risk factors are important determinants of Oil and Gas sector stocks or if it’s the firm specific information which is more relevant (briefly explain the results in the do file)? You can investigate this by employing the following regression specifications:
π ππ‘ = πππβπ + π΅1 ∗ ππ − π πΉ + π΅2 ∗ π΅ππ‘π + π΅3 ∗ πππ_π ππ‘ + π΅4 ∗ πππ_πππ + πΈππππ
π ππ‘ = πππβπ + π΅1 ∗ ππ − π πΉ + π΅2 ∗ πππ΅ + π΅3 ∗ π»ππΏ + π΅4 ∗ π΅ππ‘π + π΅5 ∗ ππ + π΅6
∗ π΅πππ + π΅7 ∗ πππ_π ππ‘ + π΅8 ∗ πππ_πππ + πΈππππ
π ππ‘ = πππβπ + π΅1 ∗ ππ − π πΉ + π΅2 ∗ πππ΅ + π΅3 ∗ π»ππΏ + π΅4 ∗ πππΏ + π΅5 ∗ π΅ππ‘π + π΅6
∗ ππ + π΅7 ∗ π΅πππ + π΅8 ∗ ππ 12 + π΅9 ∗ πππ_π ππ‘ + π΅10 ∗ πππ_πππ + πΈππππ
π ππ‘ = πππβπ + π΅1 ∗ ππ − π πΉ + π΅2 ∗ πππ΅ + π΅3 ∗ π»ππΏ + π΅4 ∗ πΆππ΄ + π΅5 ∗ π ππ + π΅6 ∗ π΅ππ‘π
+ π΅7 ∗ ππ + π΅8 ∗ π΅πππ + π΅9 ∗ πΌππ + π΅10 ∗ ππ πΉ + π΅11 ∗ πππ_π ππ‘ + π΅12 ∗
πππ_πππ + πΈππππ
π ππ‘ = πππβπ + π΅1 ∗ ππ − π πΉ + π΅2 ∗ πππ΅ + π΅3 ∗ π»ππΏ + π΅4 ∗ πΆππ΄ + π΅5 ∗ π ππ + π΅6
∗ πππΏ + π΅7 ∗ π΅ππ‘π + π΅8 ∗ ππ + π΅9 ∗ π΅πππ + π΅10 ∗ πΌππ + π΅11 ∗ ππ πΉ + π΅12
∗ ππ 12 + π΅13 ∗ πππ_π ππ‘ + π΅14 ∗ πππ_πππ + πΈππππ
Where:
Ret = Oil specific stock returns of firms i. MR-RF = Oil Specific Market Excess Returns
SMB = Oil Specific Size Factor (Small minus Big) HML = Oil Specific value Factor (High minus Low)
WML = Oil Specific Momentum Factor (Winners Minus Losers)
CMA = Oil Specific Investment Factor (Conservative minus Aggressive) RMW = Oil Specific Profitability Factor (Robust minus Weak)
Beta = Firm specific beta (Use past 3 years of data. It is calculated by regression the firms returns on market factor.)
MV = Firm specific market capitalization (in Millions)
Page 1 of 2
BTPV = Firm specific book to price value
PR12 = Firm specific Average of past 11 months returns (i.e. 2 – 12)
INV = Firm specific investment (calculated by taking change in total assets) PRF = Firm specific operating profit margin
Oil_Ret = Crude Oil returns
Oil_Vol = Standard Deviation of past 36 months crude oil returns.
(Following also needs to be done to solve the question in do file:)
1) Clean the dataset, reshape it, and making panel
2) Apply winsorization, outliers,
3) Calculate rolling beta by taking first 36 months & standard deviation by running this regression ret = alpha + π΅1 ∗ ππ – π πΉ + error
4) Apply fixed effect regressions
Note: All work needs to be done in STATA do file. Furthermore, provide precise explanation in the do file.
Question 2: (To be performed in R) (Marks: 20) Using the factors and Crude oil data, estimate summary statistics and correlation table in R. Also, plot the data using ggplot2 library in R. Briefly explain the results in the script file.
Note: All work needs to be done in R Script file.
Submission Guidelines:
1. You are required to submit STATA do file and R script file only. It is your responsibility to make sure that both files run smoothly and there are no errors in both files. I have the excel file. I will run your code files on the data.
2. This is a take home exam. So, you can get assistance from books, internet and any other source that may be helpful.
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme
Get Free Quote!
407 Experts Online