ECON30401 · Practice

Exercises
& worked solutions

Time series is learned by deriving things yourself. These practice problems, with complete worked solutions, cover the core skills: finding the moments and autocorrelation function of MA and AR processes, turning an infinite moving average into an ARMA, and forecasting. Try each one before opening the solution.

Each problem below is drawn from the ECON30401 problem sets and video exercises. Work through it on paper first; the solution is hidden until you click. Downloadable PDF versions are linked at the foot of the page.

Problem 1 · Moments of an MA(2)

Question

For the process \(Y_t=\alpha+\varepsilon_t+\theta_1\varepsilon_{t-1}+\theta_2\varepsilon_{t-2}\) with \(\varepsilon_t\sim\mathrm{WN}(\sigma^2)\): (a) show that \(\mathbb{E}[Y_t]=\alpha\) and \(\mathrm{Var}[Y_t]=\sigma^2(1+\theta_1^2+\theta_2^2)\); (b) find the autocorrelation function.

Show the full solution

(a) Mean. By linearity and \(\mathbb{E}[\varepsilon_s]=0\), \(\mathbb{E}[Y_t]=\alpha+\mathbb{E}[\varepsilon_t]+\theta_1\mathbb{E}[\varepsilon_{t-1}]+\theta_2\mathbb{E}[\varepsilon_{t-2}]=\alpha\).

Variance. \(\mathrm{Var}[Y_t]=\mathbb{E}[(\varepsilon_t+\theta_1\varepsilon_{t-1}+\theta_2\varepsilon_{t-2})^2]\). Expanding and using \(\mathbb{E}[\varepsilon_t^2]=\sigma^2\), \(\mathbb{E}[\varepsilon_t\varepsilon_s]=0\) for \(t\neq s\), all cross terms vanish and \(\mathrm{Var}[Y_t]=\sigma^2(1+\theta_1^2+\theta_2^2)\).

(b) Autocovariances. Multiplying the windows and keeping only matched shocks (\(\theta_0=1\)):

$$\gamma(1)=\sigma^2(\theta_1+\theta_1\theta_2),\quad \gamma(2)=\sigma^2\theta_2,\quad \gamma(k)=0\ (k>2).$$

Dividing by \(\gamma(0)=\sigma^2(1+\theta_1^2+\theta_2^2)\) gives the ACF

$$\rho(1)=\frac{\theta_1+\theta_1\theta_2}{1+\theta_1^2+\theta_2^2},\quad \rho(2)=\frac{\theta_2}{1+\theta_1^2+\theta_2^2},\quad \rho(k)=0\ (k>2),$$

confirming the MA(2) cut-off after lag 2.

Problem 2 · A seasonal AR(2)

Question

Consider the seasonal AR(2) \(Y_t=\mu+\phi_2 Y_{t-2}+\varepsilon_t\), \(\varepsilon_t\sim\mathrm{WN}(\sigma^2)\). (a) For what \(\phi_2\) is it stationary? (b) Derive its MA(∞) form, mean, variance and ACF.

Show the full solution

(a) Stationarity. In lag-operator form \((1-\phi_2 L^2)Y_t=\mu+\varepsilon_t\). Factor \((1-\phi_2 L^2)=(1-\sqrt{\phi_2}L)(1+\sqrt{\phi_2}L)\); both roots \(\pm\sqrt{\phi_2}\) lie inside the unit circle iff \(|\phi_2|<1\).

(b) MA(∞). Inverting, \((1-\phi_2 L^2)^{-1}=1+\phi_2 L^2+\phi_2^2 L^4+\cdots\), so

$$Y_t=\frac{\mu}{1-\phi_2}+\varepsilon_t+\phi_2\varepsilon_{t-2}+\phi_2^2\varepsilon_{t-4}+\cdots$$

Here \(\theta_s=\phi_2^{\,s/2}\) for even \(s\) and \(0\) for odd \(s\). Reading these into the MA(∞) formulas:

$$\mathbb{E}[Y_t]=\frac{\mu}{1-\phi_2},\qquad \mathrm{Var}[Y_t]=\sigma^2(1+\phi_2^2+\phi_2^4+\cdots)=\frac{\sigma^2}{1-\phi_2^2}.$$

The autocovariances are zero at odd lags, and for even \(k\), \(\gamma(k)=\sigma^2\phi_2^{\,k/2}/(1-\phi_2^2)\), giving \(\rho(k)=\phi_2^{\,k/2}\) for \(k=2,4,\ldots\) and \(\rho(k)=0\) for odd \(k\) — correlation only at even (seasonal) lags.

Problem 3 · From an MA(∞) to an ARMA(1,1)

Question

Let \(Y_t=\mu+\sum_{s=0}^{\infty}\eta_s\varepsilon_{t-s}\) with coefficients obeying \(\eta_s=\phi_1\eta_{s-1}\) for \(s\ge2\), \(\eta_0=1\), \(\eta_1=\phi_1+\theta_1\). (a) Show \(Y_t\) is the ARMA(1,1) \(Y_t=\alpha+\phi_1 Y_{t-1}+\varepsilon_t+\theta_1\varepsilon_{t-1}\) with \(\alpha=(1-\phi_1)\mu\). (b) Solve the coefficient recursion. (c) Show it is stationary when \(|\phi_1|<1\). (d) Derive the variance.

Show the full solution

