University

Time series · Practice

Exercises
& worked solutions

Lecture notes from ECON30401 Time Series Econometrics, University of Manchester (third-year undergraduate).

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.

Problems 1, 2 and 4 are drawn from the problem sets and video exercises, which are linked as PDFs at the foot of the page; problem 3 was written for this 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.

What students say

“Nicky is an excellent econometrics tutor. He explains complex concepts clearly and makes them much easier to understand.”
Charles GardnerGoogle review
“I was completely lost in my economics class, and then I started working Nicky and he totally saved me. He was excellent at explaining the material and extremely accommodating to meet with me many times despite us being in different time zones! Highly recommend working with Nicky!”
Claire ChouGoogle review
“Nicky is a very good and thorough teacher. He has excellent knowledge of econometrics and takes the time to work through your questions. Highly recommended!”
ChrisEconometrics · 22/08
“Really great tutor! Encouraging, knowledgeable, friendly”
JedEconometrics · 09/02
“Very good lesson, Nicky is very helpful.”
ChrisEconometrics · 19/08
“Very helpful and clear.”
ClaireEconometrics · 22/01
“I gather it was very useful, thank you!”
ClaireEconometrics · 12/01
“Fantastic!”
JedEconometrics · 11/02

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,2)

Question

Suppose \(Y_t=\mu+\sum_{s=0}^{\infty}\eta_s\varepsilon_{t-s}\) with \(\varepsilon_t\sim\mathrm{WN}(\sigma^2)\), where the weights are \(\eta_0=1\), \(\eta_1=\phi_1+\theta_1\) and \(\eta_2=\phi_1\eta_1+\theta_2\), and each later weight is \(\phi_1\) times its predecessor: \(\eta_s=\phi_1\eta_{s-1}\) for \(s\ge3\). (a) Prove that this moving average obeys the ARMA(1,2) recursion

$$\begin{aligned}Y_t=\ &\alpha+\phi_1 Y_{t-1}+\varepsilon_t\\&+\theta_1\varepsilon_{t-1}+\theta_2\varepsilon_{t-2},\end{aligned}$$

in which \(\alpha=(1-\phi_1)\mu\). (b) Obtain a closed form for \(\eta_s\), \(s\ge2\). (c) Verify that the weights are absolutely summable for \(|\phi_1|<1\), and conclude that \(Y_t\) is then weakly stationary.

Show the full solution

(a) We take \(|\phi_1|<1\), so that the infinite sums below converge in mean square (part (c)) and can be subtracted term by term. Lag the process by one period and multiply by \(\phi_1\), then renumber the sum so that it runs over the same shocks as \(Y_t\):

$$\begin{aligned}&\phi_1Y_{t-1}\\&\quad=\phi_1\mu+\sum_{s=0}^{\infty}\phi_1\eta_s\varepsilon_{t-1-s}\\&\quad=\phi_1\mu+\sum_{s=1}^{\infty}\phi_1\eta_{s-1}\varepsilon_{t-s}.\end{aligned}$$

Subtracting this from \(Y_t\) and collecting the coefficient on each shock,

$$\begin{aligned}&Y_t-\phi_1Y_{t-1}\\&\quad=(1-\phi_1)\mu+\eta_0\varepsilon_t\\&\qquad+\sum_{s=1}^{\infty}\left(\eta_s-\phi_1\eta_{s-1}\right)\varepsilon_{t-s}.\end{aligned}$$

The first three weights give \(\eta_0=1\), \(\eta_1-\phi_1\eta_0=\theta_1\) and \(\eta_2-\phi_1\eta_1=\theta_2\). From \(s=3\) on, \(\eta_s-\phi_1\eta_{s-1}=0\) by the recursion, so every older shock drops out, and

$$\begin{aligned}Y_t-\phi_1Y_{t-1}=\ &\alpha+\varepsilon_t\\&+\theta_1\varepsilon_{t-1}+\theta_2\varepsilon_{t-2},\end{aligned}$$

with \(\alpha=(1-\phi_1)\mu\), which is the ARMA(1,2). Intuitively, the first two weights after \(\eta_0\) are free and carry \(\theta_1\) and \(\theta_2\); after that each weight is \(\phi_1\) times the one before, which is the footprint of a single autoregressive lag.

(b) We show by induction that \(\eta_s=\phi_1^{\,s-2}\eta_2\) for every \(s\ge2\). For \(s=2\) it reads \(\eta_2=\eta_2\). If it holds for some \(s\ge2\), the recursion gives \(\eta_{s+1}=\phi_1\eta_s\), which is \(\phi_1\cdot\phi_1^{\,s-2}\eta_2=\phi_1^{\,s-1}\eta_2\): the claim for \(s+1\). Substituting \(\eta_2=\phi_1(\phi_1+\theta_1)+\theta_2\), for every \(s\ge2\)

$$\eta_s=\phi_1^{\,s-2}\left(\phi_1^2+\phi_1\theta_1+\theta_2\right).$$

(c) A process \(\mu+\sum_s\eta_s\varepsilon_{t-s}\) built from white noise is weakly stationary when its weights are absolutely summable, \(\sum_s|\eta_s|<\infty\). Then the sum converges in mean square, \(\mathbb{E}[Y_t]=\mu\), \(\mathrm{Var}[Y_t]=\sigma^2\sum_s\eta_s^2\) and \(\gamma(k)=\sigma^2\sum_s\eta_s\eta_{s+k}\); none of these depends on \(t\), and all are finite because absolute summability implies \(\sum_s\eta_s^2<\infty\). By (b), when \(|\phi_1|<1\),

$$\begin{aligned}&\sum_{s=0}^{\infty}|\eta_s|\\&\quad=1+|\phi_1+\theta_1|+|\eta_2|\sum_{j=0}^{\infty}|\phi_1|^{\,j}\\&\quad=1+|\phi_1+\theta_1|+\frac{|\eta_2|}{1-|\phi_1|}<\infty,\end{aligned}$$

a geometric series, so \(Y_t\) is weakly stationary. If instead \(|\phi_1|\ge1\) and \(\eta_2\neq0\), the terms \(|\eta_2||\phi_1|^{\,s-2}\) do not shrink to zero and the sum diverges. When \(\eta_2=0\) the weights stop after lag 1 and \(Y_t\) is an MA(1), stationary for any \(\phi_1\) (the ARMA(1,2) of part (a) then has a common factor); otherwise the moving-average coefficients \(\theta_1,\theta_2\) do not enter the condition, and stationarity is decided by the autoregressive part. For example, with \(\phi_1=0.5\), \(\theta_1=0.4\) and \(\theta_2=-0.2\), the weights are \(1,\ 0.9,\ 0.25,\ 0.125,\ 0.0625,\ldots\), their absolute values sum to \(1+0.9+0.25/0.5=2.4\), and the variance is \(\sigma^2\sum_s\eta_s^2\), with \(\sum_s\eta_s^2=1+0.81+0.0625/0.75\), about 1.89.

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
MA(2) and AR(2) moments and stationarity, the source of problems 1 and 2.
Questions
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 minute consultation is free.

Free 30-min consultationNo obligation · reply within one business day
Book now