docs/chapters/ — per-chapter overviewsOne page per book chapter. Each page maps the book’s exposition to the
orchestrator scripts in chapters/chapter_<N>/ and to the library
components in src/active_inference/ they exercise.
The inspected PDF source spine has Chapters 1-14 and Appendices A-D. It has no
Chapter 15; that absence is checked by
uv run python scripts/validate_source_spine.py --require-pdf.
| File | Mirrors | Purpose |
|---|---|---|
chapter_01.md |
Book Ch. 1 — The Hypothesis-Testing Brain | Box scenario, three perspectives, Bayes’ theorem walk-through, inverse problem demos. |
chapter_02.md |
Book Ch. 2 — Hidden State Estimation | The full linear-Gaussian recipe + Examples 2.1–2.10. |
chapter_03.md |
Book Ch. 3 — Combining Learning and Inference | OLS / GD / Bayesian linear regression, multivariate Gaussians, LGS, factor-analysis EM. |
chapter_04.md |
Book Ch. 4 — Variational Bayesian Inference | Variational free energy & its five forms, coordinate search, fixed-form VI, mean-field CAVI. |
chapter_05.md |
Book Ch. 5 — Predictive Coding | Prediction-error form of VFE, recognition dynamics (Eq. 16), univariate / multivariate / hierarchical PC, the unified Ch.4–5 visualization layer. |
chapter_06.md |
Book Ch. 6 — Generalized Filtering for Perception (Part II) | Dynamic state-space model, generalized coordinates, correlated embedding-order precision, and Example 6.7 vector filtering. |
chapter_07.md |
Book Ch. 7 — Active Generalized Filtering (Part II) | Action + preference prior, action via the forward model, homeostatic set-point regulation, and §7.5 multivariate AIF in generalized coordinates. |
chapter_08.md |
Book Ch. 8 — Learning, attention, and hierarchical models (Part II) | Continuous-state triple estimation: first-order parameter learning, second-order log-precision attention, hierarchy, and message passing. |
chapter_09.md |
Book Ch. 9 — Active Inference in POMDPs (Part II) | Discrete/categorical formulation: the A/B/C/D matrices and exact hidden-state inference (s = σ(log Aᵀô + log D)). |
chapter_10.md |
Book Ch. 10 — Learning & extensions in POMDPs (Part II) | §10.1 Dirichlet learning of A/B/D + parameter novelty; §10.2 habit E + policy precision γ; §10.3 factorial depth (two-armed bandit); §10.4 hierarchical depth. |
chapter_11.md |
Book Ch. 11 — planning extensions (Part III) | Free-energy variants, sophisticated inference, bounded policy-tree search, time-dependent preferences, forgetting, and structure learning. |
chapter_12.md |
Book Ch. 12 — factor graphs and message passing (Part III) | Factor-graph containers, belief propagation, backward smoothing, VMP updates, hierarchical messages, and hybrid bridges. |
chapter_13.md |
Book Ch. 13 — applications (Part III) | Robotics navigation/control and social inference demos built from active-inference primitives. |
chapter_14.md |
Book Ch. 14 — Bayesian mechanics (Part III) | Ergodic density, entropy/VFE bounds, Bayesian mechanics, and Markov-blanket demonstrations. |
Each page has the same skeleton, with one deliberate variant:
../topics/ — concept-by-concept walkthroughs that span
more than one chapter.../reference/ — full API listing for the subpackages
the chapter scripts import from.