(a) Form \(Y_t-\phi_1 Y_{t-1}\). The constant gives \(\mu-\phi_1\mu=\alpha\) with \(\alpha=(1-\phi_1)\mu\); the \(\varepsilon_t\) coefficient is 1; the \(\varepsilon_{t-1}\) coefficient is \(\eta_1-\phi_1=\theta_1\); and for \(s\ge2\) the coefficient is \(\eta_s-\phi_1\eta_{s-1}=0\) by the recursion. Hence \(Y_t-\phi_1 Y_{t-1}=\alpha+\varepsilon_t+\theta_1\varepsilon_{t-1}\), an ARMA(1,1).

(b) Iterating \(\eta_s=\phi_1\eta_{s-1}\) down to \(\eta_1\) gives \(\eta_s=\phi_1^{\,s-1}\eta_1=\phi_1^{\,s-1}(\phi_1+\theta_1)\) for \(s\ge1\).

(c) Absolute summability: \(\sum_{s=0}^{\infty}|\eta_s|=1+|\phi_1+\theta_1|\sum_{s=0}^{\infty}|\phi_1|^s=1+\dfrac{|\phi_1+\theta_1|}{1-|\phi_1|}\), finite iff \(|\phi_1|<1\). So the ARMA(1,1) is stationary exactly when \(|\phi_1|<1\).

(d) Using \(\mathrm{Var}[Y_t]=\sigma^2\sum_{s=0}^{\infty}\eta_s^2\),

$$\mathrm{Var}[Y_t]=\sigma^2\left\{1+(\phi_1+\theta_1)^2\sum_{s=0}^{\infty}\phi_1^{2s}\right\}=\sigma^2\frac{1+2\phi_1\theta_1+\theta_1^2}{1-\phi_1^2}.$$

(A neat check: if \(\theta_1=-\phi_1\) then \(\eta_s=0\) for \(s\ge1\), the process collapses to white noise around \(\mu/(1-\phi_1)\), and all autocorrelations vanish.)

Problem 4 · Forecasting an AR(2)

Question

For \(Y_t=\alpha+\phi_1 Y_{t-1}+\phi_2 Y_{t-2}+\varepsilon_t\): (a) derive the one- and two-step-ahead predictors; (b) find the forecast-error variances \(\mathrm{FE}(1)\) and \(\mathrm{FE}(2)\); (c) comment on how accuracy changes with the horizon.

Show the full solution

(a) Taking conditional expectations and setting future shocks to zero, \(\hat Y_{T+1}=\alpha+\phi_1 y_T+\phi_2 y_{T-1}\). For two steps, substitute \(\hat Y_{T+1}\):

$$\hat Y_{T+2}=\alpha+\phi_1\hat Y_{T+1}+\phi_2 y_T=\alpha(1+\phi_1)+(\phi_1^2+\phi_2)y_T+\phi_1\phi_2 y_{T-1}.$$

(b) \(\mathrm{FE}(1)=\mathbb{E}[\varepsilon_{T+1}^2]=\sigma^2\). Two steps: the error is \(\varepsilon_{T+2}+\phi_1\varepsilon_{T+1}\), so \(\mathrm{FE}(2)=\sigma^2(1+\phi_1^2)\).

(c) Since \(\mathrm{FE}(2)>\mathrm{FE}(1)\) when \(\phi_1\neq0\), and this continues at longer horizons, forecast accuracy declines as the horizon grows: data become less informative about the distant future.

Further practice

Two more problems from the first problem set extend the ideas above. Attempt them, then check the brief answers.

Cauchy process: show \(\{Y_t\}\) i.i.d. Cauchy, density \(f(y)=1/[\pi(1+y^2)]\), is strictly stationary. Is it weakly stationary?

An i.i.d. sequence has a joint distribution invariant to time shifts, so it is strictly stationary. It is not weakly stationary, however: the Cauchy distribution has no finite mean or variance, so the requirements \(\mathbb{E}[Y_t]=\mu\) and \(\mathrm{Var}[Y_t]<\infty\) fail. This shows strict stationarity does not imply weak stationarity when moments do not exist.

Consistency of the sample mean: show \(\bar Y_T=\tfrac1T\sum_{t=1}^T Y_t\) is consistent for a weakly stationary series with absolutely summable autocovariances.

Weak stationarity gives \(\mathbb{E}[\bar Y_T]=\mu\). With absolutely summable autocovariances \(\sum_j|\gamma(j)|<\infty\), the variance \(\mathrm{Var}(\bar Y_T)\to0\) as \(T\to\infty\) (the autocovariances contribute a bounded total that is divided by \(T\)). By Chebyshev's inequality, \(\Pr\{|\bar Y_T-\mu|>\epsilon\}\le\mathrm{Var}(\bar Y_T)/\epsilon^2\to0\), so \(\bar Y_T\xrightarrow{p}\mu\): the sample mean is consistent.

Related notes

Downloads

Problem set 1: questions
ARMA properties, MA(∞), AR(1) and ARMA(1,1) — the source of problems 1–3.
Questions
Problem set 1: worked video solutions
Full worked solutions to the first problem set.
Solutions
Video exercise 2: AR(2) prediction & ARMA(1,1)
The prediction and moment problems, with worked solutions.
Exercise sheet 3: seasonal ARMA prediction
Predicting a seasonal ARMA and its mean-square forecast errors.
PDF

Studying this for
a university module?

I tutor economics, econometrics, statistics and maths at university and postgraduate level, from OLS foundations through time series, VAR systems and unit-root testing. First 30–45 minute consultation is free.