Module 9 — Bayesian Model Criticism Defense
Update uncertainty with evidence, visualize posterior distributions honestly, and test whether a fitted model can generate data that resemble what was actually observed.
Student learning outcomes
- Distinguish prior, likelihood, posterior, and posterior predictive distributions, and defend a prior choice on pre-data grounds.
- Update a Beta-binomial model in R and verify the conjugate posterior by hand.
- Interpret a credible interval as a conditional posterior probability statement — and explain how that differs from a confidence interval.
- Run a posterior predictive check tied to a scientific discrepancy and read “no conflict detected” without over-claiming.
- Report prior sensitivity and identify what additional data would resolve a prior-dependent decision.
Interactive reading
Select True or False before opening each explanation.
Using a prior automatically makes an analysis subjective and invalid. True or false?
After observing data, a 95% credible interval may be read as a probability statement about the parameter. True or false?
If yesterday’s posterior becomes today’s prior, two independent data batches give the same final posterior whichever order they arrive in. True or false?
A posterior that fits the parameter well shows the model describes the data-generating process adequately. True or false?
A posterior predictive p-value close to 0.5 shows the model is true. True or false?
Bayesian updating lab
Open the Bayesian updating lab · about 12 minutes
This synthetic teaching example specifies 14 successes in 20 trials; it is not a collected student dataset. Change the prior and the observed successes. Compare how much the data move a weak prior versus a concentrated prior.
The Bayesian updating lab needs JavaScript.
Credible interval reasoning
Open the credible-interval reasoning challenge · about 8 minutes
The interval reasoning lab needs JavaScript.
AI-output audit
Open the Bayesian AI-output audit · about 10 minutes
This AI audit needs JavaScript.
Posterior predictive check
Open the posterior predictive model check · about 12 minutes
This separate synthetic example uses 24 successes in 30 training trials and 16 successes in 20 holdout trials. Fit a Beta-binomial model to training data, generate replicated future samples from the posterior predictive distribution, and compare an observed holdout count with those replications.
The posterior predictive lab needs JavaScript.
R lab
Open the runnable Bayesian verification R lab · about 15 minutes
The script defines a synthetic retake-cohort fixture with 14 successes in 20 trials. External retrieval is not applicable; preserve the script version and seed with your evidence. Verify the conjugate update and simulate a posterior predictive distribution without leaving QuantegyAI.
DV17 — Bayesian Model Criticism Defense
Open the DV17 evidence
This required DV17 defense is packaged with DV15 and DV16 from Module 8 into Project_5_Canvas_Packet.zip, due the date on Canvas. It feeds the final portfolio; the Final (the date on Canvas) is review only and introduces no new instruction.
Where do I get my data?
Use the Beta-Binomial data from the R lab: a synthetic teaching fixture with a Beta(2, 2) prior and 14 successes in 20 trials. The source is the supplied script, not institutional pass-rate records; external retrieval is not applicable. Running it prints the posterior Beta(16, 8), its mean, the 2.5th, 50th and 97.5th credible limits, and a posterior predictive tail probability. That output is your Bayesian evidence brief.
Showing prior sensitivity? Change alpha and beta at the top of the same R lab and press Run again: the posterior, the interval and the predictive check all recompute, which is the comparison the second checklist item asks for. The posterior predictive check lab shows the same idea visually.
Prefer your own dataset? You can use any built-in R dataset or add your own CSV with count data under Your data in the R lab (files up to 500 MB stay in your browser). But you don't need to — the R lab dataset is ready to go.
Module 9 evidence item: DV17
Module 9 AI-feedback workspace
Open the Module 9 AI-feedback workspace
Use the Evidence Studio for formative feedback
The Bayesian defense workspace needs JavaScript.
Adaptive reflection
Mastery check loading…
Module 9 record
Your saved Module 9 record needs JavaScript. You can also see it on your skills dashboard report card.