Time Series Forecasting

Chapter 6
ARIMA and Seasonal ARIMA Modeling

Post Graduate Program in Business Analytics
Time Series Forecasting   •   Post Graduate

ARIMA and Seasonal ARIMA Modeling

Introduction

Autoregressive integrated moving-average (ARIMA) models are among the most influential frameworks for forecasting a univariate time series. Their strength lies not in describing every possible source of variation, but in representing temporal dependence parsimoniously: current observations may depend on previous observations, previous forecast errors, and systematic changes needed to achieve stationarity.

The Box–Jenkins methodology provides a disciplined cycle of identification, estimation, diagnostic checking, and forecasting. Although modern machine-learning methods are valuable, ARIMA remains important because it is interpretable, statistically grounded, effective with moderate data volumes, and capable of producing analytically derived prediction intervals.

This chapter develops AR, MA, ARMA, ARIMA, and seasonal ARIMA models; explains stationarity and differencing; demonstrates model selection and residual diagnostics; and examines implementation, uncertainty, stability, and practical governance.

Learning Objectives

After studying this chapter, you should be able to:

  1. Explain the roles of autoregressive, moving-average, differencing, and seasonal components.
  2. Apply the Box–Jenkins process to a forecasting problem.
  3. Identify plausible ARIMA and SARIMA orders using plots, statistical tests, and domain knowledge.
  4. Interpret estimated coefficients and assess parameter significance and stability.
  5. Diagnose residual autocorrelation, non-constant variance, non-normality, and model inadequacy.
  6. Produce and interpret point forecasts and prediction intervals.
  7. Compare models using parsimony, information criteria, out-of-sample performance, and business consequences.

1. Foundations: Stationarity and Dependence

A time series is a sequence of observations indexed by time, written as yt, where t = 1,2,...,T. A weakly stationary process has a constant mean, constant finite variance, and autocovariance that depends only on the lag, not on calendar time. Formally, if γk = Cov(yt,yt-k), then weak stationarity requires the mean and variance to be constant and γk to be invariant with respect to t.

Stationarity is useful because it makes relationships estimated from historical data more defensible for future periods. Non-stationarity may arise from trend, changing seasonal levels, structural breaks, or stochastic trends. A series with a unit root can wander permanently after a shock; differencing is often used to remove this behavior.

The lag operator B is defined by Byt = yt-1. The first-difference operator is:

∆yt = yt − yt−1 = (1 − B)yt

A second difference is ∆2yt = (1−B)2yt. Differencing must be used judiciously: too little leaves non-stationarity, while too much creates unnecessary moving-average dependence and may distort interpretation.

The autocorrelation function (ACF) at lag k is:

ρk = γk / γ0

where γ0 is the variance and γk is the lag-k autocovariance. The partial autocorrelation function (PACF) measures the association between yt and yt-k after controlling for intermediate lags. ACF and PACF are identification aids, not mechanical decision rules.

2. The AR, MA, and ARMA Building Blocks

2.1 Autoregressive models

An AR(p) model expresses the current value as a linear function of its previous p values plus an innovation:

yt = c + φ1yt−1 + φ2yt−2 + ··· + φpyt−p + εt

Here, c is an intercept, φi are autoregressive coefficients, and εt is a zero-mean innovation with variance σ2_ε. In a stationary AR model, the roots of 1 − φ1B − ··· − φpBp = 0 must lie outside the unit circle. For an AR(1), stationarity requires |φ1| < 1.

For an AR(1) with a constant, the long-run mean is μ = c/(1−φ1), provided |φ1|<1. Thus, the intercept is not generally the unconditional mean.

2.2 Moving-average models

An MA(q) model represents the current observation using current and past innovations:

yt = μ + εt + θ1εt−1 + θ2εt−2 + ··· + θqεt−q

The innovations are unobserved shocks. An MA model is stationary for finite coefficients, but forecasting requires estimating or reconstructing past errors. Invertibility is normally imposed so that the model has a unique useful representation. The roots of 1 + θ1B + ··· + θqBq = 0 should lie outside the unit circle.

2.3 ARMA models

For a stationary series, an ARMA(p,q) model combines both structures:

φ(B)(yt − μ) = θ(B)εt

where φ(B)=1−φ1B−···−φpBp and θ(B)=1+θ1B+···+θqBq. Sign conventions for MA coefficients vary across software, so analysts must inspect documentation before interpreting signs.

