Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

ECON7350: Applied Econometrics for Macroeconomics and Finance

Tutorial 3: Forecasting Univariate Processes - II


At the end of this tutorial you should be able to:

❼ estimate a set of specified ARMA models using for loops;

❼ reduce the set of models using information criteria and residuals analysis; 

❼ generate forecasts and predictive intervals for a specified ARMA(p,q);

❼ compare and evaluate forecasts obtained from different ARMA models.

Problems

1. The file Merck .csv contains daily data of stock prices of Merck & Co., Inc.  (MRK) during 2001–2013.  In what follows, we use yt  to denote the adjusted closing prices (Adj Close in the data) at time t.

(a) Load the data into R and construct a data set with observations in the range 1

January 2011—31 January 2012.

(b) Construct the following variables:

❼ changes in prices: ∆yt  = yt − yt 1 ;

❼ log returns: rt  = log(yt /yt 1 ).

(c) Draw time series plots of yt , ∆yt   and rt ; comment on the stationarity of the processes that may have generated these observations.

(d) Compute and plot the sample ACFs and PACFs of yt  and ∆yt . Comment on your findings.

(e) Propose and estimate 25 ARMA(p,q) models for yt .

(f) Use the AIC and BIC to reduce the set of ARMA(p,q) models.

(g) Draw time series plots of the estimated residuals you obtained for the ARMA models selected in part (f). Comment on your findings. Run the Ljung-Box test (at the α = 5% significance level) to test the white noise hypothesis on estimated residuals obtained from each ARMA in the set obtain in part (f) and report the test results. Use this information to identify the adequate set of specified ARMAs.


(h) Forecast changes in MRK stock prices in January, 2012. For each ARMA model in the adequate set, compare your predicted price changes with real price changes in the data. Compare the forecasts you obtained as well as their “quality”across ARMA models and comment on the robustness of the generated forecasts.

(i) Forecast MRK prices yt  (levels this time, instead of changes) using an ARMA(2, 1) model only. Compare your predicted prices with real prices in the data. Compare the price forecasts obtained in this part with price forecasts obtained by trans- forming the forecasts in part (h).  HINT: you will need convert predicted prices changes to predicted prices.

(j) OPTIONAL: Repeat parts (d)(h) for log returns rt .  Note that here you will forecast daily returns (yt  − yt 1 )/yt 1  in January, 2012.  Hint: Recall that (yt  − yt 1 )/yt 1  ≈ rt .