Observation model
A linear signal is observed with Gaussian noise, whose standard deviation controls data uncertainty.
Estimating parameters and their uncertainty from data
MCMC parameter estimation produces a distribution of plausible parameter values, rather than only one best fit. The spread of the samples quantifies uncertainty.
The essential idea: sampling the posterior shows both which parameters fit the data and how certain those estimates are.
A linear signal is observed with Gaussian noise, whose standard deviation controls data uncertainty.
Metropolis moves through parameter space in proportion to how well each line explains the observations.
Compare chains as short as 50 and 200 steps with longer runs. The parameter trace reveals whether the chain has reached and explored its posterior region.
MCMC turns parameter fitting into uncertainty-aware inference by sampling the posterior distribution over model parameters.