A useful identification heuristic is that the PACF often cuts off after lag p for a pure AR process, while the ACF often cuts off after lag q for a pure MA process. For an ARMA process, both commonly tail off. Sampling variation, near-unit roots, seasonality, and model misspecification make these patterns suggestive rather than conclusive.

3. ARIMA: Modeling Non-Stationary Series

An ARIMA(p,d,q) model applies an ARMA model to the series after differencing d times:

φ(B)(1 − B)d yt = c + θ(B)εt

The order p is the autoregressive order, d is the non-seasonal differencing order, and q is the moving-average order. The equation assumes that the differenced series is adequately represented by a stationary and invertible ARMA process with innovations that are uncorrelated over time.

A model with d=1 forecasts changes and then reconstructs levels. For example, if a forecast of the difference is ∆ŷT+1=4, then the level forecast is ŷT+1=yT+4. For multiple horizons, forecasts are recursively accumulated. If the original series is measured in units such as sales, the differenced series is measured in sales per period; this distinction matters when communicating results.

Determining the differencing order

Analysts should combine:

  • A time plot and domain knowledge about trend and interventions.
  • ACF behavior: a very slow decay may indicate non-stationarity.
  • Unit-root tests such as augmented Dickey–Fuller (ADF).
  • Stationarity tests such as KPSS, whose null hypothesis differs from ADF.
  • Forecast-validation performance after candidate transformations.

No test is definitive in finite samples. Structural breaks can make a stationary process appear non-stationary, and seasonal patterns can create misleading persistence. Logarithms or Box–Cox transformations may be appropriate when variability increases with the level. A logarithm requires strictly positive observations; zeros or negative values require another justified treatment.

4. Seasonal ARIMA

Seasonality is dependence that recurs at a fixed period s, such as s=12 for monthly data with annual seasonality or s=7 for daily data with a weekly pattern. SARIMA models include seasonal autoregressive order P, seasonal differencing D, and seasonal moving-average order Q. Their notation is ARIMA(p,d,q)(P,D,Q_s):

φ(B)Φ(Bs)(1 − B)d(1 − Bs)D yt = c + θ(B)Θ(Bs)εt

The seasonal polynomials are Φ(Bs)=1−Φ1Bs−···−ΦPBPs and Θ(Bs)=1+Θ1Bs+···+ΘQBQs. Seasonal differencing is:

∆s yt = yt − yt−s = (1 − Bs)yt

A model with both ordinary and seasonal differencing applies their product. For example, monthly data with d=1 and D=1 uses (1−B)(1−B12)yt. Expanding gives yt−yt−1−yt−12+yt−13. This demonstrates that combined differencing removes both local changes and recurring annual level differences, but can also over-difference if used without evidence.

Seasonal ACF spikes at lags s,2s,... may suggest seasonal structure. Seasonal PACF spikes can suggest seasonal AR terms. Again, plots should be interpreted with institutional knowledge, calendar effects, and validation.

5. The Box–Jenkins Process

The Box–Jenkins cycle is iterative rather than a one-time sequence.

Box Jenkins iterative forecasting process Identify Estimate Diagnose Forecast candidate structureinadequate residuals
Box Jenkins iterative forecasting process
Figure: Box Jenkins iterative forecasting process

Figure: The Box–Jenkins process is iterative; diagnostic findings can require re-identification.

Identification

Begin by defining the forecasting target, frequency, horizon, information cutoff, and treatment of missing values and outliers. Plot the series, inspect seasonal patterns, assess transformations, and use ACF/PACF and tests to propose a small set of candidate orders. Domain constraints are essential: a weekly business series may have fewer than seven usable observations per week because of holidays, while a monthly series may contain reporting changes.

Estimation

Parameters are commonly estimated by maximum likelihood or conditional sum of squares. Under regularity conditions, maximum likelihood estimates are approximately normally distributed in sufficiently large samples. Standard errors can be unreliable in small samples, near unit roots, or under model misspecification. Optimizers may converge to local or boundary solutions; convergence alone does not establish model validity.

Diagnostic checking

A well-specified model should leave residuals that are approximately white noise: mean near zero, stable variance, and no systematic autocorrelation. The Ljung–Box statistic for a set of m lags is:

Q = n(n+2) ∑k=1m rk2/(n−k)

where n is the residual sample size and rk is the residual autocorrelation at lag k. Under approximate conditions, Q is compared with a chi-square distribution, often with degrees of freedom adjusted for estimated parameters. A large p-value does not prove white noise; it indicates insufficient evidence against the null of no autocorrelation at the tested lags.

