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.

Your guess
  • You picked A. Read on. At the end, the chapter comes back to your guess.

  • You picked B. Read on. At the end, the chapter comes back to your guess.

  • You picked C. Read on. At the end, the chapter comes back to your guess.

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. Two bar charts, one above the other. The upper chart, for one die, has equal bars for the scores 1 to 6, with the heading score of one die and the heading P(X = x), and a marker named mean 3.5. Step 2 adds the lower chart, with the heading mean of two dice and the heading P(M = m). Its bars stand on the means 1, 1.5 up to 6 and form a peak at 3.5, with a marker named mean 3.5.P(X = x)00.10.20.3123456score of one diemean 3.5

    1 Draw one die: six equal bars, balanced at 3.5.

  2. Two bar charts, one above the other. The upper chart, for one die, has equal bars for the scores 1 to 6, with the heading score of one die and the heading P(X = x), and a marker named mean 3.5. Step 2 adds the lower chart, with the heading mean of two dice and the heading P(M = m). Its bars stand on the means 1, 1.5 up to 6 and form a peak at 3.5, with a marker named mean 3.5.P(X = x)00.10.20.3123456score of one diemean 3.5P(M = m)00.050.10.150.2123456mean of two dicemean 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.

Rows of dots on a number line named score from 0 to 7. The top row, named one die, has one dot at each of 1 to 6. Five rows named sample 1, sample 2, sample 3, sample 4 and sample 5 each show four throws of the die, and a triangle just above the row marks the mean of those four, written at the right: 4.00, 2.75, 4.75, 2.25, 4.50. The last row, named means, shows the five triangles alone, bunched between 2 and 5.one diesample 14.00sample 22.75sample 34.75sample 42.25sample 54.50means01234567score
Five samples of four throws. The throws range from 1 to 6, but the five sample means lie between 2.25 and 4.75.

Worked example

Sample 1 in the picture has the four throws 2, 5, 3 and 6. Find its sample mean.

  1. Add the four throws: 2 + 5 + 3 + 6 = 16.
  2. Divide by the number of throws: 16 ÷ 4 = 4.
  3. 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.

  1. The standard deviation of a sample mean is σ ÷ √n.
  2. For 4 loaves: 8 ÷ √4 = 8 ÷ 2 = 4 g.
  3. For 16 loaves: 8 ÷ √16 = 8 ÷ 4 = 2 g.
  4. 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 σ.

Two bell curves with the same mean, 500, on an axis named mass in g with the numbers 476 to 524 in steps of 8. The low wide curve, named one loaf, has standard deviation 8. The tall narrow dashed curve, named mean of 4, has standard deviation 4.476484492500508516524mass in gone loafmean of 4
One loaf, and the mean of four loaves. Both curves have area 1, so the narrow one is twice as tall.

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.

  1. One loaf: z = (504 − 500) ÷ 8 = 0.5. P(X > 504) = 1 − 0.6915 = 0.3085.
  2. Mean of 4 loaves: X̄ ~ N(500, 4²), since 8 ÷ √4 = 4.
  3. Now z = (504 − 500) ÷ 4 = 1. P(X̄ > 504) = 1 − 0.8413 = 0.1587.
  4. 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.

Two bell curves, one above the other, on the same axis named mass in g with the numbers 476 to 524 in steps of 8, and on one vertical scale, so the areas compare. Each has a dashed line named 504 g marking the value 504. The upper curve, named one loaf, is the low wide curve with standard deviation 8. The area to the right of 504 under it is hatched and written 0.3085. The lower curve, named mean of 4, has standard deviation 4. It is twice as tall as the upper curve and half as wide. The area to the right of 504 under it is hatched and written 0.1587.476484492500508516524mass in g504 g0.3085one loaf476484492500508516524mass in g504 g0.1587mean of 4
The areas beyond 504 g, drawn on one vertical scale. One loaf: 0.3085. The mean of 4 loaves: 0.1587, which is 0.51 times as much, about half.

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?

  1. We need 8 ÷ √n ≤ 1.
  2. So √n ≥ 8, and n ≥ 64.
  3. The sample needs at least 64 loaves.
  4. 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

