Menu Close

Time series: UPSC Statistics Optional PYQ Solutions (1995–2026)

All 66 questions UPSC has asked on time series in the Statistics Optional (Paper II, Quantitative Economics and Official Statistics) from 1995 to 2026, solved step by step – latest first.

Try them yourself first: the same questions, without solutions, are on our Quantitative Economics and Official Statistics topic-wise PYQs page.

How we check these solutions

These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:

  • ✓ Checked by computer the numbers were worked out again independently in code (Python with NumPy/SciPy) and matched.
  • ✓ Proof checked step by step for “prove that” and “examine whether” questions, every step was checked against the definitions and the standard theorems.
  • ✓ Derivation checked step by step for derivations and approximations, every step was checked, and the result was also tested numerically.
  • ✓ Answer checked step by step for descriptive questions, every point was checked against the standard theory.

Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.

Jump to a question (year · question number):

2026 · 6a 2025 · 8a 2024 · 5b 2023 · 5b 2023 · 6a 2023 · 6b 2022 · 5a 2022 · 6a 2021 · 6a 2020 · 5b 2020 · 5c 2020 · 6b 2020 · 6c 2019 · 5a 2019 · 8a 2018 · 5c 2018 · 8a 2017 · 5b 2017 · 6a 2017 · 7b 2016 · 5e 2016 · 7c 2015 · 5b 2015 · 6c 2014 · 5a 2014 · 5d 2014 · 7c 2013 · 5a 2013 · 7a 2012 · 5a 2012 · 5d 2012 · 6b 2011 · 5d 2010 · 5b 2010 · 5d 2010 · 6b 2009 · 5a 2009 · 7c 2007 · 5a 2007 · 6a 2006 · 5a 2006 · 6a 2005 · 5a 2005 · 6a 2004 · 5a 2004 · 6a 2003 · 5a 2003 · 6a 2002 · 5a 2002 · 6a 2001 · 5a 2001 · 6a 2000 · 5a 2000 · 6a 1999 · 9a 1999 · 9b 1998 · 13a 1998 · 13b 1998 · 13c 1997 · 13a 1997 · 13c 1996 · 13a 1996 · 13c 1996 · 16c 1995 · 13a 1995 · 15c

Cover of the UPSC Prelims Topic-wise PYQ book with detailed explanations

From the Optional Province team

Preparing for Prelims too?

Our UPSC Prelims Topic-wise PYQ Book covers every Prelims question with detailed explanations, so you can see exactly where UPSC asks from. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Define autocorrelation of order k and correlogram. For an infinite series generated by the moving average of random components with equal weights, obtain the correlogram of a moving average of extent m.

2026 · Paper II · Q6a · 15 marks

Solution

Definitions. For a stationary series {ut}\{u_t\} with mean μ\mu and variance σu2\sigma_u^2, the autocorrelation of order kk (serial correlation at lag kk) is ρk=Cov(ut,ut+k)Var(ut)\rho_k=\frac{\operatorname{Cov}(u_t,u_{t+k})}{\operatorname{Var}(u_t)} =E[(ut−μ)(ut+k−μ)]σu2,k=\frac{E[(u_t-\mu)(u_{t+k}-\mu)]}{\sigma_u^2},\qquad k =0,1,2,…=0,1,2,\dots It does not depend on tt because the series is stationary, and ρ0=1\rho_0=1, ρ−k=ρk\rho_{-k}=\rho_k, |ρk|≤1|\rho_k|\le1. The correlogram is the graph of ρk\rho_k (or of the sample values rkr_k) against the lag kk. Its shape helps us identify the scheme that generated the series.