Inspect residual ACF and PACF, residual time plots, residual-versus-fitted plots, and squared-residual ACF when volatility clustering is plausible. Normality is not required for unbiased point forecasts, but it affects the accuracy of conventional prediction intervals, particularly in small samples and in the presence of extreme observations.

Forecasting and validation

For an estimated model, the h-step forecast is the conditional expectation:

ŷT+h|T = E(yT+h | y1,...,yT)

A prediction interval combines uncertainty about future innovations and, in principle, parameter estimation. Under a correctly specified Gaussian model, a common approximate interval is:

ŷT+h|T ± z1−α/2 √(Var(yT+h−ŷT+h|T|IT))

Here, α is the error probability, z1−α/2 is the standard-normal quantile, and IT denotes information available through time T. The interval widens with horizon when forecast-error variance accumulates. If a logarithmic transformation was used, back-transformation requires care: simply exponentiating a forecast of log values estimates a median on the original scale, not generally the mean. A bias correction may be required when the business objective is expected level.

Use rolling-origin or expanding-window validation rather than a random train-test split. Time order must be preserved. Performance measures include MAE, RMSE, and MASE; the preferred measure should reflect the cost of forecast errors. Compare against naïve benchmarks, including seasonal naïve forecasts when seasonality exists.

6. Model Selection and Interpretation

AIC and BIC reward fit but penalize complexity. In common likelihood notation:

AIC = −2 log(L) + 2k
BIC = −2 log(L) + k log(n)

where L is the maximized likelihood, k is the number of estimated parameters, and n is the effective sample size. Lower values are preferred among models fitted to the same target and comparable data. Information criteria are not substitutes for holdout validation or residual diagnostics.

Parsimony means preferring the simplest model that adequately represents the data. Extra terms can reduce in-sample error while increasing estimation variance, instability, and maintenance cost. A coefficient’s statistical significance is informative but not decisive: a small operational effect may be valuable, and correlated regressors or near-boundary parameters can make standard tests fragile.

For stability, inspect AR and seasonal AR roots, coefficient magnitudes, confidence intervals, and estimates across rolling windows. A model that changes dramatically after adding recent observations may signal a structural break, changing customer behavior, an intervention, or insufficient data. Such cases may require intervention variables, time-varying models, state-space methods, or a segmented analysis rather than a larger ARIMA order.

7. Worked Illustrative Example

Suppose a retailer records monthly unit sales. The plot shows an upward trend and recurring December peaks. A logarithmic transformation is considered because variability grows with sales. After transformation, a seasonal difference at lag 12 and a first ordinary difference produce a series whose ACF no longer decays slowly. Candidate models include ARIMA(0,1,1)(0,1,1)_12, ARIMA(1,1,1)(0,1,1)_12, and ARIMA(0,1,1)(1,1,0)_12.

The analyst estimates all three models using the same training period. The first model has the lowest BIC, but its residual ACF shows a significant lag-2 spike. The second model has slightly higher BIC, no meaningful residual autocorrelation at the selected lags, stable coefficients, and better rolling-origin MAE. The third model has a seasonal AR estimate close to the stability boundary and produces unusually wide intervals.

The second model is selected, not because it has the most terms, but because it meets four conditions: adequate residual whiteness, stable and interpretable parameters, competitive out-of-sample performance, and reasonable uncertainty. Forecasts are exponentiated for reporting, with a documented explanation of whether the reported point forecast is a median or bias-adjusted expected level. The forecast is benchmarked against the seasonal naïve forecast, and the sales team receives both a central forecast and a prediction interval.

This example illustrates an important principle: model selection is a decision involving statistical adequacy and operational usefulness, not merely the smallest in-sample information criterion.

8. Applied Case: Illustrative Electricity-Demand Forecasting

Background and problem

A regional utility must forecast hourly demand for the next 24 hours to schedule generation and purchase electricity. Demand exhibits daily and weekly patterns, weather effects, holidays, and occasional outages. This is an illustrative case, not a report of a specific utility.

Analysis

The forecasting target is hourly demand in megawatt-hours. Analysts separate a training period from the final eight weeks for rolling evaluation. They identify daily seasonality at s=24 and weekly behavior at s=168. A univariate SARIMA model can represent one seasonal cycle well, but it may not adequately capture both daily and weekly dependence. Therefore, the team evaluates a SARIMA benchmark alongside dynamic regression with temperature, holiday indicators, and selected lagged errors.

