Docsity

Problem Set #5: Constant Expected Return Model and Bootstrapping in R - Prof. Eric Zivot, Assignments of Economics

Toggle sidebar
bg1
Eric Zivot
Econ 424 Fall 2008
Problem Set #5
Constant Expected Return Model and Bootstrapping
Due: Wednesday 10/29/08 at the beginning of class
Readings
• My lecture notes on the constant expected return model and bootstrapping
• Bootstrap methods and permutation tests, by Tim Hesterberg (pdf file on class
webpage)
• Ruppert, chapter 2, sections 18 and 19.
Programs and Data
• 424lab4returns.csv Return data for lab4
• lab4.r R Script file hints for lab
• cerModel.csv Data used in cerModelExamples.r
• cerModelExamples.r R Script file used for class examples
• bootStrap.r R Script file used for class examples
Instructions
In this lab you will use R to
• Estimate parameters of the constant expected return (CER) model, compute
standard errors and confidence intervals
• Perform bootstrapping of CER model estimates
Exercises
The following questions require R. On the class web page are the script files lab5.r,
cerModelExamples.r and bootstrap.r. The former contains hints for
completing the assignment, and the latter files contains the code for the doing the
examples from class. As in lab 4, copy and paste all statistical results and graphs into a
MS Word document while you work, and add any comments and answer all questions in
this document. Please do not turn in the assignment without comments!
Continuously compounded monthly return data on Vanguard long term bond index fund
(VBLTX), Fidelity Magellan stock mutual fund (FMAGX), General Motors stock (GM)
are in the comma separated value (csv) file 424lab4returns.csv on the class
webpage (same data from lab 4). Download the file to disk and make note of the location.
pf2

Partial preview of the text

Download Problem Set #5: Constant Expected Return Model and Bootstrapping in R - Prof. Eric Zivot and more Assignments Economics in PDF only on Docsity!

Eric Zivot Econ 424 Fall 2008

Problem Set # Constant Expected Return Model and Bootstrapping Due: Wednesday 10/29/08 at the beginning of class

Readings

  • My lecture notes on the constant expected return model and bootstrapping
  • Bootstrap methods and permutation tests, by Tim Hesterberg (pdf file on class webpage)
  • Ruppert, chapter 2, sections 18 and 19.

Programs and Data

  • 424lab4returns.csv Return data for lab
  • lab4.r R Script file hints for lab
  • cerModel.csv Data used in cerModelExamples.r
  • cerModelExamples.r R Script file used for class examples
  • bootStrap.r R Script file used for class examples

Instructions

In this lab you will use R to

  • Estimate parameters of the constant expected return (CER) model, compute standard errors and confidence intervals
  • Perform bootstrapping of CER model estimates

Exercises

The following questions require R. On the class web page are the script files lab5.r, cerModelExamples.r and bootstrap.r. The former contains hints for completing the assignment, and the latter files contains the code for the doing the examples from class. As in lab 4, copy and paste all statistical results and graphs into a MS Word document while you work, and add any comments and answer all questions in this document. Please do not turn in the assignment without comments!

Continuously compounded monthly return data on Vanguard long term bond index fund (VBLTX), Fidelity Magellan stock mutual fund (FMAGX), General Motors stock (GM) are in the comma separated value (csv) file 424lab4returns.csv on the class webpage (same data from lab 4). Download the file to disk and make note of the location.

Start R and load the data into R using the commands in the script file. The first question is the same from lab4. The bootstrapping questions will build on these results.

  1. Consider the constant expected return model (CER)

2

cov( , )

it i it it i it jt ij

R t T iid N

K

where Rit denotes the continuously compounded return on asset i, i =Vanguard long term bond index fund (VBLTX), Fidelity Magellan stock mutual fund (FMAGX), General Motors stock (GM). The commands in the R script file lab4.r will be helpful in completing this assignment.

a) Using sample descriptive statistics, give estimates for the model parameters , 2 , , and

μ i σ i σ i σ ij ρ ij. Arrange these estimates nicely in a table. Briefly comment.

o The R functions mean(), var(), sd() and cor() together with the R function apply() can be used to compute these estimates from the matrix object ret.mat.

b) For each estimate of the above parameters (except σ ij ) compute the estimated

standard error. That is, compute SE ( μˆ i ), SE ( σˆ i^2^ ), SE (σ ˆ i ) and SE ( ρˆ ij ).Briefly

comment on the precision of the estimates. o The formulas for these standard errors were given in class, and are given in the lecture notes on the constant expected return model

  1. Bootstrapping the CER model estimates

a) For each estimate of the model parameters μ i , σ i^2 , σ i ,andρ ij. (except σ ij ) compute the

estimated standard error using the bootstrap with 1000 bootstrap replications. That is

compute, SE ˆ^ boot ( μˆ i ), SE ˆ^ boot ( σ ˆ i^2 ), SE ˆ^ boot ( σˆ i ) and SE ˆ^ boot ( ρˆ ij ).Compare the bootstrap

standard errors to the analytic standard errors you computed in Question 1 part (b). b) Plot the histogram and qq-plot of the bootstrap distributions you computed in part (a). Do the bootstrap distributions look normal? c) For each asset, compute estimates of the 5% value-at-risk. Use the bootstrap to

compute SE VaR ˆ^ ( ˆ .05 )values as well as 95% confidence intervals. Briefly comment on the accuracy of the 5% VaR estimates.