M5.7.5 Chapter 5
Samples and the sample mean
One loaf can be far from the usual mass. Why does the mean mass of four loaves stay so much closer?
Your guess
Pick one before you read on. It is fine to be wrong.
By the end you can
- Explain why sample means vary less than single values
- Find the standard deviation of a sample mean
- Find a probability for a sample mean using a normal model
In statistics we usually cannot measure everything. We take a sample of n values from a larger group and use it to say something about the group. The mean of the sample is the sample mean, written X̄. A different sample gives a different X̄, so X̄ is a random variable too. This chapter asks how X̄ behaves.
Take a fair die. One throw has mean 3.5. Now throw two dice and take their mean, which is the total divided by 2. The mean of two dice is also 3.5 on average, but it is far more often near 3.5 and far less often 1 or 6. A 1 needs two ones, which has chance 1/36.
Draw it first
Compare one die with the mean of two dice
1 Draw one die: six equal bars, balanced at 3.5.
2 Add the mean of two dice. It is balanced at the same place, 3.5, but the bars crowd in the middle and the ends are tiny.
Averaging pulls values towards the middle, because a high value in the sample is often paired with a low one. The more values we average, the stronger the effect. Now we make this exact.
Let X have mean μ and standard deviation σ. Take n independent values of X and find their mean X̄. The mean of X̄ is μ. The variance of X̄ is σ² ÷ n, and so its standard deviation is σ ÷ √n. The standard deviation of a sample mean has its own name, the standard error. Here is why. The sum of n independent values has variance nσ², because variances add. Dividing the sum by n divides its variance by n², and nσ² ÷ n² = σ² ÷ n.
Worked example
Sample 1 in the picture has the four throws 2, 5, 3 and 6. Find its sample mean.
- Add the four throws: 2 + 5 + 3 + 6 = 16.
- Divide by the number of throws: 16 ÷ 4 = 4.
- So the first triangle stands at 4, and the number 4.00 is written beside the row.
Answer: The throws 2, 5, 3 and 6 add to 16, so the sample mean is 4.
Worked example
The mass of a loaf has mean 500 g and standard deviation 8 g. Find the standard deviation of the mean mass of 4 loaves, and of 16 loaves.
- The standard deviation of a sample mean is σ ÷ √n.
- For 4 loaves: 8 ÷ √4 = 8 ÷ 2 = 4 g.
- For 16 loaves: 8 ÷ √16 = 8 ÷ 4 = 2 g.
- The mean is 500 g in both cases. Only the spread shrinks.
Answer: The standard deviations are 4 g and 2 g.
If X itself is normal, X̄ is exactly normal as well. Write X ~ N(μ, σ²). Then X̄ ~ N(μ, σ² ÷ n). The curve for X̄ has the same centre and is narrower. We find its probabilities as in chapter 4, with the standard error in place of σ.
Worked example
The mass of a loaf is X ~ N(500, 8²) g. Compare the chance that one loaf is heavier than 504 g with the chance that the mean of 4 loaves is heavier than 504 g.
- One loaf: z = (504 − 500) ÷ 8 = 0.5. P(X > 504) = 1 − 0.6915 = 0.3085.
- Mean of 4 loaves: X̄ ~ N(500, 4²), since 8 ÷ √4 = 4.
- Now z = (504 − 500) ÷ 4 = 1. P(X̄ > 504) = 1 − 0.8413 = 0.1587.
- A heavy sample mean is about half as likely as a heavy single loaf.
Answer: The chance is 0.3085 for one loaf, and 0.1587 for the sample mean.
It is also useful to ask how big a sample must be. Because the standard error is σ ÷ √n, a bigger sample gives a smaller error, but slowly. To halve the standard error you need four times as many values.
Worked example
The mass of a loaf has standard deviation 8 g. How many loaves must be in a sample so that the standard deviation of the mean is at most 1 g?
- We need 8 ÷ √n ≤ 1.
- So √n ≥ 8, and n ≥ 64.
- The sample needs at least 64 loaves.
- Check: 8 ÷ √64 = 8 ÷ 8 = 1.
Answer: The sample needs at least 64 loaves.
What if X is not normal? The die is not. The central limit theorem says that for a large sample, X̄ is close to normal whatever the shape of X. A common rule is that 30 values is enough for a normal model. The sum of four dice in chapter 4 already looked like a bell. For a small sample from a distribution that is not normal, a normal model for X̄ may be wrong.
See it three ways
With things
A baker weighs one loaf, then the mean of 4 loaves, then the mean of 16, then 64. The numbers settle closer and closer to the true mean, and each step of four times as many loaves halves the scatter.
As a picture
In words
The mean of a sample has the same centre as one value, but its spread is the single spread divided by the square root of the sample size.
In symbols
E(X̄) = μ, Var(X̄) = σ² ÷ n, standard error σ ÷ √n. If X ~ N(μ, σ²) then X̄ ~ N(μ, σ² ÷ n).
Try it
Throw pairs of dice
You need: two dice, paper and a pencil.
- Throw one die 20 times and write the 20 scores. Find the smallest and the largest.
- Now throw two dice 20 times. For each pair write the mean, the total divided by 2. Find the smallest and the largest.
- Compare the two ranges. Count how many of your 20 values are 1, 1.5 or 6 in the second list.
What you will see: The single scores spread over all of 1 to 6, but the means of pairs rarely reach the ends. The table shows why: the mean 1 needs two ones, which is 1 pair in 36, while the mean 3.5 can be made in 6 ways.
A wrong idea many people have
A bigger sample makes each value in it less variable.
Why it feels right: A bigger sample gives more reliable results, so it seems each value inside should be steadier.
The test that breaks it: Take a loaf with standard deviation 8 g. In a sample of 16 each loaf is still a single loaf, and each can still be 8 g or more from 500 g. It is the mean of the 16 that has standard deviation 2 g.
What is true: Single values keep their spread. A bigger sample makes the sample mean steadier, because highs and lows cancel in the average.
A wrong idea many people have
To halve the standard error, double the sample size.
Why it feels right: More values give a smaller error, and the numbers seem to scale in step.
The test that breaks it: Start with n = 4, where the standard error is 8 ÷ 2 = 4 g. Doubling to n = 8 gives 8 ÷ √8 = 2.83 g, which is not 2 g. Only n = 16 gives 8 ÷ 4 = 2 g.
What is true: The standard error is σ ÷ √n. To halve it, make √n twice as big, which needs n four times as big.
Key words
- sample
- a set of n values taken from a larger group, which we use to learn about the group.
- sample mean
- the mean X̄ of the values in a sample. It changes from sample to sample.
- standard error
- the standard deviation of the sample mean, σ ÷ √n.
- central limit theorem
- for a large sample, the sample mean is close to normal whatever the shape of the data.
Back to your guess
The answer is B: The mean of four loaves varies less, with a standard deviation of 4 g, half the size.
The standard deviation of the mean of four loaves is 4 g, half of 8 g. Heavy and light loaves in a sample partly cancel when we average them. The spread falls by the square root of the sample size: 8 ÷ √4 = 4. To cut it to a quarter we would need 16 loaves.
Check yourself
Try each one before you look. A wrong answer tells you where to go next.
A population has mean 50 and standard deviation 12. A sample of 9 values is taken. What is the standard deviation of the sample mean?
See the answer
4
The standard error is σ ÷ √n = 12 ÷ √9 = 12 ÷ 3 = 4.
- If you chose A: That is the standard deviation of a single value. The mean of 9 values varies less. Read this page again.
- If you chose B: You divided by n, 12 ÷ 9. The rule divides by the square root of n, which is 3. Read this page again.
A sample is made 4 times as big. What happens to the standard deviation of the sample mean?
See the answer
It becomes half of its old size.
The new standard error is σ ÷ √(4n) = σ ÷ (2√n), which is half the old one.
- If you chose A: The standard error is σ ÷ √n. Four times the sample makes √n twice as big, so the error is halved, not quartered. Read this page again.
- If you chose B: σ is fixed, but the standard error σ ÷ √n falls as n grows. Read this page again.
X has mean μ. What is the mean of the sample mean X̄ of n values?
See the answer
μ
Means add, so the total has mean nμ, and dividing by n gives μ. The sample mean has the same centre as one value.
- If you chose B: The sample mean is not divided again. It is the total divided by n already, and it is centred on μ. Read this page again.
- If you chose C: The square root of n belongs to the spread, not the centre. The centre of X̄ is μ. Read this page again.
Why do sample means vary less than single values?
See the answer
High values and low values in a sample partly cancel when averaged.
One extreme value is usually met by values on the other side, so the average is pulled back to the centre. The more values, the stronger the pull.
- If you chose B: The values are chosen in the same random way. The smaller spread comes from averaging, not from care. Read this page again.
- If you chose C: A sample mean can be off the middle. It is only that it is less often far off. Read this page again.
When can we use a normal model for X̄ even if X is not normal?
See the answer
When the sample is large, about 30 or more.
The central limit theorem says that for a large sample the sample mean is close to normal whatever the shape of X. A common rule of thumb is 30 or more values.
- If you chose A: A small sample from a non normal distribution is not close to normal. The mean of two dice is a triangle. Read this page again.
- If you chose B: The central limit theorem says a large sample gives a nearly normal X̄ whatever the shape of X. Read this page again.
The standard deviation of single values is 20. A sample of n values gives a sample mean with standard deviation 2. What is n?
See the answer
100
From 20 ÷ √n = 2 we get √n = 10, so n = 10² = 100.
- If you chose A: You divided 20 by 2. The standard error is 20 ÷ √n, so √n = 10 and n is 10 squared. Read this page again.
- If you chose C: You multiplied 20 by 2. Set 20 ÷ √n = 2, so √n = 10, and square both sides. Read this page again.
From an earlier chapter
For Z ~ N(0, 1), P(Z < 2) = 0.9772. What is P(Z < −2)?
See the answer
0.0228
By symmetry the area left of −2 equals the area right of 2. That is 1 − 0.9772 = 0.0228.
A population has standard deviation 15 g. A sample of 25 values is taken. Find the standard deviation of the sample mean, in g.
See the answer
3
The standard error is σ ÷ √n = 15 ÷ √25 = 15 ÷ 5 = 3 g.
Journey times are N(40, 6²) minutes. Find the probability that the mean of 9 journeys is less than 38 minutes.
See the answer
0.1587
The mean of 9 journeys is N(40, 2²), since 6 ÷ √9 = 2. Then z = (38 − 40) ÷ 2 = −1, and P(Z < −1) = 1 − 0.8413 = 0.1587.
The standard deviation of single values is 12. What is the smallest sample size that gives a standard deviation of the sample mean of at most 2?
See the answer
36
We need 12 ÷ √n ≤ 2, so √n ≥ 6 and n ≥ 36. The smallest sample size is 36.
The mass of a loaf is X ~ N(500, 8²) g. Find the probability that the mean of 16 loaves is less than 497 g.
See the answer
0.0668
The mean of 16 loaves is N(500, 2²), since 8 ÷ √16 = 2. Then z = (497 − 500) ÷ 2 = −1.5, and P(Z < −1.5) = 1 − 0.9332 = 0.0668.
Keep it
Copy this into your exercise book.
Sample mean X̄: mean μ, standard error σ ÷ √n. X ~ N(μ, σ²) gives X̄ ~ N(μ, σ² ÷ n). Four times the sample halves the error. Large n: X̄ is nearly normal.
Draw: Two bell curves with one centre: a wide one for single values and a narrow one for the sample mean.