Residual plots from a daily seasonal model reveal autocorrelation at weekly lags. Adding a weekly seasonal structure increases parameter count substantially and creates estimation difficulties. The team instead uses a regression-with-ARIMA-errors model, retaining interpretable weather effects while allowing residual temporal dependence. Holidays and known outages are represented explicitly rather than allowing ARIMA terms to absorb their effects.

Solution and outcome

Rolling-origin results show that the ARIMA benchmark improves substantially over a naïve forecast but is inferior to the model with weather and calendar variables. Prediction intervals are calibrated by checking empirical coverage: a nominal 95% interval should contain approximately 95% of future observations over a sufficiently large evaluation sample, though sampling variation is expected. The utility uses the forecast distribution to plan reserve capacity rather than treating the point forecast as certain.

Learning points

  1. Seasonal patterns may occur at multiple frequencies.
  2. Exogenous drivers should be modeled when they are known at forecast time or forecast separately.
  3. Events such as outages should not be hidden inside residual dynamics.
  4. Operational decisions require uncertainty estimates, not only point forecasts.
  5. A sophisticated model must still outperform transparent benchmarks under time-ordered validation.

9. Limitations, Governance, and Contemporary Practice

ARIMA assumes that historical dependence provides useful information about the future. It can fail under regime changes, pandemics, new pricing policies, product launches, changing measurement systems, and long-lived nonlinear effects. It is also fundamentally univariate unless extended with regressors; it does not automatically understand causal relationships.

Forecast governance should document the data window, transformations, missing-data treatment, model orders, software version, random or optimization settings, diagnostics, validation design, and approval thresholds. Forecasts used for pricing, staffing, credit, energy, or public services should be monitored for systematic bias and unequal consequences across groups or locations. Although time-series forecasts may not use protected attributes, proxy effects and unequal data quality can still create disparate operational outcomes.

Modern implementations frequently use state-space formulations, automatic order search, ensembles, probabilistic forecasting, and hybrid ARIMA–machine-learning systems. Automatic selection is useful for scale but must be constrained by domain knowledge and validated against benchmarks. Machine learning can model nonlinearities, while ARIMA can provide a transparent residual structure. Hybridization should be justified by incremental forecast performance and maintenance value, not novelty.

Best practice is to:

  • establish a naïve and seasonal-naïve benchmark;
  • preserve temporal ordering in evaluation;
  • avoid leakage from future information;
  • use the smallest adequate model;
  • examine residuals at business-relevant lags;
  • monitor forecast bias and interval coverage after deployment;
  • investigate structural breaks rather than automatically increasing model order;
  • communicate assumptions and uncertainty to decision-makers.

Chapter Summary

ARIMA modeling applies autoregressive and moving-average dynamics to a stationary series, using differencing when the original series contains stochastic trend. SARIMA extends the framework with seasonal autoregressive, differencing, and moving-average components. The Box–Jenkins process involves identification, estimation, diagnostic checking, and forecasting, with iteration when residuals reveal inadequacy.

ACF and PACF support order identification, but they must be combined with stationarity tests, domain knowledge, information criteria, and time-ordered validation. A good model is parsimonious, stable, diagnostically adequate, and useful out of sample. Residual whiteness is necessary but does not guarantee good forecasts. Prediction intervals express accumulated innovation and parameter uncertainty and should be interpreted on the correct measurement scale. Finally, governance requires monitoring, documentation, benchmark comparison, and explicit attention to structural change and decision consequences.

Key Terms

Stationarity: A property in which key distributional features, including mean and variance, remain stable over time.

Autocovariance: Covariance between observations separated by a specified lag.

Autocorrelation function (ACF): Autocovariance standardized by the variance at each lag.

Partial autocorrelation function (PACF): Correlation at a lag after controlling for intermediate lags.

Lag operator: Operator B that shifts a series backward by one period.

Innovation: New, unpredictable information entering a time-series model.

AR model: Model expressing an observation as a function of its own previous values.

MA model: Model expressing an observation as a function of current and previous innovations.

ARMA model: Combination of autoregressive and moving-average components for stationary data.

ARIMA model: ARMA model applied after ordinary differencing.

Seasonality: Repeating dependence associated with a fixed calendar or operational period.

SARIMA model: ARIMA model containing seasonal AR, differencing, and MA components.

