Introduction to Inference
Sampling Distributions
Understanding how sample statistics vary from sample to sample.
How Much a Sample Result Bounces Around
A fair coin has a true probability of heads p = 0.5. Flip it 20 times and compute the sample proportion of heads, p̂ — it won't necessarily land exactly on 0.5. Before reading on: if you repeated this 20-flip experiment many times, would you expect p̂ to bounce around 0.5 by a little, or by a lot?
Definition — Sampling Distribution and the Role of Sample Size
Worked Example — Simulated Results from Small Samples
Worked Example — The Effect of a Larger Sample Size
Probability Simulator
Experiment
Run a trial to see the outcome here.
Simulation
Histogram — experimental vs theoretical
Running probability — Law of Large Numbers
Statistics
Mean
— experimental
3.5 theoretical
Variance
— experimental
2.917 theoretical
Standard deviation
— experimental
1.708 theoretical
Trials
0 experimental
— theoretical
Frequency table
| Outcome | Count | Experimental | Theoretical |
|---|---|---|---|
| 1 | 0 | — | 0.167 |
| 2 | 0 | — | 0.167 |
| 3 | 0 | — | 0.167 |
| 4 | 0 | — | 0.167 |
| 5 | 0 | — | 0.167 |
| 6 | 0 | — | 0.167 |
Central Limit Theorem
Draws 300 independent samples of 5trials each from the current experiment, averages each sample, and histograms the resulting sample means — the distribution should look progressively more bell-shaped (normal) as the sample size grows, even though the experiment’s own distribution usually isn’t.
Tip
Common Mistakes
Assuming a larger sample size changes the center of the sampling distribution.
The sampling distribution's center is always the true population value, regardless of sample size — only the spread shrinks as n grows, not the center itself.
Key Takeaways
- A sampling distribution describes how a sample statistic varies across many possible samples of a given size.
- Its center is the true population value; its spread shrinks as sample size grows, following σ_p̂ = √(p(1−p)/n).
- Some sample-to-sample variability is always expected — the sampling distribution tells you how much is ordinary.
Summary
Understanding how p̂ varies from sample to sample is exactly what's needed to estimate an unknown population proportion with a stated margin of error, the final topic of this course.
Sign in to track your progress and mark this lesson complete.
Track your progress