- Introduced by
- Box & Jenkins (classical SARIMA); Bayesian extensions developed through Zellner, Geweke, and later MCMC-era researchers
- Year
- 1970s–1990s
- Type
- Bayesian time-series model
- Family
- Econometrics / time series
What does it do?
The Bayesian SARIMA model combines the classical Box-Jenkins Seasonal ARIMA framework with Bayesian inference for seasonal time-series data.
Instead of a single point estimate for each parameter, it yields a posterior distribution, and forecasts average over that distribution so that parameter uncertainty enters the predictive intervals. Prior information about the parameters can be stated explicitly in the analysis.
The intuition behind the method
Standard SARIMA fits a seasonal pattern into past data and extrapolates it, but treats the estimated parameters as if they were exact — ignoring the uncertainty in those estimates. Bayesian SARIMA treats every parameter as a random variable with a distribution. Prior beliefs about, say, how strong the seasonal component is can be incorporated before looking at the data. After observing the data the prior is updated into a posterior distribution. Forecasts then average over all plausible parameter values rather than committing to one, so prediction intervals naturally widen to reflect estimation uncertainty as well as noise.
History
The Box-Jenkins SARIMA framework was introduced in the 1970 monograph Time Series Analysis: Forecasting and Control; the fifth edition appeared in 2015. Bayesian treatments of econometric time-series models developed from the 1970s through the 1990s, drawing on early work in Bayesian econometrics. Practical use of MCMC for these models became much easier with later probabilistic programming platforms such as BUGS, JAGS, and Stan. The Bayesian SARIMA specification is best understood as a combination of the Box-Jenkins framework with Bayesian time-series methods rather than as a single originating work.
When to use it
Choose Bayesian SARIMA for a univariate, equally spaced series with a known seasonal period, such as monthly, quarterly, or daily data with weekly cycles, when the goal is a full predictive distribution rather than only point forecasts. It is most useful when the series is short and maximum-likelihood estimates of the seasonal terms are unstable, or when credible prior information exists for the seasonal coefficients or the error variance. It also suits formal comparison of candidate SARIMA orders through marginal likelihoods or WAIC. Do not use it for non-seasonal series, where a Bayesian ARIMA is sufficient, or for irregularly spaced data or several interacting series, where the related state-space and Bayesian VAR models are usually more appropriate. Avoid it when computing resources are tight or when no reasonable prior can be justified.
Limitations and considerations
- MCMC runtime grows with series length and with the number of seasonal parameters (P and Q), so fitting can be much slower than maximum-likelihood estimation of the same model.
- The posterior depends on the prior, especially for short series with several seasonal coefficients, where a poorly chosen prior can dominate the result.
- Stationarity checks and seasonal differencing decisions are still required before sampling; the prior does not replace them.
- Selecting the orders (p, d, q, P, D, Q) still relies on diagnostic judgement, and Bayes factors used for order comparison are sensitive to prior choice.
- Posterior summaries need convergence checks before interpretation, which adds a step that classical fitting does not require in the same form.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Predictive intervals average over the posterior, so parameter uncertainty adds to observation noise rather than being ignored as in plug-in SARIMA forecasts.
- Prior information about seasonal AR and MA coefficients or the error variance can be stated explicitly, which matters most when the series contains few complete seasonal cycles.
- Candidate SARIMA orders can be compared through marginal likelihoods or WAIC. Marginal likelihoods depend strongly on the prior, and WAIC is derived under an independence assumption that serial dependence in time series can violate, so comparisons should be interpreted with care.
- Posterior draws give direct probability statements about parameters and about future values, rather than only asymptotic approximations.
Applications
- Macroeconomic forecasting: quarterly GDP, industrial production, or inflation with seasonal adjustment uncertainty quantified.
- Retail and supply-chain demand forecasting across products with strong monthly or weekly seasonality.
- Energy load forecasting where prior knowledge about day-of-week and holiday effects can be encoded.
- Epidemiology: modelling seasonal disease incidence (influenza, respiratory illnesses) with prediction intervals for public-health planning.
- Tourism and hospitality: monthly visitor arrivals subject to calendar-driven seasonal patterns.
- Finance: modelling seasonal patterns in trading volumes; asset returns usually lack stable seasonal structure and are a poor target for this model.
How it works
How it works
The model extends ARIMA with seasonal autoregressive and moving-average polynomials of period s and a seasonal differencing order D. The notation SARIMA(p,d,q)(P,D,Q)s captures both non-seasonal and seasonal dynamics. The parameters are the non-seasonal and seasonal autoregressive and moving-average coefficients, together with the error variance. The expression above omits any constant or mean term, which may be included in practice, and the autoregressive and moving-average polynomials must satisfy stationarity and invertibility conditions for the model to be well defined.
Formula
\Phi_P(B^s)\phi_p(B)(1-B)^d(1-B^s)^D y_t = \Theta_Q(B^s)\theta_q(B)\varepsilon_t
Priors are placed on all parameters. AR and MA coefficients are often given normal or truncated-normal priors centred at zero, which expresses weak prior belief in large coefficients. The prior itself does not guarantee stationarity or invertibility; these conditions must be enforced separately, through parameter constraints or transformations. The error variance typically receives an inverse-gamma or half-Cauchy prior. Prior elicitation can draw on domain knowledge about seasonal amplitude or persistence.
The conditional likelihood evaluates the probability of observing each data point given past observations and the current parameter vector. Under Gaussian errors this collapses to a product of normal densities; non-Gaussian innovations require a more general likelihood.
Formula
L(\boldsymbol{\theta}|\mathbf{y}) \propto \prod_{t} p(y_t | y_{t-1},\ldots,\boldsymbol{\theta})Bayes' theorem combines the likelihood with the prior to yield the posterior distribution over all parameters. Closed-form posteriors are rarely available for SARIMA, so numerical methods are required.
Formula
p(\boldsymbol{\theta}|\mathbf{y}) \propto L(\boldsymbol{\theta}|\mathbf{y})\,p(\boldsymbol{\theta})Markov Chain Monte Carlo (MCMC) is used to draw samples from the posterior, typically by Gibbs sampling, Metropolis-Hastings, or Hamiltonian Monte Carlo as implemented in Stan; JAGS relies on Gibbs-type samplers. Convergence is checked with trace plots, R-hat statistics, and effective sample-size measures before posterior summaries are reported.
The predictive distribution for a future horizon h is obtained by integrating the SARIMA forecast over the posterior of the parameters. In practice, each MCMC draw yields one forecast path; averaging these paths gives the posterior predictive mean and quantile-based intervals that account for both model noise and parameter uncertainty.
Formula
p(y_{T+h}|\mathbf{y}) = \int p(y_{T+h}|\boldsymbol{\theta},\mathbf{y})\,p(\boldsymbol{\theta}|\mathbf{y})\,d\boldsymbol{\theta}Common pitfalls
- Using improper flat priors on MA parameters without enforcing invertibility, which can produce non-identified or improper posteriors.
- Ignoring convergence diagnostics: if R-hat values exceed 1.01 or trace plots show poor mixing, posterior summaries are unreliable.
- Confusing credible intervals with confidence intervals: a 95% credible interval contains the parameter with 95% posterior probability, given the model and the prior. It is not a frequentist coverage statement.
- Fitting without seasonal differencing when a clear seasonal unit root is present, which leaves non-stationary residuals and invalidates the posterior.
- Over-parameterising the model (high p, P, q, Q) with limited data; priors help but do not fully substitute for an adequate sample size.
Frequently asked questions
How do I choose the prior for the AR and MA coefficients?
A common starting point is a normal prior centred at zero with moderate spread, which expresses weak prior belief in large coefficients. Stationarity and invertibility must be enforced separately through parameter constraints or transformations, because the prior alone does not ensure them. If domain knowledge suggests persistent seasonality, that can be encoded as a prior centred on a value informed by that knowledge, and the choice should be justified. Sensitivity analysis, refitting with tighter and looser priors, should be reported.
How is the seasonal order s determined?
The period s is fixed by the data-collection frequency: s = 12 for monthly data, s = 4 for quarterly, s = 7 for daily data with weekly seasonality. It is set from the known periodicity rather than estimated from the data. Confirm it with a seasonal subseries plot or by inspecting autocorrelation spikes at multiples of s.
Can I use Bayesian SARIMA for multi-step forecasting?
Yes. Each posterior draw of the parameters generates a full trajectory of future values. The collection of trajectories constitutes the joint predictive distribution, from which the marginal distribution for any horizon can be read off. This reflects parameter uncertainty at every step, which plug-in forecasting does not.
What software can fit a Bayesian SARIMA model?
Stan (via RStan or PyStan) and JAGS are flexible options for custom priors and model structures. The bsts package in R implements Bayesian structural time-series models, which are related to but not identical with SARIMA specifications. Python's PyMC and NumPyro also support custom ARIMA-like specifications within a Bayesian framework.
When should I prefer Bayesian SARIMA over classical SARIMA?
Prefer the Bayesian version when the series is short, when genuine prior knowledge is available to incorporate, when full predictive distributions are needed rather than approximate normal intervals, or when comparing model orders formally via Bayes factors. For long series with weak priors, the likelihood often dominates the posterior, so results may be close to maximum-likelihood estimates, but this should be checked rather than assumed. Classical maximum-likelihood SARIMA is usually faster to fit.
Related methods
Sources
Box, G. E. P., Jenkins, G. M., Reinsel, G. C., & Ljung, G. M. (2015). Time Series Analysis: Forecasting and Control (5th ed.). Wiley.
ISBN: 978-1118675021Geweke, J., & Whiteman, C. (2006). Bayesian forecasting. In G. Elliott, C. W. J. Granger, & A. Timmermann (Eds.), Handbook of Economic Forecasting (Vol. 1, pp. 3–80). Elsevier.
Open publication reference