Moving average of extent mm with equal weights. Let εt\varepsilon_t be uncorrelated random components with mean 0 and variance σ2\sigma^2, and ut=1m(εt+εt+1+…+εt+m−1).u_t=\frac1m\left(\varepsilon_t+\varepsilon_{t+1}+\dots+\varepsilon_{t+m-1}\right). Then E(ut)=0E(u_t)=0 and Var(ut)=1m2⋅mσ2=σ2m.\operatorname{Var}(u_t)=\frac{1}{m^2}\cdot m\sigma^2=\frac{\sigma^2}{m}. For 0≤k<m0\le k<m, utu_t and ut+ku_{t+k} share the m−km-k terms εt+k,…,εt+m−1\varepsilon_{t+k},\dots,\varepsilon_{t+m-1}; all other cross-products have zero expectation. So Cov(ut,ut+k)=(m−k)σ2m2.\operatorname{Cov}(u_t,u_{t+k})=\frac{(m-k)\sigma^2}{m^2}. For k≥mk\ge m the two averages have no term in common, so the covariance is 0. Dividing by σ2/m\sigma^2/m: ρk={1−km,0≤k≤m,0,k≥m.\boxed{\rho_k=\begin{cases}1-\dfrac{k}{m}, & 0\le k\le m,\\[2mm] 0, & k\ge m.\end{cases}} So the correlogram is a straight line falling from 1 at k=0k=0 to 0 at k=mk=m, and it is zero beyond lag mm.

01234567800.20.40.60.81Lag kρₖρₖ = 1 − k/m
Correlogram of an equal-weight moving average of extent m = 5: a straight line from 1 down to 0 at lag m, then zero.

Remark. A correlogram that cuts off sharply after a finite lag is the signature of a moving-average scheme. An autoregressive scheme, by contrast, gives a correlogram that dies away gradually.

✓ Derivation checked step by step Derivation checked step by step, and by simulation in Python (400,000 terms, m = 5): the sample autocorrelations 0.799, 0.599, 0.399, 0.199, 0.000 match 1 − k/m.

↑ Back to the question list

Define time series. For a moving-average process with weights {a1,a2,…,am} of random components {ei,i=1,2,…}, where ei’s are i.i.d. N(0,σ2), obtain the correlogram function. Find its form, when all the weights are equal and their sum is 1.

2025 · Paper II · Q8a · 15 marks

Solution

Time series. A time series is a set of observations u1,u2,…u_1,u_2,\dots of a variable taken at successive (usually equally spaced) points of time, for example monthly sales or yearly production.

Moving average with weights a1,…,ama_1,\dots,a_m. Let eie_i be i.i.d. N(0,σ2)N(0,\sigma^2) and ut=a1et+a2et+1+…+amet+m−1u_t=a_1e_t{}+a_2e_{t+1}{}+\dots{}+a_me_{t+m-1} =∑i=1maiet+i−1.=\sum_{i=1}^m a_ie_{t+i-1}. Then E(ut)=0E(u_t)=0 and, since the ee’s are uncorrelated, Var(ut)=σ2∑i=1mai2.\operatorname{Var}(u_t)=\sigma^2\sum_{i=1}^m a_i^2 . For lag kk (0≤k<m0\le k<m), ut+k=∑j=1majet+k+j−1.u_{t+k}=\sum_{j=1}^m a_je_{t+k+j-1}. A term et+i−1e_{t+i-1} of utu_t matches a term of ut+ku_{t+k} when i−1=k+j−1i-1=k+j-1, i.e. i=j+ki=j+k. Hence Cov(ut,ut+k)=σ2∑j=1m−kajaj+k.\operatorname{Cov}(u_t,u_{t+k})=\sigma^2\sum_{j=1}^{m-k}a_ja_{j+k}. So the correlogram function is ρk=∑j=1m−kajaj+k∑j=1maj2k=0,1,…,m\boxed{\rho_k=\frac{\sum_{j=1}^{m-k}a_ja_{j+k}}{\sum_{j=1}^{m}a_j^2}}\qquad k=0,1,\dots,m −1,{}-1, and ρk=0\rho_k=0 for k≥mk\ge m. It does not depend on tt, so the process is stationary.

Equal weights with sum 1. Now aj=1/ma_j=1/m for every jj. The numerator is (m−k)/m2(m-k)/m^2 and the denominator is m/m2=1/mm/m^2=1/m, so ρk=m−km=1−km,0≤k≤m,\boxed{\rho_k=\frac{m-k}{m}=1-\frac km,\qquad 0\le k\le m,} and ρk=0\rho_k=0 for k≥mk\ge m. The correlogram falls linearly from 1 to 0 over the first mm lags.

✓ Derivation checked step by step Derivation checked step by step, and by simulation in Python: with weights (1, 2, 3), the sample autocorrelations 0.570 and 0.213 match Σaᵢaᵢ₊ₖ/Σaᵢ² = 8/14 and 3/14.

↑ Back to the question list

Consider AR(1) model with non-zero mean 74·3293 and ϕ=0⋅5705. If the last observed value is 67, then obtain the forecasting 1 time unit into the future yields. What is the forecasted value of 5 time units into the future?

2024 · Paper II · Q5b · 10 marks

Solution

Model. An AR(1) model with mean μ\mu is Xt−μ=ϕ(Xt−1−μ)+εt,X_t-\mu=\phi\,(X_{t-1}-\mu)+\varepsilon_t, with μ=74.3293\mu=74.3293 and ϕ=0.5705\phi=0.5705.

Forecast hh steps ahead. The future shocks have mean 0, so the minimum mean-square-error forecast made at time nn is X̂n(h)=μ+ϕh(Xn−μ).\hat X_n(h)=\mu+\phi^h\,(X_n-\mu). Here Xn−μ=67−74.3293=−7.3293X_n-\mu=67-74.3293=-7.3293.

One step ahead. X̂n(1)=74.3293\hat X_n(1)=74.3293 +0.5705(−7.3293)=74.3293{}+0.5705(-7.3293)=74.3293 −4.1814=70.148.{}-4.1814=\boxed{70.148}.

Five steps ahead. ϕ5=0.57055=0.060434\phi^5=0.5705^5=0.060434, so X̂n(5)=74.3293\hat X_n(5)=74.3293 +0.060434(−7.3293)=74.3293{}+0.060434(-7.3293)=74.3293 −0.4429=73.886.{}-0.4429=\boxed{73.886}.

The forecasts move back towards the mean as the horizon grows: 70.148, 71.944, 72.968, 73.553, 73.886 for h=1,…,5h=1,\dots,5. This is how a stationary AR(1) forecast behaves, because ϕh→0\phi^h\to0.

✓ Checked by computer We checked in Python: 74.3293 + 0.5705(67 − 74.3293) = 70.1479, and with 0.5705⁵ = 0.060434 the 5-step forecast is 73.8864.

↑ Back to the question list

In a study of its sales, a motor company in Delhi obtained the following least square equation: y=1500+300x;x=1,2,3,… where origin is 2000, x units (=1 year) and y = total number of units sold annually. The company has physical facilities to produce only 4500 units a year and it believes that it is reasonable to assume that at least for the next decade the trend will continue as before. (i) What is the annual average increase in the number of units sold? (ii) By what year will the company’s expected sales have equalled its present physical capacity? (iii) Estimate the number of sales for the year 2020. (iv) What is the slope of the given linear trend equation? (v) How much excess of company’s present physical capacity is in this estimated year 2020?

2023 · Paper II · Q5b · 10 marks

Solution

The trend is y=1500+300xy=1500+300x with origin 2000 (x=0x=0 in 2000) and xx in years.

(i) Annual average increase. Each extra year raises yy by the coefficient of xx: 300 units a year.

(ii) When will expected sales reach the present capacity of 4500? 1500+300x=4500⇒x=10,1500+300x=4500\ \Longrightarrow\ x=10, that is, the year 2000+10=2000+10= 2010.

(iii) Sales in 2020. x=20x=20, so y=1500+300(20)=y=1500+300(20)= 7500 units.

(iv) Slope. The slope of the trend line is 300 (units per year).

(v) Excess over capacity in 2020. 7500−4500=7500-4500= 3000 units more than the present capacity.

✓ Checked by computer We checked in Python: x = (4500 − 1500)/300 = 10 gives 2010, y(20) = 7500, and the excess over capacity is 3000 units.

↑ Back to the question list

Explain the principle of least squares. How it is used in fitting trend in time series analysis? Explain the fitting of trend for the curve y=abtct2.

2023 · Paper II · Q6a · 15 marks

Solution

Principle of least squares. Suppose we want to fit a curve y=f(t;a,b,…)y=f(t;a,b,\dots) to observations (ti,yi)(t_i,y_i), i=1,…,ni=1,\dots,n. The principle of least squares says: choose the constants so that the sum of squares of the deviations of the observed values from the fitted values, S=∑i=1n[yi−f(ti;a,b,…)]2,S=\sum_{i=1}^n\big[y_i-f(t_i;a,b,\dots)\big]^2, is as small as possible. We set the partial derivatives of SS with respect to each constant equal to zero. This gives the normal equations, and we solve them for the constants.

Use in fitting trend. In time series analysis the trend is the smooth long-term movement. We take time tt as the independent variable and the observed value yty_t as the dependent variable, and fit a mathematical curve by least squares:

  • a straight line y=a+bty=a+bt, with normal equations ∑y=na+b∑t\sum y=na+b\sum t and ∑ty=a∑t+b∑t2\sum ty=a\sum t+b\sum t^2;
  • a parabola y=a+bt+ct2y=a+bt+ct^2;
  • exponential, modified exponential, Gompertz or logistic curves, after a suitable transformation.

The fitted values are the trend values. They can be used to measure the trend, to remove it (by subtraction or division), and to forecast. To simplify the arithmetic, we shift the origin to the middle of the period so that ∑t=0\sum t=0 (and ∑t3=0\sum t^3=0).

Fitting y=abtct2y=ab^tc^{t^2}. Take logarithms: logy=loga+tlogb+t2logc.\log y=\log a+t\log b+t^2\log c . Write Y=logyY=\log y, A=logaA=\log a, B=logbB=\log b, C=logcC=\log c. Then Y=A+Bt+Ct2Y=A+Bt+Ct^2 is a second-degree curve in tt, and least squares on YY gives the normal equations ∑Y=nA+B∑t+C∑t2,\sum Y=nA+B\sum t+C\sum t^2, ∑tY=A∑t+B∑t2+C∑t3,\sum tY=A\sum t+B\sum t^2+C\sum t^3, ∑t2Y=A∑t2+B∑t3+C∑t4.\sum t^2Y=A\sum t^2+B\sum t^3+C\sum t^4 . With the origin at the middle (∑t=∑t3=0\sum t=\sum t^3=0) these reduce to ∑Y=nA+C∑t2,∑tY\sum Y=nA{}+C\sum t^2,\qquad \sum tY =B∑t2,∑t2Y=A∑t2=B\sum t^2,\qquad \sum t^2Y=A\sum t^2 +C∑t4.{}+C\sum t^4 . So B=∑tY∑t2,B=\frac{\sum tY}{\sum t^2}, and AA and CC come from the first and third equations. Finally a=antilogA,b=antilogB,a=\operatorname{antilog}A,\qquad b=\operatorname{antilog}B, c=antilogC.c=\operatorname{antilog}C .

Note that the least squares are applied to logy\log y, not to yy itself. The fitted curve minimises the squared deviations of the logarithms, which amounts to minimising relative errors.

✓ Answer checked step by step Answer checked step by step; the normal equations for log y = A + Bt + Ct² were re-derived.

↑ Back to the question list

Define stationary time series. How would you test the stationarity of the given time series? Write the importance of stationary time series. Check the following time series for stationarity. (i) Yt=Yt−1+Ut (ii) Yt=δ+Yt−1+Ut (iii) Yt=δYt−1+Ut;−1≤δ≤1

2023 · Paper II · Q6b · 15 marks

Solution

Stationary time series. A series {Yt}\{Y_t\} is (weakly, or second-order) stationary if

  1. E(Yt)=μE(Y_t)=\mu is the same for all tt;
  2. Var(Yt)=σ2\operatorname{Var}(Y_t)=\sigma^2 is finite and the same for all tt;
  3. Cov(Yt,Yt+k)=γk\operatorname{Cov}(Y_t,Y_{t+k})=\gamma_k depends only on the lag kk, not on tt.

It is strictly stationary if the joint distribution of (Yt1,…,Ytn)(Y_{t_1},\dots,Y_{t_n}) is unchanged by a shift in time.

How to test stationarity.

  1. Graph. Plot the series. A changing level (trend) or a changing spread suggests non-stationarity.
  2. Correlogram. For a stationary series the sample autocorrelations rkr_k die out quickly as kk increases. For a non-stationary series they stay large and decay very slowly.
  3. Unit-root tests. The Dickey–Fuller (DF) and augmented Dickey–Fuller (ADF) tests fit ΔYt=α+βt+γYt−1\Delta Y_t=\alpha+\beta t+\gamma Y_{t-1} +∑jδjΔYt−j+ut\qquad{}+\sum_j\delta_j\Delta Y_{t-j}+u_t and test H0:γ=0H_0:\gamma=0 (a unit root, so non-stationary) against γ<0\gamma<0, using the DF critical values. Other tests are Phillips–Perron and KPSS (in which stationarity is the null hypothesis).

Importance. Most time-series theory (ARMA models, the correlogram, spectral analysis, forecasting formulas) assumes stationarity. With a stationary series:

  • the mean, variance and autocorrelations can be estimated from one long record;
  • forecasts and their error variances are stable over time;
  • regressions between non-stationary series can be spurious (a high R2R^2 with no real relation), and checking stationarity guards against this.

A non-stationary series is usually differenced or detrended to make it stationary before modelling.

Checking the three series (UtU_t white noise with variance σ2\sigma^2):

  1. Random walk Yt=Yt−1+UtY_t=Y_{t-1}+U_t. With Y0Y_0 fixed, Yt=Y0+∑i=1tUi,E(Yt)Y_t=Y_0{}+\sum_{i=1}^tU_i,\qquad E(Y_t) =Y0,Var(Yt)=tσ2.=Y_0,\qquad \operatorname{Var}(Y_t)=t\sigma^2 . The variance grows with tt, so the series is not stationary. (It has a unit root.) The first difference ΔYt=Ut\Delta Y_t=U_t is stationary.

  2. Random walk with drift Yt=δ+Yt−1+UtY_t=\delta+Y_{t-1}+U_t. Here Yt=Y0+δt+∑i=1tUi,E(Yt)Y_t=Y_0{}+\delta t{}+\sum_{i=1}^tU_i,\qquad E(Y_t) =Y0+δt,Var(Yt)=tσ2.=Y_0{}+\delta t,\qquad \operatorname{Var}(Y_t)=t\sigma^2 . Both the mean and the variance change with tt, so it is not stationary. Again ΔYt=δ+Ut\Delta Y_t=\delta+U_t is stationary.

  3. AR(1) Yt=δYt−1+UtY_t=\delta Y_{t-1}+U_t with −1≤δ≤1-1\le\delta\le1.

  • If |δ|<1|\delta|<1, then Yt=∑j≥0δjUt−j,E(Yt)=0,Y_t=\sum_{j\ge0}\delta^jU_{t-j},\qquad E(Y_t)=0, Var(Yt)=σ21−δ2,ρk=δk.\operatorname{Var}(Y_t)=\frac{\sigma^2}{1-\delta^2},\qquad \rho_k=\delta^k . None of these depends on tt, so the series is stationary.
  • If δ=1\delta=1 it is the random walk of (i), which is not stationary.
  • If δ=−1\delta=-1, Var(Yt)\operatorname{Var}(Y_t) again grows like tσ2t\sigma^2, so it is not stationary.

So (iii) is stationary exactly when |δ|<1|\delta|<1.

✓ Answer checked step by step Answer checked step by step: each of the three models was examined through its mean, variance and characteristic root.

↑ Back to the question list

Apply the method of link relatives to the following data and calculate the seasonal indices: Price of Rice (in ₹ per 10 kg)

Quarter 2001 2002 2003 2004
1 75 86 90 100
2 60 65 72 78
3 54 63 66 72
4 59 80 82 93

Solution

Step 1: link relatives. Each quarter’s figure as a percentage of the previous quarter’s (Q1 is compared with Q4 of the previous year): LR=current quarterprevious quarter×100.LR=\frac{\text{current quarter}}{\text{previous quarter}}\times100 .

Quarter 2001 2002 2003 2004 Mean LR
1 — 145.76 112.50 121.95 126.738
2 80.00 75.58 80.00 78.00 78.395
3 90.00 96.92 91.67 92.31 92.724
4 109.26 126.98 124.24 129.17 122.413

For example, 2002 Q1 is 86/59×100=145.7686/59\times100=145.76 and 2001 Q2 is 60/75×100=8060/75\times100=80. We use the arithmetic mean of each row. (The median may be used instead when there are extreme values.)

Step 2: chain relatives (Q1 = 100):

  • Q2: 100×78.395/100=78.395100\times78.395/100=78.395
  • Q3: 78.395×92.724/100=72.69278.395\times92.724/100=72.692
  • Q4: 72.692×122.413/100=88.98472.692\times122.413/100=88.984

A new Q1, chained from Q4, is 88.984×126.738/100=112.777.88.984\times126.738/100=112.777 .

Step 3: correct for trend. The new Q1 should equal 100. The excess of 12.777 is due to trend, spread evenly over the four quarters: 12.777/4=3.19412.777/4=3.194 per quarter. Subtract 0,1,2,30,1,2,3 times 3.194 from Q1 to Q4:

  • Q1: 100100
  • Q2: 78.395−3.194=75.20178.395-3.194=75.201
  • Q3: 72.692−6.388=66.30372.692-6.388=66.303
  • Q4: 88.984−9.582=79.40288.984-9.582=79.402

Step 4: adjust to an average of 100. The mean of the corrected chain relatives is 320.906/4=80.227320.906/4=80.227. Dividing each by it and multiplying by 100:

Quarter 1 2 3 4 Total
Seasonal index 124.65 93.74 82.65 98.97 400

So rice prices are highest in the first quarter (about 25% above the average level) and lowest in the third (about 17% below).

✓ Checked by computer We checked in Python: the mean link relatives are 126.738, 78.395, 92.724, 122.413; the chain relatives, corrected for the trend (3.194 per quarter), give seasonal indices 124.65, 93.74, 82.65, 98.97 (total 400).

2022 · Paper II · Q5a · 10 marks

↑ Back to the question list

Explain Akaike information criterion for order selection in an ARMA (p,q) process.

2022 · Paper II · Q6a · 15 marks

Solution

Akaike information criterion (AIC). When we fit ARMA(p,q)(p,q) models of different orders, adding parameters always improves the fit, so the residual variance alone would always choose the largest model. Akaike’s criterion balances goodness of fit against the number of parameters: AIC(p,q)=−2logL(θ̂)+2k,\text{AIC}(p,q)=-2\log L(\hat\theta)+2k, where L(θ̂)L(\hat\theta) is the maximised likelihood and kk is the number of estimated parameters (k=p+q+1k=p+q+1, counting the constant or the noise variance, depending on the convention).

For a Gaussian ARMA(p,q)(p,q) fitted to nn observations, −2logL≈nlogσ̂p,q2+constant-2\log L\approx n\log\hat\sigma^2_{p,q}+\text{constant}, so AIC(p,q)≈nlogσ̂p,q2\text{AIC}(p,q)\approx n\log\hat\sigma^2_{p,q} +2(p+q+1),{}+2(p+q+1), where σ̂p,q2\hat\sigma^2_{p,q} is the estimated white-noise (residual) variance.

Order selection procedure.

  1. Make the series stationary (by differencing if needed).
  2. Choose maximum orders PP and QQ (for example from the correlogram and partial correlogram).
  3. Fit ARMA(p,q)(p,q) by maximum likelihood for every 0≤p≤P0\le p\le P, 0≤q≤Q0\le q\le Q.
  4. Compute AIC for each fit.
  5. Select the (p,q)(p,q) with the smallest AIC.
  6. Check the chosen model’s residuals (they should be white noise, for example by the Ljung–Box test).

Interpretation. The first term falls as the fit improves; the penalty 2k2k rises with every extra parameter. AIC estimates the expected Kullback–Leibler distance between the fitted model and the true process, so the minimum-AIC model is the one expected to forecast best.

Remarks.

  • AIC tends to over-fit (choose too many parameters) in large samples; it is not consistent.
  • Corrected AIC for small samples: AICc=AIC+2k(k+1)n−k−1\text{AIC}_c=\text{AIC}+\dfrac{2k(k+1)}{n-k-1}.
  • The Bayesian information criterion, BIC=−2logL+klogn\text{BIC}=-2\log L+k\log n, has a heavier penalty and is consistent.
  • AIC values are comparable only for models fitted to the same data (the same nn and the same differencing).

✓ Answer checked step by step Answer checked step by step: the AIC formula for a Gaussian ARMA(p, q) and the order-selection procedure.

↑ Back to the question list

Explain Box-Jenkins methodology to build ARIMA models.

2021 · Paper II · Q6a · 15 marks

Solution

The Box–Jenkins methodology is an iterative procedure for building an ARIMA(p,d,q)(p,d,q) model, ϕ(B)(1−B)dXt=θ(B)εt,\phi(B)(1-B)^dX_t=\theta(B)\varepsilon_t, from the data. Here BB is the backshift operator (BXt=Xt−1BX_t=X_{t-1}), ϕ(B)=1−ϕ1B−…−ϕpBp\phi(B)=1-\phi_1B-\dots-\phi_pB^p is the AR polynomial, θ(B)=1+θ1B+…+θqBq\theta(B)=1+\theta_1B+\dots+\theta_qB^q is the MA polynomial and εt\varepsilon_t is white noise. The methodology has four stages.

1. Identification.

  • Plot the series and its correlogram. If the level or variance changes, transform it (logarithm or Box–Cox for the variance) and difference it (d=1d=1 or 2, plus seasonal differencing if needed) until it looks stationary. A unit-root test such as ADF can confirm the choice of dd.
  • Use the ACF and PACF of the stationary series to choose tentative pp and qq:
ACF PACF
AR(pp) tails off cuts off after lag pp
MA(qq) cuts off after lag qq tails off
ARMA(p,qp,q) tails off tails off
  • AIC or BIC can help choose among candidate orders.

2. Estimation. Estimate ϕ1,…,ϕp\phi_1,\dots,\phi_p, θ1,…,θq\theta_1,\dots,\theta_q and σ2\sigma^2, by maximum likelihood or (conditional) least squares. Check that the estimates are significant, and that the fitted model is stationary and invertible (the roots of ϕ(z)=0\phi(z)=0 and θ(z)=0\theta(z)=0 lie outside the unit circle).

3. Diagnostic checking.

  • Examine the residuals: their ACF should show no significant spikes.
  • The portmanteau (Box–Pierce or Ljung–Box) statistic should be non-significant: Q=n(n+2)∑k=1Krk2n−k∼χK−p−q2.Q=n(n+2)\sum_{k=1}^K\frac{r_k^2}{n-k}\sim\chi^2_{K-p-q}.
  • Try over-fitting (adding a parameter) to see whether it is needed.

If the model fails, go back to stage 1 with a revised model.

4. Forecasting. Use the accepted model to forecast. Replace future shocks by 0 and future values by their forecasts, then compute the forecast-error variances σ2∑j<hψj2\sigma^2\sum_{j<h}\psi_j^2 to obtain prediction intervals.

The cycle “identify → estimate → check” is repeated until an adequate, parsimonious model is found (the principle of parsimony: as few parameters as possible).

✓ Answer checked step by step Answer checked step by step against the standard Box–Jenkins steps (identification, estimation, diagnostic checking, forecasting).

↑ Back to the question list

Define time series. Distinguish between stationary and non-stationary time series. Give an example of stationary and non-stationary time series.

2020 · Paper II · Q5b · 10 marks

Solution

Time series. A time series is a sequence of observations of a variable recorded at successive points (or periods) of time, usually equally spaced: y1,y2,…,yny_1,y_2,\dots,y_n. Examples are the yearly wheat production of India and the monthly consumer price index.

Stationary versus non-stationary.

Stationary series Non-stationary series
Mean is constant over time Mean changes (trend, shifts)
Variance is constant and finite Variance may change with time
Covariance between yty_t and yt+ky_{t+k} depends only on the lag kk Covariance depends on tt as well
The series fluctuates around a fixed level and keeps returning to it It wanders, with no fixed level to return to
Correlogram dies out quickly Correlogram decays very slowly
Shocks have temporary effects Shocks can have permanent effects
ARMA models apply directly Must be differenced or detrended first

Examples.

  • Stationary: white noise εt\varepsilon_t (i.i.d. with mean 0 and variance σ2\sigma^2); the AR(1) series yt=0.5yt−1+εty_t=0.5y_{t-1}+\varepsilon_t (mean 0, variance σ2/0.75\sigma^2/0.75, ρk=0.5k\rho_k=0.5^k). In practice, the daily percentage returns on a stock index are close to stationary.
  • Non-stationary: the random walk yt=yt−1+εty_t=y_{t-1}+\varepsilon_t, with Var(yt)=tσ2\operatorname{Var}(y_t)=t\sigma^2, which grows with tt; a series with linear trend yt=a+bt+εty_t=a+bt+\varepsilon_t, whose mean changes. In practice, India’s GDP or population over the years is non-stationary.

✓ Answer checked step by step Answer checked step by step: definitions and the two examples (white noise and the random walk) were verified through their means and variances.

↑ Back to the question list

Discuss variate difference method with an application.

2020 · Paper II · Q5c · 10 marks

Solution

Idea. Suppose the series is ut=f(t)+εt,u_t=f(t)+\varepsilon_t, where f(t)f(t) is a smooth systematic part (trend, which can be approximated locally by a polynomial) and εt\varepsilon_t is a random component with variance σ2\sigma^2, uncorrelated over time. The variate difference method (Anderson, Gosset) estimates σ2\sigma^2 and separates the two parts by taking successive differences.

Effect of differencing.

  • If f(t)f(t) is a polynomial of degree pp, its kk-th differences vanish for k>pk>p. Differencing removes the smooth part.
  • For the random part, Δkεt=∑j=0k(−1)j(kj)εt+k−j,\Delta^k\varepsilon_t=\sum_{j=0}^k(-1)^j\binom kj\varepsilon_{t+k-j}, so Var(Δkεt)=σ2∑j=0k(kj)2\operatorname{Var}(\Delta^k\varepsilon_t)=\sigma^2\sum_{j=0}^k\binom kj^2 =(2kk)σ2.=\binom{2k}{k}\sigma^2 .

Method.

  1. Compute the differences Δu,Δ2u,Δ3u,…\Delta u,\Delta^2u,\Delta^3u,\dots of the series.
  2. For each order kk, compute the variance VkV_k of the kk-th differences, and the reduced variance σ̂k2=Vk(2kk),\hat\sigma_k^2=\frac{V_k}{\binom{2k}{k}}, where the divisors (2kk)\binom{2k}{k} are 2, 6, 20, 70, … for k=1,2,3,4,…k=1,2,3,4,\dots
  3. As kk increases, σ̂k2\hat\sigma_k^2 falls (more of the trend is removed) until it becomes roughly constant. When two successive values agree, within sampling error, the systematic part has been eliminated, and the common value estimates σ2\sigma^2, the variance of the random component.

Application. Consider ut=t2+εtu_t=t^2+\varepsilon_t for t=1,…,50t=1,\dots,50, with εt∼N(0,4)\varepsilon_t\sim N(0,4).

  • The raw variance is dominated by the trend t2t^2 and is huge.
  • The second differences of t2t^2 equal 2, a constant, which the third differences remove completely.
  • From k=3k=3 onwards, the ratios Vk/(2kk)V_k/\binom{2k}{k} settle near σ2=4\sigma^2=4 (V3/20≈V4/70≈4V_3/20\approx V_4/70\approx4).

So the method tells us both that a quadratic trend is present and that the random component has variance about 4.

Uses and limitations. The method is used to judge how much of the variation is random, to choose the degree of the trend polynomial, and as a basis for estimating correlation between the random parts of two series. It assumes that the random components are uncorrelated (no serial correlation) and that the trend is smooth enough to be removed by a few differences. Sampling fluctuation in the σ̂k2\hat\sigma_k^2 makes the point of “constancy” somewhat subjective.

✓ Answer checked step by step Answer checked step by step: the variance-of-differences formula V(Δᵏu)/C(2k, k) for a random component was re-derived and illustrated on a numerical series.

↑ Back to the question list

Explain in brief how you will determine orders of autoregressive and moving average terms while fitting time series using ARIMA modelling.

2020 · Paper II · Q6b · 15 marks

Solution

In ARIMA(p,d,q)(p,d,q) modelling the orders are chosen in the identification stage.

1. Order of differencing dd. First make the series stationary.

  • If the sample ACF decays very slowly (stays high for many lags), or the plot shows a trend, take the first difference.
  • Repeat if needed; dd is usually 0, 1 or 2.
  • Over-differencing shows up as a large negative lag-1 autocorrelation (near −0.5). A unit-root test (ADF, KPSS) can confirm dd.

2. Orders pp (AR) and qq (MA) from the ACF rkr_k and the PACF ϕkk\phi_{kk} of the differenced series:

  • AR(pp): the ACF tails off (exponentially or as a damped sine wave); the PACF cuts off after lag pp.
  • MA(qq): the ACF cuts off after lag qq; the PACF tails off.
  • ARMA(p,qp,q): both tail off, the ACF after lag q−pq-p and the PACF after lag p−qp-q.

A sample autocorrelation (or partial autocorrelation) is judged to be zero if it lies within about ±2/n\pm2/\sqrt n (Bartlett’s limits for the ACF; Quenouille’s ±2/n\pm2/\sqrt n for the PACF).

3. Information criteria. When the pattern is not clear, fit several low-order candidates and choose the one with the smallest AIC=−2logL+2korBIC\text{AIC}=-2\log L{}+2k\qquad \text{or}\qquad \text{BIC} =−2logL+klogn.=-2\log L{}+k\log n . The extended ACF (EACF) table can also suggest (p,q)(p,q) for mixed models.

4. Confirmation. Estimate the chosen model and check that:

  • its coefficients are significant;
  • its residuals are white noise (residual ACF and the Ljung–Box test);
  • over-fitting with one more AR or MA term gives no significant improvement.

If not, revise pp and qq. The principle of parsimony favours the smallest adequate model.

✓ Answer checked step by step Answer checked step by step against the ACF/PACF identification rules and the information criteria.

↑ Back to the question list

What is Dickey-Fuller (DF) test? Describe how you will use this test for testing stationarity of any given time series.

2020 · Paper II · Q6c · 20 marks

Solution

The Dickey–Fuller test is a test for a unit root, i.e. for non-stationarity, in an autoregressive series.

Start with Yt=ρYt−1+utY_t=\rho Y_{t-1}+u_t, with utu_t white noise. If ρ=1\rho=1 the series is a random walk (non-stationary); if |ρ|<1|\rho|<1 it is stationary. Subtracting Yt−1Y_{t-1} from both sides, ΔYt=δYt−1+ut,δ=ρ−1.\Delta Y_t=\delta Y_{t-1}+u_t,\qquad \delta=\rho-1 .

Hypotheses. H0:δ=0(ρH_0:\delta=0\ (\rho =1,unit root, non-stationary)=1,\ \text{unit root, non-stationary}) againstH1:δ<0(stationary).\text{against}\qquad H_1:\delta<0\ (\text{stationary}).

Three forms of the test regression:

  1. no constant: ΔYt=δYt−1+ut\Delta Y_t=\delta Y_{t-1}+u_t (random walk);
  2. with a constant (drift): ΔYt=β1+δYt−1+ut\Delta Y_t=\beta_1+\delta Y_{t-1}+u_t;
  3. with a constant and trend: ΔYt=β1+β2t+δYt−1+ut\Delta Y_t=\beta_1+\beta_2t+\delta Y_{t-1}+u_t.

Test statistic. Estimate the regression by OLS and compute τ=δ̂se(δ̂).\tau=\frac{\hat\delta}{\operatorname{se}(\hat\delta)} . Under H0H_0 the series is non-stationary, so τ\tau does not follow the usual tt distribution. It is compared with the Dickey–Fuller (τ) critical values (tabulated by Dickey and Fuller, and later by MacKinnon), which are more negative than the tt values. Approximate 5% critical values for large samples are −1.95, −2.86 and −3.41 for the three forms.

Decision. If τ\tau is more negative than the critical value, reject H0H_0: the series is stationary (around a constant or a trend, depending on the form). Otherwise we cannot reject the unit root, and the series is treated as non-stationary.

Using it on a given series.

  1. Plot the series to choose the form (trend present → form 3; non-zero level only → form 2).
  2. Run the DF regression and compute τ\tau.
  3. If H0H_0 is not rejected, difference the series and test ΔYt\Delta Y_t again. The number of differences needed to reject the null is the order of integration dd: the series is I(d)I(d).

Augmented Dickey–Fuller (ADF). If utu_t is serially correlated, the simple DF test is invalid. ADF adds lagged differences: ΔYt=β1+β2t+δYt−1\Delta Y_t=\beta_1+\beta_2t+\delta Y_{t-1} +∑i=1mαiΔYt−i+εt,\qquad{}+\sum_{i=1}^m\alpha_i\Delta Y_{t-i}+\varepsilon_t, with mm chosen (for example by AIC) to make εt\varepsilon_t white noise. The same τ\tau critical values are used.

Limitations. The test has low power against stationary series with ρ\rho close to 1; the result depends on the form chosen and on the lag length; structural breaks can make a stationary series look like a unit-root process.

✓ Answer checked step by step Answer checked step by step: the three DF regressions, the τ statistic and its non-standard critical values.

↑ Back to the question list

Obtain autocorrelation function of autoregressive (AR) process of order two.

2019 · Paper II · Q5a · 10 marks

Solution

AR(2) process. Xt=ϕ1Xt−1+ϕ2Xt−2+εt,X_t=\phi_1X_{t-1}+\phi_2X_{t-2}+\varepsilon_t, with εt\varepsilon_t white noise (mean 0, variance σ2\sigma^2), E(Xt)=0E(X_t)=0, and stationarity conditions ϕ1+ϕ2<1,ϕ2−ϕ1<1,|ϕ2|\phi_1{}+\phi_2<1,\qquad \phi_2{}-\phi_1<1,\qquad |\phi_2| <1.<1 .

Yule–Walker equations. Multiply by Xt−kX_{t-k} (k≥1k\ge1) and take expectations. Since εt\varepsilon_t is uncorrelated with past XX’s, γk=ϕ1γk−1+ϕ2γk−2.\gamma_k=\phi_1\gamma_{k-1}+\phi_2\gamma_{k-2}. Dividing by γ0\gamma_0: ρk=ϕ1ρk−1+ϕ2ρk−2,k≥1,\boxed{\rho_k=\phi_1\rho_{k-1}+\phi_2\rho_{k-2},\qquad k\ge1,} with ρ0=1\rho_0=1 and ρ−1=ρ1\rho_{-1}=\rho_1.

First two values. For k=1k=1: ρ1=ϕ1+ϕ2ρ1\rho_1=\phi_1+\phi_2\rho_1, so ρ1=ϕ11−ϕ2.\rho_1=\frac{\phi_1}{1-\phi_2}. For k=2k=2: ρ2=ϕ1ρ1+ϕ2=ϕ121−ϕ2+ϕ2.\rho_2=\phi_1\rho_1+\phi_2=\frac{\phi_1^2}{1-\phi_2}+\phi_2 .

General solution. The difference equation has characteristic equation m2−ϕ1m−ϕ2=0m^2-\phi_1m-\phi_2=0, with roots m1,m2=ϕ1±ϕ12+4ϕ22,m_1,m_2=\frac{\phi_1\pm\sqrt{\phi_1^2+4\phi_2}}{2}, both inside the unit circle for a stationary process.

  • Distinct real roots (ϕ12+4ϕ2>0\phi_1^2+4\phi_2>0): ρk=A1m1k+A2m2k,\rho_k=A_1m_1^k+A_2m_2^k, with A1+A2=1A_1+A_2=1 and A1m1+A2m2=ρ1A_1m_1+A_2m_2=\rho_1. This gives A1=m1(1−m22)(m1−m2)(1+m1m2),A_1=\frac{m_1(1-m_2^2)}{(m_1-m_2)(1+m_1m_2)}, A2=−m2(1−m12)(m1−m2)(1+m1m2).A_2=\frac{-m_2(1-m_1^2)}{(m_1-m_2)(1+m_1m_2)} . The ACF is a mixture of damped exponentials.
  • Equal roots mm: ρk=(1+k1−m21+m2)mk\rho_k=\left(1+k\frac{1-m^2}{1+m^2}\right)m^k.
  • Complex roots (ϕ12+4ϕ2<0\phi_1^2+4\phi_2<0): with d=−ϕ2d=\sqrt{-\phi_2} and cosθ=ϕ1/(2d)\cos\theta=\phi_1/(2d), ρk=dksin(kθ+ψ)sinψ,tanψ\rho_k=\frac{d^k\sin(k\theta+\psi)}{\sin\psi},\qquad \tan\psi =1+d21−d2tanθ.=\frac{1+d^2}{1-d^2}\tan\theta . This is a damped sine wave (pseudo-periodic behaviour) with period 2π/θ2\pi/\theta.

Variance. γ0=ϕ1γ1+ϕ2γ2+σ2⇒γ0\gamma_0=\phi_1\gamma_1{}+\phi_2\gamma_2{}+\sigma^2\Longrightarrow\quad \gamma_0 =(1−ϕ2)σ2(1+ϕ2)[(1−ϕ2)2−ϕ12].=\frac{(1-\phi_2)\sigma^2}{(1+\phi_2)\big[(1-\phi_2)^2-\phi_1^2\big]} .

Example. For ϕ1=0.5\phi_1=0.5, ϕ2=0.3\phi_2=0.3: ρ1=0.5/0.7=0.714\rho_1=0.5/0.7=0.714, ρ2=0.5(0.714)+0.3=0.657\rho_2=0.5(0.714)+0.3=0.657, ρ3=0.5(0.657)+0.3(0.714)=0.543\rho_3=0.5(0.657)+0.3(0.714)=0.543. The ACF decays gradually; the PACF is zero after lag 2.

✓ Derivation checked step by step Derivation checked step by step, and by simulation in Python (φ₁ = 0.5, φ₂ = 0.3): ρ₁ = φ₁/(1 − φ₂) = 0.7143 and ρ₂ = 0.6571, against simulated 0.715 and 0.659.

↑ Back to the question list

Explain the methods to forecast ARIMA (p,d,q) process.

2019 · Paper II · Q8a · 15 marks

Solution

Let the fitted model be ARIMA(p,d,q)(p,d,q): φ(B)Xt=θ(B)εt,φ(B)\varphi(B)X_t=\theta(B)\varepsilon_t,\qquad \varphi(B) =ϕ(B)(1−B)d,=\phi(B)(1-B)^d, a generalised AR polynomial of degree p+dp+d. We stand at time nn and want the forecast X̂n(h)\hat X_n(h) of Xn+hX_{n+h}. The minimum mean-square-error forecast is the conditional expectation X̂n(h)=E(Xn+h∣Xn,Xn−1,…).\hat X_n(h)=E(X_{n+h}\mid X_n,X_{n-1},\dots). There are three equivalent ways to compute it.

1. Difference-equation form (used in practice). Write Xn+h=∑j=1p+dφjXn+h−j+εn+hX_{n+h}=\sum_{j=1}^{p+d}\varphi_jX_{n+h-j}+\varepsilon_{n+h} +∑j=1qθjεn+h−j,\qquad{}+\sum_{j=1}^q\theta_j\varepsilon_{n+h-j}, and take conditional expectations using these rules:

  • E(Xn+j∣⋅)=Xn+jE(X_{n+j}\mid\cdot)=X_{n+j} for j≤0j\le0, and X̂n(j)\hat X_n(j) for j>0j>0;
  • E(εn+j∣⋅)=εn+jE(\varepsilon_{n+j}\mid\cdot)=\varepsilon_{n+j} (the residuals, estimated from the fitted model) for j≤0j\le0, and 00 for j>0j>0.

So the forecasts are built up recursively for h=1,2,…h=1,2,\dots. For h>qh>q they satisfy φ(B)X̂n(h)=0\varphi(B)\hat X_n(h)=0 (the “eventual forecast function”).

2. Random-shock (ψ\psi-weight) form. Write Xt=ψ(B)εt=∑j≥0ψjεt−j,X_t=\psi(B)\varepsilon_t=\sum_{j\ge0}\psi_j\varepsilon_{t-j}, ψ(B)=θ(B)/φ(B),ψ0\psi(B)=\theta(B)/\varphi(B),\qquad \psi_0 =1.=1 . Then X̂n(h)=∑j≥hψjεn+h−j,\hat X_n(h)=\sum_{j\ge h}\psi_j\varepsilon_{n+h-j}, and the forecast error is en(h)=∑j=0h−1ψjεn+h−j,e_n(h)=\sum_{j=0}^{h-1}\psi_j\varepsilon_{n+h-j}, Varen(h)=σ2∑j=0h−1ψj2.\operatorname{Var}\,e_n(h)=\sigma^2\sum_{j=0}^{h-1}\psi_j^2 . A 95% prediction interval is X̂n(h)±1.96σ∑j<hψj2\hat X_n(h)\pm1.96\,\sigma\sqrt{\sum_{j<h}\psi_j^2}.

3. Inverted (π\pi-weight) form. Write εt=π(B)Xt,Xt=∑j≥1πjXt−j\varepsilon_t=\pi(B)X_t,\qquad X_t=\sum_{j\ge1}\pi_jX_{t-j} +εt.{}+\varepsilon_t . The forecast is then a weighted average of past observations.

Updating. When Xn+1X_{n+1} arrives, X̂n+1(h)=X̂n(h+1)\hat X_{n+1}(h)=\hat X_n(h+1) +ψh[Xn+1−X̂n(1)],{}+\psi_h\big[X_{n+1}-\hat X_n(1)\big], so old forecasts are revised by a multiple of the latest one-step error.

Example: ARIMA(0,1,1), Xt=Xt−1+εt−θεt−1X_t=X_{t-1}+\varepsilon_t-\theta\varepsilon_{t-1}. Then X̂n(1)=Xn−θεn,X̂n(h)\hat X_n(1)=X_n{}-\theta\varepsilon_n,\qquad \hat X_n(h) =X̂n(1)for all h,=\hat X_n(1)\ \ \text{for all } h, which is exponential smoothing with constant 1−θ1-\theta. The ψ\psi-weights are ψj=1−θ\psi_j=1-\theta for j≥1j\ge1, so the error variance σ2[1+(h−1)(1−θ)2]\sigma^2[1+(h-1)(1-\theta)^2] grows linearly with hh.

For a non-stationary model (d≥1d\ge1) the forecast-error variance grows without bound as hh increases. For a stationary ARMA model (d=0d=0) the forecasts tend to the mean, and the error variance tends to Var(Xt)\operatorname{Var}(X_t).

✓ Answer checked step by step Answer checked step by step: the ψ-weight form, the difference-equation recursion and the forecast-error variance were re-derived for ARIMA(0,1,1) as an example.

↑ Back to the question list

What is time series? Discuss various components of a time series and their significances in contributing variation in the model.

2018 · Paper II · Q5c · 10 marks

Solution

Time series. A time series is a set of observations on a variable arranged in the order of time at which they occur, for example monthly electricity consumption or annual rainfall.

The total variation in a time series is the result of four kinds of forces, called its components.

1. Secular trend (TT). The smooth, long-term tendency of the series to increase, decrease or stay steady over a long period. It arises from slowly acting forces such as population growth, technological progress, changes in tastes and capital formation. Examples: the rising trend in India’s GDP, or the falling trend in the death rate. Significance: the trend tells us the basic direction of the series. It is needed for long-term planning and forecasting, and must be removed before the other components can be studied.

2. Seasonal variation (SS). Regular, periodic movements that repeat within a year (or within any fixed period, such as a day or a week). They are caused by the weather and seasons, and by customs and festivals. Examples: the demand for woollens in winter, ice-cream sales in summer, and retail sales at Diwali. Significance: seasonal indices help firms plan production, stocks and staffing month by month. Removing them (deseasonalisation) shows the underlying movement of the series.

3. Cyclical variation (CC). Oscillations with a period of more than one year (typically 2–10 years), such as the business cycle of prosperity, recession, depression and recovery. They are not as regular as seasonal movements in either period or amplitude. Significance: knowing where the economy is in the cycle helps in medium-term decisions about investment, inventories and policy.

4. Irregular (random) variation (II). Erratic, unpredictable movements due to chance causes such as floods, wars, strikes, epidemics and fires. They are short-lived, with no pattern. Significance: they cannot be forecast. Their size tells us how much of the variation is unexplained, and it sets a limit to the accuracy of any forecast.

Contribution to the model. The components are combined either additively, Y=T+S+C+I,Y=T+S+C+I, when they are independent of each other and SS, CC, II are measured in the same units as YY; or multiplicatively, Y=T×S×C×I,Y=T\times S\times C\times I, when the seasonal and cyclical swings are proportional to the level of the series (then SS, CC, II are indices, or percentages of the trend). Analysing a time series means measuring each component, removing it and studying the rest.

✓ Answer checked step by step Answer checked step by step: the four components, their causes and their role in the additive and multiplicative models.

↑ Back to the question list

Describe the Box-Jenkins methodology to identify a particular time series model.

2018 · Paper II · Q8a · 15 marks

Solution

Identification is the first and most important stage of the Box–Jenkins approach. Its aim is to choose a tentative ARIMA(p,d,q)(p,d,q) (or seasonal ARIMA) model from the data.

Step 1: plot and transform. Plot the series. If the variability grows with the level, take logarithms (or use a Box–Cox transformation) to stabilise the variance.

Step 2: choose dd (and the seasonal DD). If the ACF decays slowly or there is a trend, difference: Wt=(1−B)dXtW_t=(1-B)^dX_t. Use the smallest dd that gives a stationary-looking series, usually 0, 1 or 2. Unit-root tests (DF/ADF) can help. For a seasonal series with period ss, use seasonal differences (1−Bs)D(1-B^s)^D as well.

Step 3: compute the sample ACF rkr_k and PACF ϕ̂kk\hat\phi_{kk} of WtW_t, with limits of about ±2/n\pm2/\sqrt n for judging which values are zero.

Step 4: match the patterns.

Model ACF PACF
AR(pp) Tails off (exponential decay or damped sine wave) Cuts off after lag pp
MA(qq) Cuts off after lag qq Tails off
ARMA(p,qp,q) Tails off after lag q−pq-p Tails off after lag p−qp-q
White noise All near zero All near zero

Seasonal orders P,QP,Q are read in the same way from the spikes at lags s,2s,…s,2s,\dots.

Step 5: refine. If several models are plausible, compare them by AIC or BIC and prefer the parsimonious one. A mean (constant) term is included if the mean of WtW_t is significantly non-zero.

The identified model is only tentative. It is then estimated and subjected to diagnostic checks; if the residuals show remaining structure, we return to identification. This iterative cycle is the core of the Box–Jenkins method.

✓ Answer checked step by step Answer checked step by step against the standard identification rules (stationarity, ACF and PACF patterns, information criteria).

↑ Back to the question list

Briefly discuss about the Box-Jenkins method of forecasting.

2017 · Paper II · Q5b · 10 marks

Solution

The Box–Jenkins method of forecasting builds a stochastic model, an ARIMA(p,d,q)(p,d,q) model ϕ(B)(1−B)dXt=θ(B)εt,\phi(B)(1-B)^dX_t=\theta(B)\varepsilon_t, from the series itself, and uses it to forecast. It does not need explanatory variables, only the past of the series.

Main steps.

  1. Identification: make the series stationary by differencing (dd), then choose pp and qq from the ACF and PACF patterns (AR: PACF cuts off; MA: ACF cuts off).
  2. Estimation: estimate the parameters by maximum likelihood or least squares.
  3. Diagnostic checking: the residuals should be white noise (residual ACF, Ljung–Box QQ test); otherwise revise the model.
  4. Forecasting: compute X̂n(h)=E(Xn+h∣Xn,Xn−1,…)\hat X_n(h)=E(X_{n+h}\mid X_n,X_{n-1},\dots) recursively from the model, putting future shocks equal to 0. The forecast-error variance is σ2∑j=0h−1ψj2\sigma^2\sum_{j=0}^{h-1}\psi_j^2, which gives prediction intervals.

Features.

  • Iterative and data-driven: the model is chosen by the data.
  • Parsimonious: a few parameters describe complex dependence.
  • Gives optimal (minimum mean-square-error) forecasts within the ARIMA class, with honest error bands.
  • Includes exponential smoothing as a special case (ARIMA(0,1,1)) and extends to seasonal models.

Limitations. It needs a fairly long series (at least about 50 observations); identification needs skill; it assumes the structure stays stable; and it is mainly suited to short-term forecasting.

✓ Answer checked step by step Answer checked step by step against the standard Box–Jenkins forecasting cycle.

↑ Back to the question list

Define Time series. Give its components and explain each of them.

2017 · Paper II · Q6a · 15 marks

Solution

Time series. A time series is a set of observations taken at specified times, usually at equal intervals. Mathematically, yt=f(t)y_t=f(t), the value of the variable at time tt. Examples: daily closing values of the Sensex, quarterly GDP, annual birth rates.

Components.

(1) Secular trend. The general tendency of the series to grow, decline or stay stable over a long period. It shows the overall direction, for example the rise in literacy in India since 1951. It is caused by gradual forces (population, technology, capital). It is measured by freehand curves, semi-averages, moving averages or least squares.

(2) Seasonal variations. Short-term movements that occur regularly every year (or every week or day), with a period of one year or less. Causes are climate and social customs, for example the rise in the sale of umbrellas during the monsoon, or of sweets at festivals. They are measured by the methods of simple averages, ratio to trend, ratio to moving average, and link relatives.

(3) Cyclical variations. Oscillatory movements with a period of more than a year, the best known being the trade (business) cycle with its four phases: prosperity, recession, depression and recovery. They are less regular than seasonal variations. They are studied by the residual method, harmonic analysis or periodogram analysis.

(4) Irregular variations. Random, unforeseen fluctuations due to accidental causes such as earthquakes, floods, wars and strikes. They follow no pattern and cannot be predicted. They are what remains after the other components are removed, and they are often smoothed out by moving averages.

The components are combined in an additive model Y=T+S+C+IY=T+S+C+I or a multiplicative model Y=T⋅S⋅C⋅IY=T\cdot S\cdot C\cdot I.

✓ Answer checked step by step Answer checked step by step: definitions of the four components, with examples.

↑ Back to the question list

The data on quarterly prices in Rupees per kilogram of a commodity during 2005 to 2009 are shown below:

Quarter \ Year 2005 2006 2007 2008 2009
I 45 48 49 52 60
II 54 56 63 65 70
III 72 63 70 75 84
IV 60 56 65 72 66

Compute the seasonal indices by the simple average method and obtain deseasonalised values.

2017 · Paper II · Q7b · 20 marks

Solution

Method of simple averages. Average each quarter over the years, then express each quarterly average as a percentage of the grand average.

Quarter 2005 2006 2007 2008 2009 Total Average
I 45 48 49 52 60 254 50.8
II 54 56 63 65 70 308 61.6
III 72 63 70 75 84 364 72.8
IV 60 56 65 72 66 319 63.8

Grand average =(50.8+61.6+72.8+63.8)/4=(50.8+61.6+72.8+63.8)/4 =249/4=62.25=249/4=62.25.

Seasonal indices (average/62.25×100\text{average}/62.25\times100):

Quarter I II III IV Total
Seasonal index 81.61 98.96 116.95 102.49 400

Prices are lowest in quarter I (about 18% below the average level) and highest in quarter III (about 17% above).

Deseasonalised values. In the multiplicative model, deseasonalised value\text{deseasonalised value} =actualseasonal index×100.=\frac{\text{actual}}{\text{seasonal index}}\times100 .

Quarter 2005 2006 2007 2008 2009
I 55.14 58.82 60.04 63.72 73.52
II 54.57 56.59 63.66 65.69 70.74
III 61.57 53.87 59.86 64.13 71.83
IV 58.54 54.64 63.42 70.25 64.40

For example, 2005 Q I: 45×100/81.61=55.1445\times100/81.61=55.14.

The deseasonalised series shows the rising trend more clearly. Note: the simple-average method assumes there is no marked trend. Here prices rise over the years, so the indices for later quarters are slightly inflated by the trend. The ratio-to-trend or ratio-to-moving-average method would correct for this.

✓ Checked by computer We checked in Python: the quarterly averages 50.8, 61.6, 72.8, 63.8 and grand mean 62.25 give seasonal indices 81.61, 98.96, 116.95, 102.49 (total 400); the deseasonalised values are y × 100/SI.

↑ Back to the question list

Why are moving averages calculated in analyzing a time series? State how you would determine the period of the moving average for the following data:

Year Value
1 130
2 127
3 124
4 135
5 140
6 132
7 129
8 127
9 145
10 158
11 153
12 146
13 145
14 164
15 170

Solution

Why moving averages are calculated.

  • To measure the trend: a moving average of suitable period smooths out short-term fluctuations (cyclical, seasonal and irregular) and leaves the trend.
  • To eliminate periodic (seasonal or cyclical) movements: a moving average whose period equals the period of the oscillation removes it completely.
  • To obtain the ratio to moving average for seasonal indices, and to smooth data for forecasting.

Determining the period. The period of the moving average should equal the period (or average period) of the cycles in the data. We find it by locating successive peaks or troughs.

Year 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Value 130 127 124↓ 135 140↑ 132 129 127↓ 145 158↑ 153 146 145↓ 164 170↑
  • Troughs at years 3, 8, 13: the intervals are 5 and 5.
  • Peaks at years 5, 10, 15: the intervals are 5 and 5.

So the cycle has a period of 5 years, and a 5-yearly moving average is appropriate.

Check. The 5-yearly moving averages (centred at years 3 to 13) are 131.2, 131.6, 132.0, 132.6, 134.6, 138.2, 142.4, 145.8, 149.4, 153.2, 155.6: a smooth, steadily rising trend. By contrast, the 3-year averages (127.0, 128.7, 133.0, 135.7, 133.7, 129.3, …) and the 4-year averages still go up and down. This confirms that 5 years is the right period.

When the cycles are irregular, we take the average of the intervals between peaks (or troughs), or try several periods and choose the one that gives the smoothest moving average.

✓ Checked by computer We checked in Python: the troughs (years 3, 8, 13) and peaks (5, 10, 15) are 5 years apart; the 5-yearly moving averages 131.2, 131.6, …, 155.6 rise smoothly, while 3-, 4- and 6-year averages still fluctuate.

2016 · Paper II · Q5e · 10 marks

↑ Back to the question list

Explain the nature of cyclical variations in a time series. How do seasonal variations differ from them? Give an outline of link relative method of measuring seasonal variations.

2016 · Paper II · Q7c · 15 marks

Solution

Nature of cyclical variations. Cyclical variations are wave-like, oscillatory movements about the trend, with a period of more than one year, usually 2 to 10 years. The typical example is the business (trade) cycle, with four phases:

  1. prosperity (boom): high output, employment and prices;
  2. recession: a turning down, with falling confidence;
  3. depression: low output and high unemployment;
  4. recovery: revival of demand and investment.

The cycles are caused by the interaction of economic forces (investment, credit, inventories, expectations). They are recurrent but not strictly periodic: their length and amplitude vary from cycle to cycle, so they are hard to predict exactly.

How seasonal variations differ.

Seasonal variations Cyclical variations
Period is one year or less Period is more than one year (2–10 years)
Strictly periodic, regular and predictable Irregular in period and amplitude
Caused by climate, festivals and customs Caused by economic forces (business cycle)
Easy to measure (seasonal indices) Difficult to measure and forecast
Can be seen only in monthly, quarterly or weekly data Seen in annual data too
Effect is short-lived Effect lasts for years

Link relative method (Pearson’s method) for seasonal variation.

  1. Link relatives. For each season (month or quarter), compute LR=value of current seasonvalue of previous season×100.LR=\frac{\text{value of current season}}{\text{value of previous season}}\times100 .
  2. Average link relatives. Average the link relatives for each season over the years, using the mean or the median (the median avoids extreme values).
  3. Chain relatives. Take the first season as 100. The chain relative of each season is CRj=LR¯j×CRj−1100.CR_j=\frac{\overline{LR}_j\times CR_{j-1}}{100}.
  4. Correct for trend. Compute a new chain relative for the first season from the last one. It differs from 100 because of the trend. Spread the difference dd evenly: subtract d/k,2d/k,…d/k,\,2d/k,\dots (for kk seasons) from the 2nd, 3rd, … chain relatives.
  5. Adjust. Express the corrected chain relatives as percentages of their mean. These are the seasonal indices; they total 400 (quarterly) or 1200 (monthly).

The method uses all the data and allows for the trend, but it is more laborious than simple averages, and it assumes the trend is linear (an equal correction for each season). A worked example appears in Q7 on this page.

✓ Answer checked step by step Answer checked step by step: the comparison of cyclical and seasonal variations, and the link-relative steps (verified on the numerical example in Q7 of this page).

↑ Back to the question list

What are the objectives of analyzing seasonal movement in a time series? How does it differ from the cyclical movement? Describe the method of simple averages to deseasonalize a time series.

2015 · Paper II · Q5b · 10 marks

Solution

Objectives of analysing seasonal movement.

  1. To understand the seasonal pattern itself: how much higher or lower each month or quarter typically is.
  2. To plan short-term operations: production schedules, inventories, purchases, staffing, cash needs and advertising timed to the seasonal demand.
  3. To deseasonalise the data, i.e. remove the seasonal effect, so that the trend, cycles and irregular changes can be seen. For example, we can tell whether a rise in December sales is more than the usual festive rise.
  4. To forecast monthly or quarterly values, by combining the trend estimate with the seasonal index.

How it differs from cyclical movement. Seasonal movement is regular and periodic, with a period of one year or less, and is caused by climate and customs. Cyclical movement has a period of more than one year, is irregular in length and amplitude, and arises from business conditions (boom, recession, depression, recovery). Seasonal patterns are easy to predict; cycles are not.

Method of simple averages.

  1. Arrange the data by years and months (or quarters).
  2. Find the average (or total) for each month over all the years.
  3. Find the grand average of these monthly averages.
  4. Seasonal index of a month =monthly averagegrand average×100=\dfrac{\text{monthly average}}{\text{grand average}}\times100. The indices sum to 1200 for months or 400 for quarters.
  5. Deseasonalise: under the multiplicative model, deseasonalised value\text{deseasonalised value} =original valueseasonal index×100.=\frac{\text{original value}}{\text{seasonal index}}\times100 . Under the additive model, use seasonal deviations (monthly average minus grand average) and subtract them instead.

Merit: the method is simple. Limitation: it assumes there is no trend. If a trend is present, later months are biased up (in a rising series), so the trend should first be removed (as in the ratio-to-trend method), or the averages corrected for it. A worked example appears in Q20 on this page.

✓ Answer checked step by step Answer checked step by step: objectives, the seasonal–cyclical contrast and the simple-average steps (verified on the numerical example in Q20 of this page).

↑ Back to the question list

India’s imports (in ’000 crores) for 1980–81 to 1986–87 are given below:

Year 1980–81 1981–82 1982–83 1983–84 1984–85 1985–86 1986–87
Imports 125.5 136.1 142.9 158.3 171.3 197.7 200.8

Fit a linear trend by the method of least squares, and plot the observed values and trend values in the same graph paper.

2015 · Paper II · Q6c · 15 marks

Solution

Take the origin at 1983–84 (the middle year) and xx in years, so ∑x=0\sum x=0.

Year xx yy xyxy x2x^2 Trend ycy_c
1980–81 −3 125.5 −376.5 9 121.35
1981–82 −2 136.1 −272.2 4 134.84
1982–83 −1 142.9 −142.9 1 148.32
1983–84 0 158.3 0 0 161.80
1984–85 1 171.3 171.3 1 175.28
1985–86 2 197.7 395.4 4 188.76
1986–87 3 200.8 602.4 9 202.25
Total 0 1132.6 377.5 28

Normal equations for y=a+bxy=a+bx: ∑y=na+b∑x,∑xy\sum y=na{}+b\sum x,\qquad \sum xy =a∑x+b∑x2.=a\sum x{}+b\sum x^2 . With ∑x=0\sum x=0: a=∑yn=1132.67=161.8,ba=\frac{\sum y}{n}=\frac{1132.6}{7}=161.8,\qquad b =∑xy∑x2=377.528=13.482.=\frac{\sum xy}{\sum x^2}=\frac{377.5}{28}=13.482 .

Trend equation: y=161.8+13.482x\boxed{y=161.8+13.482\,x} with the origin at 1983–84, xx in years and yy in ₹ ’000 crore. Imports rise on average by about ₹13,482 crore a year.

0123456120140160180200Year (0 = 1980–81, …, 6 = 1986–87)Imports (₹ ’000 crore)ObservedTrend
India’s imports and the fitted linear trend y = 161.8 + 13.482x (origin 1983–84, x in years). The points lie close to the line, with the largest gap in 1985–86.

✓ Checked by computer We checked in Python: with x = −3, …, 3, Σy = 1132.6, Σxy = 377.5, Σx² = 28, so a = 161.8 and b = 13.4821; the trend values are 121.35, 134.84, 148.32, 161.80, 175.28, 188.76, 202.25.

↑ Back to the question list

Let ϵt,ϵt+1,… and ξ be independent variables with zero mean and unit variance. Considering Ut=aξ+ϵt,−∞<t<∞, show that the process is stationary with correlogram ρ1=ρ2=⋯=a21+a2.

2014 · Paper II · Q5a · 10 marks

Solution

We have Ut=aξ+ϵtU_t=a\xi+\epsilon_t, where ξ\xi and all ϵt\epsilon_t are independent, each with mean 0 and variance 1.

Mean. E(Ut)=aE(ξ)+E(ϵt)=0E(U_t)=aE(\xi)+E(\epsilon_t)=0 for every tt.

Variance. By independence, Var(Ut)=a2Var(ξ)\operatorname{Var}(U_t)=a^2\operatorname{Var}(\xi) +Var(ϵt)=a2+1,{}+\operatorname{Var}(\epsilon_t)=a^2{}+1, the same for every tt.

Covariance at lag k≠0k\ne0. Cov(Ut,Ut+k)\operatorname{Cov}(U_t,U_{t+k}) =E[(aξ+ϵt)(aξ+ϵt+k)].=E\big[(a\xi+\epsilon_t)(a\xi+\epsilon_{t+k})\big]. Expanding, the three cross terms aE(ξϵt+k)aE(\xi\epsilon_{t+k}), aE(ϵtξ)aE(\epsilon_t\xi) and E(ϵtϵt+k)E(\epsilon_t\epsilon_{t+k}) are zero, because ξ\xi, ϵt\epsilon_t and ϵt+k\epsilon_{t+k} are independent with mean 0. So Cov(Ut,Ut+k)=a2E(ξ2)=a2.\operatorname{Cov}(U_t,U_{t+k})=a^2E(\xi^2)=a^2 .

The mean, the variance and the covariance at every lag do not depend on tt, so {Ut}\{U_t\} is (weakly) stationary. (Since every finite set (Ut1,…,Utn)(U_{t_1},\dots,U_{t_n}) has the same joint distribution after a shift in time, it is in fact strictly stationary.)

Correlogram. ρk=Cov(Ut,Ut+k)Var(Ut)=a21+a2,\rho_k=\frac{\operatorname{Cov}(U_t,U_{t+k})}{\operatorname{Var}(U_t)}=\frac{a^2}{1+a^2}, k=1,2,…k=1,2,\dots So ρ1=ρ2=…=a21+a2.\boxed{\rho_1=\rho_2=\dots=\frac{a^2}{1+a^2}.}

Remark. The correlogram does not die out: the common component aξa\xi links all the terms equally, however far apart. Such a process is stationary but not ergodic for the mean: the time average U‾n→aξ\bar U_n\to a\xi, not 0.

✓ Proof checked step by step Proof checked step by step, and by simulation in Python (a = 1.5): the sample correlations 0.694–0.697 match a²/(1 + a²) = 0.6923 at every lag.

↑ Back to the question list

Describe a method of fitting trend by logistic curve.

2014 · Paper II · Q5d · 10 marks

Solution

Logistic curve. Many growth series (population, sales of a new product) grow slowly at first, then rapidly, and then slowly again as they approach a saturation level. This S-shaped growth is described by the logistic (Pearl–Reed) curve yt=k1+ea+bt,b<0,y_t=\frac{k}{1+e^{a+bt}},\qquad b<0, where kk is the upper asymptote (saturation level). The curve has its point of inflection at y=k/2y=k/2, where t=−a/bt=-a/b.

Method of three selected points. Taking reciprocals, 1yt=1k(1+ea+bt).\frac1{y_t}=\frac1k\big(1+e^{a+bt}\big). Choose three equidistant time points t0t_0, t1=t0+nt_1=t_0+n, t2=t0+2nt_2=t_0+2n, with observed (or smoothed) values y0,y1,y2y_0,y_1,y_2. Then 1y1−1y0=ea+bt0k(ebn−1),1y2\frac1{y_1}{}-\frac1{y_0}=\frac{e^{a+bt_0}}{k}\big(e^{bn}-1\big),\qquad \frac1{y_2} −1y1=ea+bt0kebn(ebn−1).{}-\frac1{y_1}=\frac{e^{a+bt_0}}{k}\,e^{bn}\big(e^{bn}-1\big). Write d1=1y0−1y1d_1=\frac1{y_0}-\frac1{y_1} and d2=1y1−1y2d_2=\frac1{y_1}-\frac1{y_2}. Dividing the two equations, ebn=d2d1⇒b=1nloged2d1.e^{bn}=\frac{d_2}{d_1}\quad\Longrightarrow\quad b=\frac1n\log_e\frac{d_2}{d_1} . Eliminating the other constants gives the saturation level k=2y0y1y2−y12(y0+y2)y0y2−y12,k=\frac{2y_0y_1y_2-y_1^2(y_0+y_2)}{y_0y_2-y_1^2}, and then aa from a=loge(k−y0y0)−bt0.a=\log_e\!\left(\frac{k-y_0}{y_0}\right)-bt_0 . (For a logistic curve we need y12>y0y2y_1^2>y_0y_2 and 2/y1<1/y0+1/y22/y_1<1/y_0+1/y_2.)

Other methods.

  • Method of partial sums (Hotelling, Rhodes): divide the series into three equal parts. Use the sums of the reciprocals in each part in the same way as the three points above. This uses all the data rather than three values.
  • Least squares on a transform: if kk is known or guessed, loge(kyt−1)=a+bt\log_e\big(\frac{k}{y_t}-1\big)=a+bt is linear in tt, and aa and bb follow by ordinary least squares. kk can be chosen to minimise the residual sum of squares.

Steps in practice. Smooth the data (for example by a moving average), choose the three points (or three parts), compute kk, bb and aa, then compute the trend values yt=k/(1+ea+bt)y_t=k/(1+e^{a+bt}), and compare them with the data.

✓ Answer checked step by step Answer checked step by step: the three-point (selected points) method for the logistic curve was re-derived, including the formulas for k, a and b.

↑ Back to the question list

Elucidate ARIMA (p,d,q) representation of a time series. For an autoregressive scheme Xt+1=aXt+b+ϵt+1 show that the correlogram is given by γk=ak, where k is the order of the serial correlation. Also, show that the correlogram is decreasing exponentially for 0<a<1.

2014 · Paper II · Q7c · 15 marks

Solution

ARIMA(p,d,q)(p,d,q) representation. A series XtX_t follows an autoregressive integrated moving average model of order (p,d,q)(p,d,q) if its dd-th difference Wt=(1−B)dXtW_t=(1-B)^dX_t is a stationary, invertible ARMA(p,q)(p,q) process: ϕ(B)(1−B)dXt=θ(B)ϵt,\phi(B)(1-B)^dX_t=\theta(B)\epsilon_t, where ϕ(B)=1−ϕ1B−…−ϕpBp,\phi(B)=1{}-\phi_1B{}-\dots{}-\phi_pB^p, θ(B)=1+θ1B+…+θqBq,\theta(B)=1{}+\theta_1B{}+\dots{}+\theta_qB^q, BXt=Xt−1BX_t=X_{t-1}, and ϵt\epsilon_t is white noise. The roots of ϕ(z)=0\phi(z)=0 and θ(z)=0\theta(z)=0 lie outside the unit circle.

  • pp is the number of autoregressive terms (dependence on past values).
  • dd is the number of differences needed for stationarity (the “integrated” part).
  • qq is the number of moving-average terms (dependence on past shocks).

Special cases: ARIMA(1,0,0)(1,0,0) = AR(1); (0,1,0)(0,1,0) = random walk; (0,1,1)(0,1,1) = exponential smoothing.

Correlogram of Xt+1=aXt+b+ϵt+1X_{t+1}=aX_t+b+\epsilon_{t+1}. Let |a|<1|a|<1 and let ϵt\epsilon_t be white noise with variance σ2\sigma^2. The stationary mean is μ=b/(1−a)\mu=b/(1-a), since μ=aμ+b\mu=a\mu+b. Writing Yt=Xt−μY_t=X_t-\mu, Yt+1=aYt+ϵt+1.Y_{t+1}=aY_t+\epsilon_{t+1}. Multiply by Yt+1−kY_{t+1-k} (k≥1k\ge1) and take expectations. ϵt+1\epsilon_{t+1} is uncorrelated with past values, so γk=aγk−1⇒γk=akγ0.\gamma_k=a\gamma_{k-1}\quad\Longrightarrow\quad \gamma_k=a^k\gamma_0 . Dividing by γ0\gamma_0, the serial correlation of order kk is ρk=ak,k=0,1,2,…\boxed{\rho_k=a^k,\qquad k=0,1,2,\dots} (The question writes γk\gamma_k for this serial correlation coefficient.) The constant bb affects only the mean, not the correlogram.

Exponential decrease for 0<a<10<a<1. ρk=ak=e−klog(1/a)=e−λk\rho_k=a^k=e^{-k\log(1/a)}=e^{-\lambda k}, with λ=log(1/a)>0\lambda=\log(1/a)>0. So the correlogram is a decreasing exponential curve: ρk+1/ρk=a<1,\rho_{k+1}/\rho_k=a<1, ρk>0\rho_k>0 for all kk, and ρk→0\rho_k\to0 as k→∞k\to\infty. The closer aa is to 1, the slower the decay. (For −1<a<0-1<a<0 the correlogram alternates in sign, with exponentially decreasing size.)

024681000.20.40.60.81Lag kρₖ = aᵏa = 0.8a = 0.5
Correlogram ρₖ = aᵏ of the AR(1) scheme for a = 0.8 and a = 0.5: it decreases exponentially to zero, faster for smaller a.

✓ Derivation checked step by step Derivation checked step by step: the AR(1) correlogram γ_k = a^k follows from the Yule–Walker recursion; the plot shows the exponential decay for a = 0.8 and 0.5.

↑ Back to the question list

Define Time Series. Write its components and explain them.

2013 · Paper II · Q5a · 10 marks

Solution

Time series. A time series is a series of observations on a variable recorded chronologically, usually at equal intervals of time, such as hourly temperature, monthly sales or annual population. Its analysis aims to understand the past behaviour and to forecast the future.

Components.

  1. Secular trend. The long-run general movement (upward, downward or constant) over a long period, due to steady forces such as population growth, technology and improved methods. Example: the upward trend in food-grain production in India. Methods of measurement: freehand, semi-averages, moving averages and least squares.
  2. Seasonal variation. Regular, repetitive movements within a year, due to climate and customs. Example: high demand for cold drinks in summer, and for gold at Akshaya Tritiya and in the wedding season. They are measured by seasonal indices.
  3. Cyclical variation. Long swings (more than a year) around the trend, as in business cycles: prosperity, recession, depression and recovery. They are irregular in length (usually 3–10 years).
  4. Irregular (random) variation. Unpredictable, short-term movements due to accidental events (floods, strikes, wars, pandemics). They have no regular pattern.

Models. In the additive model, Y=T+S+C+IY=T+S+C+I. In the multiplicative model, Y=T×S×C×IY=T\times S\times C\times I; it is used when the fluctuations grow with the level of the series.

✓ Answer checked step by step Answer checked step by step: the definition and the four components, with causes and examples.

↑ Back to the question list

Briefly explain the Schematic representation of the BOX-JENKINS methodology for time series modelling.

2013 · Paper II · Q7a · 20 marks

Solution

Schematic representation of the Box–Jenkins methodology. Box and Jenkins describe model building as an iterative loop.

Postulate general classof ARIMA / seasonal ARIMA models1. Identificationtransform, difference (d)ACF / PACF → tentative p, q2. Estimationestimate φ, θ, σ² (ML / LS)3. Diagnostic checkingresidual ACF, Ljung–BoxIs the model adequate?No: revise modelYes4. Forecastingforecasts X̂ₙ(h)with prediction intervals
The Box–Jenkins cycle: identification, estimation and diagnostic checking are repeated until the model is adequate; only then is it used for forecasting.

The stages.

  1. Identification. Use the data (time plot, ACF, PACF) and knowledge of the subject to choose a tentative model. Stabilise the variance (log or Box–Cox). Choose dd (and the seasonal DD) by differencing until the series is stationary. Read pp and qq from the cut-off and tail-off patterns of the PACF and ACF. AIC or BIC helps in borderline cases.
  2. Estimation. Estimate the parameters efficiently (maximum likelihood, or non-linear least squares for the MA terms). Check that the estimates are significant and that the model is stationary and invertible.
  3. Diagnostic checking. Check whether the fitted model is adequate:
    • the residuals should behave like white noise (residual ACF within ±2/n\pm2/\sqrt n; Ljung–Box QQ not significant);
    • try over-fitting with an extra parameter.
    If the model is inadequate, the residual pattern suggests how to modify it, and the cycle returns to identification.
  4. Forecasting. Use the accepted model to compute minimum mean-square-error forecasts X̂n(h)\hat X_n(h) and their prediction intervals. Update the forecasts as new data arrive.

The key ideas are iteration (the model is refined until it is adequate) and parsimony (the smallest adequate model is preferred).

✓ Answer checked step by step Answer checked step by step against the standard Box–Jenkins flow (postulate a general class, identify, estimate, check, forecast).

↑ Back to the question list

For the AR(1) process defined as Xt=0.6Xt−1+εt, where t=1,2,3,…, X0=0 and ε1,ε2,ε3,… are independent N(0,σ2) variables, what is the expression for the spectrum (i.e., spectral density)?

2012 · Paper II · Q5a · 12 marks

Solution

Note on the question. With X0=0X_0=0 fixed, the process is not exactly stationary at the start: Var(Xt)=σ2(1−0.36t)/0.64\operatorname{Var}(X_t)=\sigma^2(1-0.36^t)/0.64 depends on tt. It becomes stationary as tt grows, since 0.36t→00.36^t\to0. The spectrum is defined for the stationary AR(1) process Xt=0.6Xt−1+εtX_t=0.6X_{t-1}+\varepsilon_t, which is what we find.

Spectral density of AR(1). For Xt=ϕXt−1+εtX_t=\phi X_{t-1}+\varepsilon_t with |ϕ|<1|\phi|<1, we have γk=ϕ|k|σ2/(1−ϕ2)\gamma_k=\phi^{|k|}\sigma^2/(1-\phi^2). The spectral density is f(ω)=12π∑k=−∞∞γke−ikω,−πf(\omega)=\frac1{2\pi}\sum_{k=-\infty}^{\infty}\gamma_ke^{-ik\omega},\qquad {}-\pi ≤ω≤π.\le\omega\le\pi . Equivalently, since (1−ϕB)Xt=εt(1-\phi B)X_t=\varepsilon_t and white noise has spectrum σ2/2π\sigma^2/2\pi, f(ω)=σ22π⋅1|1−ϕe−iω|2f(\omega)=\frac{\sigma^2}{2\pi}\cdot\frac1{|1-\phi e^{-i\omega}|^2} =σ22π(1−2ϕcosω+ϕ2).=\frac{\sigma^2}{2\pi\,(1-2\phi\cos\omega+\phi^2)} .

For ϕ=0.6\phi=0.6: f(ω)=σ22π(1.36−1.2cosω)\boxed{f(\omega)=\frac{\sigma^2}{2\pi\,(1.36-1.2\cos\omega)}} for −π≤ω≤π-\pi\le\omega\le\pi.

Check. ∫−ππf(ω)dω=σ2/(1−0.36)\int_{-\pi}^{\pi}f(\omega)\,d\omega=\sigma^2/(1-0.36) =σ2/0.64=Var(Xt)=\sigma^2/0.64=\operatorname{Var}(X_t).

Shape. ff is largest at ω=0\omega=0, where f(0)=σ22π(0.16)=6.25σ22πf(0)=\dfrac{\sigma^2}{2\pi(0.16)}=\dfrac{6.25\sigma^2}{2\pi}. It is smallest at ω=π\omega=\pi, where f(π)=σ22π(2.56)f(\pi)=\dfrac{\sigma^2}{2\pi(2.56)}. So low frequencies (slow movements) dominate, as expected for positive autocorrelation.

(Some books define the spectrum on 0≤ω≤π0\le\omega\le\pi with an extra factor 2, i.e. f(ω)=σ2/[π(1.36−1.2cosω)]f(\omega)=\sigma^2/[\pi(1.36-1.2\cos\omega)]; the shape is the same.)

✓ Checked by computer We checked in Python: for φ = 0.6 the spectral density σ²/[2π(1.36 − 1.2 cos ω)] integrates over (−π, π) to σ²/0.64 = Var(X_t), as it should.

↑ Back to the question list

Describe the exponential growth curve. Explain how one checks whether a given time series has exponential growth pattern and how one can fit an exponential trend to a time series.

2012 · Paper II · Q5d · 12 marks

Solution

Exponential growth curve. A series grows exponentially when it increases by a constant percentage (rate) each period: yt=abt,or equivalentlyyty_t=ab^t,\qquad \text{or equivalently}\qquad y_t =aert(b=er).=ae^{rt}\ \ (b=e^r). Here aa is the value at t=0t=0, and b=1+gb=1+g, where gg is the growth rate per period. If b>1b>1 the series grows; if b<1b<1 it decays. Examples: compound interest, population in an early phase, and bacteria growth.

How to check for exponential growth.

  1. Ratios. yt+1/yt=by_{t+1}/y_t=b, so the ratios of successive values (or the percentage changes) should be roughly constant.
  2. Logarithms. logyt=loga+tlogb\log y_t=\log a+t\log b is linear in tt. So:
    • plot logyt\log y_t against tt (or yty_t on semi-log paper); the points should lie close to a straight line;
    • equivalently, the first differences of logyt\log y_t should be roughly constant.
  3. A plot of yty_t itself curves upwards, with the increments growing in proportion to the level.

Fitting the exponential trend. Let Y=logyY=\log y, A=logaA=\log a, B=logbB=\log b, so Y=A+BtY=A+Bt. By least squares on YY: ∑Y=nA+B∑t,∑tY\sum Y=nA{}+B\sum t,\qquad \sum tY =A∑t+B∑t2.=A\sum t{}+B\sum t^2 . With the origin at the middle of the period (∑t=0\sum t=0), A=∑logyn,B=∑tlogy∑t2,A=\frac{\sum\log y}{n},\qquad B=\frac{\sum t\log y}{\sum t^2}, a=antilogA,b=antilogB.a=\operatorname{antilog}A,\qquad b=\operatorname{antilog}B . The trend values are ŷt=abt\hat y_t=ab^t, and the growth rate is (b−1)×100%(b-1)\times100\% per period.

Remarks. Least squares on logy\log y minimises the squared relative errors. Exact least squares on yy itself needs non-linear methods. An exponential trend cannot continue indefinitely; for long periods a modified exponential, Gompertz or logistic curve, which levels off, is often more realistic.

✓ Answer checked step by step Answer checked step by step: the exponential curve, the log-linear check and the least-squares fit on log y.

↑ Back to the question list

Derive the normal equations for fitting a linear trend to time series data. Suppose that a time series Xt has been observed at time points t=±1,±3,±5,…,±19,±21 and for this series ∑tXt=528.2 and ∑ttXt=−1956.4. Determine the linear trend equation that will fit the data.

2012 · Paper II · Q6b · 30 marks

Solution

Normal equations for a linear trend. Fit Xt=a+btX_t=a+bt by least squares: minimise S=∑t(Xt−a−bt)2.S=\sum_t(X_t-a-bt)^2 . Setting the partial derivatives to zero: ∂S∂a=−2∑(Xt−a−bt)=0\frac{\partial S}{\partial a}=-2\sum(X_t-a-bt)=0 ⇒∑Xt=na+b∑t,\Longrightarrow\ \sum X_t=na{}+b\sum t, ∂S∂b=−2∑t(Xt−a−bt)=0\frac{\partial S}{\partial b}=-2\sum t(X_t-a-bt)=0 ⇒∑tXt=a∑t+b∑t2.\Longrightarrow\ \sum tX_t=a\sum t{}+b\sum t^2 . These are the normal equations. If time is measured from the middle, ∑t=0\sum t=0, and a=∑Xtn,b=∑tXt∑t2.a=\frac{\sum X_t}{n},\qquad b=\frac{\sum tX_t}{\sum t^2}.

The given data. The time points t=±1,±3,…,±21t=\pm1,\pm3,\dots,\pm21 are the 22 odd values from −21 to 21 (an even number of points, with the origin midway between the two middle points, and tt in half-units). So n=22n=22, ∑t=0\sum t=0 and ∑t2=2(12+32+…+212)\sum t^2=2\left(1^2+3^2+\dots+21^2\right) =2⋅11(2⋅11−1)(2⋅11+1)3=2\cdot\frac{11(2\cdot11-1)(2\cdot11+1)}{3} =2⋅11⋅21⋅233=2(1771)=3542.=2\cdot\frac{11\cdot21\cdot23}{3}=2(1771)=3542 .

Estimates. a=528.222=24.009,b=−1956.43542a=\frac{528.2}{22}=24.009,\qquad b=\frac{-1956.4}{3542} =−0.5523.=-0.5523 .

Trend equation: Xt=24.009−0.5523t\boxed{X_t=24.009-0.5523\,t} with tt measured in half-periods from the centre of the series. The series has a declining trend. Per full time unit (two half-units) the trend falls by 2(0.5523)=1.1052(0.5523)=1.105.

✓ Checked by computer We checked in Python: the 22 time points ±1, ±3, …, ±21 give Σt = 0 and Σt² = 3542, so a = 528.2/22 = 24.009 and b = −1956.4/3542 = −0.5523.

↑ Back to the question list

Explain the concept for moving average model and autoregressive moving average model [ARMA (p,q)].

2011 · Paper II · Q5d · 12 marks

Solution

Moving average model MA(qq). The series is a finite weighted sum of the current and past random shocks: Xt=μ+εt+θ1εt−1+…+θqεt−qX_t=\mu{}+\varepsilon_t{}+\theta_1\varepsilon_{t-1}{}+\dots{}+\theta_q\varepsilon_{t-q} =μ+θ(B)εt,=\mu{}+\theta(B)\varepsilon_t, where εt\varepsilon_t is white noise with variance σ2\sigma^2 and θ(B)=1+θ1B+…+θqBq\theta(B)=1+\theta_1B+\dots+\theta_qB^q. Its properties:

  • E(Xt)=μE(X_t)=\mu and Var(Xt)=σ2(1+θ12+…+θq2)\operatorname{Var}(X_t)=\sigma^2(1+\theta_1^2+\dots+\theta_q^2).
  • γk=σ2∑j=0q−kθjθj+k\gamma_k=\sigma^2\sum_{j=0}^{q-k}\theta_j\theta_{j+k} (with θ0=1\theta_0=1) for k≤qk\le q, and γk=0\gamma_k=0 for k>qk>q. So the ACF cuts off after lag qq.
  • It is always stationary (a finite sum). It is invertible, i.e. expressible as an AR(∞\infty) in past values, if the roots of θ(z)=0\theta(z)=0 lie outside the unit circle.
  • Example: MA(1), Xt=εt+θεt−1X_t=\varepsilon_t+\theta\varepsilon_{t-1}, has ρ1=θ/(1+θ2)\rho_1=\theta/(1+\theta^2) and ρk=0\rho_k=0 for k≥2k\ge2.

Autoregressive moving average model ARMA(p,qp,q). This combines dependence on past values (AR part) with dependence on past shocks (MA part): Xt=ϕ1Xt−1+…+ϕpXt−pX_t=\phi_1X_{t-1}+\dots+\phi_pX_{t-p} +εt+θ1εt−1+…+θqεt−q,\qquad{}+\varepsilon_t+\theta_1\varepsilon_{t-1}+\dots+\theta_q\varepsilon_{t-q}, that is, ϕ(B)Xt=θ(B)εt\phi(B)X_t=\theta(B)\varepsilon_t (plus a constant if the mean is non-zero). Its properties:

  • Stationary if the roots of ϕ(z)=0\phi(z)=0 lie outside the unit circle. Then Xt=ψ(B)εtX_t=\psi(B)\varepsilon_t, with ψ(B)=θ(B)/ϕ(B)\psi(B)=\theta(B)/\phi(B), an MA(∞\infty).
  • Invertible if the roots of θ(z)=0\theta(z)=0 lie outside the unit circle. Then π(B)Xt=εt\pi(B)X_t=\varepsilon_t.
  • For k>qk>q the ACF satisfies the AR recursion ρk=ϕ1ρk−1+…+ϕpρk−p\rho_k=\phi_1\rho_{k-1}+\dots+\phi_p\rho_{k-p}, so both the ACF and the PACF tail off.
  • Example: ARMA(1,1), Xt=ϕXt−1+εt+θεt−1X_t=\phi X_{t-1}+\varepsilon_t+\theta\varepsilon_{t-1}, has ρ1=(1+ϕθ)(ϕ+θ)1+2ϕθ+θ2,ρk\rho_1=\frac{(1+\phi\theta)(\phi+\theta)}{1+2\phi\theta+\theta^2},\qquad \rho_k =ϕρk−1(k≥2).=\phi\rho_{k-1}\ (k\ge2).

Why ARMA? A pure AR or pure MA model may need many parameters to describe a series that an ARMA model with p+qp+q small describes well (parsimony). ARMA models are the building blocks of ARIMA (for non-stationary series) and seasonal ARIMA models, and they underlie the Box–Jenkins method.

✓ Answer checked step by step Answer checked step by step: the MA(q) and ARMA(p, q) definitions, their moments, and the stationarity and invertibility conditions.

↑ Back to the question list

Cover of the UPSC Mains Topic-wise and Year-wise PYQs book (2013–2026)

From the Optional Province team

Strengthen your GS papers

Our UPSC Mains Topic-wise & Year-wise PYQ Book (2013–2026) maps every GS question to the syllabus, so you know what UPSC asks and how often. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Define Time series. Explain briefly different components of Time series.

2010 · Paper II · Q5b · 12 marks

Solution

Time series. A time series is an arrangement of statistical data in chronological order, i.e. the values of a variable at successive times t1,t2,…t_1,t_2,\dots. Examples: monthly production of steel, or yearly exports.

Components of a time series.

  1. Secular trend (TT). The smooth, long-term upward or downward movement, due to forces that act gradually, such as population, technology and capital. Example: the rising trend in the number of telephone subscribers.
  2. Seasonal variation (SS). Periodic movements with a period of one year or less, recurring regularly, due to weather and social customs. Example: the sale of woollens rises every winter.
  3. Cyclical variation (CC). Oscillations with a period of more than a year (the business cycle of boom, recession, depression and recovery). They are recurrent but not of fixed length.
  4. Irregular variation (II). Erratic, unforeseeable movements due to chance events such as floods, strikes and wars. They are short-lived and have no pattern.

The observed value is regarded as a combination of these: Y=T+S+C+IY=T+S+C+I (additive model) or Y=T⋅S⋅C⋅IY=T\cdot S\cdot C\cdot I (multiplicative model). Time-series analysis isolates and measures each component.

✓ Answer checked step by step Answer checked step by step: the definition and the four components.

↑ Back to the question list

Explain the concept of Auto covariance, Auto correlation and their functions. Also explain how the functions are estimated.

2010 · Paper II · Q5d · 12 marks

Solution

Autocovariance. For a stationary series {Xt}\{X_t\} with mean μ\mu, the autocovariance at lag kk is the covariance between values kk periods apart: γk=Cov(Xt,Xt+k)\gamma_k=\operatorname{Cov}(X_t,X_{t+k}) =E[(Xt−μ)(Xt+k−μ)].=E[(X_t-\mu)(X_{t+k}-\mu)] . It depends only on kk. In particular γ0=Var(Xt)\gamma_0=\operatorname{Var}(X_t).

Autocorrelation. The autocovariance scaled by the variance: ρk=γkγ0,\rho_k=\frac{\gamma_k}{\gamma_0}, a unit-free measure of the linear dependence between XtX_t and Xt+kX_{t+k}.

The functions. Regarded as functions of the lag kk:

  • γk\gamma_k is the autocovariance function (ACVF);
  • ρk\rho_k is the autocorrelation function (ACF); its graph is the correlogram.

Properties.

  • γ0>0\gamma_0>0, ρ0=1\rho_0=1.
  • Symmetry: γ−k=γk\gamma_{-k}=\gamma_k, ρ−k=ρk\rho_{-k}=\rho_k.
  • |ρk|≤1|\rho_k|\le1.
  • They are non-negative definite: ∑i∑jaiajγ|i−j|≥0\sum_i\sum_ja_ia_j\gamma_{|i-j|}\ge0 for all real aia_i.

The ACF characterises the dependence structure. For white noise ρk=0\rho_k=0 for k≠0k\ne0; for MA(qq) it cuts off after lag qq; for AR(pp) it decays exponentially or as a damped sine wave. The spectrum f(ω)=12π∑kγke−ikωf(\omega)=\frac1{2\pi}\sum_k\gamma_ke^{-ik\omega} is its Fourier transform.

Estimation from a series x1,…,xnx_1,\dots,x_n.

  • Sample mean x‾=1n∑xt\bar x=\frac1n\sum x_t.
  • Sample autocovariance: ck=γ̂kc_k=\hat\gamma_k =1n∑t=1n−k(xt−x‾)(xt+k−x‾),=\frac1n\sum_{t=1}^{n-k}(x_t-\bar x)(x_{t+k}-\bar x), k=0,1,…,n−1.k=0,1,\dots,n{}-1 . The divisor nn, rather than n−kn-k, is preferred: it gives a non-negative definite estimate with smaller mean-square error.
  • Sample autocorrelation: rk=ρ̂k=ckc0r_k=\hat\rho_k=\frac{c_k}{c_0} =∑t=1n−k(xt−x‾)(xt+k−x‾)∑t=1n(xt−x‾)2.=\frac{\sum_{t=1}^{n-k}(x_t-\bar x)(x_{t+k}-\bar x)}{\sum_{t=1}^n(x_t-\bar x)^2} .
  • These are consistent but biased in small samples. Only lags up to about n/4n/4 are usually used.

Judging significance. For white noise, rk≈N(0,1/n)r_k\approx N(0,1/n), so values outside ±1.96/n\pm1.96/\sqrt n indicate significant autocorrelation. For an MA(qq) process, Bartlett’s formula gives Var(rk)≈1n(1+2∑j=1qρj2)for k>q.\operatorname{Var}(r_k)\approx\frac1n\Big(1+2\sum_{j=1}^q\rho_j^2\Big)\quad\text{for }k>q . Joint tests use the Box–Pierce statistic Q=n∑k=1Krk2∼χK2Q=n\sum_{k=1}^Kr_k^2\sim\chi^2_K, or the Ljung–Box version.

✓ Answer checked step by step Answer checked step by step: the definitions, the properties of γ_k and ρ_k, and the sample estimators with Bartlett’s standard error.

↑ Back to the question list

What are the four important stages in ARIMA modelling of a times series data? Explain briefly.

2010 · Paper II · Q6b · 20 marks

Solution

The four stages of ARIMA (Box–Jenkins) modelling are:

1. Identification. Decide on a tentative ARIMA(p,d,q)(p,d,q) model.

  • Plot the data; transform it (log or Box–Cox) if the variance is not constant.
  • Difference it dd times to make it stationary (a slowly decaying ACF or a trend shows that differencing is needed; unit-root tests help).
  • From the sample ACF and PACF of the stationary series, choose pp (where the PACF cuts off) and qq (where the ACF cuts off). If both tail off, a mixed ARMA is indicated. AIC or BIC can compare candidates.

2. Estimation. Estimate the parameters ϕ1,…,ϕp\phi_1,\dots,\phi_p, θ1,…,θq\theta_1,\dots,\theta_q, the constant and σ2\sigma^2, by maximum likelihood or non-linear least squares. Check that the coefficients are significant and that the fitted model is stationary and invertible.

3. Diagnostic checking. Test whether the model is adequate.

  • The residuals should be white noise: their ACF should lie within ±2/n\pm2/\sqrt n, and the Ljung–Box statistic Q=n(n+2)∑k=1Krk2n−kQ=n(n+2)\sum_{k=1}^K\frac{r_k^2}{n-k} should be non-significant against χK−p−q2\chi^2_{K-p-q}.
  • Plot the residuals and check for normality.
  • Over-fit (add a parameter) to see whether it is needed.

If the model is inadequate, return to stage 1.

4. Forecasting. Use the final model to compute forecasts X̂n(h)\hat X_n(h) recursively, putting future shocks equal to 0. Give prediction intervals, X̂n(h)±1.96σ̂∑j<hψj2\hat X_n(h)\pm1.96\,\hat\sigma\sqrt{\sum_{j<h}\psi_j^2}, and update the forecasts as new observations arrive.

Stages 1–3 form a loop that is repeated until a parsimonious, adequate model is found.

✓ Answer checked step by step Answer checked step by step against the standard four Box–Jenkins stages.

↑ Back to the question list

What do you mean by ‘seasonal index’ in the analysis of a time series? Discuss the different steps involved in the computation of the seasonal indices using link relative method.

2009 · Paper II · Q5a · 12 marks

Solution

Seasonal index. A seasonal index measures the typical effect of a particular season (month or quarter) on the series. It is expressed as a percentage of the average level for the year, with the trend and other components removed.

  • An index of 120 for December means that December values are typically 20% above the average month.
  • An index of 85 means 15% below it.

Monthly indices total 1200 and quarterly indices total 400, so that they average 100. They are used to deseasonalise data (divide the actual value by the index and multiply by 100) and to plan seasonal production and sales.

Computing seasonal indices by the link relative method.

  1. Compute the link relatives. For each month (or quarter), LR=this season’s valueprevious season’s value×100.LR=\frac{\text{this season's value}}{\text{previous season's value}}\times100 . The first season of the first year has no link relative.
  2. Average the link relatives of each season over all the years, using the arithmetic mean or the median.
  3. Convert to chain relatives. Put the chain relative of the first season equal to 100. For each later season, CRj=LR¯j×CRj−1100.CR_j=\frac{\overline{LR}_j\times CR_{j-1}}{100}.
  4. Adjust for trend. Compute a second chain relative for the first season from the last season’s chain relative. It usually differs from 100 because of the trend. If the difference is dd, subtract d/kd/k, 2d/k2d/k, …, (k−1)d/k(k-1)d/k from the chain relatives of the 2nd, 3rd, …, kk-th seasons (k=12k=12 or 4).
  5. Express as percentages of their mean. Divide each corrected chain relative by the average of the corrected chain relatives and multiply by 100. These are the seasonal indices.

A worked example is Q7 on this page (quarterly rice prices, giving indices 124.65, 93.74, 82.65, 98.97).

✓ Answer checked step by step Answer checked step by step: the meaning of a seasonal index and the link-relative steps (verified numerically in Q7 of this page).

↑ Back to the question list

What is a time series? What do you mean by the analysis of a time series? Describe briefly different components of a time series. Which component of the time series is mainly applicable in the following cases? (i) Fall of death rate due to advances in science (ii) Fire in a factory (iii) Sales of new year greeting cards.

2009 · Paper II · Q7c · 15 marks

Solution

Time series. A time series is a set of observations on a variable arranged in the order of time, for example the monthly production of a factory, or the annual population of a country.

Analysis of a time series. This means identifying, separating and measuring the components that make up the observed values. For example, we:

  • find the trend;
  • compute seasonal indices;
  • isolate the cycles;
  • assess the irregular part.

The aims are to understand past behaviour, compare different series, and forecast future values for planning.

Components.

  1. Secular trend: the long-term smooth tendency to rise or fall.
  2. Seasonal variation: regular movements with a period of a year or less.
  3. Cyclical variation: oscillations of more than a year (business cycles).
  4. Irregular variation: random, unpredictable movements due to accidental causes.

Which component applies?

Case Component Reason
(i) Fall in the death rate due to advances in science Secular trend A gradual, long-term, steady decline
(ii) Fire in a factory Irregular (random) variation An accidental, unforeseen, one-time event
(iii) Sales of New Year greeting cards Seasonal variation Rise every year at the same time (December–January)

✓ Answer checked step by step Answer checked step by step: definitions, the four components, and the classification of the three cases.

↑ Back to the question list

What are the salient features of the Box-Jenkins approach to time series forecasting?

2007 · Paper II · Q5a · 12 marks

Solution

Salient features of the Box–Jenkins approach.

  1. Stochastic modelling of the series itself. The series is treated as a realisation of a stochastic process. It is modelled by an ARIMA(p,d,q)(p,d,q) model, ϕ(B)(1−B)dXt=θ(B)εt\phi(B)(1-B)^dX_t=\theta(B)\varepsilon_t, which uses only its own past values and past shocks. No explanatory variables are needed.
  2. A general, flexible class. AR, MA, ARMA, ARIMA and seasonal ARIMA (SARIMA) models together cover a wide range of behaviour: stationary and non-stationary series, and seasonal patterns. Many traditional methods (exponential smoothing, moving averages) are special cases.
  3. Stationarity through differencing. Trend and other non-stationarity are removed by differencing (dd, and the seasonal DD) rather than by fitting deterministic curves.
  4. Iterative model building in four stages: identification (ACF and PACF), estimation (maximum likelihood), diagnostic checking (residual analysis, Ljung–Box test) and forecasting, repeated until the model is adequate.
  5. Parsimony. The aim is the simplest model with the fewest parameters that adequately represents the data.
  6. Use of the ACF and PACF as the main tools for identifying the model.
  7. Optimal forecasts with error bands. The forecasts are minimum mean-square-error forecasts, with forecast-error variances σ2∑ψj2\sigma^2\sum\psi_j^2, so prediction intervals are available. Forecasts are easily updated.
  8. Extensions to transfer-function (input–output) models and intervention analysis.

Limitations. It needs a long series (at least about 50 observations), skill in identification, and stable structure. It is best suited to short-term forecasting.

✓ Answer checked step by step Answer checked step by step against the main features of the Box–Jenkins approach.

↑ Back to the question list

What are the different methods for determining seasonal variations in a time series? Indicate the seasonal patterns to which these methods are applicable.

2007 · Paper II · Q6a · 20 marks

Solution

There are four main methods for determining seasonal variation.

1. Method of simple averages. Average each month (or quarter) over the years and express it as a percentage of the grand average. Applicable when: the series has no (or negligible) trend and the cyclical effects are small. It is simple, but biased when there is trend.

2. Ratio-to-trend method. Fit a trend (usually by least squares) to the monthly or quarterly data. Express each value as a percentage of its trend value. Average these percentages for each season (the median or a modified mean), then adjust them to total 1200 or 400. Applicable when: there is a marked trend, which can be represented by a mathematical curve, and the cyclical variations are not pronounced (they stay in the ratios). It assumes a multiplicative model.

3. Ratio-to-moving-average method. Compute a 12-month (or 4-quarter) centred moving average, which removes the seasonal and most of the irregular variation and leaves T×CT\times C. Express the original values as percentages of the moving average, which gives S×IS\times I. Average them by season and adjust. Applicable when: there is both trend and cyclical movement. This is the most widely used and most satisfactory method, and the basis of the X-11/X-13 procedures. It loses data at the two ends of the series.

4. Link relative method. Compute each season as a percentage of the preceding season (link relatives). Average them, chain them, correct for trend, and adjust. Applicable when: the trend is linear (a constant correction is made). It uses all the data, but is laborious, and the correction assumes a linear trend.

Seasonal patterns.

  • If the seasonal swings are of constant absolute size, the additive model (Y−TY-T) and seasonal deviations are appropriate.
  • If they are proportional to the level (more common), the multiplicative model and seasonal indices (ratios) are appropriate.
  • If the seasonal pattern itself is changing over time, moving seasonal indices (as in X-11) are needed.

✓ Answer checked step by step Answer checked step by step: the four standard methods, with the seasonal patterns (trend, constant or changing amplitude) each one suits.

↑ Back to the question list

What is a time series? Explain briefly the various components of a time series. Also explain the additive and multiplicative models.

2006 · Paper II · Q5a · 12 marks

Solution

Time series. A time series is a set of observations on a variable taken at successive points or periods of time: yty_t, t=1,2,…,nt=1,2,\dots,n. Examples: monthly rainfall, or annual GDP.

Components.

  1. Trend (TT): the long-run smooth movement (growth or decline).
  2. Seasonal variation (SS): regular movements repeating within a year, due to the seasons and to customs.
  3. Cyclical variation (CC): oscillations with a period of more than a year (business cycles).
  4. Irregular variation (II): random, unpredictable movements due to chance events.

Additive model. Yt=Tt+St+Ct+It.Y_t=T_t+S_t+C_t+I_t .

  • The components are assumed to be independent of one another.
  • SS, CC and II are absolute amounts (in the units of YY), positive or negative, which do not depend on the level of the trend.
  • The seasonal effects sum to zero over a year.
  • It is appropriate when the size of the seasonal and cyclical swings stays constant as the series rises or falls.

Multiplicative model. Yt=Tt×St×Ct×It.Y_t=T_t\times S_t\times C_t\times I_t .

  • TT is in the original units. SS, CC and II are relative factors (indices around 1, or percentages around 100).
  • The components are interdependent: the seasonal and cyclical effects are proportional to the trend level.
  • It is appropriate when the fluctuations grow as the series grows, which is the usual case in economic data.
  • Taking logarithms converts it into an additive model: logY=logT+logS+logC\log Y=\log T{}+\log S{}+\log C +logI{}+\log I.

Mixed forms such as Y=T×S×C+IY=T\times S\times C+I are also used.

✓ Answer checked step by step Answer checked step by step: definitions, the components and the two models with their assumptions.

↑ Back to the question list

State the different methods for determining the seasonal variation in a time series. Describe the Link-Relative method.

2006 · Paper II · Q6a · 20 marks

Solution

Methods for determining seasonal variation.

  1. Method of simple averages. Seasonal averages as percentages of the grand average. Suitable when there is no trend.
  2. Ratio-to-trend method. Original values as percentages of least-squares trend values, averaged by season.
  3. Ratio-to-moving-average method. Original values as percentages of the 12-month (or 4-quarter) centred moving average, averaged by season. This is the most widely used method.
  4. Link relative method (Karl Pearson’s method). Described below.

The link relative method.

  1. Link relatives: LR=current season’s valueprevious season’s value×100,LR=\frac{\text{current season's value}}{\text{previous season's value}}\times100, for every season except the very first.
  2. Average link relatives: take the mean (or median) of the link relatives for each season over the years.
  3. Chain relatives: take the first season’s chain relative as 100. For each later season, CRj=LR¯j×CRj−1100.CR_j=\frac{\overline{LR}_j\times CR_{j-1}}{100}.
  4. Correction for trend: compute a new chain relative for the first season, LR¯1×CRk/100\overline{LR}_1\times CR_k/100. Its excess over 100 is due to trend. Spread it uniformly: subtract d/k,2d/k,…,(k−1)d/kd/k,\,2d/k,\dots,(k-1)d/k from the 2nd, …, kk-th chain relatives.
  5. Seasonal indices: express each corrected chain relative as a percentage of their mean, so that the indices average 100 (total 1200 or 400).

Merits: uses all the data; allows for trend. Demerits: laborious; assumes a linear trend (an equal correction per season); the averaging of link relatives is affected by cyclical movements. See Q7 on this page for a worked example.

✓ Answer checked step by step Answer checked step by step: the four methods are listed and the link-relative steps are given (verified numerically in Q7 of this page).

↑ Back to the question list

Describe the method of link relatives for isolating seasonal variations in a time series.

2005 · Paper II · Q5a · 12 marks

Solution

The method of link relatives isolates seasonal variation as follows.

Step 1: link relatives. For each month (or quarter), express its value as a percentage of the previous month’s (or quarter’s) value: LRt=ytyt−1×100.LR_t=\frac{y_t}{y_{t-1}}\times100 . This removes most of the trend and the cyclical movement, which change little from one month to the next. What remains mainly reflects the seasonal change from month to month, plus irregular variation.

Step 2: average. For each month, average the link relatives over the years. The median is often preferred because it is less affected by irregular values.

Step 3: chain relatives. Convert the averaged link relatives into chain relatives on a common base. With January (or Q1) =100=100: CRFeb=LR¯Feb×100100,CRMarCR_{\text{Feb}}=\frac{\overline{LR}_{\text{Feb}}\times100}{100},\qquad CR_{\text{Mar}} =LR¯Mar×CRFeb100,…=\frac{\overline{LR}_{\text{Mar}}\times CR_{\text{Feb}}}{100},\ \dots

Step 4: trend correction. Chaining once more from December gives a second January chain relative. It is not 100 because of the trend; let the difference be dd. Assuming a linear trend, subtract d/12d/12 from February’s chain relative, 2d/122d/12 from March’s, …, 11d/1211d/12 from December’s.

Step 5: seasonal indices. Express each corrected chain relative as a percentage of their arithmetic mean. These are the seasonal indices; they total 1200 (or 400 for quarters).

The indices show the typical seasonal pattern; dividing the original data by them (×100) gives deseasonalised values. A worked numerical example is Q7 on this page.

✓ Answer checked step by step Answer checked step by step: the link-relative procedure (verified numerically in Q7 of this page).

↑ Back to the question list

What is stationary time series? What are the different schemes or models which may account for oscillatory movements in a stationary time series?

2005 · Paper II · Q6a · 20 marks

Solution

Stationary time series. A series {ut}\{u_t\} is (weakly) stationary if its mean and variance are constant over time and the covariance between utu_t and ut+ku_{t+k} depends only on the lag kk: E(ut)=μ,Var(ut)=σ2,E(u_t)=\mu,\qquad \operatorname{Var}(u_t)=\sigma^2, Cov(ut,ut+k)=γk.\operatorname{Cov}(u_t,u_{t+k})=\gamma_k . A stationary series has no trend; it fluctuates around a constant level with constant spread. These are the “oscillatory movements” that remain after the trend is removed.

Schemes that account for oscillatory movements. Let εt\varepsilon_t be a purely random series (uncorrelated, mean 0, variance σ2\sigma^2).

1. Moving average scheme. ut=a0εt+a1εt−1+…+amεt−m.u_t=a_0\varepsilon_t+a_1\varepsilon_{t-1}+\dots+a_m\varepsilon_{t-m}. Averaging random shocks produces smooth, wave-like movements; this is the Slutzky–Yule effect (a moving average of random numbers shows spurious cycles). The correlogram is zero beyond lag mm.

2. Autoregressive scheme (Yule). ut=α1ut−1+…+αput−p+εt.u_t=\alpha_1u_{t-1}+\dots+\alpha_pu_{t-p}+\varepsilon_t . The series is like a damped pendulum disturbed by random shocks. For p=1p=1 the correlogram is ρk=αk\rho_k=\alpha^k. For the second-order (Yule) scheme with complex characteristic roots, the correlogram is a damped sine wave and the series shows irregular, pseudo-periodic cycles. This is the most important model for economic oscillations.

3. Harmonic (periodic) scheme. ut=∑j(Ajcosωjt+Bjsinωjt)+εt,u_t=\sum_j\big(A_j\cos\omega_jt+B_j\sin\omega_jt\big)+\varepsilon_t, strictly periodic components plus random noise. The correlogram does not die out but oscillates with the same periods. Such hidden periodicities are detected by periodogram analysis (Schuster).

4. Mixed schemes (ARMA). Combinations of the AR and MA schemes, ut=∑αiut−i+∑βjεt−j,u_t=\sum\alpha_iu_{t-i}+\sum\beta_j\varepsilon_{t-j}, which give parsimonious descriptions of more complex oscillations.

The correlogram is the main tool for choosing among these schemes: it cuts off for MA, decays (exponentially or as a damped sine wave) for AR, and oscillates without damping for harmonic schemes.

✓ Answer checked step by step Answer checked step by step: the definition of stationarity and the four classical schemes (moving average, autoregressive, harmonic and mixed).

↑ Back to the question list

Describe the method of moving averages for determining the trend component of a time series. How is trend eliminated?

2004 · Paper II · Q5a · 12 marks

Solution

Method of moving averages for the trend. A moving average of period mm replaces each value by the average of mm consecutive values centred on it. This smooths out the short-term fluctuations, and what remains is an estimate of the trend.

Odd period (m=3,5,7,…m=3,5,7,\dots). Average the first mm values and place the result against the middle one. Then drop the first value, add the next, and repeat. For m=3m=3: y‾2=y1+y2+y33,y‾3=y2+y3+y43,…\bar y_2=\frac{y_1+y_2+y_3}{3},\quad \bar y_3=\frac{y_2+y_3+y_4}{3},\ \dots

Even period (m=4,12,…m=4,12,\dots). The simple averages fall between two time points. Take a further 2-period moving average of them to centre them. For quarterly data, the centred 4-quarter average is y‾t=12yt−2+yt−1+yt+yt+1+12yt+24.\bar y_t=\frac{\tfrac12y_{t-2}+y_{t-1}+y_t+y_{t+1}+\tfrac12y_{t+2}}{4}.

Choice of period. The period should equal the period of the cycles or seasonal pattern (for example 12 for monthly data, 4 for quarterly data, or the average distance between peaks for annual data). The averaging then removes these oscillations completely. A linear trend passes through unchanged.

Merits. Simple and flexible: no mathematical form is assumed. It follows the general movement of the data. It removes periodic fluctuations completely if the period is right.

Limitations.

  • Trend values are lost at each end ((m−1)/2(m-1)/2 values for odd mm, m/2m/2 for even mm), so it cannot be used directly to forecast.
  • A wrong period leaves part of the cycle in the trend.
  • A curved (non-linear) trend is distorted: peaks are flattened and troughs are filled in.
  • It is affected by extreme values.
  • A moving average of random terms can itself produce spurious cycles (the Slutzky–Yule effect).

How the trend is eliminated. Once the trend values TtT_t (the moving averages) are found:

  • additive model Y=T+S+C+IY=T+S+C+I: subtract, Yt−Tt=S+C+IY_t-T_t=S+C+I;
  • multiplicative model Y=T⋅S⋅C⋅IY=T\cdot S\cdot C\cdot I: divide, YtTt×100=S⋅C⋅I\dfrac{Y_t}{T_t}\times100=S\cdot C\cdot I (as a percentage).

The detrended series is then used to study the seasonal, cyclical and irregular components. For example, the ratio-to-moving-average method obtains seasonal indices in this way.

✓ Answer checked step by step Answer checked step by step: odd and even (centred) moving averages, and the elimination of trend by subtraction or division.

↑ Back to the question list

What are the different methods for determining the cyclical component of a time series? Describe ‘periodogram analyses’.

2004 · Paper II · Q6a · 20 marks

Solution

Methods for determining the cyclical component.

  1. Residual method. First remove the trend and the seasonal variation. Under the multiplicative model, YT×S=C×I.\frac{Y}{T\times S}=C\times I . Then smooth C×IC\times I by a short moving average to remove II. What remains is the cyclical component. This is the most commonly used method.
  2. Reference cycle analysis (NBER method). Date the peaks and troughs of the business cycle, and express each series relative to its average over each cycle.
  3. Direct method. Express each value as a percentage of the value for the same month in the previous year. This removes the seasonal effect and much of the trend.
  4. Harmonic analysis. If the cycles are regular, fit sine and cosine terms (Fourier series) to the detrended data.
  5. Periodogram analysis and, more generally, spectral analysis. Described below.

Periodogram analysis (Schuster). This is used to detect hidden periodicities in a (detrended) series u1,…,unu_1,\dots,u_n. For a trial period μ\mu, compute A(μ)=2n∑t=1nutcos2πtμ,A(\mu)=\frac2n\sum_{t=1}^nu_t\cos\frac{2\pi t}{\mu}, B(μ)=2n∑t=1nutsin2πtμ,B(\mu)=\frac2n\sum_{t=1}^nu_t\sin\frac{2\pi t}{\mu}, and the intensity S2(μ)=A2(μ)+B2(μ).S^2(\mu)=A^2(\mu)+B^2(\mu). The graph of S2S^2 (or SS) against μ\mu is the periodogram.

  • If the series contains a periodic component of period λ\lambda and amplitude aa, then near μ=λ\mu=\lambda the terms add up in phase and S2(λ)≈a2S^2(\lambda)\approx a^2, a sharp peak.
  • For other trial periods the products cancel out, and S2S^2 is small, of order 1/n1/n (it comes only from the random part).

So the peaks of the periodogram reveal the periods present in the data, and SS at a peak estimates the amplitude. The significance of a peak can be tested (Fisher’s test, or the fact that for pure noise nS2/4σ2nS^2/4\sigma^2 is approximately exponential).

Limitations. Economic cycles are not strictly periodic, so the periodogram of an autoregressive series fluctuates wildly and shows many spurious peaks. Long series are needed. Modern practice uses the smoothed periodogram, i.e. the estimated spectral density.

✓ Answer checked step by step Answer checked step by step: the residual method, harmonic analysis and the periodogram ordinate S²(μ) = A² + B², with its behaviour at true and false periods.

↑ Back to the question list

Define a second order stationary time series. What does the autocorrelation coefficient ρk of such a series represent?

2003 · Paper II · Q5a · 12 marks

Solution

Second-order (weakly, covariance) stationary series. A time series {Xt}\{X_t\} is second-order stationary if

  1. E(Xt)=μE(X_t)=\mu for all tt (constant mean);
  2. E(Xt2)<∞E(X_t^2)<\infty and Var(Xt)=σ2\operatorname{Var}(X_t)=\sigma^2 for all tt (constant, finite variance);
  3. Cov(Xt,Xt+k)=γk\operatorname{Cov}(X_t,X_{t+k})=\gamma_k depends only on the lag kk, not on tt.

Only the first two moments are required to be invariant in time, which is why it is called “second order”. A strictly stationary series with finite variance is second-order stationary. For a Gaussian series the two notions coincide.

The autocorrelation coefficient ρk\rho_k. ρk=Cov(Xt,Xt+k)Var(Xt)Var(Xt+k)=γkγ0\rho_k=\frac{\operatorname{Cov}(X_t,X_{t+k})}{\sqrt{\operatorname{Var}(X_t)\operatorname{Var}(X_{t+k})}}=\frac{\gamma_k}{\gamma_0} is the ordinary correlation coefficient between observations kk time units apart. Because of stationarity it is the same for every pair (Xt,Xt+k)(X_t,X_{t+k}), whatever tt is. It measures how strongly the present value is linearly related to the value kk periods earlier (the “memory” of the series).

Properties. ρ0=1\rho_0=1; ρ−k=ρk\rho_{-k}=\rho_k; |ρk|≤1|\rho_k|\le1; the sequence {ρk}\{\rho_k\} is non-negative definite.

Interpretation.

  • A large positive ρ1\rho_1 means successive values are close together, so the series is smooth.
  • A negative ρ1\rho_1 means the series tends to alternate.
  • ρk=0\rho_k=0 for all k≠0k\ne0 means a purely random series (white noise).
  • The pattern of ρk\rho_k as kk increases (the correlogram) indicates the generating scheme: it cuts off after lag qq for MA(qq), decays geometrically for AR(1), and oscillates for periodic components.

✓ Answer checked step by step Answer checked step by step: the second-order stationarity conditions and the interpretation and properties of ρ_k.

↑ Back to the question list

What are the components in which a time series is usually decomposed? Explain their roles in understanding the behaviour and predicting future values of a time series. Give one example each where these components are expected to be (i) additive, (ii) multiplicative, justifying these structures in your examples.

2003 · Paper II · Q6a · 20 marks

Solution

Components and their roles.

  1. Trend (TT): the long-term direction of the series. It shows whether the variable is growing or declining, and at what rate. It is the basis of long-term forecasting, for example of population or demand for power, and of planning capacity.
  2. Seasonal component (SS): regular intra-year patterns. Understanding it lets us compare months fairly (by deseasonalising) and plan short-term operations: inventory, production, staffing. Forecasts for a particular month combine trend × seasonal index.
  3. Cyclical component (CC): medium-term swings, such as business cycles. Knowing the phase of the cycle helps in forecasting turning points and in timing investment and policy.
  4. Irregular component (II): random shocks. They cannot be predicted. Their variance measures the unavoidable uncertainty in forecasts, and large irregular values signal unusual events to investigate.

Decomposing the series into these parts explains why it behaved as it did. Predicting each systematic part (trend, seasonal, cycle) and combining them gives the forecast.

(i) Additive example: Y=T+S+C+IY=T+S+C+I. The number of daily visitors to a hill-station temple with a fixed capacity of darshan slots. There is a slowly rising trend, and the extra visitors in the pilgrimage season are limited by the fixed number of slots, roughly the same absolute number each year (say +2000 a day), whatever the trend level. Justification: the seasonal swing has a constant absolute size, independent of the level, so the effects add.

Another example: the monthly temperature of a city. The seasonal swing in °C does not depend on any long-term warming trend; a slight trend is just added to it.

(ii) Multiplicative example: Y=T×S×C×IY=T\times S\times C\times I. Monthly retail sales of a growing company. The Diwali month is typically 30% above average. When the company’s sales double, the festive excess also doubles in rupee terms, but it stays at 30%. Justification: the seasonal (and cyclical) effects are proportional to the level of the trend, so they act as percentage factors. Most economic series (sales, production, prices) behave this way. Taking logarithms makes the model additive.

✓ Answer checked step by step Answer checked step by step: components, their roles, and the additive and multiplicative examples with justification.

↑ Back to the question list

Explain how the trend in a time series is determined by the method of moving averages.

2002 · Paper II · Q5a · 12 marks

Solution

Determining trend by the method of moving averages.

  1. Choose the period mm equal to the period of the regular fluctuations in the data, so that the averaging removes them. For example, use 12 for monthly data, 4 for quarterly data, or the average interval between successive peaks (or troughs) for annual data with cycles.
  2. Compute the moving totals: the sum of the first mm values, then the sum of values 2 to m+1m+1, and so on, moving one period at a time.
  3. Divide by mm to get the moving averages.
  4. Place each average at the centre of its period:
    • odd mm: the centre is a time point, for example the 3-year average of years 1–3 is placed against year 2;
    • even mm: the averages fall between two time points, so take 2-period moving averages of them to centre them on the original time points (the centred moving average).
  5. The moving averages are the trend values. Plot them with the original data to see the trend.

Example (3-yearly). For values 10, 14, 12, 16, 18, the moving totals are 36, 42, 46, and the moving averages 12, 14, 15.33, placed against years 2, 3, 4.

Merits: easy; no assumption about the form of the trend; removes periodic fluctuations of period mm completely; follows the general direction flexibly.

Demerits: loses trend values at both ends; no equation, so it cannot be used directly for forecasting; the period must be chosen correctly; it distorts curved trends and is affected by extreme values.

✓ Answer checked step by step Answer checked step by step: the moving-average procedure for odd and even periods, and the choice of period.

↑ Back to the question list

What are the different methods of determining cyclical component of a time series? For the model ut=asin2πtλ+et, give the periodogram analysis.

2002 · Paper II · Q6a · 20 marks

Solution

Methods for the cyclical component. These are the residual method (C×I=Y/(T×S)C\times I=Y/(T\times S), then smoothing), reference-cycle (NBER) analysis, the direct percentage method, harmonic analysis and periodogram analysis (see Q46 on this page). The periodogram is the natural tool for a model with a hidden periodic term, such as the one given.

Model. ut=asin2πtλ+etu_t=a\sin\dfrac{2\pi t}{\lambda}+e_t, t=1,…,nt=1,\dots,n, where ete_t is random with mean 0 and variance σ2\sigma^2, and λ\lambda is an unknown period.

Periodogram. For a trial period μ\mu, compute A(μ)=2n∑t=1nutcos2πtμ,A(\mu)=\frac2n\sum_{t=1}^nu_t\cos\frac{2\pi t}{\mu}, B(μ)=2n∑t=1nutsin2πtμ,B(\mu)=\frac2n\sum_{t=1}^nu_t\sin\frac{2\pi t}{\mu}, S2(μ)=A2+B2.S^2(\mu)=A^2{}+B^2 . The plot of S2(μ)S^2(\mu) (or of S(μ)S(\mu)) against μ\mu is the periodogram.

Trial period equal to the true period (μ=λ\mu=\lambda). Suppose nn is a multiple of λ\lambda, and use ∑tsin22πtλ=n2,\sum_t\sin^2\frac{2\pi t}{\lambda}=\frac n2, ∑tsin2πtλcos2πtλ=0.\sum_t\sin\frac{2\pi t}{\lambda}\cos\frac{2\pi t}{\lambda}=0 . Then B(λ)=2n[a⋅n2+∑etsin2πtλ]B(\lambda)=\frac2n\left[a\cdot\frac n2+\sum e_t\sin\frac{2\pi t}{\lambda}\right] =a+β,A(λ)=α,=a{}+\beta,\qquad A(\lambda)=\alpha, where α=2n∑etcos2πtλ\alpha=\frac2n\sum e_t\cos\frac{2\pi t}{\lambda} and β=2n∑etsin2πtλ\beta=\frac2n\sum e_t\sin\frac{2\pi t}{\lambda} each have mean 0 and variance 4n2⋅n2σ2=2σ2n\frac4{n^2}\cdot\frac n2\sigma^2=\frac{2\sigma^2}n. Hence ES2(λ)=a2+4σ2n≈a2.E\,S^2(\lambda)=a^2+\frac{4\sigma^2}{n}\approx a^2 .

Trial period different from λ\lambda. The sums ∑tsin2πtλcos2πtμ\sum_t\sin\frac{2\pi t}\lambda\cos\frac{2\pi t}\mu and ∑tsin2πtλsin2πtμ\sum_t\sin\frac{2\pi t}\lambda\sin\frac{2\pi t}\mu stay bounded as nn grows: they are sums of oscillating terms that cancel out. Divided by nn, they tend to 0. So the contribution of the periodic term tends to 0, and ES2(μ)≈4σ2n→0.E\,S^2(\mu)\approx\frac{4\sigma^2}{n}\to0 . More precisely, the periodic term contributes about a2[sinπn(1/λ−1/μ)nsinπ(1/λ−1/μ)]2,a^2\left[\frac{\sin\pi n(1/\lambda-1/\mu)}{n\sin\pi(1/\lambda-1/\mu)}\right]^2, which is 1 times a2a^2 at μ=λ\mu=\lambda and falls off rapidly as μ\mu moves away.

Conclusion. The periodogram is nearly flat at the low level 4σ2/n4\sigma^2/n, with a sharp peak at μ=λ\mu=\lambda of height about a2a^2. So:

  • the position of the peak estimates the period λ\lambda;
  • â=S(λ̂)\hat a=S(\hat\lambda) estimates the amplitude;
  • the phase is given by tan−1(A/B)\tan^{-1}(A/B).

The test of significance compares the peak with the noise level. For example, Fisher’s gg statistic is the largest S2S^2 divided by the sum of all ordinates at the Fourier frequencies 2πj/n2\pi j/n; for pure noise each ordinate nS2/(4σ2)nS^2/(4\sigma^2) is approximately exponential with mean 1.

✓ Derivation checked step by step Derivation checked step by step, and by simulation in Python (n = 240, λ = 12, a = 3, σ = 1): S² peaks sharply at μ = 12 (S = 3.14) and is far smaller elsewhere (0.38 at the neighbouring trial period 13, below 0.14 at the others tried).

↑ Back to the question list

Define a time series and its main components. Explain the terms (i) stationarity and (ii) invertibility in time series.

2001 · Paper II · Q5a · 12 marks

Solution

Time series and its main components. A time series is a set of observations on a variable recorded at successive, usually equal, intervals of time. Its main components are:

  • the secular trend (long-term movement);
  • seasonal variation (regular movements within a year);
  • cyclical variation (oscillations of more than a year, such as business cycles);
  • irregular variation (random, unpredictable movements).

(i) Stationarity. A series is (weakly) stationary if its mean and variance are constant over time and Cov(Xt,Xt+k)\operatorname{Cov}(X_t,X_{t+k}) depends only on the lag kk. (It is strictly stationary if all its joint distributions are unchanged by a shift in time.) A stationary series has no trend and fluctuates about a fixed level with constant spread. For an ARMA model ϕ(B)Xt=θ(B)εt\phi(B)X_t=\theta(B)\varepsilon_t, the condition is: all roots of ϕ(z)\text{all roots of }\phi(z) =0 lie outside the unit circle |z|=1.=0\text{ lie outside the unit circle } |z|=1 . Example: AR(1), Xt=ϕXt−1+εtX_t=\phi X_{t-1}+\varepsilon_t, is stationary if and only if |ϕ|<1|\phi|<1. Then Xt=∑jϕjεt−jX_t=\sum_j\phi^j\varepsilon_{t-j}, a convergent MA(∞\infty).

(ii) Invertibility. A series is invertible if the current shock εt\varepsilon_t can be expressed as a convergent linear combination of present and past observations: εt=π(B)Xt=Xt−π1Xt−1\varepsilon_t=\pi(B)X_t=X_t{}-\pi_1X_{t-1} −π2Xt−2−…,∑|πj|<∞.{}-\pi_2X_{t-2}{}-\dots,\qquad \sum|\pi_j|<\infty . Equivalently, XtX_t has an AR(∞\infty) representation in its past. For an ARMA model the condition is: all roots of θ(z)\text{all roots of }\theta(z) =0 lie outside the unit circle.=0\text{ lie outside the unit circle.} Example: MA(1), Xt=εt+θεt−1X_t=\varepsilon_t+\theta\varepsilon_{t-1}, is invertible if and only if |θ|<1|\theta|<1. Then εt=Xt−θXt−1+θ2Xt−2−…\varepsilon_t=X_t-\theta X_{t-1}+\theta^2X_{t-2}-\dots

Why invertibility matters. The MA(1) models with parameters θ\theta and 1/θ1/\theta have the same autocorrelation function. Requiring invertibility picks out a unique model for a given ACF. It also ensures that past observations receive declining weights, which is needed for sensible forecasting and for estimating the shocks from the data.

Stationarity is a condition on the AR part and invertibility a condition on the MA part. Every finite AR process is invertible; every finite MA process is stationary.

✓ Answer checked step by step Answer checked step by step: the definitions, and the stationarity and invertibility conditions illustrated on AR(1) and MA(1).

↑ Back to the question list

Briefly discuss the following in time series analysis: (i) Determination of trend (ii) Forecasting.

2001 · Paper II · Q6a · 20 marks

Solution

(i) Determination of trend.

  1. Freehand (graphic) method. Plot the data and draw a smooth curve through them by eye. Simple and flexible, but subjective: different people draw different lines.
  2. Method of semi-averages. Divide the series into two equal halves. Find the average of each half and plot it at the middle of its half. The line joining the two points is the trend. Simple and objective, but it assumes a linear trend and is affected by extreme values.
  3. Method of moving averages. Average mm consecutive values successively, with mm equal to the period of the fluctuations, and centre the averages. This removes periodic fluctuations and follows non-linear trends. But values are lost at the ends, and there is no equation for forecasting.
  4. Method of least squares (curve fitting). Fit a mathematical curve, such as a straight line y=a+bty=a+bt, a parabola, an exponential abtab^t, a Gompertz curve or a logistic curve, by minimising the sum of squared deviations. This is objective and gives an equation for forecasting, but the form of the curve must be chosen correctly.

(ii) Forecasting. Forecasting means estimating future values of the series from its past behaviour.

  • Trend extrapolation: project the fitted trend equation into the future. For monthly forecasts, multiply by the seasonal index (and by a cyclical factor, if known). Suitable for long-term forecasts of stable series.
  • Exponential smoothing: a weighted average of past values with geometrically declining weights: ŷt+1=αyt+(1−α)ŷt.\hat y_{t+1}=\alpha y_t+(1-\alpha)\hat y_t . Holt’s method adds a trend term and Holt–Winters a seasonal term. These are simple and adaptive, and good for short-term forecasting.
  • Box–Jenkins (ARIMA) method: identify, estimate and check a stochastic model ϕ(B)(1−B)dXt=θ(B)εt\phi(B)(1-B)^dX_t=\theta(B)\varepsilon_t, then forecast with minimum mean-square error and with prediction intervals. Best for short-term forecasting of series with complex dependence.
  • Regression (econometric) methods: relate the variable to explanatory variables (income, prices) and forecast through them.
  • Leading indicators and surveys: series that turn before the variable of interest, and expectations surveys, help to predict turning points.

Forecasts should come with a measure of their uncertainty, and should be checked against outcomes. Accuracy is judged by mean absolute error, root mean-square error or MAPE.

✓ Answer checked step by step Answer checked step by step: the four methods of trend determination, and forecasting approaches (trend extrapolation, smoothing, Box–Jenkins, regression).

↑ Back to the question list

Explain Box-Jenkins methodology in analyzing a time series.

2000 · Paper II · Q5a · 12 marks

Solution

The Box–Jenkins methodology analyses a time series by fitting an ARIMA(p,d,q)(p,d,q) model, ϕ(B)(1−B)dXt=θ(B)εt,\phi(B)(1-B)^dX_t=\theta(B)\varepsilon_t, through an iterative cycle of four steps.

  1. Identification.
    • Plot the series. Stabilise the variance by a transformation if needed.
    • Difference until the series is stationary: this gives dd, plus the seasonal DD if there is seasonality.
    • From the sample ACF and PACF choose tentative pp and qq:
      • AR(pp): the PACF cuts off after lag pp and the ACF tails off;
      • MA(qq): the ACF cuts off after lag qq and the PACF tails off;
      • ARMA: both tail off.
  2. Estimation. Estimate the parameters ϕ\phi, θ\theta and σ2\sigma^2 by maximum likelihood or least squares. Check their significance, stationarity and invertibility.
  3. Diagnostic checking. The residuals should be white noise: check the residual ACF and the Ljung–Box QQ test. Compare alternative models by AIC or BIC, and try over-fitting. If the model is inadequate, return to step 1.
  4. Forecasting. Compute forecasts X̂n(h)=E(Xn+h∣past)\hat X_n(h)=E(X_{n+h}\mid\text{past}) and prediction intervals from the ψ\psi-weights.

Guiding principles:

  • parsimony: use the fewest parameters that describe the data adequately;
  • iteration: refine the model until it is adequate.

The approach is data-driven, provides optimal short-term forecasts, and includes exponential smoothing and seasonal models as special cases. It needs fairly long series (about 50 or more observations) and some skill in identification.

✓ Answer checked step by step Answer checked step by step against the standard Box–Jenkins stages.

↑ Back to the question list

What is a stationary time series? How do you test the stationary of a given time series?

2000 · Paper II · Q6a · 20 marks

Solution

Stationary time series. A series {Xt}\{X_t\} is stationary (in the weak or second-order sense) if:

  1. E(Xt)=μE(X_t)=\mu is constant;
  2. Var(Xt)=σ2\operatorname{Var}(X_t)=\sigma^2 is constant and finite;
  3. Cov(Xt,Xt+k)=γk\operatorname{Cov}(X_t,X_{t+k})=\gamma_k depends only on the lag kk.

It is strictly stationary if the joint distribution of any set of observations is unchanged by a shift in time. A stationary series fluctuates around a fixed mean with constant variance. Shocks to it die out, and its statistical properties can be estimated from a single long record.

How to test stationarity.

1. Graphical inspection. Plot XtX_t against tt. A trend, changing level, changing variability or seasonal pattern indicates non-stationarity. Plotting the means and variances of successive sub-periods helps.

2. The correlogram. Compute rk=∑t=1n−k(xt−x‾)(xt+k−x‾)∑(xt−x‾)2r_k=\frac{\sum_{t=1}^{n-k}(x_t-\bar x)(x_{t+k}-\bar x)}{\sum(x_t-\bar x)^2} for k=1,2,…k=1,2,\dots

  • For a stationary series, rkr_k dies out quickly; for white noise, all rkr_k lie within ±1.96/n\pm1.96/\sqrt n.
  • For a non-stationary series, rkr_k starts near 1 and declines very slowly (almost linearly).
  • The Box–Pierce statistic Q=n∑k=1mrk2Q=n\sum_{k=1}^mr_k^2 (or the Ljung–Box version) tests whether all the autocorrelations are jointly zero.

3. Unit-root tests. These are formal tests of non-stationarity.

  • Dickey–Fuller test: regress ΔXt=α+βt+δXt−1+ut\Delta X_t=\alpha+\beta t+\delta X_{t-1}+u_t and test H0:δ=0H_0:\delta=0 (unit root, non-stationary) against H1:δ<0H_1:\delta<0 (stationary), using τ=δ̂/se(δ̂)\tau=\hat\delta/\operatorname{se}(\hat\delta) and the Dickey–Fuller critical values (not the tt table).
  • Augmented DF: add lagged differences ∑γiΔXt−i\sum\gamma_i\Delta X_{t-i} to remove serial correlation from utu_t.
  • Phillips–Perron: a non-parametric correction for serial correlation.
  • KPSS: here stationarity is the null hypothesis. It is used as a cross-check.

4. Other checks. Tests for a change in variance; the runs test; comparing sub-sample means and variances.

If the series is found to be non-stationary, it is transformed (logged), detrended or differenced. The tests are then repeated until stationarity is achieved.

✓ Answer checked step by step Answer checked step by step: the definition, and the graphical, correlogram and unit-root tests.

↑ Back to the question list

What is meant by a time series? Explain the difference between the seasonal and cyclical variations in a time series.

1999 · Paper II · Q9a · 20 marks

Solution

Time series. A time series is a set of values of a variable observed at successive periods or points of time, arranged in chronological order: y1,y2,…,yny_1,y_2,\dots,y_n at times t1,t2,…,tnt_1,t_2,\dots,t_n. Examples are annual industrial production, monthly price indices, and daily sales.

Its value at any time is regarded as the combined result of four components: trend, seasonal variation, cyclical variation and irregular variation.

Seasonal versus cyclical variations.

Point Seasonal variation Cyclical variation
Period One year or less (monthly, quarterly, weekly or daily patterns) More than one year, usually 2–10 years
Regularity Regular and periodic; repeats at the same time every year Recurrent but irregular in timing, duration and amplitude
Causes Climate and weather; customs, festivals and habits (Diwali sales, monsoon umbrellas, winter woollens) Business forces: investment, credit, inventories, expectations (the trade cycle of boom, recession, depression, recovery)
Predictability Easy to predict Difficult to forecast, especially the turning points
Data needed Visible only in sub-annual data Visible in annual data
Measurement Seasonal indices (simple averages, ratio to trend, ratio to moving average, link relatives) Residual method, harmonic and periodogram analysis
Use Short-term planning of production, stocks and labour Medium-term business and policy decisions

Both are oscillatory movements about the trend. They differ mainly in their period and regularity.

✓ Answer checked step by step Answer checked step by step: the definition of a time series and the seasonal–cyclical contrast.

↑ Back to the question list

Explain the use of ARIMA models in forecasting.

1999 · Paper II · Q9b · 20 marks

Solution

ARIMA models. An ARIMA(p,d,q)(p,d,q) model for XtX_t is ϕ(B)(1−B)dXt=θ(B)εt,\phi(B)(1-B)^dX_t=\theta(B)\varepsilon_t, where (1−B)d(1-B)^d differences the series dd times to make it stationary, ϕ(B)\phi(B) is the AR polynomial of degree pp, θ(B)\theta(B) is the MA polynomial of degree qq, and εt\varepsilon_t is white noise. With the seasonal operators (1−Bs)D(1-B^s)^D, Φ(Bs)\Phi(B^s) and Θ(Bs)\Theta(B^s) added, it becomes the seasonal ARIMA model.

Use in forecasting.

  1. Build the model by the Box–Jenkins cycle: identification (differencing; ACF and PACF), estimation, and diagnostic checking.
  2. Compute forecasts. The minimum mean-square-error forecast of Xn+hX_{n+h} made at time nn is the conditional expectation X̂n(h)=E(Xn+h∣Xn,Xn−1,…)\hat X_n(h)=E(X_{n+h}\mid X_n,X_{n-1},\dots). Writing the model as a difference equation, it is computed recursively:
    • replace past XX’s by their observed values and future XX’s by their forecasts;
    • replace past shocks by the residuals and future shocks by 0.
  3. Prediction intervals. With the ψ\psi-weights from Xt=ψ(B)εtX_t=\psi(B)\varepsilon_t, Var[Xn+h−X̂n(h)]=σ2∑j=0h−1ψj2,\operatorname{Var}\big[X_{n+h}-\hat X_n(h)\big]=\sigma^2\sum_{j=0}^{h-1}\psi_j^2, so a 95% interval is X̂n(h)±1.96σ̂∑j<hψj2\hat X_n(h)\pm1.96\,\hat\sigma\sqrt{\sum_{j<h}\psi_j^2}.
  4. Updating. When a new value arrives, X̂n+1(h)=X̂n(h+1)+ψhen+1,\hat X_{n+1}(h)=\hat X_n(h+1)+\psi_h e_{n+1}, where en+1e_{n+1} is the latest one-step error.

Example. For the random walk with drift, ARIMA(0,1,0)(0,1,0): X̂n(h)=Xn+hδ\hat X_n(h)=X_n+h\delta, with error variance hσ2h\sigma^2. For ARIMA(0,1,1)(0,1,1) the forecast is an exponentially weighted moving average of past values.

Advantages. The forecasts are optimal (in mean-square error) within a rich class of models; they come with error bands; they adapt to the data; and they handle trend (through differencing) and seasonality.

Limitations. A fairly long, stable series is needed. The forecasts are mainly reliable for the short term: for non-stationary models the error variance grows without limit. ARIMA models do not use explanatory variables, and they cannot foresee structural changes.

✓ Answer checked step by step Answer checked step by step: ARIMA forecasting (the difference-equation and ψ-weight forms), prediction intervals and updating.

↑ Back to the question list

Why is the multiplicative model the most commonly used assumption, as compared to additive model, in time series analysis? Discuss the role of the method of moving averages in time series analysis.

1998 · Paper II · Q13a · 20 marks

Solution

Why the multiplicative model is more commonly used. In the additive model Y=T+S+C+IY=T+S+C+I, the seasonal and cyclical effects are fixed amounts, the same whatever the level of the series. In the multiplicative model Y=T×S×C×IY=T\times S\times C\times I, they are proportional to the trend. The multiplicative model is preferred for these reasons:

  1. Economic series behave proportionally. As a business or economy grows, its seasonal and cyclical swings also grow in absolute size. For example, if festive sales are 30% above normal when monthly sales are ₹10 lakh, they are about 30% above normal when sales grow to ₹50 lakh, not a fixed ₹3 lakh. The multiplicative model captures this.
  2. The components interact. Forces producing trend and cycles also affect the size of seasonal swings. The additive model assumes the components are independent; the multiplicative model allows them to interact.
  3. Indices are convenient. SS, CC and II become unit-free indices (percentages of the trend), so seasonal patterns of different series, or of different periods, can be compared directly.
  4. Standard methods assume it. The ratio-to-trend, ratio-to-moving-average and link-relative methods all work with ratios. Taking logarithms makes the model additive, so linear methods can still be used.
  5. It fits growth data. It suits series that grow exponentially and cannot be negative (prices, production, sales).

The additive model is preferred only when the fluctuations remain roughly constant in size, for example temperature, or a series with little trend.

Role of the method of moving averages.

  • Measuring trend: a moving average of period equal to the period of the fluctuations smooths out seasonal, cyclical and irregular movements and gives the trend (the moving-average trend line).
  • Eliminating periodic movements: a 12-month moving average removes seasonality completely from monthly data, leaving T×CT\times C.
  • Computing seasonal indices: in the ratio-to-moving-average method, Y/(12-month centred MA)=S×IY/\text{(12-month centred MA)}=S\times I; averaging these ratios by month gives the seasonal indices.
  • Isolating cycles and smoothing irregularities: a short moving average (3 or 5 months) of C×IC\times I removes II and reveals the cycles.
  • Forecasting: moving averages and their extensions (exponential smoothing) are used for short-term forecasts.

Cautions. Values are lost at the ends; a wrong period leaves residual oscillation; and moving averages of random series can create spurious cycles (the Slutzky–Yule effect).

✓ Answer checked step by step Answer checked step by step: the reasons for preferring the multiplicative model, and the roles of moving averages.

↑ Back to the question list

Explain clearly with the help of an illustration how seasonal index is useful in planning sales or production for specific periods. Are there any limitations of seasonal index?

1998 · Paper II · Q13b · 20 marks

Solution

How seasonal indices help planning. A seasonal index tells us how a season typically compares with the average season. If we know (or forecast) the annual total, or the trend value for each month, we can plan each month’s production, purchases, stock and staffing in proportion to its index, instead of spreading them equally.

Illustration. A firm forecasts annual sales of 12,000 refrigerators. Its quarterly seasonal indices are:

Quarter Q1 Q2 (summer) Q3 (monsoon) Q4 Total
Seasonal index 90 140 80 90 400

Without seasonal adjustment, the firm would plan 3000 units a quarter. Using the indices, expected sales in a quarter\text{expected sales in a quarter} =120004×index100.=\frac{12000}{4}\times\frac{\text{index}}{100}. This gives:

  • Q1: 3000×0.90=27003000\times0.90=2700
  • Q2: 3000×1.40=42003000\times1.40=4200
  • Q3: 3000×0.80=24003000\times0.80=2400
  • Q4: 3000×0.90=27003000\times0.90=2700

The firm should build up stock in Q1, so that it can meet the peak of 4200 in Q2 without overtime or lost sales. It can schedule maintenance and staff leave in Q3, and arrange working capital for the Q1–Q2 build-up. If there is a trend, the monthly forecast is trend value × seasonal index / 100. The indices are also used to judge performance: actual sales divided by the index give deseasonalised sales, which show whether business is really improving.

Limitations of seasonal indices.

  1. The pattern may change. The indices are averages of past years. Changes in technology, tastes, festivals shifting between months (for example Diwali falling in October or November), government policy or the weather can alter the seasonal pattern.
  2. Bias from trend and cycles. If the method does not remove the trend and cycles properly (for example the simple-average method in a trending series), the indices are distorted.
  3. Irregular influences. Strikes, floods or exceptional years can distort the averages. The median or a modified mean reduces, but does not remove, this.
  4. Calendar effects. Months differ in their number of working days and trading days, and moving holidays need separate adjustment.
  5. Model assumption. The indices assume a stable multiplicative (or additive) relation; if the swings are not proportional to the level, the indices mislead.
  6. They describe only the typical season. They do not forecast the trend or cycle themselves, and they are of little use in very short or erratic series.

✓ Answer checked step by step Answer checked step by step: the use of seasonal indices in planning (illustrated with an annual target of 12,000 units) and their limitations.

↑ Back to the question list

Elucidate the role of random components in a time series. Discuss the variate difference method in this connection.

1998 · Paper II · Q13c · 20 marks

Solution

Role of random components. The random (irregular) component εt\varepsilon_t is what remains after the trend, seasonal and cyclical movements are removed.

  • It is caused by many small, unpredictable influences, and by occasional large shocks such as floods and strikes.
  • It cannot be forecast, so its variance σ2\sigma^2 measures the unavoidable uncertainty in any forecast. It also sets a limit on how closely any model can fit.
  • It “contaminates” the systematic components. Moving averages and other smoothing methods aim to remove it, but averaging random terms can create spurious cycles (the Slutzky–Yule effect). So the size of the random component affects how reliably we can identify trend and cycles.
  • In correlation studies between two series, the random parts can hide or exaggerate the relation between the systematic parts.
  • In stochastic models (AR, MA, ARIMA), the random shocks are the driving force that generates the fluctuations of the series.

The variate difference method. This method estimates the variance of the random component without first estimating the trend.

Suppose ut=f(t)+εtu_t=f(t)+\varepsilon_t, where f(t)f(t) is smooth (locally a polynomial) and the εt\varepsilon_t are uncorrelated with variance σ2\sigma^2.

  • Differencing kk times removes a polynomial trend of degree less than kk.
  • For the random part, Δkεt=∑j=0k(−1)j(kj)εt+k−j\Delta^k\varepsilon_t=\sum_{j=0}^k(-1)^j\binom kj\varepsilon_{t+k-j}, so Var(Δkεt)=(2kk)σ2.\operatorname{Var}(\Delta^k\varepsilon_t)=\binom{2k}{k}\sigma^2 .

Procedure.

  1. Compute the successive differences of the series.
  2. For each order kk, compute the variance VkV_k of the differences, and the reduced variance Vk/(2kk)V_k/\binom{2k}{k} (divisors 2, 6, 20, 70, …).
  3. These reduced variances decrease as kk increases, until they become stable. The stable value estimates σ2\sigma^2. The order kk at which this happens indicates the degree of the smooth component.

Use. It tells us how much of the total variation is random, whether a smooth trend is present, and how complex that trend is. It was used by Anderson and by “Student” (Gosset) to correlate the random elements of two series (by correlating their kk-th differences).

Assumptions and limitations.

  • The random terms must be uncorrelated, so the method fails if they are autocorrelated.
  • The trend must be smooth enough to be removed by a few differences.
  • With short series, judging the point of stability is subjective.

✓ Answer checked step by step Answer checked step by step: the role of random components, and the variate-difference formula Var(Δᵏε) = C(2k, k)σ².

↑ Back to the question list

With a suitable illustration explain the notion of seasonal effects in a time-series. Also explain any one method of measuring the seasonal effects in a time series. Point out the merits and limitations of the method suggested.

1997 · Paper II · Q13a · 20 marks

Solution

Seasonal effects. Seasonal effects are regular movements in a time series that recur at the same time every year (or every week or day) because of the seasons, the weather, holidays and customs.

Illustration. The monthly sales of a sweet-shop chain in India rise sharply in October–November (Diwali) and around Raksha Bandhan, and fall in the monsoon months. Year after year the same pattern recurs: November might typically be 60% above the average month and July 25% below it. These are the seasonal effects. A rise in November sales is therefore not by itself a sign of growing business; we must compare it with the usual November level.

A method: ratio to moving average.

  1. Compute the 12-month centred moving average of the monthly data. With a 12-month period it removes the seasonal (and most of the irregular) variation, so the moving average approximates T×CT\times C.
  2. Divide each original value by its moving average and multiply by 100: YT×C×100=S×I(as a percentage).\frac{Y}{T\times C}\times100=S\times I\ \text{(as a percentage).}
  3. Arrange these ratios month by month (in a year × month table). For each month, average the ratios over the years, using the median or a modified mean (dropping the extremes) to remove II.
  4. Adjust the monthly averages so that they total 1200 (multiply each by 1200/total1200/\text{total}). These are the seasonal indices.

Merits.

  • It removes both trend and cycles before measuring seasonality, so it is more accurate than simple averages or ratio to trend.
  • It does not need a mathematical form for the trend.
  • Medians reduce the effect of irregular values.
  • It is the most widely used method, and the basis of census X-11/X-13.

Limitations.

  • Six months of data are lost at each end, so there are no ratios for the first and last six months.
  • The calculations are lengthy.
  • If the cycle is irregular, the moving average may not remove it fully.
  • It assumes a multiplicative model and a stable seasonal pattern; a changing pattern needs moving seasonal factors.

✓ Answer checked step by step Answer checked step by step: the illustration of seasonal effects, and the ratio-to-moving-average method with its merits and limitations.

↑ Back to the question list

Explain, briefly, a method for studying the random component in a time series, stating the assumptions made,.

1997 · Paper II · Q13c · 20 marks

Solution

To study the random (irregular) component, we can use the variate difference method, supplemented by tests of randomness on the residual series.

Assumptions.

  1. The series is ut=f(t)+εtu_t=f(t)+\varepsilon_t: a smooth systematic part f(t)f(t) (trend and slow cycles), which can be represented locally by a polynomial of low degree, plus a random part εt\varepsilon_t.
  2. The random terms εt\varepsilon_t are uncorrelated with one another, with mean 0 and constant variance σ2\sigma^2.
  3. The random terms are independent of the systematic part.

Method.

  1. Form the successive differences Δut,Δ2ut,…,Δkut\Delta u_t,\Delta^2u_t,\dots,\Delta^ku_t. Differencing kk times eliminates a polynomial of degree less than kk.
  2. The random part of the kk-th difference has variance Var(Δkεt)=(2kk)σ2.\operatorname{Var}(\Delta^k\varepsilon_t)=\binom{2k}{k}\sigma^2 .
  3. Compute the sample variance VkV_k of the kk-th differences, and the reduced variance Vk/(2kk)V_k/\binom{2k}{k} for k=1,2,3,…k=1,2,3,\dots
  4. The reduced variances fall as the trend is removed, then settle down to a nearly constant value. When successive values agree (their difference is within its sampling error), the systematic part has been eliminated. The common value estimates σ2\sigma^2, the variance of the random component.

Testing the randomness of the residuals. After removing TT, SS and CC, the residuals should behave like a random series. We can check this with:

  • the correlogram (all rkr_k within ±2/n\pm2/\sqrt n);
  • the runs test (number of runs above and below the median);
  • the turning-points test: a random series of nn values has, on average, 2(n−2)/32(n-2)/3 turning points, with variance (16n−29)/90(16n-29)/90.

Limitations. The method fails if the random terms are autocorrelated. With short series the stability point is uncertain, and taking too many differences increases the sampling error.

✓ Answer checked step by step Answer checked step by step: the variate difference method with its assumptions, plus tests of randomness for the residuals.

↑ Back to the question list

Specify the additive and multiplicative models for a time series. How are seasonal indices constructed?

1996 · Paper II · Q13a · 20 marks

Solution

Additive model. Yt=Tt+St+Ct+It.Y_t=T_t+S_t+C_t+I_t . Each component is an absolute quantity in the units of YY; the components are independent; the seasonal effects sum to zero over a year (∑S=0\sum S=0). It is suitable when the size of the seasonal swings does not change with the level of the series.

Multiplicative model. Yt=Tt×St×Ct×It.Y_t=T_t\times S_t\times C_t\times I_t . TT is in the units of YY, while SS, CC and II are relative factors (indices). The seasonal indices average 100%, i.e. they total 1200 for 12 months. The fluctuations are proportional to the trend level. This is the usual model for economic series. Taking logarithms makes it additive.

Construction of seasonal indices.

  1. Method of simple averages. Average each month over the years. Seasonal index =monthly averagegrand average×100=\dfrac{\text{monthly average}}{\text{grand average}}\times100. (Under the additive model, use seasonal deviations: monthly average minus grand average.) Suitable when there is no trend.
  2. Ratio-to-trend method. Fit a least-squares trend to the monthly data. Express each value as a percentage of its trend value, YT×100=S×C×I\dfrac{Y}{T}\times100=S\times C\times I. Average the percentages for each month (median or modified mean). Adjust them to total 1200.
  3. Ratio-to-moving-average method. Compute the 12-month centred moving average (which approximates T×CT\times C). Express each value as a percentage of it, YT×C×100=S×I\dfrac{Y}{T\times C}\times100=S\times I. Average by month to remove II, and adjust to 1200. This is the most commonly used method.
  4. Link relative method. Compute link relatives (each month as a percentage of the preceding month), average them, convert to chain relatives, correct for trend, and express them as percentages of their mean.

In each case the final indices are adjusted so that their average is exactly 100 (or, in the additive case, so that the seasonal deviations sum to zero).

✓ Answer checked step by step Answer checked step by step: the two models and the four methods of constructing seasonal indices.

↑ Back to the question list

Write a note on variate difference method.

1996 · Paper II · Q13c · 20 marks

Solution

Variate difference method. This method, due to Anderson and “Student” (W. S. Gosset), estimates the variance of the random component of a time series, and separates it from the smooth systematic part, using successive differences.

Model. ut=f(t)+εtu_t=f(t)+\varepsilon_t, where f(t)f(t) is a smooth function of time (trend and slow cycles) that can be approximated locally by a polynomial, and εt\varepsilon_t is a random component: uncorrelated, mean 0, variance σ2\sigma^2.

Principle.

  • A polynomial of degree pp is eliminated by p+1p+1 differences.
  • Differencing the random part increases its variance in a known way: Δkεt=∑j=0k(−1)j(kj)εt+k−j,\Delta^k\varepsilon_t=\sum_{j=0}^k(-1)^j\binom kj\varepsilon_{t+k-j}, Var(Δkεt)=σ2∑j=0k(kj)2\operatorname{Var}(\Delta^k\varepsilon_t)=\sigma^2\sum_{j=0}^k\binom kj^2 =(2kk)σ2.=\binom{2k}{k}\sigma^2 . The divisors for k=1,2,3,4,…k=1,2,3,4,\dots are 2,6,20,70,…2,6,20,70,\dots

Procedure.

  1. Compute V0V_0 (the variance of the series) and V1,V2,…V_1,V_2,\dots (the variances of the 1st, 2nd, … differences).
  2. Compute σ̂k2=Vk/(2kk)\hat\sigma_k^2=V_k/\binom{2k}{k}.
  3. As kk increases, σ̂k2\hat\sigma_k^2 decreases, until the smooth part has been removed. From then on, it remains roughly constant.
  4. Accept the first kk for which σ̂k2\hat\sigma_k^2 and σ̂k+12\hat\sigma_{k+1}^2 agree within sampling error. Their common value estimates σ2\sigma^2, and k−1k-1 indicates the degree of the trend polynomial.

Uses. The method estimates the size of the random component; tests whether a series is purely random (if σ̂02≈σ̂12\hat\sigma_0^2\approx\hat\sigma_1^2, there is no systematic part); helps choose the degree of the trend; and, by correlating the kk-th differences of two series, measures the correlation between their random elements, free of spurious correlation caused by common trends.

Limitations. The random terms must not be autocorrelated. The judgement of “constancy” is subjective with short series. The sampling errors of high-order differences are large.

✓ Answer checked step by step Answer checked step by step: the model, the formula Var(Δᵏε) = C(2k, k)σ², the procedure, and the assumptions.

↑ Back to the question list

Write a note on short term economic forecasting.

1996 · Paper II · Q16c · 20 marks

Solution

Short-term economic forecasting means predicting the values of economic variables (production, sales, prices, employment, GDP growth) over the near future, typically the next few months up to a year or two. It is used by businesses (production and inventory planning, cash budgets) and by governments and central banks (monetary policy, budget estimates, stabilisation).

Main approaches.

  1. Time-series extrapolation.
    • Trend and seasonal projection: extend the fitted trend and multiply by the seasonal index (and an estimated cyclical factor).
    • Exponential smoothing (Brown, Holt, Holt–Winters): weighted averages of the past with declining weights. Simple and adaptive.
    • Box–Jenkins ARIMA models: stochastic models built from the series, which give optimal short-term forecasts with prediction intervals.
  2. Barometric (indicator) methods. Use leading indicators, which turn before the general business cycle (new orders, building permits, share prices, money supply, purchasing managers’ indices), together with coincident and lagging indicators, and diffusion indices. Their main use is to predict turning points.
  3. Econometric models. Systems of equations linking the variable to its determinants (consumption functions, investment functions), estimated from data and solved for future values. They can also simulate the effects of policy changes.
  4. Surveys of anticipations. Surveys of investment intentions, consumer confidence, business expectations and sales forecasts by managers.
  5. Judgement and opinion polling. Expert opinion, the Delphi method, and combined (consensus) forecasts.

Requirements and limitations.

  • Forecasts assume that past relationships continue. Structural changes, policy shocks, wars and pandemics can make them fail.
  • Turning points are the hardest to forecast.
  • Data are often revised, and become available only with a lag.
  • Forecasts should state their uncertainty (intervals). They should be monitored and revised regularly, and their accuracy evaluated (MAE, RMSE, MAPE).

✓ Answer checked step by step Answer checked step by step: the meaning, purposes and main methods of short-term economic forecasting, with limitations.

↑ Back to the question list

Discuss any two important procedures to determine the trend component in a time series.

1995 · Paper II · Q13a · 20 marks

Solution

Two important procedures for determining trend are the method of moving averages and the method of least squares.

1. Method of moving averages.

  • Choose a period mm equal to the period of the cycles or seasonal fluctuations in the data.
  • Compute the averages of successive groups of mm values, moving one period at a time, and place each at the centre of its group.
  • For even mm, centre the averages by taking a further 2-period moving average.
  • The moving averages are the trend values.

Merits: simple; no assumption about the mathematical form of the trend; eliminates periodic fluctuations completely if mm equals their period; follows changes in direction flexibly. Demerits: trend values are lost at both ends; there is no equation, so it cannot be used for forecasting; the result depends on the choice of mm; curved trends are distorted; it is affected by extreme values.

2. Method of least squares. Fit a mathematical curve to the data by minimising ∑(y−ŷ)2\sum(y-\hat y)^2.

  • Straight line y=a+bty=a+bt: ∑y=na+b∑t,∑ty\sum y=na{}+b\sum t,\qquad \sum ty =a∑t+b∑t2.=a\sum t{}+b\sum t^2 . With the origin at the middle (∑t=0\sum t=0): a=y‾a=\bar y and b=∑ty∑t2b=\dfrac{\sum ty}{\sum t^2}.
  • Second-degree parabola y=a+bt+ct2y=a+bt+ct^2: three normal equations, in ∑y\sum y, ∑ty\sum ty and ∑t2y\sum t^2y.
  • Exponential y=abty=ab^t: fit a straight line to logy\log y.
  • Growth curves (modified exponential, Gompertz, logistic) are fitted by the method of selected points or of partial sums.

Merits: objective, so everyone gets the same line; gives an equation, so trend values for all periods and forecasts are available; the sum of deviations is zero and the sum of squared deviations is least. Demerits: the type of curve must be chosen correctly; the calculations are heavier; adding new data changes all the trend values; it does not follow irregular changes in direction; extrapolation far ahead is risky.

Comparison. Moving averages suit series with regular cycles and an irregular trend. Least squares suits a smooth trend of known form, and is needed for forecasting.

✓ Answer checked step by step Answer checked step by step: the moving-average and least-squares procedures, with the normal equations and a comparison of the two.

↑ Back to the question list

Write a note on short-term forecasting.

1995 · Paper II · Q15c · 20 marks

Solution

Short-term forecasting is the estimation of future values of a variable for the near future, usually a few days to about a year ahead (for example next month’s sales, or next quarter’s inflation). It differs from long-term forecasting, which depends mainly on the trend: in the short term the seasonal, cyclical and irregular movements matter most.

Purposes. Production and inventory control; purchasing; staffing; cash and budget planning; pricing; and short-run policy decisions (for example the central bank’s view of next quarter’s inflation).

Main methods.

  1. Naive and moving-average methods: use the last value, or the average of the last few values (adjusted for seasonality), as the forecast.
  2. Exponential smoothing: ŷt+1=αyt+(1−α)ŷt\hat y_{t+1}=\alpha y_t+(1-\alpha)\hat y_t, with 0<α<10<\alpha<1; Holt’s method adds a trend and Holt–Winters a seasonal factor. These are cheap, adaptive and widely used for many items at once.
  3. Decomposition: forecast = trend × seasonal index × cyclical factor (multiplicative model).
  4. Box–Jenkins (ARIMA) models: fitted stochastic models giving minimum mean-square-error forecasts, with prediction intervals. Seasonal ARIMA handles seasonality.
  5. Regression and econometric models: relate the variable to its determinants, including leading indicators.
  6. Leading indicators and anticipation surveys: used to spot turning points.

Choosing a method. Consider the forecast horizon, the data available (length and frequency), the pattern of the series (trend, seasonality), the accuracy required, and the cost. Accuracy is checked by comparing past forecasts with what actually happened (MAE, RMSE, MAPE), and by checking that the forecast errors are random.

Limitations. Short-term forecasts are disturbed by irregular shocks. They assume stable patterns, and they need frequent revision as new data arrive.

✓ Answer checked step by step Answer checked step by step: the purposes and main methods of short-term forecasting, with criteria for choosing a method.

↑ Back to the question list

More on Quantitative Economics and Official Statistics

Questions: UPSC Civil Services (Main) Examination, Statistics Paper II, 1995–2026. Solutions: Optional Province. Found an error? Tell us.

Spotted an error? Tell us.

We classify every PYQ with care, but mistakes can slip in. If a question is in the wrong topic, has a typo, the wrong year, or is missing, let us know. We review every report and update the page.

Report an Error
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted