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

  Hypothesis testing

What assumptions about the number of pedestrians passing the location in an hour are necessary for your hypothesis test to be valid?

  Calculate the maximum reduction in the standard deviation

Calculate the maximum reduction in the standard deviation

  Calculate the expected value, variance, and standard deviati

Calculate the expected value, variance, and standard deviation of the total income

  Determine the impact of social media use on student learning

Research paper examines determine the impact of social media use on student learning.

  Unemployment survey

Find a statistics study on Unemployment and explain the five-step process of the study.

  Statistical studies

Locate the original poll, summarize the poling procedure (background on how information was gathered), the sample surveyed.

  Evaluate the expected value of the total number of sales

Evaluate the expected value of the total number of sales

  Statistic project

Identify sample, population, sampling frame (if applicable), and response rate (if applicable). Describe sampling technique (if applicable) or experimental design

  Simple data analysis and comparison

Write a report on simple data analysis and comparison.

  Analyze the processed data in statistical survey

Analyze the processed data in Statistical survey.

  What is the probability

Find the probability of given case.

  Frequency distribution

Accepting Manipulation or Manipulating

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