Hybrid· RSelf-learningHomeworkPredict, observe, explainBefore teachingAccessibility not checkedPublished

Catch the Mean (pre-class): confidence intervals for a mean in R

By Alexis Diamond · Statistics · Confidence Intervals · Undergraduate · Computational / statistical · version 3

Pre-class version of Catch the Mean: where sample means land, a 95% confidence interval for a mean wait time, and a prediction and R calculation of the 99% interval. Three short R edits with hints.

Licence: CC BY 4.0

Share and present
Assumption ledger (4)
  • dataThe coffee-shop sample (n = 64, x̄ = 4.6, s = 2.4 minutes) is made up, not real data.
  • simplificationThe population standard deviation σ is usually unknown, so the sample's SD s stands in for it in SE = s ÷ √n, and the normal curve gives z. With samples this large that is close; the t-distribution, which corrects for it, comes next lesson.
  • distributionThe sampling distribution of x̄ is assumed close to normal (the CLT); when that holds is left for class.
  • parameterz = 1.96 for 95% (qnorm(0.975) = 1.95996) and z ≈ 2.58 for 99% (qnorm(0.995) = 2.5758). The step 3 check accepts 2.58 or qnorm(0.995).
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). Catch the Mean (pre-class): confidence intervals for a mean in R [Interactive model], version 3. Ideas at Play. https://ideasatplay.org/play/catch-the-mean-pre-class-confidence-intervals-for-a-mean-in-faf01c?v=3 (CC BY 4.0)

History

  1. v3Ordered answer scales keep their order (data-kc-order="fixed"); other multiple-choice options are now shuffled by the platform. (edited, Dec 2, 2026)current
  2. v2Step 3 now ends with a takeaway after the prediction is locked in (why the 99% interval is wider), since the step 4 chart is gone. (edited, Nov 27, 2026)View
  3. v1Imported; lineage before import is not available. (imported, Nov 27, 2026)View
Report this artifact

Reports are anonymous. The artifact stays up until we've checked it.

Comments

No comments yet.

Sign in to comment or like.

Anything wrong with this page? Submit feedback