← The living map spec / 05-inference

5. Inference

The model is a hierarchical generative model of a whole animal.

Genome / transcriptome priors ─┐
EM connectome (G, morphology) ─┤
Developmental wiring model ────┼─▶ per-type programs Φ_c ─▶ z_i(t₀) ~ p₀,c ─▶ regulation along the schedule ─▶ θ_i (per neuron)
Latent edges (gap, peptide) ───┘                                                                              │
                                                                                                              ▼
                            stimulus / optogenetics / mutation ─▶ closed-loop simulation ─▶ indicator + behavior forward models
                                                                                                              │
                                                                                                              ▼
                                                                      likelihood vs. raw fluorescence, ephys, behavior

Because initial states are random, the model predicts a distribution over neurons and animals, not one parameter set. Likelihoods marginalize over initial states, developmental-schedule samples and set-point jitter. Within-type and between-animal variability in the data are therefore evidence about Φ, not nuisance.

Conditioned prediction. For an observed animal, maintain a joint posterior over programs Φ, fast neural/body state x_t and slow regulatory/plastic state z_t, conditioned only on the recordings permitted by the task up to its declared cutoff. Forecast interventions by propagating that posterior through the closed loop and observation model. Similar present activity can correspond to different history-dependent states; ensemble predictions must retain that uncertainty. Compact history coordinates may replace part of z_t only after their predictive sufficiency and observability are tested on held-out histories and interventions. A0 establishes such coordinates for its synthetic endpoint calculation, but does not infer them from recordings or establish their sufficiency for arbitrary transients. The mathematical target, proposed experiments and separation of assimilation from forecasting are in 11-prediction-and-history.md.