fundamentals

The inverse problem

The agent never observes the hidden state directly; it observes a noisy function of it. Recovering x from y is therefore an inverse problem, and Bayesian inference solves it only when the posterior p(x | y) is well-defined. When the generator is non-injective, when the prior is improper, or when the noise is too tight relative to the grid, the inverse problem becomes ill-posed.

In this codebase

The diagnostic toolkit

When you suspect an inversion is ill-conditioned, reach for:

Diagnostic What it tells you
InferenceResult.kl_from_prior() Did the data move the belief at all?
InferenceResult.entropy() How concentrated is the posterior?
InferenceResult.credible_interval(0.95) Where is the mass?
core.diagnostics.calibration_curve Are credible intervals trustworthy across many trials?
core.diagnostics.posterior_predictive_check Do the agent’s replicates look like the data?

Pitfalls

See also