Académique Documents
Professionnel Documents
Culture Documents
Multivariate Simulation
Prepare a five-year time series of monthly price data from Dec 2012 through Dec 2017 for each
of the following ticker symbols: KO, ^GSPC (i.e., Coca Cola and the S&P500 index,
respectively). Be sure to submit your code along with your answers to the questions below.
Please organize your code so that it is easy to follow and so that it is clear which question/portion
the code is designed to address. Be sure to include comments where appropriate.
Now using coefficient estimate ! and residual vector ! from this first pass, simulate 10,000
∗
return paths for KO under the null hypothesis of ! = 0. That is: !!"#,! = ! ∙ !!,! + !!"#,! where
∗
each !!"#,! is drawn, with replacement and with equal probability, from residual vector !. That
∗
is, !!"#,! ~!"#(!) where !"#(!) represents the empirical distribution function that assigns
equal probability, 1/T, to each !! in residual vector !.1
Ø Q4. Present in a single plot: (i) the actual time series of KO stock returns; (ii) the average
simulated KO returns (across all 10,000 simulations) over time; and (iii) the 5th and 95th
percentiles of simulated KO returns over time.
Now using your simulated returns, re-estimate the previous regression across all 10,000
simulations: !!"#,! = ! + ! ∙ !!,! + !!
Ø Q5. Create a table conveying the key information from your simulations. For instance,
what is the average ! and ! across all simulations? And how often do you get statistically
significant alphas?
Ø Q6. In building our simulated return series above, why did we omit ! ?
1
Just a technical FYI: to be precise, we should actually scale the residual vector by a factor of [T / (T -2)]½, because
the empirical distribution of the residuals from equation (1) has variance T-1Σ εˆ t2 = T-1(T – 2)ŝ2, in which ŝ2 is the
unbiased estimator of σε2.