For each fund calculate cumulative monthly return

Assignment Help Applied Statistics
Reference no: EM131713257

Problem - Before proceeding with Problem 1 read Christopher Baum's lecture titled "A little bit of Stata programming goes a long way..."  It covers loops, macros, and other constructs presented in Stata Primer Lecture #3, as well as some other topics. I would suggest starting your work on the problem well before the due date.

Place all commands in a do file. As always, be sure to print out and hand in your do file and the resulting log file. 

Part 1: Use mutual fund performance dataset: PerformanceAF636.dta to answer questions in part 1.

a. Generate numeric month variable and use monthly format for the numeric month variable.

b. For each fund calculate cumulative monthly return from first observation available to the last observation available. Cumulate returns by adding them up. You must use appropriate egen function and foreach loop to accomplish this task.

c. Which fund had the best and which fund had the worst cumulative performance over time? You must use a set of Stata commands to answer this question. The answer should be displayed in your log file.

d. Now calculate monthly returns for S&P500. Use formula

RetS&P500,t = (S&P500t/S&P500t-1) - 1

to calculate monthly return for S&P500. Also note that the fund returns are reported as percent returns. Re-scale returns for each fund so that they are in decimal form. You must use foreach loop to re-scale fund returns.

e. Run a regression of performance (in decimal form) on S&P500 return for each fund. Use for each loop to accomplish this task. Make sure that prior to running each regression you display a message stating "This is a regression of PerformanceXXXX on S&P500 return". The statement should be different for each regression because the value of XXXX is fund ID and thus will depend on the fund. Which fund has the greatest coefficient (in absolute value) on S&P500 return?

f. Now reshape the dataset from wide to long form so that instead of multiple Performance variables you have only one Performance variable over time. This will also create a new variable identifying each fund.

Part 2: In this part you will analyze company financials using Compustat data. Use compustat_data.dta to answers questions in part 2.

a. Convert company identifier (gvkey) from string to numeric variable.

b. Create another numeric variable that contains only the year of observation.

c. Generate new dataset of summary statistics that contains annual averages for total assets, cash, ebit and total liabilities and annual medians for the same financial variables.

d. Compare mean and median for each variable in part (c). Use appropriate Stata command. Comment on the relationship between the mean and the median for each variable. You must use a local macro, for each loop, and an appropriate Stata command to accomplish this task.

Assignment Files -

https://www.dropbox.com/s/cwsck5p9kep5vor/Homework%20-%20Assignment%20Files.rar?dl=0

Reference no: EM131713257

Questions Cloud

Discuss the issue that management would use research : the issue that management would use research in gathering information; that research discovery is a valid effort but results are contingent
What is meant by the term product personification : What is meant by the term “product personification?” Provide an example.
Describe the major part of forensic accounting : A major part of forensic accounting, auditing, or life is gathering evidence. Go out into the real world and start a conversation with a stranger.
What stage is your selected product at in product life cycle : What stage is your selected product at in the product life cycle? Provide rationale for your answer
For each fund calculate cumulative monthly return : For each fund calculate cumulative monthly return from first observation available to the last observation available
What is the total cost of the initial plan : Prepare an aggregate production plan using a pure level approach with average demand. What is the total cost of the initial plan?
Difference between the u.s. and the other country : What can you tell us about the difference between the U.S. and the other country - GLOBE study built on another study conducted by Geert Hofstede
Explain why you agree with the social control theory : do you agree or disagree with the how conflict theorists view the police and what their role is in social control?
Customers are not being shipped the right products : In regards to a project management identify which methodologies and strategies would be used if customers are not being shipped the right products.

Reviews

Write a Review

Applied Statistics Questions & Answers

  State a research question for which a single-group post

One conclusion you might reach (hint) after completing the readings for this assignment is that there are no bad designs, only bad design choices (and implementations). State a research question for which a single-group post-test only design ca..

  Simple data analysis and comparison

Write a report on simple data analysis and comparison.

  The united states will develop shingles

1 out of 3  people in the united states will develop shingles during their lifetime. imagine that you are a doctor who is about to examine 10 unrelated adults selected at random and before you examine them we ask you what are the chances that.a. At l..

  Calculating a z-score and graphing a box plot

Calculating a Z-score and graphing a box plot and Statistical Inference of Sample Mean , Binomial Distribution and Regression Analysis

  What can those statistics mean for businesses

Identify stories that exist in the data provided. A "story" is an analysis of what the data shows rather than just what the data says. Said another way, how might you interpret the data?

  An auto insurance company classifies policy holder

An auto insurance company classifies policy holder

  Data were collected in a clinical trial to compare a new dru

Data were collected in a clinical trial to compare a new drug

  Which of the variables has the strongest relationship

Describe the direction of the relationship between the Hamstring strength index 60°/s and the Shuttle run test and without using numbers, describe the relationship between the Hamstring strength index 120°/s and the Triple hop index.

  The formula of the normal distribution curve

How do you derive the formula of the normal distribution curve?

  What is the implications for social change

what is the implications for social change - Do you think it's the most appropriate choice? Why or why not?

  The charm city manufacturing company manufacture

The Charm City Manufacturing Company manufactures a product in an assembly lineoperation. One of the machines on the line is a drill press that has a singleassembly line feeding into it. A partially completed unit arrives at the pressto be worked on ..

  State university and freshmen at university state

Write the following statement into an equation :There is no difference between IQ scores of freshmen at State University and freshmen at University State.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd