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

  Discussing perhaps the most crucial part

Discussing perhaps the most crucial part of your research. Recall your initial predictions of what you expected to find before you began your research. Now, using what you learned this week about Hypothesis Testing, you will formally test your predic..

  Distribution of the number of halloween treats

What is the Z score of a child eating 20 treats - what is the Z score of a child eating 5 treats and faculty or administrative staff member

  Explain which group should have the larger mean response

STAT2112 - Project  - Service without a smile. If the manipulation of the participants was successful, which group should have the larger mean response? Explain

  What do you think of the claim

Consider Exercise 5.55, and find P(x 17) if the stain removal product's claim is correct. If x actually turns out to be 17, what do you think of the claim?

  A severe storm has an average peak wave height

A severe storm has an average peak wave height of 16.4 feet for waves hitting the shore. Suppose that a storm is in progress with a severe storm class rating. Let us say that we want to set up a statistical test to see if the wave action

  A parallel system with independent ifr components is ifr

Prove or disapprove the following statements: The reliability function r(p) of a coherent system is an increasing function of P A parallel system with independent IFR components is IFR

  Two bowls full of candies

Suppose we have two bowls full of candies.  Each bowl contains four different flavours of candy - grape (which are purple), lemon (which are yellow), cherry (which are red) and raspberry (which are also red).  (a)  What is the probability that the fi..

  A sample survey funded by the national science foundation

A sample survey funded by the National Science Foundation asked a random sample of American adults about biological evolution. One question asked survey participants to answer "True", "False" or "Not sure" to the statement "Human beings, as we ..

  What are the characteristics of a population

What are the characteristics of a population for which it would be appropriate to use mean/median/mode? When would the characteristics of a population make them inappropriate to use?

  The coin lands either all heads or all tails

Toss the coin four times. If the coin lands either all heads or all tails, reject Ho: p=1/2 (the p denotes the chance for the coin to land on heads.) Complete parts a and b. a. what is the probability of a type 1 error for this procedure? b. if p=4/5..

  What is the population average errors per page

Let's say we have a population comprised of four typists with the following numbers of errors per page of a manuscript: Stephanie X1=3

  Find coefficient of correlation between los and age

Provide the following descriptive statistics for gender: mean, median, mode, standard deviation, range. Find the coefficient of correlation between LOS and age of the patient. Interpret this value

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