Lesson 3: Displays of real and simulated samples
Match simulated samples to their distributions
SkillDisplays of random samples
Worked example
A spreadsheet generated four samples of 300 values each, using =RAND()*10, =IF(RAND() < 0.25, 1, 0), =BINOM.INV(12, 0.25, RAND()) and =NORM.INV(RAND(), 5, 1.5), though not in that order. Their displays are described below.
- Sample A: a histogram, roughly symmetric and bell-shaped, centred near 5, with almost all values between 0.5 and 9.5.
- Sample B: a bar chart with bars at the whole numbers 0 to 8 only, highest at 3, with a longer tail to the right.
- Sample C: a histogram of values between 0 and 10 with all ten classes of width 1 holding roughly 30 values each.
- Sample D: a bar chart with two bars, at 0 (height 228) and 1 (height 72).
(a) Match each sample to its distribution.
(b) Use Sample D to estimate the probability used to generate it.
Step 1: Look for the two-valued display
Only a Bernoulli variable takes just the values 0 and 1. D came from
=IF(RAND() < 0.25, 1, 0), a Bernoulli variable.Step 2: Look for whole numbers with a peak
Whole-number values with a peak near and a right skew (because ) fit B to .
Step 3: Look for a flat shape
=RAND()*10is uniform on , so every class of width 1 should hold about values: C.Step 4: Look for a bell
A is bell-shaped around 5, and is to : the normal .
Step 5: Estimate p from the Bernoulli sample
The proportion of 1s in D is , which estimates the true probability .
Answer
A is normal, B is binomial, C is uniform and D is Bernoulli. From D, , close to the true .
Try a similar one
A fresh question of the same kind, checked as you answer, with hints and a full solution.
Method
Two bars at 0 and 1: Bernoulli. Whole numbers with a peak near : binomial.
Flat: uniform. Symmetric bell, almost all within of : normal.
Estimate a proportion from a display as (frequency of interest) ÷ (sample size).
Watch out for
Expecting a sample from a uniform distribution to have exactly equal bars.
Confusing the binomial (bars at many whole numbers) with the Bernoulli (only 0 and 1).