APR-BAY-006 // apr-v2-f32

Metropolis-Hastings MCMC Sampler

Seeded random-walk Metropolis-Hastings Markov chain sampler with Gelman-Rubin R-hat convergence diagnostics.

Metropolis-Hastings MCMC Sampler architecture poster

Runtime: Loading .apr...

Inference: --

Artifact Format
apr-v2-f32
Parameters
8-dim target posterior
Family
bayesian

CLI Execution & Inspection

$ apr run mcmc-metropolis --chains 4 --draws 10000 --seed 42
$ apr inspect mcmc-metropolis.apr --verify-sha256

Mathematical Formulation

Acceptance Probability

α(x,x′)=min(1,π(x′)q(x∣x′)π(x)q(x′∣x))

Numerical Contract

Multi-chain R-hat <= 1.01 and effective sample size ESS >= 1000 on reference bimodal benchmark.