ECON 4354/6354 — Homework 4

Author

Your Name (SMU ID)

Published

November 9, 2026

  • Question 2 is a simulation exercise. Use Quarto/Knitr chunks for all works, and discuss what you find.
  • Questions 1 and 3 are analytical.
  • Question 1 is adapted from Diebold, Forecasting, Chapter 8.

0. Setup

library(urca)       # unit root tests: ur.df()
library(vars)       # vector autoregressions: VAR()
library(tidyverse)  # last, so that MASS (attached by vars) cannot mask select()

1. Forecasting Temperature Volatility

You work for Xanadu, a luxury resort in the tropics. The daily temperature there is pleasant all year, with a mean of about 76°F and no conditional mean dynamics, but passing pressure systems occasionally cause bursts of temperature volatility. The bursts rarely last long enough to drive guests away, but the resort loses revenue from outdoor activities whenever the weather is not perfect. In the middle of such a volatile spell, your boss asks you for a forecast of volatility over the next ten days. You model the daily temperature \(y_t\) as \[ y_t = \mu + \varepsilon_t, \qquad \varepsilon_t \mid \Omega_{t-1} \sim N(0, \sigma_t^2), \qquad \sigma_t^2 = \omega + \alpha\, \varepsilon_{t-1}^2 + \beta\, \sigma_{t-1}^2 , \] a GARCH(1,1) model, where \(\Omega_{t-1}\) is the information available at the end of day \(t-1\). Estimation on historical data gives \(\hat\mu = 76\), \(\hat\omega = 3\), \(\hat\alpha = 0.6\) and \(\hat\beta = 0\); treat these estimates as the true parameter values. The latest observation is yesterday’s temperature, 92°F. Call yesterday day \(T\), so that the next ten days are \(T+1\) (today) to \(T+10\).

(a) Variance forecasts

Explain why the conditional variance for today, \(\sigma^2_{T+1}\), is already known at the end of day \(T\). Show that the forecasts \(\sigma^2_{T+h,T} = E(\sigma^2_{T+h} \mid \Omega_T)\) for later days satisfy \[ \sigma^2_{T+h,T} = \omega + (\alpha + \beta)\, \sigma^2_{T+h-1,T}, \qquad h \geq 2 . \] Compute the point forecasts of the conditional variance for each of the next ten days. What value do the forecasts approach as the horizon grows, and how quickly?

(b) Interval and probability forecasts

Assume that, given \(\Omega_T\), the temperature on day \(T+h\) is normal with mean 76 and variance \(\sigma^2_{T+h,T}\), as for the interval forecasts in lecture. For each of the next ten days, give the 95% interval forecast for the temperature and the probability that the temperature will be within 4 degrees of 76. Does this probability ever reach 90%? If so, after how many days? If not, explain why not, and find the value it approaches.

Tip

For the optional computations, pnorm(x) gives the standard normal distribution function \(\Phi(x)\) and qnorm(0.975) its 97.5% quantile, \(1.96\). A for loop computes the recursion in (a).

2. Dickey-Fuller Critical Values by Simulation

In lecture we simulated the null distribution of the Dickey-Fuller \(t\) statistic for a random walk with iid shocks. In practice the changes \(\Delta y_t\) are usually serially correlated, and the test is run on the augmented Dickey-Fuller (ADF) regression with a drift, \[ \Delta y_t = \mu + \tau\, y_{t-1} + \sum_{j=1}^{k} \gamma_j\, \Delta y_{t-j} + e_t, \qquad H_0: \tau = 0 \quad\text{against}\quad H_1: \tau < 0, \] which rejects the unit root when the \(t\) statistic of \(\hat\tau\), \(t_\tau\), falls below a critical value. In this question you find those critical values yourself. Simulate data from \[ y_t = \rho\, y_{t-1} + u_t, \qquad u_t = \phi\, u_{t-1} + \varepsilon_t, \qquad \varepsilon_t \sim \text{iid } N(0, 1), \qquad t = 1, \ldots, T, \] starting from \(y_0 = u_0 = 0\). With \(\rho = 1\) the null hypothesis holds and \(\Delta y_t = u_t\) is a stationary AR(1), so one lagged difference (\(k = 1\)) is the right augmentation.