A table with the heads loaves and sd of mean. The rows read 1 and 8 g, 4 and 4 g, 16 and 2 g, 64 and 1 g.loavessd of mean18 g44 g162 g641 g

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.

  1. Throw one die 20 times and write the 20 scores. Find the smallest and the largest.
  2. Now throw two dice 20 times. For each pair write the mean, the total divided by 2. Find the smallest and the largest.
  3. 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.

If you cannot try it, this is what happens.
A table with the heads mean and pairs. The rows read 1 and 1, 1.5 and 2, 2 and 3, 2.5 and 4, 3 and 5, 3.5 and 6, 4 and 5, 4.5 and 4, 5 and 3, 5.5 and 2, 6 and 1.meanpairs111.52232.54353.56454.54535.5261

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.

  1. 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?

    Tap your answer.
    1. Not this one. That is the standard deviation of a single value. The mean of 9 values varies less. Read this page again. Try another.

    2. Not this one. You divided by n, 12 ÷ 9. The rule divides by the square root of n, which is 3. Read this page again. Try another.

    3. Yes, that is right. The standard error is σ ÷ √n = 12 ÷ √9 = 12 ÷ 3 = 4.

    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.
  2. A sample is made 4 times as big. What happens to the standard deviation of the sample mean?

    Tap your answer.
    1. Not this one. 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. Try another.

    2. Not this one. σ is fixed, but the standard error σ ÷ √n falls as n grows. Read this page again. Try another.

    3. Yes, that is right. The new standard error is σ ÷ √(4n) = σ ÷ (2√n), which is half the old one.

    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.
  3. X has mean μ. What is the mean of the sample mean X̄ of n values?

    Tap your answer.
    1. Yes, that is right. Means add, so the total has mean nμ, and dividing by n gives μ. The sample mean has the same centre as one value.

    2. Not this one. The sample mean is not divided again. It is the total divided by n already, and it is centred on μ. Read this page again. Try another.

    3. Not this one. The square root of n belongs to the spread, not the centre. The centre of X̄ is μ. Read this page again. Try another.

    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.
  4. Why do sample means vary less than single values?

    Tap your answer.
    1. Yes, that is right. 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.

    2. Not this one. The values are chosen in the same random way. The smaller spread comes from averaging, not from care. Read this page again. Try another.

    3. Not this one. A sample mean can be off the middle. It is only that it is less often far off. Read this page again. Try another.

    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.
  5. When can we use a normal model for X̄ even if X is not normal?

    Tap your answer.
    1. Not this one. 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. Try another.

    2. Not this one. The central limit theorem says a large sample gives a nearly normal X̄ whatever the shape of X. Read this page again. Try another.

    3. Yes, that is right. 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.

    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.
  6. The standard deviation of single values is 20. A sample of n values gives a sample mean with standard deviation 2. What is n?

    Tap your answer.
    1. Not this one. You divided 20 by 2. The standard error is 20 ÷ √n, so √n = 10 and n is 10 squared. Read this page again. Try another.

    2. Yes, that is right. From 20 ÷ √n = 2 we get √n = 10, so n = 10² = 100.

    3. Not this one. You multiplied 20 by 2. Set 20 ÷ √n = 2, so √n = 10, and square both sides. Read this page again. Try another.

    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.
  7. From an earlier chapter

    For Z ~ N(0, 1), P(Z < 2) = 0.9772. What is P(Z < −2)?

    Tap your answer.
    1. Not this one. That is P(Z < 2). The point −2 is on the other side of the mean, where the area to the left is small. Go to M5.7.4. Try another.

    2. Yes, that is right. By symmetry the area left of −2 equals the area right of 2. That is 1 − 0.9772 = 0.0228.

    3. Not this one. You took away 0.5, as if 0.9772 were measured from the middle. By symmetry P(Z < −2) = 1 − P(Z < 2). Go to M5.7.4. Try another.

    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.

    • If you chose A: That is P(Z < 2). The point −2 is on the other side of the mean, where the area to the left is small. Go to M5.7.4.
    • If you chose C: You took away 0.5, as if 0.9772 were measured from the middle. By symmetry P(Z < −2) = 1 − P(Z < 2). Go to M5.7.4.
  8. 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.

  9. 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.

  10. 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.

  11. 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.

Reading with a child? A short page for the adult: what this chapter teaches and three questions to ask.

No internet tomorrow? Save the whole book as one file (1.1 MB). It opens on any phone.