Unit root: A root on the unit circle associated with non-stationary stochastic behavior.

Invertibility: Condition supporting a unique, stable representation of an MA process.

Parsimony: Preference for the simplest model that adequately explains the data.

Ljung–Box test: Test of whether a group of residual autocorrelations is jointly zero.

Prediction interval: Range intended to contain a future observation with a stated probability.

Rolling-origin validation: Evaluation method that repeatedly trains on past data and tests on later data.

Structural break: Change in the data-generating process or its parameters.

Review Questions

Short Answer Questions

  1. What is the purpose of differencing in an ARIMA model?
  2. Distinguish between the ACF and PACF.
  3. What do the five orders in ARIMA(p,d,q)(P,D,Q_s) represent?
  4. Why is residual whiteness important after fitting an ARIMA model?
  5. Why should a seasonal naïve forecast be used as a benchmark?

Long Answer Questions

  1. Explain the Box–Jenkins process and describe how diagnostic results can lead to re-identification.
  2. Compare AR, MA, ARMA, ARIMA, and SARIMA models, including their assumptions and applications.
  3. Explain how AIC, BIC, residual diagnostics, and rolling-origin validation should be used together in model selection.
  4. Discuss the causes and consequences of over-differencing and under-differencing.
  5. Explain how forecast uncertainty arises and why prediction intervals generally widen with horizon.

Analytical / Application Questions

  1. A monthly sales series has a strong upward trend and spikes every December. Propose a systematic identification strategy, including transformations, differencing, seasonal period, and diagnostic checks.
  2. Two candidate models have similar MAE. Model A has lower BIC but residual autocorrelation at a business-critical lag; Model B has slightly higher BIC and white residuals. Which model would you recommend, and what additional evidence would you seek?
  3. A deployed forecast becomes consistently too low after a major pricing-policy change. Diagnose possible causes and propose a revised modeling and monitoring approach.

Multiple Choice Questions with Answers

Question 1

Which condition is required for a stationary AR(1) model with coefficient φ1?

A. φ1 = 1

B. |φ1| < 1

C. φ1 > 1

D. φ1 = 0

Correct Answer: B. |φ1| < 1

Question 2

In ARIMA(p,d,q), what does d denote?

A. The seasonal period

B. The number of autoregressive terms

C. The order of ordinary differencing

D. The number of forecast horizons

Correct Answer: C. The order of ordinary differencing

Question 3

For monthly data with annual seasonality, the usual seasonal period is:

A. 4

B. 7

C. 12

D. 52

Correct Answer: C. 12

Question 4

A slowly decaying ACF in the original series may indicate:

A. Perfect white noise

B. Possible non-stationarity

C. Guaranteed normality

D. Absence of seasonality

Correct Answer: B. Possible non-stationarity

Question 5

The Ljung–Box test is primarily used to assess whether:

A. Forecasts are unbiased in levels

B. Residual autocorrelations are jointly zero

C. AR roots are all real

D. The data contain no missing values

Correct Answer: B. Residual autocorrelations are jointly zero

Question 6

Which criterion generally imposes a stronger sample-size penalty for complexity than AIC?

A. BIC

B. MAE

C. RMSE

D. ACF

Correct Answer: A. BIC

Question 7

Why is a random train-test split inappropriate for ordinary time-series validation?

A. It always increases sample size

B. It can use future information to predict the past

C. It prevents calculation of MAE

D. It removes seasonality automatically

Correct Answer: B. It can use future information to predict the past

Question 8

In a seasonal difference with period s, the transformed value is:

A. yt + yt−s

B. yt − yt−1

C. yt − yt−s

D. yt/yt−s

Correct Answer: C. yt − yt−s

Question 9

What does parsimony mean in ARIMA model selection?

A. Selecting the model with the most parameters

B. Selecting the simplest adequate model

C. Ignoring residual diagnostics

D. Using only seasonal terms

Correct Answer: B. Selecting the simplest adequate model

Question 10

Why can exponentiating a forecast from a log-transformed model require adjustment?

A. Logs remove all uncertainty

B. The exponentiated conditional mean on the log scale is not generally the arithmetic mean on the original scale

C. Exponentiation changes the time index

D. It makes residuals autocorrelated by definition

Correct Answer: B. The exponentiated conditional mean on the log scale is not generally the arithmetic mean on the original scale

Time Series Forecasting
Chapter 6 of 15