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
Define autocorrelation of order 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 .
Solution
Definitions. For a stationary series with mean and variance , the autocorrelation of order (serial correlation at lag ) is It does not depend on because the series is stationary, and , , . The correlogram is the graph of (or of the sample values ) against the lag . Its shape helps us identify the scheme that generated the series.
Moving average of extent with equal weights. Let be uncorrelated random components with mean 0 and variance , and Then and For , and share the terms ; all other cross-products have zero expectation. So For the two averages have no term in common, so the covariance is 0. Dividing by : So the correlogram is a straight line falling from 1 at to 0 at , and it is zero beyond lag .
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.
Define time series. For a moving-average process with weights of random components , where ’s are i.i.d. , obtain the correlogram function. Find its form, when all the weights are equal and their sum is 1.
Solution
Time series. A time series is a set of observations of a variable taken at successive (usually equally spaced) points of time, for example monthly sales or yearly production.
Moving average with weights . Let be i.i.d. and Then and, since the ’s are uncorrelated, For lag (), A term of matches a term of when , i.e. . Hence So the correlogram function is and for . It does not depend on , so the process is stationary.
Equal weights with sum 1. Now for every . The numerator is and the denominator is , so and for . The correlogram falls linearly from 1 to 0 over the first 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.
Consider AR(1) model with non-zero mean 74·3293 and . 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?
Solution
Model. An AR(1) model with mean is with and .
Forecast steps ahead. The future shocks have mean 0, so the minimum mean-square-error forecast made at time is Here .
One step ahead.
Five steps ahead. , so
The forecasts move back towards the mean as the horizon grows: 70.148, 71.944, 72.968, 73.553, 73.886 for . This is how a stationary AR(1) forecast behaves, because .
✓ 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.
In a study of its sales, a motor company in Delhi obtained the following least square equation: where origin is 2000, units (=1 year) and = 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?
Solution
The trend is with origin 2000 ( in 2000) and in years.
(i) Annual average increase. Each extra year raises by the coefficient of : 300 units a year.
(ii) When will expected sales reach the present capacity of 4500? that is, the year 2010.
(iii) Sales in 2020. , so 7500 units.
(iv) Slope. The slope of the trend line is 300 (units per year).
(v) Excess over capacity in 2020. 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.
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 .
Solution
Principle of least squares. Suppose we want to fit a curve to observations , . 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, is as small as possible. We set the partial derivatives of 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 as the independent variable and the observed value as the dependent variable, and fit a mathematical curve by least squares:
- a straight line , with normal equations and ;
- a parabola ;
- 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 (and ).
Fitting . Take logarithms: Write , , , . Then is a second-degree curve in , and least squares on gives the normal equations With the origin at the middle () these reduce to So and and come from the first and third equations. Finally
Note that the least squares are applied to , not to 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.
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) (ii) (iii)
Solution
Stationary time series. A series is (weakly, or second-order) stationary if
- is the same for all ;
- is finite and the same for all ;
- depends only on the lag , not on .
It is strictly stationary if the joint distribution of is unchanged by a shift in time.
How to test stationarity.
- Graph. Plot the series. A changing level (trend) or a changing spread suggests non-stationarity.
- Correlogram. For a stationary series the sample autocorrelations die out quickly as increases. For a non-stationary series they stay large and decay very slowly.
- Unit-root tests. The Dickey–Fuller (DF) and augmented Dickey–Fuller (ADF) tests fit and test (a unit root, so non-stationary) against , 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 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 ( white noise with variance ):
Random walk . With fixed, The variance grows with , so the series is not stationary. (It has a unit root.) The first difference is stationary.
Random walk with drift . Here Both the mean and the variance change with , so it is not stationary. Again is stationary.
AR(1) with .
- If , then None of these depends on , so the series is stationary.
- If it is the random walk of (i), which is not stationary.
- If , again grows like , so it is not stationary.
So (iii) is stationary exactly when .
✓ Answer checked step by step Answer checked step by step: each of the three models was examined through its mean, variance and characteristic root.
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):
| 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 and 2001 Q2 is . 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:
- Q3:
- Q4:
A new Q1, chained from Q4, is
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: per quarter. Subtract times 3.194 from Q1 to Q4:
- Q1:
- Q2:
- Q3:
- Q4:
Step 4: adjust to an average of 100. The mean of the corrected chain relatives is . 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).
Explain Akaike information criterion for order selection in an ARMA process.
Solution
Akaike information criterion (AIC). When we fit ARMA 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: where is the maximised likelihood and is the number of estimated parameters (, counting the constant or the noise variance, depending on the convention).
For a Gaussian ARMA fitted to observations, , so where is the estimated white-noise (residual) variance.
Order selection procedure.
- Make the series stationary (by differencing if needed).
- Choose maximum orders and (for example from the correlogram and partial correlogram).
- Fit ARMA by maximum likelihood for every , .
- Compute AIC for each fit.
- Select the with the smallest AIC.
- 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 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: .
- The Bayesian information criterion, , has a heavier penalty and is consistent.
- AIC values are comparable only for models fitted to the same data (the same 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.
Explain Box-Jenkins methodology to build ARIMA models.
Solution
The Box–Jenkins methodology is an iterative procedure for building an ARIMA model, from the data. Here is the backshift operator (), is the AR polynomial, is the MA polynomial and 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 ( or 2, plus seasonal differencing if needed) until it looks stationary. A unit-root test such as ADF can confirm the choice of .
- Use the ACF and PACF of the stationary series to choose tentative and :
| ACF | PACF | |
|---|---|---|
| AR() | tails off | cuts off after lag |
| MA() | cuts off after lag | tails off |
| ARMA() | tails off | tails off |
- AIC or BIC can help choose among candidate orders.
2. Estimation. Estimate , and , 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 and 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:
- 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 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).
Define time series. Distinguish between stationary and non-stationary time series. Give an example of stationary and non-stationary time series.
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: . 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 and depends only on the lag | Covariance depends on 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 (i.i.d. with mean 0 and variance ); the AR(1) series (mean 0, variance , ). In practice, the daily percentage returns on a stock index are close to stationary.
- Non-stationary: the random walk , with , which grows with ; a series with linear trend , 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.
Discuss variate difference method with an application.
Solution
Idea. Suppose the series is where is a smooth systematic part (trend, which can be approximated locally by a polynomial) and is a random component with variance , uncorrelated over time. The variate difference method (Anderson, Gosset) estimates and separates the two parts by taking successive differences.
Effect of differencing.
- If is a polynomial of degree , its -th differences vanish for . Differencing removes the smooth part.
- For the random part, so
Method.
- Compute the differences of the series.
- For each order , compute the variance of the -th differences, and the reduced variance where the divisors are 2, 6, 20, 70, … for
- As increases, 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 , the variance of the random component.
Application. Consider for , with .
- The raw variance is dominated by the trend and is huge.
- The second differences of equal 2, a constant, which the third differences remove completely.
- From onwards, the ratios settle near ().
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 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.
Explain in brief how you will determine orders of autoregressive and moving average terms while fitting time series using ARIMA modelling.
Solution
In ARIMA modelling the orders are chosen in the identification stage.
1. Order of differencing . 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; 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 .
2. Orders (AR) and (MA) from the ACF and the PACF of the differenced series:
- AR(): the ACF tails off (exponentially or as a damped sine wave); the PACF cuts off after lag .
- MA(): the ACF cuts off after lag ; the PACF tails off.
- ARMA(): both tail off, the ACF after lag and the PACF after lag .
A sample autocorrelation (or partial autocorrelation) is judged to be zero if it lies within about (Bartlett’s limits for the ACF; Quenouille’s for the PACF).
3. Information criteria. When the pattern is not clear, fit several low-order candidates and choose the one with the smallest The extended ACF (EACF) table can also suggest 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 and . 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.
What is Dickey-Fuller (DF) test? Describe how you will use this test for testing stationarity of any given time series.
Solution
The Dickey–Fuller test is a test for a unit root, i.e. for non-stationarity, in an autoregressive series.
Start with , with white noise. If the series is a random walk (non-stationary); if it is stationary. Subtracting from both sides,
Hypotheses.
Three forms of the test regression:
- no constant: (random walk);
- with a constant (drift): ;
- with a constant and trend: .
Test statistic. Estimate the regression by OLS and compute Under the series is non-stationary, so does not follow the usual 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 values. Approximate 5% critical values for large samples are −1.95, −2.86 and −3.41 for the three forms.
Decision. If is more negative than the critical value, reject : 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.
- Plot the series to choose the form (trend present → form 3; non-zero level only → form 2).
- Run the DF regression and compute .
- If is not rejected, difference the series and test again. The number of differences needed to reject the null is the order of integration : the series is .
Augmented Dickey–Fuller (ADF). If is serially correlated, the simple DF test is invalid. ADF adds lagged differences: with chosen (for example by AIC) to make white noise. The same critical values are used.
Limitations. The test has low power against stationary series with 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.
Obtain autocorrelation function of autoregressive (AR) process of order two.
Solution
AR(2) process. with white noise (mean 0, variance ), , and stationarity conditions
Yule–Walker equations. Multiply by () and take expectations. Since is uncorrelated with past ’s, Dividing by : with and .
First two values. For : , so For :
General solution. The difference equation has characteristic equation , with roots both inside the unit circle for a stationary process.
- Distinct real roots (): with and . This gives The ACF is a mixture of damped exponentials.
- Equal roots : .
- Complex roots (): with and , This is a damped sine wave (pseudo-periodic behaviour) with period .
Variance.
Example. For , : , , . 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.
Explain the methods to forecast ARIMA process.
Solution
Let the fitted model be ARIMA: a generalised AR polynomial of degree . We stand at time and want the forecast of . The minimum mean-square-error forecast is the conditional expectation There are three equivalent ways to compute it.
1. Difference-equation form (used in practice). Write and take conditional expectations using these rules:
- for , and for ;
- (the residuals, estimated from the fitted model) for , and for .
So the forecasts are built up recursively for . For they satisfy (the “eventual forecast function”).
2. Random-shock (-weight) form. Write Then and the forecast error is A 95% prediction interval is .
3. Inverted (-weight) form. Write The forecast is then a weighted average of past observations.
Updating. When arrives, so old forecasts are revised by a multiple of the latest one-step error.
Example: ARIMA(0,1,1), . Then which is exponential smoothing with constant . The -weights are for , so the error variance grows linearly with .
For a non-stationary model () the forecast-error variance grows without bound as increases. For a stationary ARMA model () the forecasts tend to the mean, and the error variance tends to .
✓ 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.
What is time series? Discuss various components of a time series and their significances in contributing variation in the model.
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 (). 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 (). 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 (). 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 (). 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, when they are independent of each other and , , are measured in the same units as ; or multiplicatively, when the seasonal and cyclical swings are proportional to the level of the series (then , , 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.
Describe the Box-Jenkins methodology to identify a particular time series model.
Solution
Identification is the first and most important stage of the Box–Jenkins approach. Its aim is to choose a tentative ARIMA (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 (and the seasonal ). If the ACF decays slowly or there is a trend, difference: . Use the smallest that gives a stationary-looking series, usually 0, 1 or 2. Unit-root tests (DF/ADF) can help. For a seasonal series with period , use seasonal differences as well.
Step 3: compute the sample ACF and PACF of , with limits of about for judging which values are zero.
Step 4: match the patterns.
| Model | ACF | PACF |
|---|---|---|
| AR() | Tails off (exponential decay or damped sine wave) | Cuts off after lag |
| MA() | Cuts off after lag | Tails off |
| ARMA() | Tails off after lag | Tails off after lag |
| White noise | All near zero | All near zero |
Seasonal orders are read in the same way from the spikes at lags .
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 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).
Briefly discuss about the Box-Jenkins method of forecasting.
Solution
The Box–Jenkins method of forecasting builds a stochastic model, an ARIMA model from the series itself, and uses it to forecast. It does not need explanatory variables, only the past of the series.
Main steps.
- Identification: make the series stationary by differencing (), then choose and from the ACF and PACF patterns (AR: PACF cuts off; MA: ACF cuts off).
- Estimation: estimate the parameters by maximum likelihood or least squares.
- Diagnostic checking: the residuals should be white noise (residual ACF, Ljung–Box test); otherwise revise the model.
- Forecasting: compute recursively from the model, putting future shocks equal to 0. The forecast-error variance is , 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.
Define Time series. Give its components and explain each of them.
Solution
Time series. A time series is a set of observations taken at specified times, usually at equal intervals. Mathematically, , the value of the variable at time . 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 or a multiplicative model .
✓ Answer checked step by step Answer checked step by step: definitions of the four components, with examples.
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.
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 .
Seasonal indices ():
| 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,
| 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: .
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.
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.
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.
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:
- prosperity (boom): high output, employment and prices;
- recession: a turning down, with falling confidence;
- depression: low output and high unemployment;
- 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.
- Link relatives. For each season (month or quarter), compute
- Average link relatives. Average the link relatives for each season over the years, using the mean or the median (the median avoids extreme values).
- Chain relatives. Take the first season as 100. The chain relative of each season is
- 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 evenly: subtract (for seasons) from the 2nd, 3rd, … chain relatives.
- 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).
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.
Solution
Objectives of analysing seasonal movement.
- To understand the seasonal pattern itself: how much higher or lower each month or quarter typically is.
- To plan short-term operations: production schedules, inventories, purchases, staffing, cash needs and advertising timed to the seasonal demand.
- 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.
- 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.
- Arrange the data by years and months (or quarters).
- Find the average (or total) for each month over all the years.
- Find the grand average of these monthly averages.
- Seasonal index of a month . The indices sum to 1200 for months or 400 for quarters.
- Deseasonalise: under the multiplicative model, 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).
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.
Solution
Take the origin at 1983–84 (the middle year) and in years, so .
| Year | Trend | ||||
|---|---|---|---|---|---|
| 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 : With :
Trend equation: with the origin at 1983–84, in years and in ₹ ’000 crore. Imports rise on average by about ₹13,482 crore a year.
✓ 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.
Let and be independent variables with zero mean and unit variance. Considering , show that the process is stationary with correlogram
Solution
We have , where and all are independent, each with mean 0 and variance 1.
Mean. for every .
Variance. By independence, the same for every .
Covariance at lag . Expanding, the three cross terms , and are zero, because , and are independent with mean 0. So
The mean, the variance and the covariance at every lag do not depend on , so is (weakly) stationary. (Since every finite set has the same joint distribution after a shift in time, it is in fact strictly stationary.)
Correlogram. So
Remark. The correlogram does not die out: the common component links all the terms equally, however far apart. Such a process is stationary but not ergodic for the mean: the time average , 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.
Describe a method of fitting trend by logistic curve.
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 where is the upper asymptote (saturation level). The curve has its point of inflection at , where .
Method of three selected points. Taking reciprocals, Choose three equidistant time points , , , with observed (or smoothed) values . Then Write and . Dividing the two equations, Eliminating the other constants gives the saturation level and then from (For a logistic curve we need and .)
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 is known or guessed, is linear in , and and follow by ordinary least squares. 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 , and , then compute the trend values , 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.
Elucidate ARIMA representation of a time series. For an autoregressive scheme show that the correlogram is given by , where is the order of the serial correlation. Also, show that the correlogram is decreasing exponentially for .
Solution
ARIMA representation. A series follows an autoregressive integrated moving average model of order if its -th difference is a stationary, invertible ARMA process: where , and is white noise. The roots of and lie outside the unit circle.
- is the number of autoregressive terms (dependence on past values).
- is the number of differences needed for stationarity (the “integrated” part).
- is the number of moving-average terms (dependence on past shocks).
Special cases: ARIMA = AR(1); = random walk; = exponential smoothing.
Correlogram of . Let and let be white noise with variance . The stationary mean is , since . Writing , Multiply by () and take expectations. is uncorrelated with past values, so Dividing by , the serial correlation of order is (The question writes for this serial correlation coefficient.) The constant affects only the mean, not the correlogram.
Exponential decrease for . , with . So the correlogram is a decreasing exponential curve: for all , and as . The closer is to 1, the slower the decay. (For the correlogram alternates in sign, with exponentially decreasing size.)
✓ 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.
Define Time Series. Write its components and explain them.
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.
- 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.
- 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.
- 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).
- 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, . In the multiplicative model, ; 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.
Briefly explain the Schematic representation of the BOX-JENKINS methodology for time series modelling.
Solution
Schematic representation of the Box–Jenkins methodology. Box and Jenkins describe model building as an iterative loop.
The stages.
- 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 (and the seasonal ) by differencing until the series is stationary. Read and from the cut-off and tail-off patterns of the PACF and ACF. AIC or BIC helps in borderline cases.
- 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.
- Diagnostic checking. Check whether the fitted model is adequate:
- the residuals should behave like white noise (residual ACF within ; Ljung–Box not significant);
- try over-fitting with an extra parameter.
- Forecasting. Use the accepted model to compute minimum mean-square-error forecasts 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).
For the AR(1) process defined as , where , and are independent variables, what is the expression for the spectrum (i.e., spectral density)?
Solution
Note on the question. With fixed, the process is not exactly stationary at the start: depends on . It becomes stationary as grows, since . The spectrum is defined for the stationary AR(1) process , which is what we find.
Spectral density of AR(1). For with , we have . The spectral density is Equivalently, since and white noise has spectrum ,
For : for .
Check. .
Shape. is largest at , where . It is smallest at , where . So low frequencies (slow movements) dominate, as expected for positive autocorrelation.
(Some books define the spectrum on with an extra factor 2, i.e. ; 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.
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.
Solution
Exponential growth curve. A series grows exponentially when it increases by a constant percentage (rate) each period: Here is the value at , and , where is the growth rate per period. If the series grows; if it decays. Examples: compound interest, population in an early phase, and bacteria growth.
How to check for exponential growth.
- Ratios. , so the ratios of successive values (or the percentage changes) should be roughly constant.
- Logarithms. is linear in . So:
- plot against (or on semi-log paper); the points should lie close to a straight line;
- equivalently, the first differences of should be roughly constant.
- A plot of itself curves upwards, with the increments growing in proportion to the level.
Fitting the exponential trend. Let , , , so . By least squares on : With the origin at the middle of the period (), The trend values are , and the growth rate is per period.
Remarks. Least squares on minimises the squared relative errors. Exact least squares on 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.
Derive the normal equations for fitting a linear trend to time series data. Suppose that a time series has been observed at time points and for this series and . Determine the linear trend equation that will fit the data.
Solution
Normal equations for a linear trend. Fit by least squares: minimise Setting the partial derivatives to zero: These are the normal equations. If time is measured from the middle, , and
The given data. The time points are the 22 odd values from −21 to 21 (an even number of points, with the origin midway between the two middle points, and in half-units). So , and
Estimates.
Trend equation: with 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 .
✓ 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.
Explain the concept for moving average model and autoregressive moving average model [ARMA ].
Solution
Moving average model MA(). The series is a finite weighted sum of the current and past random shocks: where is white noise with variance and . Its properties:
- and .
- (with ) for , and for . So the ACF cuts off after lag .
- It is always stationary (a finite sum). It is invertible, i.e. expressible as an AR() in past values, if the roots of lie outside the unit circle.
- Example: MA(1), , has and for .
Autoregressive moving average model ARMA(). This combines dependence on past values (AR part) with dependence on past shocks (MA part): that is, (plus a constant if the mean is non-zero). Its properties:
- Stationary if the roots of lie outside the unit circle. Then , with , an MA().
- Invertible if the roots of lie outside the unit circle. Then .
- For the ACF satisfies the AR recursion , so both the ACF and the PACF tail off.
- Example: ARMA(1,1), , has
Why ARMA? A pure AR or pure MA model may need many parameters to describe a series that an ARMA model with 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.
Define Time series. Explain briefly different components of Time series.
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 . Examples: monthly production of steel, or yearly exports.
Components of a time series.
- Secular trend (). 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.
- Seasonal variation (). 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.
- Cyclical variation (). 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.
- Irregular variation (). 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: (additive model) or (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.
Explain the concept of Auto covariance, Auto correlation and their functions. Also explain how the functions are estimated.
Solution
Autocovariance. For a stationary series with mean , the autocovariance at lag is the covariance between values periods apart: It depends only on . In particular .
Autocorrelation. The autocovariance scaled by the variance: a unit-free measure of the linear dependence between and .
The functions. Regarded as functions of the lag :
- is the autocovariance function (ACVF);
- is the autocorrelation function (ACF); its graph is the correlogram.
Properties.
- , .
- Symmetry: , .
- .
- They are non-negative definite: for all real .
The ACF characterises the dependence structure. For white noise for ; for MA() it cuts off after lag ; for AR() it decays exponentially or as a damped sine wave. The spectrum is its Fourier transform.
Estimation from a series .
- Sample mean .
- Sample autocovariance: The divisor , rather than , is preferred: it gives a non-negative definite estimate with smaller mean-square error.
- Sample autocorrelation:
- These are consistent but biased in small samples. Only lags up to about are usually used.
Judging significance. For white noise, , so values outside indicate significant autocorrelation. For an MA() process, Bartlett’s formula gives Joint tests use the Box–Pierce statistic , 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.
What are the four important stages in ARIMA modelling of a times series data? Explain briefly.
Solution
The four stages of ARIMA (Box–Jenkins) modelling are:
1. Identification. Decide on a tentative ARIMA model.
- Plot the data; transform it (log or Box–Cox) if the variance is not constant.
- Difference it 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 (where the PACF cuts off) and (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 , , the constant and , 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 , and the Ljung–Box statistic should be non-significant against .
- 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 recursively, putting future shocks equal to 0. Give prediction intervals, , 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.
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.
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.
- Compute the link relatives. For each month (or quarter), The first season of the first year has no link relative.
- Average the link relatives of each season over all the years, using the arithmetic mean or the median.
- Convert to chain relatives. Put the chain relative of the first season equal to 100. For each later season,
- 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 , subtract , , …, from the chain relatives of the 2nd, 3rd, …, -th seasons ( or 4).
- 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).
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.
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.
- Secular trend: the long-term smooth tendency to rise or fall.
- Seasonal variation: regular movements with a period of a year or less.
- Cyclical variation: oscillations of more than a year (business cycles).
- 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.
What are the salient features of the Box-Jenkins approach to time series forecasting?
Solution
Salient features of the Box–Jenkins approach.
- Stochastic modelling of the series itself. The series is treated as a realisation of a stochastic process. It is modelled by an ARIMA model, , which uses only its own past values and past shocks. No explanatory variables are needed.
- 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.
- Stationarity through differencing. Trend and other non-stationarity are removed by differencing (, and the seasonal ) rather than by fitting deterministic curves.
- 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.
- Parsimony. The aim is the simplest model with the fewest parameters that adequately represents the data.
- Use of the ACF and PACF as the main tools for identifying the model.
- Optimal forecasts with error bands. The forecasts are minimum mean-square-error forecasts, with forecast-error variances , so prediction intervals are available. Forecasts are easily updated.
- 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.
What are the different methods for determining seasonal variations in a time series? Indicate the seasonal patterns to which these methods are applicable.
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 . Express the original values as percentages of the moving average, which gives . 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 () 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.
What is a time series? Explain briefly the various components of a time series. Also explain the additive and multiplicative models.
Solution
Time series. A time series is a set of observations on a variable taken at successive points or periods of time: , . Examples: monthly rainfall, or annual GDP.
Components.
- Trend (): the long-run smooth movement (growth or decline).
- Seasonal variation (): regular movements repeating within a year, due to the seasons and to customs.
- Cyclical variation (): oscillations with a period of more than a year (business cycles).
- Irregular variation (): random, unpredictable movements due to chance events.
Additive model.
- The components are assumed to be independent of one another.
- , and are absolute amounts (in the units of ), 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.
- is in the original units. , and 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: .
Mixed forms such as are also used.
✓ Answer checked step by step Answer checked step by step: definitions, the components and the two models with their assumptions.
State the different methods for determining the seasonal variation in a time series. Describe the Link-Relative method.
Solution
Methods for determining seasonal variation.
- Method of simple averages. Seasonal averages as percentages of the grand average. Suitable when there is no trend.
- Ratio-to-trend method. Original values as percentages of least-squares trend values, averaged by season.
- 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.
- Link relative method (Karl Pearson’s method). Described below.
The link relative method.
- Link relatives: for every season except the very first.
- Average link relatives: take the mean (or median) of the link relatives for each season over the years.
- Chain relatives: take the first season’s chain relative as 100. For each later season,
- Correction for trend: compute a new chain relative for the first season, . Its excess over 100 is due to trend. Spread it uniformly: subtract from the 2nd, …, -th chain relatives.
- 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).
Describe the method of link relatives for isolating seasonal variations in a time series.
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: 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) :
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 . Assuming a linear trend, subtract from February’s chain relative, from March’s, …, 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).
What is stationary time series? What are the different schemes or models which may account for oscillatory movements in a stationary time series?
Solution
Stationary time series. A series is (weakly) stationary if its mean and variance are constant over time and the covariance between and depends only on the lag : 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 be a purely random series (uncorrelated, mean 0, variance ).
1. Moving average scheme. 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 .
2. Autoregressive scheme (Yule). The series is like a damped pendulum disturbed by random shocks. For the correlogram is . 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. 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, 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).
Describe the method of moving averages for determining the trend component of a time series. How is trend eliminated?
Solution
Method of moving averages for the trend. A moving average of period replaces each value by the average of consecutive values centred on it. This smooths out the short-term fluctuations, and what remains is an estimate of the trend.
Odd period (). Average the first values and place the result against the middle one. Then drop the first value, add the next, and repeat. For :
Even period (). 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
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 ( values for odd , for even ), 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 (the moving averages) are found:
- additive model : subtract, ;
- multiplicative model : divide, (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.
What are the different methods for determining the cyclical component of a time series? Describe ‘periodogram analyses’.
Solution
Methods for determining the cyclical component.
- Residual method. First remove the trend and the seasonal variation. Under the multiplicative model, Then smooth by a short moving average to remove . What remains is the cyclical component. This is the most commonly used method.
- 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.
- 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.
- Harmonic analysis. If the cycles are regular, fit sine and cosine terms (Fourier series) to the detrended data.
- Periodogram analysis and, more generally, spectral analysis. Described below.
Periodogram analysis (Schuster). This is used to detect hidden periodicities in a (detrended) series . For a trial period , compute and the intensity The graph of (or ) against is the periodogram.
- If the series contains a periodic component of period and amplitude , then near the terms add up in phase and , a sharp peak.
- For other trial periods the products cancel out, and is small, of order (it comes only from the random part).
So the peaks of the periodogram reveal the periods present in the data, and at a peak estimates the amplitude. The significance of a peak can be tested (Fisher’s test, or the fact that for pure noise 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.
Define a second order stationary time series. What does the autocorrelation coefficient of such a series represent?
Solution
Second-order (weakly, covariance) stationary series. A time series is second-order stationary if
- for all (constant mean);
- and for all (constant, finite variance);
- depends only on the lag , not on .
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 . is the ordinary correlation coefficient between observations time units apart. Because of stationarity it is the same for every pair , whatever is. It measures how strongly the present value is linearly related to the value periods earlier (the “memory” of the series).
Properties. ; ; ; the sequence is non-negative definite.
Interpretation.
- A large positive means successive values are close together, so the series is smooth.
- A negative means the series tends to alternate.
- for all means a purely random series (white noise).
- The pattern of as increases (the correlogram) indicates the generating scheme: it cuts off after lag for MA(), 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.
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.
Solution
Components and their roles.
- Trend (): 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.
- Seasonal component (): 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.
- Cyclical component (): medium-term swings, such as business cycles. Knowing the phase of the cycle helps in forecasting turning points and in timing investment and policy.
- Irregular component (): 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: . 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: . 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.
Explain how the trend in a time series is determined by the method of moving averages.
Solution
Determining trend by the method of moving averages.
- Choose the period 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.
- Compute the moving totals: the sum of the first values, then the sum of values 2 to , and so on, moving one period at a time.
- Divide by to get the moving averages.
- Place each average at the centre of its period:
- odd : the centre is a time point, for example the 3-year average of years 1–3 is placed against year 2;
- even : 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).
- 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 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.
What are the different methods of determining cyclical component of a time series? For the model , give the periodogram analysis.
Solution
Methods for the cyclical component. These are the residual method (, 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. , , where is random with mean 0 and variance , and is an unknown period.
Periodogram. For a trial period , compute The plot of (or of ) against is the periodogram.
Trial period equal to the true period (). Suppose is a multiple of , and use Then where and each have mean 0 and variance . Hence
Trial period different from . The sums and stay bounded as grows: they are sums of oscillating terms that cancel out. Divided by , they tend to 0. So the contribution of the periodic term tends to 0, and More precisely, the periodic term contributes about which is 1 times at and falls off rapidly as moves away.
Conclusion. The periodogram is nearly flat at the low level , with a sharp peak at of height about . So:
- the position of the peak estimates the period ;
- estimates the amplitude;
- the phase is given by .
The test of significance compares the peak with the noise level. For example, Fisher’s statistic is the largest divided by the sum of all ordinates at the Fourier frequencies ; for pure noise each ordinate 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).
Define a time series and its main components. Explain the terms (i) stationarity and (ii) invertibility in time series.
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 depends only on the lag . (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 , the condition is: Example: AR(1), , is stationary if and only if . Then , a convergent MA().
(ii) Invertibility. A series is invertible if the current shock can be expressed as a convergent linear combination of present and past observations: Equivalently, has an AR() representation in its past. For an ARMA model the condition is: Example: MA(1), , is invertible if and only if . Then
Why invertibility matters. The MA(1) models with parameters and 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).
Briefly discuss the following in time series analysis: (i) Determination of trend (ii) Forecasting.
Solution
(i) Determination of trend.
- 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.
- 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.
- Method of moving averages. Average consecutive values successively, with 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.
- Method of least squares (curve fitting). Fit a mathematical curve, such as a straight line , a parabola, an exponential , 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: 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 , 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).
Explain Box-Jenkins methodology in analyzing a time series.
Solution
The Box–Jenkins methodology analyses a time series by fitting an ARIMA model, through an iterative cycle of four steps.
- Identification.
- Plot the series. Stabilise the variance by a transformation if needed.
- Difference until the series is stationary: this gives , plus the seasonal if there is seasonality.
- From the sample ACF and PACF choose tentative and :
- AR(): the PACF cuts off after lag and the ACF tails off;
- MA(): the ACF cuts off after lag and the PACF tails off;
- ARMA: both tail off.
- Estimation. Estimate the parameters , and by maximum likelihood or least squares. Check their significance, stationarity and invertibility.
- Diagnostic checking. The residuals should be white noise: check the residual ACF and the Ljung–Box test. Compare alternative models by AIC or BIC, and try over-fitting. If the model is inadequate, return to step 1.
- Forecasting. Compute forecasts and prediction intervals from the -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.
What is a stationary time series? How do you test the stationary of a given time series?
Solution
Stationary time series. A series is stationary (in the weak or second-order sense) if:
- is constant;
- is constant and finite;
- depends only on the lag .
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 against . 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 for
- For a stationary series, dies out quickly; for white noise, all lie within .
- For a non-stationary series, starts near 1 and declines very slowly (almost linearly).
- The Box–Pierce statistic (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 and test (unit root, non-stationary) against (stationary), using and the Dickey–Fuller critical values (not the table).
- Augmented DF: add lagged differences to remove serial correlation from .
- 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.
What is meant by a time series? Explain the difference between the seasonal and cyclical variations in a time series.
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: at times . 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.
Explain the use of ARIMA models in forecasting.
Solution
ARIMA models. An ARIMA model for is where differences the series times to make it stationary, is the AR polynomial of degree , is the MA polynomial of degree , and is white noise. With the seasonal operators , and added, it becomes the seasonal ARIMA model.
Use in forecasting.
- Build the model by the Box–Jenkins cycle: identification (differencing; ACF and PACF), estimation, and diagnostic checking.
- Compute forecasts. The minimum mean-square-error forecast of made at time is the conditional expectation . Writing the model as a difference equation, it is computed recursively:
- replace past ’s by their observed values and future ’s by their forecasts;
- replace past shocks by the residuals and future shocks by 0.
- Prediction intervals. With the -weights from , so a 95% interval is .
- Updating. When a new value arrives, where is the latest one-step error.
Example. For the random walk with drift, ARIMA: , with error variance . For ARIMA 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.
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.
Solution
Why the multiplicative model is more commonly used. In the additive model , the seasonal and cyclical effects are fixed amounts, the same whatever the level of the series. In the multiplicative model , they are proportional to the trend. The multiplicative model is preferred for these reasons:
- 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.
- 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.
- Indices are convenient. , and become unit-free indices (percentages of the trend), so seasonal patterns of different series, or of different periods, can be compared directly.
- 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.
- 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 .
- Computing seasonal indices: in the ratio-to-moving-average method, ; averaging these ratios by month gives the seasonal indices.
- Isolating cycles and smoothing irregularities: a short moving average (3 or 5 months) of removes 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.
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?
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, This gives:
- Q1:
- Q2:
- Q3:
- Q4:
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.
- 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.
- 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.
- Irregular influences. Strikes, floods or exceptional years can distort the averages. The median or a modified mean reduces, but does not remove, this.
- Calendar effects. Months differ in their number of working days and trading days, and moving holidays need separate adjustment.
- Model assumption. The indices assume a stable multiplicative (or additive) relation; if the swings are not proportional to the level, the indices mislead.
- 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.
Elucidate the role of random components in a time series. Discuss the variate difference method in this connection.
Solution
Role of random components. The random (irregular) component 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 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 , where is smooth (locally a polynomial) and the are uncorrelated with variance .
- Differencing times removes a polynomial trend of degree less than .
- For the random part, , so
Procedure.
- Compute the successive differences of the series.
- For each order , compute the variance of the differences, and the reduced variance (divisors 2, 6, 20, 70, …).
- These reduced variances decrease as increases, until they become stable. The stable value estimates . The order 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 -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)σ².
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.
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.
- 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 .
- Divide each original value by its moving average and multiply by 100:
- 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 .
- Adjust the monthly averages so that they total 1200 (multiply each by ). 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.
Explain, briefly, a method for studying the random component in a time series, stating the assumptions made,.
Solution
To study the random (irregular) component, we can use the variate difference method, supplemented by tests of randomness on the residual series.
Assumptions.
- The series is : a smooth systematic part (trend and slow cycles), which can be represented locally by a polynomial of low degree, plus a random part .
- The random terms are uncorrelated with one another, with mean 0 and constant variance .
- The random terms are independent of the systematic part.
Method.
- Form the successive differences . Differencing times eliminates a polynomial of degree less than .
- The random part of the -th difference has variance
- Compute the sample variance of the -th differences, and the reduced variance for
- 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 , the variance of the random component.
Testing the randomness of the residuals. After removing , and , the residuals should behave like a random series. We can check this with:
- the correlogram (all within );
- the runs test (number of runs above and below the median);
- the turning-points test: a random series of values has, on average, turning points, with variance .
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.
Specify the additive and multiplicative models for a time series. How are seasonal indices constructed?
Solution
Additive model. Each component is an absolute quantity in the units of ; the components are independent; the seasonal effects sum to zero over a year (). It is suitable when the size of the seasonal swings does not change with the level of the series.
Multiplicative model. is in the units of , while , and 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.
- Method of simple averages. Average each month over the years. Seasonal index . (Under the additive model, use seasonal deviations: monthly average minus grand average.) Suitable when there is no trend.
- Ratio-to-trend method. Fit a least-squares trend to the monthly data. Express each value as a percentage of its trend value, . Average the percentages for each month (median or modified mean). Adjust them to total 1200.
- Ratio-to-moving-average method. Compute the 12-month centred moving average (which approximates ). Express each value as a percentage of it, . Average by month to remove , and adjust to 1200. This is the most commonly used method.
- 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.
Write a note on variate difference method.
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. , where is a smooth function of time (trend and slow cycles) that can be approximated locally by a polynomial, and is a random component: uncorrelated, mean 0, variance .
Principle.
- A polynomial of degree is eliminated by differences.
- Differencing the random part increases its variance in a known way: The divisors for are
Procedure.
- Compute (the variance of the series) and (the variances of the 1st, 2nd, … differences).
- Compute .
- As increases, decreases, until the smooth part has been removed. From then on, it remains roughly constant.
- Accept the first for which and agree within sampling error. Their common value estimates , and 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 , there is no systematic part); helps choose the degree of the trend; and, by correlating the -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.
Write a note on short term economic forecasting.
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.
- 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.
- 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.
- 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.
- Surveys of anticipations. Surveys of investment intentions, consumer confidence, business expectations and sales forecasts by managers.
- 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.
Discuss any two important procedures to determine the trend component in a time series.
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 equal to the period of the cycles or seasonal fluctuations in the data.
- Compute the averages of successive groups of values, moving one period at a time, and place each at the centre of its group.
- For even , 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 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 ; curved trends are distorted; it is affected by extreme values.
2. Method of least squares. Fit a mathematical curve to the data by minimising .
- Straight line : With the origin at the middle (): and .
- Second-degree parabola : three normal equations, in , and .
- Exponential : fit a straight line to .
- 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.
Write a note on short-term forecasting.
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.
- Naive and moving-average methods: use the last value, or the average of the last few values (adjusted for seasonality), as the forecast.
- Exponential smoothing: , with ; Holt’s method adds a trend and Holt–Winters a seasonal factor. These are cheap, adaptive and widely used for many items at once.
- Decomposition: forecast = trend × seasonal index × cyclical factor (multiplicative model).
- Box–Jenkins (ARIMA) models: fitted stochastic models giving minimum mean-square-error forecasts, with prediction intervals. Seasonal ARIMA handles seasonality.
- Regression and econometric models: relate the variable to its determinants, including leading indicators.
- 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.
More on Quantitative Economics and Official Statistics
- All Statistics PYQ solutions, topic by topic
- Quantitative Economics and Official Statistics topic-wise PYQs (questions only, for practice)
- Statistics PYQ analysis: which units carry the marks year by year
- Year-wise question papers
- Statistics booklist
Questions: UPSC Civil Services (Main) Examination, Statistics Paper II, 1995–2026. Solutions: Optional Province. Found an error? Tell us.

