Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Bayesian›Dynamic Metropolis-Hastings Algorithm
Bayesian methodsBayesian / computational

Dynamic Metropolis-Hastings Algorithm

Dynamic Metropolis-Hastings Algorithm for Time-Varying Models · Also known as: Dynamic MH, MH for state-space models, Metropolis-Hastings in dynamic models, time-varying parameter MH

The Dynamic Metropolis-Hastings (Dynamic MH) algorithm applies the Metropolis-Hastings MCMC sampler to Bayesian state-space and time-varying parameter models. At each time step, latent states or evolving parameters are updated via proposal-and-accept moves, yielding full posterior distributions over trajectories rather than single filtered estimates.

ScholarGate
  1. Bayesian methods
  2. v1
  3. 2 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Dynamic Metropolis-Hastings Algorithm
Dynamic Bayesian Inferen…Gibbs SamplingKalman FilterMetropolis-Hastings Algo…Particle Filter

When to use it

Use Dynamic MH when your state-space or time-varying parameter model is nonlinear or non-Gaussian, making the Kalman filter or its extensions inadequate. It is suitable for moderate-length time series where full posterior inference over latent trajectories is required. Prefer particle MCMC (PMCMC) or particle filters for very long series or real-time filtering. Do not use Dynamic MH when a linear-Gaussian model applies — the Kalman smoother is exact and far cheaper. Also avoid it when only point estimates are needed, since the computational cost of full MCMC is then unnecessary.

Strengths & limitations

Strengths
  • Handles nonlinear, non-Gaussian state-space models where analytic filters are unavailable.
  • Produces the full joint posterior over latent trajectories, not just filtered point estimates.
  • Flexible: the proposal can be tailored to the model structure (random walk, Laplace approximation, prior).
  • Can be combined with Gibbs steps for fixed parameters, making it a building block in complex hierarchical dynamic models.
  • Well-established theoretical guarantees on convergence under mild regularity conditions.
Limitations
  • Single-site MH updates on long time series mix slowly due to high serial correlation among states.
  • Proposal tuning is non-trivial; a poorly scaled proposal leads to very low acceptance rates or near-certain acceptance with tiny moves.
  • Computationally expensive relative to the Kalman smoother for linear-Gaussian models.
  • Block proposals for all time steps simultaneously can be difficult to design efficiently.

Frequently asked

How does Dynamic MH differ from the particle filter?

The particle filter is a sequential (online) algorithm that propagates a weighted set of particles forward in time, producing filtered distributions p(x_t | y_{1:t}). Dynamic MH is an offline MCMC sampler targeting the full smoothing posterior p(x_{1:T} | y_{1:T}). For full posterior inference over trajectories, Dynamic MH or particle MCMC is preferred; for real-time filtering, particle filters are used.

Why does single-site MH mix so slowly in dynamic models?

Latent states at adjacent time points are strongly correlated through the transition density. Updating one state at a time leaves neighbouring states fixed, so most proposals that improve one state worsen the fit to its neighbours, leading to high rejection rates and slow exploration. Block proposals or particle MCMC overcome this by moving all states jointly.

How should I tune the MH proposal?

A target acceptance rate of roughly 20–40% is a common heuristic for Gaussian random-walk proposals in moderate dimensions. Use adaptive MCMC during a warm-up phase to tune the proposal covariance automatically. For state-space models, a Laplace approximation to the local smoothing density is often a much better proposal than a random walk.

What is the relationship to particle MCMC?

Particle MCMC (Andrieu et al., 2010) uses a particle filter as a building block inside an MH step to propose the entire latent trajectory at once. This is essentially Dynamic MH with a sophisticated, high-dimensional proposal and greatly improves mixing for long time series.

Can Dynamic MH handle time-varying parameters rather than latent states?

Yes. Time-varying parameter models (e.g., regression coefficients that drift over time) are a special case of state-space models where the state is the parameter vector. Dynamic MH samples the full trajectory of parameters jointly with any hyperparameters governing their evolution.

Sources

  1. Hastings, W. K. (1970). Monte Carlo sampling methods using Markov chains and their applications. Biometrika, 57(1), 97–109. DOI: 10.1093/biomet/57.1.97 ↗
  2. Carlin, B. P., Polson, N. G., & Stoffer, D. S. (1992). A Monte Carlo approach to nonnormal and nonlinear state-space modeling. Journal of the American Statistical Association, 87(418), 493–500. DOI: 10.1080/01621459.1992.10475231 ↗

How to cite this page

ScholarGate. (2026, June 3). Dynamic Metropolis-Hastings Algorithm for Time-Varying Models. ScholarGate. https://scholargate.app/en/bayesian/dynamic-metropolis-hastings-algorithm

Related methods

Dynamic Bayesian InferenceGibbs SamplingKalman FilterMetropolis-Hastings AlgorithmParticle Filter

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Dynamic Bayesian InferenceBayesian↔ compare
  • Gibbs SamplingBayesian↔ compare
  • Kalman FilterBayesian↔ compare
  • Metropolis-Hastings AlgorithmBayesian↔ compare
  • Particle FilterBayesian↔ compare
Compare side by side →

Similar methods

Time series MCMCMetropolis-Hastings AlgorithmDynamic Sequential Monte CarloMarkov Chain Monte CarloDynamic Bayesian Hierarchical ModelMetropolis-Hastings with Missing DataMultilevel Metropolis-HastingsTime series Bayesian inference

Related reference concepts

Metropolis-Hastings AlgorithmBayesian Computation and MCMCMarkov Chain Monte CarloMarkov Chain Monte CarloHamiltonian Monte CarloGibbs Sampling

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Dynamic Metropolis-Hastings Algorithm (Dynamic Metropolis-Hastings Algorithm for Time-Varying Models). Retrieved 2026-07-21 from https://scholargate.app/en/bayesian/dynamic-metropolis-hastings-algorithm · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
W. K. Hastings (algorithm); applied to dynamic models by Carlin, Polson & Stoffer
Year
1970 (algorithm); 1992 (dynamic application)
Type
Bayesian MCMC sampler for dynamic models
DataType
time series, longitudinal, state-space data
Subfamily
Bayesian / computational
Related methods
Dynamic Bayesian InferenceGibbs SamplingKalman FilterMetropolis-Hastings AlgorithmParticle Filter
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account