Read the denominator.
At the default settings, identify every item included in the flagged group. Explain why the posterior denominator is 594 rather than 100 or 10,000.

XLVII / Experiments
Change a condition, inspect what happens, and keep the result. Six experiments connect an equation with a visible outcome, a numerical record, and questions you can pursue.
Evidence and base rates
A factory inspects a batch of 10,000 components. Its screen detects some defective items and falsely flags some sound ones. Before interpreting a flag, account for both groups; a good detection rate alone does not tell you how many flagged items are defective.
The posterior probability after a flag.
Expected count in a batch of 10,000.
Sound items that the screen flags.
Defective items that pass the screen.
| Actual condition | Flagged | Passed | Total |
|---|---|---|---|
| Actually defective | 99 | 1.0 | 100 |
| Actually sound | 495 | 9405 | 9900 |
| Total | 594 | 9406 | 10000 |
The JSON includes parameters, model assumptions, sources, and full results. The CSV contains a complete confusion table with unrounded expected counts.
Method
Apply each conditional rate to its own population. True flags equal the defective population multiplied by the detection rate; false flags equal the sound population multiplied by the false-flag rate. Divide true flags by all flags to obtain the posterior probability.
P(defect | flag) = p × d / [p × d + (1 − p) × f].
At the default settings, identify every item included in the flagged group. Explain why the posterior denominator is 594 rather than 100 or 10,000.
For rare defects, compare improving detection from 99% to 100% with reducing false flags from 5% to 1%. Record which change alters the flagged group more.
Set both the defect rate and false-flag rate to zero. Explain why the screen produces no flagged group to interpret.
John Tsitsiklis develops conditional probability and Bayes’ rule in a lecture with downloadable course material.
Follow a screening result back through the population that produced it.
A hypothetical batch contains 10,000 components. Detection is fixed at 99 percent and false flags at 5 percent.
The defect rate rises from 1 percent toward 20 percent. Orange shows actual defects that are flagged; cream shows sound items that are falsely flagged.
The posterior is true flags divided by all flags. Changing the starting population changes this fraction even when both screening rates stay fixed.
Method. Apply each conditional rate to its own population. True flags equal the defective population multiplied by the detection rate; false flags equal the sound population multiplied by the false-flag rate. Divide true flags by all flags to obtain the posterior probability.
These dossiers explain how this experiment relates to a larger question, including the observation or comparison that the model leaves unresolved.