(a) Critical values

Write a function that simulates one series of length \(T\) for given \(\rho\) and \(\phi\), runs the ADF regression with \(k\) lagged differences, and returns \(t_\tau\). With \(\rho = 1\), \(\phi = 0.5\), \(T = 250\), \(k = 1\) and \(R = 10{,}000\) replications, find the 1%, 5% and 10% critical values. Compare them with the critical values that ur.df(y, type = "drift") prints for a series of this length, and with \(-1.645\), the 5% critical value from the standard normal. Explain why setting the variance of \(\varepsilon_t\) to one and \(y_0 = 0\) involves no loss of generality.

# TODO: write the simulation function, then compute the critical values.

(b) Do the critical values depend on \(\phi\)?

Repeat (a) with \(\phi = 0\) and with \(\phi = -0.5\), keeping \(k = 1\). Do the critical values change? Why does the answer matter for using the test in practice, where \(\phi\) is unknown?

# TODO: repeat the simulation for the two other values of phi.

(c) Leaving out the lagged difference

Now run the plain Dickey-Fuller regression with drift (\(k = 0\)) on series simulated with \(\rho = 1\) and \(\phi = 0.5\), and again with \(\phi = -0.5\), with \(T = 250\) and \(R = 10{,}000\) as in (a). Using the 5% critical value from (a), how often does the test reject the null hypothesis, which is true? Compare the median of \(t_\tau\) in each case with its median when the lagged difference is included. Explain why leaving out the lagged difference makes the test unreliable, and why it rejects so often when \(\phi = -0.5\).

# TODO: rejection frequencies of the test without the lagged difference.

3. Estimating and Forecasting a Bivariate VAR

Consider the bivariate VAR(1) without an intercept (think of the two series as deviations from their means), \[ \begin{aligned} y_{1,t} &= \phi_{11}\, y_{1,t-1} + \phi_{12}\, y_{2,t-1} + \varepsilon_{1,t}, \\ y_{2,t} &= \phi_{21}\, y_{1,t-1} + \phi_{22}\, y_{2,t-1} + \varepsilon_{2,t}, \end{aligned} \] or, in matrix form, \(\mathbf{y}_t = \Phi\, \mathbf{y}_{t-1} + \boldsymbol{\varepsilon}_t\), where the shock vector \(\boldsymbol{\varepsilon}_t = (\varepsilon_{1,t}, \varepsilon_{2,t})'\) is iid over time with mean zero and covariance matrix \[ \Sigma = \begin{pmatrix} \sigma_1^2 & \sigma_{12} \\ \sigma_{12} & \sigma_2^2 \end{pmatrix}. \]

(a) The estimator

You observe \(\mathbf{y}_0, \mathbf{y}_1, \ldots, \mathbf{y}_T\).

  1. What is the estimator of the four coefficients \(\phi_{11}, \phi_{12}, \phi_{21}, \phi_{22}\)?

  2. The shocks are contemporaneously correlated, \(\sigma_{12} \neq 0\). Would estimating the two equations jointly, taking that correlation into account, improve on estimating them one at a time?

  3. How would you estimate \(\Sigma\)?

(b) Optimal forecasts

Now suppose that the parameters are known, \[ \Phi = \begin{pmatrix} 0.5 & 0.3 \\ 0 & 0.8 \end{pmatrix}, \qquad \Sigma = \begin{pmatrix} 1 & 0.5 \\ 0.5 & 1 \end{pmatrix}, \] and that the last observation is \(\mathbf{y}_T = (-2, \; 3)'\).

  1. Is this VAR covariance stationary? Find its unconditional mean.

  2. Under squared-error loss, what are the optimal point forecasts \(\mathbf{y}_{T+1,T}\) and \(\mathbf{y}_{T+2,T}\)? Derive the general expressions in terms of \(\Phi\) and \(\mathbf{y}_T\) first, then compute the numbers. Where are the forecasts headed as the horizon grows?

  3. Does \(y_1\) Granger-cause \(y_2\) in this VAR? Does \(y_2\) Granger-cause \(y_1\)?