- Introduced by
- Hoeting, Madigan, Raftery, Volinsky (BMA); Raftery et al. for dynamic/time-series extensions
- Year
- 1999–2010
- Type
- Bayesian ensemble / model combination
- Family
- Bayesian / computational
What does it do?
Time series Bayesian model averaging (TS-BMA) combines forecasts from an ensemble of time series models, such as AR, VAR, or state-space specifications, weighting each model by its posterior probability given the observed data.
Instead of selecting one model and ignoring uncertainty about which model is correct, TS-BMA integrates over that uncertainty, so the forecast distribution reflects both parameter uncertainty and model uncertainty. Its advantage over a single model depends on the candidate set containing plausible specifications.
The intuition behind the method
No single time series model is known in advance to be the true data-generating process. TS-BMA treats the choice of model as uncertain and gives each candidate a weight that reflects how well it explains the past data, as measured by its marginal likelihood. Forecasts are weighted averages across the candidates, so a model that explains the data well contributes more to the result. In the dynamic version, these weights are updated as new observations arrive, so the favoured model can change over time.
History
Bayesian model averaging was set out as a practical workflow in the 1999 Statistical Science tutorial by Hoeting, Madigan, Raftery, and Volinsky. Dynamic Model Averaging was introduced by Raftery, Kárný, and Ettler in 2010; the cited paper applies it to predicting the output strip thickness of a cold rolling mill, where the output is measured with a time delay.
When to use it
Consider TS-BMA when you forecast a continuous univariate or multivariate time series and have real uncertainty about which specification is appropriate, for example when several plausible model classes are available and none is clearly dominant. It is most useful when the predictive distribution matters and choosing one model would hide that uncertainty. Use the dynamic version when the best model is expected to change over time. Avoid TS-BMA when the candidate set is poorly motivated or very large relative to the sample length, when all candidates share the same misspecification, or when the goal is a single interpretable structural model.
Limitations and considerations
- Computational cost grows with the number of candidate models, and exact averaging over a large model space may be intractable, so pruning or sampling approximations are often needed.
- Weights are only as good as the candidate set: if the true process is not among the candidates, the average is taken over misspecified models.
- Marginal likelihoods depend on the prior hyperparameters of each candidate, so model rankings on a short sample can reflect prior choices.
- Because the ensemble may combine structurally different specifications, the contribution of each model is harder to interpret than the coefficients of a single fitted model.
- Each candidate has its own likelihood and prior, and the weights assume these are correctly specified. A misspecified error distribution, or a within-model structure such as stationarity that the data do not satisfy, distorts the marginal likelihoods and therefore the weights.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Posterior model weights have a probabilistic interpretation, unlike ad hoc equal-weight or heuristic ensemble weights.
- The predictive distribution includes across-model uncertainty as well as within-model parameter uncertainty, which can improve interval calibration relative to one fitted model.
- In the dynamic form (DMA), the preferred model can change over time through the forgetting mechanism, without the candidate models being refitted from scratch.
- When one candidate clearly dominates, the cited cold rolling mill study reports that DMA converged quickly to it and the cost of model uncertainty was small.
- Static BMA is the recursive special case of DMA when models and parameters do not change, so both share one framework.
Applications
- Prediction of industrial process variables with measurement delays, such as strip thickness in a cold rolling mill (Raftery, Kárný, and Ettler, 2010).
- Recovery of time-varying regression parameters and model specifications in simulated series, as reported in the same study.
- Macroeconomic forecasting, where several plausible specifications such as AR and VAR models are candidates for averaging.
How it works
How it works
Define a set of candidate time series models, for example AR(1) through AR(p), ARIMA variants, or structural time series specifications. Each candidate has its own parameters and prior distribution. The set should be chosen on substantive grounds, because the averaged forecast can only draw on models that are included.
Each model's posterior probability is proportional to its marginal likelihood (the probability of the data integrated over its parameters) times its prior model probability. Models that explain the observed series better receive more weight. The denominator normalises the weights so that they sum to one.
Formula
p(M_k \mid y) = \frac{p(y \mid M_k)\,p(M_k)}{\sum_j p(y \mid M_j)\,p(M_j)}The marginal likelihood for model M_k integrates the likelihood over its parameter space, weighted by the prior on those parameters. Because it averages over the prior, it is sensitive to prior hyperparameter choices and penalises model complexity. For simple linear Gaussian models it has an analytic form; for more complex specifications it is approximated, for example by a Laplace approximation, BIC, or MCMC-based methods.
Formula
p(y \mid M_k) = \int p(y \mid \theta_k, M_k)\,p(\theta_k \mid M_k)\,d\theta_k
The BMA predictive distribution for a future observation is the weighted average of each model's predictive distribution, with weights given by the posterior model probabilities. This yields a single forecast distribution that reflects both within-model parameter uncertainty and across-model uncertainty.
Formula
p(\tilde{y} \mid y) = \sum_k p(\tilde{y} \mid M_k, y)\,p(M_k \mid y)In the dynamic extension, Dynamic Model Averaging (DMA), the parameters of each model are described by a state-space model, so they can change over time, and the identity of the correct model is described by a Markov chain, so the preferred model can switch. Both components are specified in terms of forgetting, which controls how quickly the parameters and the model weights can change; this keeps the representation parsimonious. When models and parameters do not change, DMA reduces to recursive standard BMA.
Common pitfalls
- Extracting only the highest-weight model and discarding the rest removes the averaging step that gives BMA its advantage.
- Building the model space without substantive motivation produces posterior model probabilities that look precise but mainly reflect arbitrary inclusion choices.
- Ignoring the sensitivity of marginal likelihoods to prior hyperparameters, which can decide model rankings when the sample is short.
- Applying static BMA to a nonstationary series, where weights estimated on the full history may be stale for recent data; the dynamic version is designed for this case.
- Reading posterior weights as evidence of causal correctness: the weights summarise predictive support under the chosen priors and candidate set, and a high-weight model may still be misspecified.
Frequently asked questions
How is TS-BMA different from simple model averaging or ensemble methods?
TS-BMA weights models by their Bayesian posterior probability — which depends on both the marginal likelihood and a prior over models — so the weights have a formal probabilistic interpretation. Simple equal-weighted or OLS-stacked ensembles lack this foundation and do not propagate model-selection uncertainty into the forecast distribution.
What is the difference between BMA and Dynamic Model Averaging?
Static BMA uses fixed posterior model weights estimated from the historical series. Dynamic Model Averaging (DMA) updates model weights and parameters at each time step using a forgetting mechanism, so the dominant model can change over time. DMA is the more natural choice when the best model is expected to shift; static BMA is the special case in which models and parameters do not change.
How do I handle a very large model space?
Exact BMA over all 2^p possible models is infeasible for large p when the candidates are defined by including or excluding each of p variables. For lag-order candidate sets such as AR(1) through AR(p), there are only p models and exact averaging is straightforward. For larger spaces, practical strategies include Occam's window pruning (drop models with very low posterior weight), Markov chain Monte Carlo model composition (MC3) to sample high-probability models, or restricting the space to theoretically motivated candidates.
Does BMA always outperform the best single model?
No guarantee. Averaging hedges against relying on one specification, and when the best model is clearly identified its weight approaches one, so performance is close to that model. However, if the candidate set omits the true process or all candidates are similarly misspecified, averaging can underperform a well-chosen single model.
How are posterior model probabilities affected by the sample size?
With more data the marginal likelihoods become more discriminating and the posterior concentrates on better-fitting models. In short series, prior model probabilities and prior hyperparameters on parameters can strongly influence the rankings, making sensitivity analysis essential.
Related methods
Sources
Hoeting, J. A., Madigan, D., Raftery, A. E., & Volinsky, C. T. (1999). Bayesian model averaging: A tutorial. Statistical Science, 14(4), 382–401.
Open publication referenceRaftery, A. E., Kárný, M., & Ettler, P. (2010). Online prediction under model uncertainty via dynamic model averaging: Application to a cold rolling mill. Technometrics, 52(1), 52–66.
Open DOI reference