Hybrid· RWhole classPredict, observe, explainContrasting casesRecall with feedback✓ Code checkedAccessibility not checkedPublished
Kidney Stones and Simpson’s Paradox
By Alexis Diamond · Statistics · Simpson’s paradox and confounding · Undergraduate · Computational / statistical · version 2
Licence: CC BY 4.0
Assumption ledger (8)
- dataCounts from Charig, Webb, Payne & Wickham (1986), BMJ 292:879–882, as given in the workbook: Treatment A 81/87 small and 192/263 large stones; Treatment B 234/270 small and 55/80 large. In the original study A was open surgery and B percutaneous nephrolithotomy; the page describes A only as the more invasive procedure, as the workbook does.
- dataThe setup cell is the workbook's data frame verbatim, including its rounded success_rate column (93, 73, 87, 69). Every rate the page and the exercises compute uses the exact counts instead.
- simplificationIn the explorer each treatment's success rate within a stone size stays fixed as its mix of patients changes: the overall rate is the small-stone rate times (1 − share of large stones) plus the large-stone rate times that share. This assumes a treatment works as well on a small stone whoever else it treats.
- simplificationStone size is the only lurking variable shown. Other differences between the patients who got each treatment are not in the data and are set aside.
- parameterSliders run from 0% to 100% large stones in whole percents. They start at the study's mixes, 75% for A (263/350) and 23% for B (80/350); at those positions the readout uses the exact fractions. 'Give both the same mix' uses 49%, the share of all 700 patients with large stones (343/700).
- interpretationComparing at a common mix (direct standardisation to the pooled 700 patients) is one reasonable adjustment, giving about 83.3% for A and 77.9% for B. Other reference mixes give other numbers, but at every common mix A comes out ahead.
- simplificationNo sampling uncertainty is shown. Some groups are small (87 patients had small stones and Treatment A), so the subgroup rates are themselves estimates.
- interpretationSteps 1–7 are the workbook's questions verbatim. They follow Flora, Koloskov, Stan & Terrana (2021), Fallacies Applications, Document 1: Fallacies Analysis Framework and Excerpts (v2), CS50 Formal Analyses, Minerva.
Checks Breakout ✓ · Code ✓ · Accessibility ✓
Breakout check
✓ Ready for breakouts: every control we tried showed teammates the same thing.
Code checks
✓ Code checked: the reference solutions pass every exercise's checks.
Cite this · History
Cite this
Alexis Diamond (2026). Kidney Stones and Simpson’s Paradox [Interactive model], version 2. Ideas at Play. https://ideasatplay.org/play/kidney-stones-and-simpsons-paradox-08198e?v=2 (CC BY 4.0)
History
- v2Instructor freeze now works inside the platform's frame: typing CS350 and pressing Enter or clicking Freeze no longer relies on form submission, which the sandbox blocks. (edited, Nov 1, 2026)current
- v1Imported; lineage before import is not available. (imported, Oct 31, 2026)View
Comments
No comments yet.
Sign in to comment or like.