- Introduced by
- Raftery, Karny & Ettler
- Year
- 2010
- Type
- dynamic ensemble / model combination
- Family
- Bayesian / computational
What does it do?
Dynamic Bayesian Model Averaging (DMA) extends standard Bayesian model averaging to settings where the best predictive model may change over time.
It maintains a probability distribution over a set of competing models and updates that distribution sequentially as new observations arrive, allowing model weights to evolve rather than remaining fixed across the entire sample.
The intuition behind the method
Standard Bayesian model averaging asks: given all the data, which model mixture is best? DMA asks a different question: given what we know up to now, which model is most useful for predicting the next observation — and is that answer the same as it was last period? A forgetting factor lets older evidence count for less, so the algorithm can track structural change and shift weight toward whichever model fits the most recent data.
History
Bayesian model averaging as a framework for prediction under model uncertainty is discussed in a 1999 tutorial by Hoeting, Madigan, Raftery, and Volinsky. The dynamic extension, which lets model weights evolve through a forgetting-factor recursion, was introduced by Raftery, Karny, and Ettler (2010) for online prediction of output strip thickness in a cold rolling mill.
When to use it
Use DMA for sequential data where you have reason to think the best predictive model, or the set of relevant predictors, changes over time, for example a series with suspected structural breaks or regime shifts. It is a reasonable choice when you can specify a modest set of plausible candidate models, each able to produce a one-step-ahead predictive density, and when no single model can be assumed stable across the whole sample. In the 2010 cold rolling mill application, when only a small number of physically motivated models were considered and one was clearly best, the method quickly converged to that model and performed slightly better than it, so the cost of model uncertainty was small. The approach is more likely to pay off when competing specifications trade places over time. Do not use DMA as a substitute for standard BMA on cross-sectional data, where there is no ordering for the forgetting factor to act on. Avoid it when the candidate set cannot be enumerated or approximated computationally, and when a single stable, interpretable model is the goal rather than a combined forecast.
Limitations and considerations
- Both forgetting settings (the model-weight factor alpha and the parameter-level setting) must be specified by the user, typically on a validation window (see the FAQ).
- The model set must be specified in advance; models omitted from consideration can never be selected, and all results are conditional on that candidate set.
- Each candidate model must yield a one-step-ahead predictive density, so models that cannot produce one cannot be included.
- Model weights follow a Markov chain model specified through forgetting, and each model's parameters follow a state-space model; forecasts depend on how well these evolution assumptions describe the process.
- Computational cost grows with the number of candidate models, becoming impractical for very large sets without approximations.
- Interpretability is reduced compared to a single model, since the active specification shifts over time.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Lets model weights change over time through the forgetting recursion, so the forecast can follow structural change that a fixed-weight average would miss.
- Reduces to recursive standard BMA when alpha equals 1 and neither the models nor their parameters change, so the static case is nested within the method.
- Combines model uncertainty with parameter uncertainty, since each model's parameters can follow a state-space model within the same framework.
- Is described in the 2010 study as highly parsimonious, because both the parameter evolution and the change in model weights are specified in terms of forgetting.
- In simulated examples, the method recovered constant and time-varying regression parameters and model specifications. In the 2010 cold rolling mill application it predicted output strip thickness and, over a large model space, gave better predictions than the single best physically motivated model at the beginning of the process.
- Yields time-varying variable inclusion probabilities, indicating which predictors carry weight in each period.
Applications
- Industrial process control, such as predicting the output strip thickness of a cold rolling mill, the application reported in the 2010 study.
- Macroeconomic forecasting in settings where the relevance of predictors may shift over time.
- Financial time series with suspected changes in regime.
- Sensor or monitoring streams where measurement calibration may drift over time.
How it works
How it works
Define a finite set of candidate models, each representing a different specification (different predictors, lag orders, or parameter sets). Each model must be able to produce a one-step-ahead predictive density for the next observation given all past observations.
At each time step the algorithm carries posterior model probabilities from the previous period. These serve as the starting point for the current update and reflect which models have performed well so far.
Formula
\pi_{t-1}(k) = P(M_k \mid y_{1:t-1})Two forgetting mechanisms operate. Within each model, a parameter-level forgetting setting governs how quickly that model's state-space parameters are allowed to drift. Across models, a forgetting factor alpha discounts past model probabilities by raising them to the power alpha before normalising, so the model weights evolve over time. When alpha equals 1 the weights are not discounted; if the models and their parameters are also static, the scheme is recursive standard BMA. Smaller values of alpha allow faster adaptation to structural change, at the cost of noisier weights and greater uncertainty. Both settings should be chosen on validation data rather than from a fixed range.
Formula
\tilde{\pi}_t(k) \propto \pi_{t-1}(k)^{\alpha}, \quad 0 < \alpha \leq 1The discounted weights are multiplied by each model's predictive likelihood for the current observation and re-normalised. Models that predicted the current data point well receive higher weight going forward.
Formula
\pi_t(k) \propto \tilde{\pi}_t(k)\, p(y_t \mid y_{1:t-1}, M_k)The one-step-ahead forecast for y_t is a weighted average of the candidate models' predictive densities, with weights given by the discounted model probabilities from the forgetting step. These weights are computed from observations up to time t-1 only, before y_t is seen; the posterior weights after the likelihood update are used only once y_t has been observed. Point forecasts, predictive intervals, and variable inclusion probabilities are derived from this mixture.
Formula
p(y_t \mid y_{1:t-1}) = \sum_k \tilde{\pi}_t(k)\, p(y_t \mid y_{1:t-1}, M_k)Common pitfalls
- Choosing alpha too low causes the algorithm to forget too quickly, making forecasts noisy and erratic.
- Treating variable inclusion probabilities as stable regression coefficients when they are time-varying averages.
- Neglecting to check predictive calibration (e.g. probability integral transform tests) over the evaluation window.
- Assuming DMA guards against model misspecification: if all candidate models share the same structural flaw, averaging them does not correct it.
Frequently asked questions
How does DMA differ from standard Bayesian model averaging?
Standard BMA computes fixed model weights using all available data and does not allow those weights to change over time. DMA applies forgetting to the model weights, discounting older evidence so that the weight on each model can track changes in the data-generating process, and it lets each model's parameters evolve over time. When the models and parameters do not change and alpha equals 1, DMA reduces to recursive standard BMA, and in that case the two approaches give the same answer.
How do I choose the forgetting factor alpha?
Two settings must be chosen: the model-weight factor alpha and the parameter-level forgetting setting. A practical approach is to evaluate predictive log-scores on a hold-out or rolling validation window for a grid of values (e.g. alpha = 0.90, 0.95, 0.99, 1.00, with a similar grid for the parameter-level setting) and select the values that maximise average predictive accuracy. Alpha near 1 suits slow-changing or stationary processes; smaller values allow faster adaptation but introduce more variance.
What is the model set and how large can it be?
The model set is the collection of all candidate specifications the algorithm considers. If the candidates are all subsets of p potential predictors, the full set has 2^p members, and the computational cost grows rapidly with p. Larger problems therefore require approximations that restrict or sample the model space, rather than enumerating every model.
Does DMA handle parameter change within each model?
Yes, in the original formulation. The parameters of each model follow a state-space model, so they can drift over time, with a parameter-level forgetting setting controlling how quickly. The model weights evolve through a Markov chain model specified with forgetting. The set of candidate models is still fixed in advance.
Is DMA the same as dynamic model selection?
They are related but distinct. Dynamic model selection (DMS) assigns full weight to the single highest-probability model at each step, while DMA maintains a mixture over all models. DMS is simpler to interpret, whereas DMA spreads weight across models when several have similar probabilities.
Related methods
Sources
Raftery, A. E., Karny, 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 referenceHoeting, J. A., Madigan, D., Raftery, A. E., & Volinsky, C. T. (1999). Bayesian model averaging: A tutorial. Statistical Science, 14(4), 382-401.
Open publication reference