logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Gary BambrickResume writing
(5/5)

884 Answers

Hire Me
expert
Timothy PriceeResume writing
(5/5)

715 Answers

Hire Me
expert
Ruth FrameLaw
(5/5)

776 Answers

Hire Me
expert
StatAnalytica ExpertComputer science
(5/5)

855 Answers

Hire Me
STATA
(5/5)

Remove non-common stocks from the sample common stocks have share codes of 10 or 11

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

STATA Homework Assignment

Go to https://wrds-www.wharton.upenn.edu/login/ CRSP, annual update, security files, monthly stock file. Select dates from Jan 1965 through Dec 2019. Select entire database and the following variables and download all as STATA dataset:

Company name

Share code

CRSP Permanent Company Number (permco, unique firm identifier in CRSP)

New CRSP permno (unique security identifier in CRSP)

Exchange code

Price

Share volume

Holding period return

Number of shares outstanding

Value-weighted return

Equal-weighted return

Remove non-common stocks from the sample (common stocks have share codes of 10 or 11)

For each month, calculate equal-weighted and value-weighted market return, as average return across all common stocks. In the case of equal weighted market return, you can use simple average. In the case of value weighted market return, your weight should be market capitalization of the firm in the prior month. Market capitalization should be calculated as a product of the absolute value of price and number of shares outstanding; and then lagged by one month. The mathematical formula of the value weighted average return is:

VWret=w1*r1+w2*r2…+wn*rn

w1=〖mkt cap〗_1/(〖mkt cap〗_1+〖mkt cap〗_2+⋯+〖mkt cap〗_n )

So, overall we can also write:

VWret=(〖mkt cap〗_1*r1+〖mkt cap〗_2*r2+⋯+〖mkt cap〗_n*rn)/(〖mkt cap〗_1+〖mkt cap〗_2+⋯+〖mkt cap〗_n )

These formulas may be useful to you as you consider a programming solution for the value-weighted market return.

Once you have your value and equal weighted returns, compare to the equal- and value-weighted returns provided in the CRSP database. Produce a table that will report average, median, min, max, and standard deviation for each of the following four versions of market returns: equal- and value-weighted returns that you created and equal- and value-weighted returns from CRSP. Provide a 3-4 sentence description of how the returns compare?

Go to WRDS again and download Fama and French factors, monthly frequency data. Select all variables and the same time period (Jan 1965 – Dec 2019) as before.

Merge Fama and French factors into your original data based on date.

Calculate full sample summary statistics (mean, median, stdev, key percentiles) for MKTRF, SMB, HML, RF, and your equal- and value-weighted returns.

Calculate the same summary statistics for various subsamples: 2-equal length subperiods; 4 equal-length subperiods (over the 55-year period). Discuss persistence in the values of the variables over time. How do factors compare? Does any factor behave like risk?

Create lag of each variable (MKTRF, SMB, HML, RF, and your equal-weighted return). Regress each variable on its own lagged value and lagged values of the remaining variables (exception, when your dependent variable is MKTRF or equal-weighted return, please do not use lagged value of the other of the two variables because MKTRF and equal-weighted return essentially measure the same thing, so there will be collinearity). Does any of the variables have any predictive power? Discuss results.

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

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

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme