# Labs

These labs are designed to move from hand-computable Bayesian examples to full model workflows.

Run labs from the repository root:

```bash
python labs/lab01_beta_binomial.py
```

Each lab writes plots to an `outputs` folder when relevant.

## Lab Sequence

| Lab | Topic | Main Skills |
|---|---|---|
| 1 | Beta-binomial updating | Prior, likelihood, posterior, credible interval |
| 2 | Normal-normal updating | Precision-weighted posterior mean |
| 3 | Monte Carlo integration | Simulation-based posterior summaries |
| 4 | MCMC diagnostics | PyMC sampling, trace plots, R-hat, ESS |
| 5 | Hierarchical modeling | Partial pooling across groups |
| 6 | Bayesian regression | Posterior coefficients and predictions |

## Lab Report Template

For each lab, submit:

1. Research question
2. Model specification
3. Prior explanation
4. Posterior summary
5. One plot
6. Interpretation in plain language
7. Limitation or next improvement
