Audit test denominators without diagnosing a person
A detection or classification test can have different error probabilities depending on the underlying state. Sensitivity is the fraction of state-positive records classified positive; specificity is the fraction of state-negative records classified negative. The fraction of positive results that actually have the state uses a different denominator and also depends on the state’s frequency in the tested population.
Learning outcome: Construct the full two-by-two table before dividing. Change only prevalence, then only specificity, and preserve the denominator and population assumptions for every comparison.
Starting recap
Connect host defenses and adaptive mechanisms to bounded fictional evidence while separating detection, conditional probabilities, timing and causal claims.
All lessons are open directly. Your saved experiments remain when you leave and return.
Try
At p=0.1, s=0.9, expected counts are 80 true positives,20 false negatives,90 false positives and 810 true negatives. Positive predictive fraction is 80/(80+90)=8/17≈0.470588, not sensitivity 0.8. Both probabilities are correct but condition on different groups.
Open the experimentPredict
Why can a fixed sensitivity coexist with a changing fraction of true states among positive results?
Experiment
Construct the full two-by-two table before dividing. Change only prevalence, then only specificity, and preserve the denominator and population assumptions for every comparison.
Audit fictional population test denominators
Worked teaching model · synthetic values · Fictional population1000, sensitivity0.8, supplied prevalence/specificity. Expected contingency counts and positive predictive fraction only; no actual test, disease, patient or diagnostic recommendation.
Reset keeps your prediction, captures and practice history.
Sensitivity and the fraction of positives with the underlying state use different denominators.
Fictional population1000, sensitivity0.8, supplied prevalence/specificity. Expected contingency counts and positive predictive fraction only; no actual test, disease, patient or diagnostic recommendation.
| Quantity | Value | Unit |
|---|---|---|
| Expected true positives | 80 | records |
| Expected false negatives | 20 | records |
| Expected false positives | 90.00000 | records |
| Expected true negatives | 810 | records |
| Positive predictive fraction | 0.4705882 | fraction |
| Sensitivity | 0.8000000 | fraction |
Supplied fictional records only. No participant testing, pathogen exposure, diagnosis, treatment or personal medical inference is requested.
Sensitivity and the fraction of positives with the underlying state use different denominators.
Fictional population1000, sensitivity0.8, supplied prevalence/specificity. Expected contingency counts and positive predictive fraction only; no actual test, disease, patient or diagnostic recommendation.
Captures preserve recipes and replay their calculated results. They are synthetic model evidence, not physical measurements.
Understand
Apply
Public practice checks a specific claim. It does not establish independent mastery.
Use p=0.3, s=0.9. Find all four counts and the positive predictive fraction.
Continue
Completion requires a saved prediction, at least one capture and a reflection. Presence checks do not grade your reasoning.
Skipping retains experiments and awards no mastery.
Save a science backup or import one
Science work is stored locally in this browser, separately from mathematics and AI. It does not sync automatically. Use this science-only backup; this checkout's older all-subject export does not include science.
A legacy file is available only when the complete snapshot fits the 36 MB limit. For larger snapshots, prepare a complete file set below; never discard notebooks to make a smaller file.
Matching imported notebook drafts replace their current drafts. Omitted lessons and known first attempts remain. Export your current work first if you want to retain both drafts.
Complete file sets and course backups
A file set can hold more work than one science file. Keep its manifest and every part together. Each file is limited to 36 MB. This format needs this version of LearnAI or a compatible newer version; older versions can use only the legacy single-file backup above.
The set includes every saved science course and global continuation at this moment. Later edits need a new export. A conflicting tab exports its own visible work, which may differ from saved work in another tab.
0 file(s) selected. File order and filenames do not determine identity. Missing, changed or conflicting parts block the entire restore; no good part is applied by itself.
Science storage: loading. No account or remote computation is required.