Hybrid· RSelf-learningHomeworkPredict, observe, explainRecall with feedbackBefore teachingAccessibility not checkedPublished
Real, or Big? A difference of means and its effect size in R
By Alexis Diamond · Statistics · Hypothesis Testing · Undergraduate · Computational / statistical · version 4
Licence: CC BY 4.0
Topicseffect sizestatistical vs practical significancedifference of meanspooled standard deviationtwo sample t test
Assumption ledger (5)
- dataThe outbreak data are made up for this page and are not real Mycoplasma pneumoniae data: 98 fever patients (60 without Mycoplasma, 38 with it) and 164 white blood cell counts (150 without, 14 with); neither looks normal. Generated so that the in-class test gives the lesson plan's results (fever: one-tailed p = 0.0021, d = 0.68; WBC: two-tailed p = 0.0518, d = 0.57, with df = smaller n − 1).
- dataPesticide numbers (30 farms: mean 5, SD 1; 20 farms: mean 9, SD 3.5) are the FA50 study-guide practice problem. The fertilizer, sleep, store and tutoring studies are invented.
- simplificationDegrees of freedom = the smaller n − 1 (OpenIntro's conservative rule); R's t.test() uses the Welch df and gives slightly smaller p-values.
- simplificationAll tests two-sided. Step 4 uses summary numbers (gap 0.2, SD 2 in both groups, n = 20 to 5,000 per group), not simulated farms.
- interpretationCohen's 0.2 / 0.5 / 0.8 (small / medium / large) is a rough guide; what counts as large depends on the field.
Checks Breakout ✓ · Code not checked · Accessibility ✓
Breakout check
✓ Ready for breakouts: every control we tried showed teammates the same thing.
Code checks
Not checked yet.
Cite this · History
Cite this
Alexis Diamond (2026). Real, or Big? A difference of means and its effect size in R [Interactive model], version 4. Ideas at Play. https://ideasatplay.org/play/real-or-big-a-difference-of-means-and-its-effect-size-in-r-e81853?v=4 (CC BY 4.0)
History
- v4Ordered answer scales keep their order (data-kc-order="fixed"); other multiple-choice options are now shuffled by the platform. (edited, Dec 2, 2026)current
- v3Case renamed: Pymonia → Mycoplasma pneumoniae outbreak (names only; data unchanged); 'No' group = tested negative for Mycoplasma (edited, Nov 27, 2026)View
- v2Case renamed: Pymonia → Mycoplasma pneumoniae outbreak (names only; data unchanged) (edited, Nov 27, 2026)View
- v1Imported; lineage before import is not available. (imported, Nov 25, 2026)View
Comments
No comments yet.
Sign in to comment or like.