Hybrid· RSelf-learningHomeworkPredict, observe, explainRecall with feedbackBefore teachingAccessibility not checkedPublished

Averages Pile Up: building a sampling distribution in R

By Alexis Diamond · Statistics · Sampling distributions · Undergraduate · Simulation of a known property · version 1

Take 10,000 random samples of 30 from a skewed population in R, average each one, and watch the averages pile into a narrow bell around μ: the sampling distribution of the mean, its standard error σ/√n, and how its shape depends on n.

Licence: CC BY 4.0

Share and present
Assumption ledger (4)
  • dataThe 10,000 hold times are made up, not real helpline data: Beta(0.5, 2) scaled to 0–100 minutes and rounded to 0.1, set.seed(17); mean about 19.9, SD about 21.4, skewed right.
  • simplificationSamples are drawn with replacement, so draws are independent, the condition the CLT needs.
  • parameterStep 4: 10,000 samples of n = 30 (set.seed(50)). Step 7: 5,000 samples for each n of 1, 2, 5, 10, 30 and 100.
  • interpretation“Close to normal” is judged by eye from a normal QQ plot; n ≈ 30 is a rule of thumb for moderately skewed populations, not a theorem.
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). Averages Pile Up: building a sampling distribution in R [Interactive model], version 1. Ideas at Play. https://ideasatplay.org/play/averages-pile-up-building-a-sampling-distribution-in-r-cb0a41?v=1 (CC BY 4.0)

History

  1. v1Imported; lineage before import is not available. (imported, Nov 24, 2026)current
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