Vertex Learn

Justifying an inference

What this lesson covers

  • State the population and parameter.
  • Give the interval and units.
  • Discuss the design and the assumptions.
Worked example

Sentence by sentence

  • A random sample of 100 adults.
PartSentence
ClaimI am fairly sure the mean height of adults in this town is between 168.04 and 171.96 cm.
MethodA 95% interval from a random sample of 100.
LimitsPeople who declined to take part could differ from those who did.
Key idea

Picture the interval

  • Sketch it first: the sample statistic in the middle and the plausible values around it.
A number line with an interval from 168.04 to 171.96 and the sample mean 170 marked.
Key idea

Try it: intervals and the truth

Key idea

Checks before you trust it

  • Was the sample random, and from the right population?
  • Is the sample large enough for the interval to be useful?
  • Are there outliers or a skewed shape that would change the choice of mean or median?
  • Could non-response or the way data was measured bias it?
Key idea

Try it: could chance explain it?

Common mistakes

  • Writing we are 95% sure with no population named.
    Name the population and the units.
  • Ignoring non-response.
    Say how it could affect the result.
Key idea

Try it: write it up

Your turn

1

Which sentence is the best claim?

2

Which is the best reason to trust the result?

3

Which is a real limit?

4

How should you describe uncertainty?

5

A student writes: "I am fairly sure the mean is between 412 and 448." What is missing from this claim?

6

Weekly rents in a sample are strongly right-skewed with a few very high values. What should you check before reporting?

7

To estimate the mean screen time of NZ teenagers, a survey samples 200 students at one Christchurch school. What is the main limit?

8

People reported their own weekly exercise on a form, and the sample was random. How does this affect the interval?

Show answer

1. The population mean is likely 168 to 172 cm 2. The sample was chosen at random 3. People who declined may differ 4. Say fairly sure, with an interval 5. The population and the units: say whose mean it is, for example weekly rent of Hamilton flats, and give it in dollars. 6. Whether the median describes rent better than the mean, because a skewed shape with high values pulls the mean up. 7. The sample may not represent all NZ teenagers: it comes from one school, not a random sample of the population named. 8. It could be biased if people misreport their exercise, because a random sample does not fix how the data was measured.

Your turn

Sample question: Achieved

A random sample of 64 Dunedin student flats gives a mean bedroom temperature on a winter evening of 14.2 °C, with standard deviation 2.4 °C. State the population, the variable and the parameter, and calculate the 95% confidence interval.

Hint

The population is everything the sample was chosen from; then use x̄ ± 1.96 × s ÷ √n.

Answer

Population: all Dunedin student flats. Variable: bedroom temperature on a winter evening. Parameter: the mean temperature. Interval: 13.61 °C to 14.79 °C.

Step by step
  1. The population is the whole group the sample came from: all Dunedin student flats, not just the 64.
  2. The variable is what was measured in each flat: bedroom temperature on a winter evening.
  3. The parameter is the population value we estimate: the mean temperature of all those flats.
  4. Now the interval: x̄ ± 1.96 × s ÷ √n. √64 = 8.
  5. Margin: 1.96 × 2.4 ÷ 8 = 0.588 °C.
  6. Interval: 14.2 − 0.588 = 13.612 and 14.2 + 0.588 = 14.788, so 13.61 to 14.79 °C.
  7. Classic mistake: naming the sample (the 64 flats) as the population.
Full working
  1. population: all Dunedin student flats
  2. variable: bedroom temperatureparameter: the mean
  3. margin = 1.96 × 2.4 ÷ √64 = 0.588
  4. 14.2 ± 0.588
  5. 13.61 °C to 14.79 °C
Your turn

Sample questions: Merit

1

120 NZ secondary teachers are chosen at random and emailed a survey about weekly hours spent marking. 75 reply, with a mean of 9.4 hours and standard deviation 3.5 hours. Calculate a 95% confidence interval from the replies, write a claim with the population and units, and give one limitation linked to this context.

Hint

Use n = 75, the people who replied, then think about which teachers were least likely to reply.

Answer

8.61 to 10.19 hours. I am fairly sure the mean weekly marking time of NZ secondary teachers is between 8.61 and 10.19 hours. Limitation: 45 of 120 (37.5%) did not reply; the busiest teachers, who may mark the most, may have been least likely to reply, so the interval could underestimate the mean.

Step by step
  1. The interval uses the data we have, so n = 75, not 120.
  2. Margin: 1.96 × 3.5 ÷ √75. √75 = 8.660, so the margin is 6.86 ÷ 8.660 = 0.792 hours.
  3. Interval: 9.4 − 0.792 = 8.61 and 9.4 + 0.792 = 10.19 hours.
  4. Claim: name the population (NZ secondary teachers), the parameter (mean) and the variable with units (weekly marking hours).
  5. I am fairly sure the mean weekly marking time of NZ secondary teachers is between 8.61 and 10.19 hours.
  6. Now the limitation. 120 − 75 = 45 did not reply, which is 45 ÷ 120 = 37.5% non-response.
  7. Link it to the context: teachers with the heaviest marking load are the ones with least time to answer a survey.
  8. If those teachers are missing, the sample mean is likely too low, so the interval may underestimate the true mean.
  9. Classic mistake: writing there may be bias with no reason. Say who is missing and which way it pushes the result.
Full working
  1. n = 75only the replies are data
  2. margin = 1.96 × 3.5 ÷ √75 = 0.792
  3. 9.4 ± 0.792 = 8.61 to 10.19
  4. non-response = 45 ÷ 120 = 37.5%
  5. busiest teachers less likely to replyestimate may be too low
  6. 8.61 to 10.19 hours, with a non-response limitation
2

A random sample of 15 Queenstown rentals has weekly rents in dollars: 520, 540, 560, 580, 590, 600, 610, 620, 640, 650, 680, 700, 720, 1450, 2100. Find the mean and the median. Which should be used to make an inference about a typical Queenstown rent, and why?

Hint

Look at how the two very high rents affect each measure, and how many rents are below the mean.

Answer

Mean $770.67, median $620. Use the median: the two very high rents pull the mean up so far that 13 of the 15 rents are below it, so it does not describe a typical rent. The median is not affected by these extreme values.

Step by step
  1. Mean: add all 15 rents. The total is 11560, and 11560 ÷ 15 = 770.67.
  2. Median: the values are in order and there are 15, so the median is the 8th value: $620.
  3. Compare them. The mean is about $150 more than the median.
  4. Why? The two highest rents, 1450 and 2100, are far above the rest. Big values drag the mean upwards.
  5. Count how many rents are below the mean: 13 of the 15. So the mean is not a typical rent.
  6. The median only depends on the middle value, so the two extreme rents barely change it.
  7. The distribution is strongly right-skewed with outliers, so the median is the better measure for an inference about a typical rent.
  8. Classic mistake: removing the high values. They are real rents, so keep them and choose a measure that is not swayed by them.
  9. Check: the median 620 sits in the middle of the list, with 7 rents below and 7 above.
Full working
  1. mean = 11560 ÷ 15 = 770.67
  2. median = 8th value = 62015 values in order
  3. 1450 and 2100 pull the mean up13 of 15 below the mean
  4. right-skewed with outliersuse the median
  5. mean $770.67, median $620; use the median
Your turn

Sample questions: Excellence

1

A Christchurch news website asks readers to report their daily screen time. 2000 readers take part. The 95% confidence interval for the mean is 5.1 to 5.5 hours, and the site says "Christchurch adults average more than 5 hours of screen time a day". Evaluate this claim, considering both the interval and how the data were collected.

Hint

The interval is above 5, but ask who the interval describes: was the sample random from Christchurch adults?

Answer

The interval 5.1 to 5.5 hours is all above 5, so for the people it represents, a mean over 5 hours is supported. But the sample is self-selected readers of a news website, not a random sample of Christchurch adults. People who read news online and choose to answer may use screens more than others, so the estimate is probably biased upwards. The large sample makes the interval narrow but does nothing about this bias, so the claim about all Christchurch adults is not justified.

Step by step
  1. Read the interval first. 5.1 to 5.5 is entirely above 5.
  2. So if the sample were a fair random sample, the claim of a mean above 5 would be supported.
  3. Next, the method. Readers chose to take part, so this is a self-selected sample, not a random sample.
  4. Who is in the sampling frame? Only readers of that website. Adults who do not read news online cannot be included.
  5. Link it to the variable: people who read news online, and bother to answer a poll about screens, are likely to spend more time on screens.
  6. So the sample mean is likely too high for Christchurch adults overall. That is bias.
  7. The sample size of 2000 makes the interval narrow, only 0.4 hours wide. But a margin of error measures sampling variation only, not bias.
  8. A bigger self-selected sample is just a more precise estimate of the wrong thing.
  9. Also, self-reported screen time may be guessed, which adds measurement error.
  10. Judgement: the claim about all Christchurch adults is not justified. A random sample of Christchurch adults, ideally with measured screen time, would be needed.
Full working
  1. 5.1 to 5.5 is above 5supported for the sampled group
  2. self-selected website readersnot random
  3. frame: online news readersheavy screen users likely over-represented
  4. n = 2000 narrows the intervaldoes not remove bias
  5. self-reported timesmeasurement error
  6. claim about all Christchurch adults not justified
2

Ten years ago the mean length of trout caught in Lake Taupō was given as 52 cm. This year a random sample of 36 trout from anglers' catches has mean length 48.5 cm and standard deviation 6 cm. Calculate the 95% confidence interval and write a justified conclusion about whether the mean length has fallen, including two limitations.

Hint

Build the interval and compare it with 52, then think about how fish get into anglers' catches and where the 52 came from.

Answer

46.54 to 50.46 cm. The whole interval is below 52, so the data support a fall in mean length, if the samples are comparable. Limitations: anglers must release undersized fish and may target bigger ones, so a catch is not a random sample of the lake's trout; and if 52 cm was itself a sample estimate it has its own uncertainty, so the size of any fall is not certain.

Step by step
  1. Interval: x̄ ± 1.96 × s ÷ √n with x̄ = 48.5, s = 6, n = 36.
  2. √36 = 6, so the margin is 1.96 × 6 ÷ 6 = 1.96 cm.
  3. Interval: 48.5 − 1.96 = 46.54 and 48.5 + 1.96 = 50.46 cm.
  4. Compare with 52. The top of the interval, 50.46, is below 52, so 52 is not a believable value for the current mean.
  5. Claim: I am fairly sure the mean length of trout caught in Lake Taupō this year is between 46.54 and 50.46 cm, which is below the 52 cm of ten years ago.
  6. Limitation 1: the population is fish in anglers' catches, not all trout. Size limits and anglers' choices of spot and lure affect which fish are caught.
  7. If fishing methods have changed in ten years, the two years may not be comparable.
  8. Limitation 2: the 52 cm figure. If it came from a sample, it has its own margin of error. The true fall could be smaller than 52 − 48.5 = 3.5 cm.
  9. Also the interval only covers sampling variation, not bias from how fish were measured or which catches were recorded.
  10. Judgement: the data support a fall in mean length, but the conclusion should be stated with these limits.
Full working
  1. margin = 1.96 × 6 ÷ √36 = 1.96
  2. 48.5 ± 1.96 = 46.54 to 50.46
  3. 50.46 < 5252 is outside the interval
  4. limit: anglers' catches, size rulesnot a random sample of all trout
  5. limit: 52 cm may itself be an estimate
  6. 46.54 to 50.46 cm; a fall is supported, with limitations
Summary

What to take away

  • Claim, method, limits.
  • Evidence for every statement.

Challenge

1

A report on a random sample of 64 Hamilton commuters gives only this: "95% confidence interval for the mean commute time: 24.1 to 27.3 minutes." The council claims "the mean commute in Hamilton is over 25 minutes". (a) Find the sample mean and the sample standard deviation. (b) Is the claim supported? (c) If a new random sample gave the same mean and standard deviation, what is the smallest sample size that would support the claim?

Hint

The sample mean is the middle of the interval and the margin is half its width. Then margin = 1.96 × s ÷ √n can be solved for s, and later for n.

Answer

(a) Mean 25.7 minutes, standard deviation about 6.53 minutes. (b) Not supported: 25 is inside the interval. (c) 335 commuters.

Step by step
  1. The interval is centred on the sample mean: (24.1 + 27.3) ÷ 2 = 25.7 minutes. The margin is half the width: 3.2 ÷ 2 = 1.6 minutes.
  2. Margin = 1.96 × s ÷ √64 = 1.96 × s ÷ 8, so s = 1.6 × 8 ÷ 1.96 ≈ 6.53 minutes.
  3. 25 lies inside 24.1 to 27.3, so the mean could be below 25. The claim is not supported, though it is not shown false either.
  4. To support it, the whole interval must be above 25, so the margin must be less than 25.7 − 25 = 0.7 minutes.
  5. 1.96 × 6.53 ÷ √n < 0.7 gives √n > 18.29, so n > 334.4. The smallest whole sample is 335.
  6. Caution: a new sample would not give exactly the same mean, so 335 is a guide, not a guarantee.
Full working
  1. x̄ = (24.1 + 27.3) ÷ 2 = 25.7centre of the interval
  2. margin = (27.3 − 24.1) ÷ 2 = 1.6
  3. s = 1.6 × √64 ÷ 1.96 = 6.53from margin = 1.96 × s ÷ √n
  4. 25 is inside 24.1 to 27.3claim not supported
  5. 1.96 × 6.53 ÷ √n < 0.7need lower limit above 25
  6. √n > 18.29, n > 334.4round up
  7. x̄ = 25.7 min, s ≈ 6.53 min; not supported; n = 335
2

In a class of 20 students, each student takes their own random sample of 50 from the same population of Northland kiwifruit orchards and builds a 95% confidence interval for the mean yield. The teacher knows the true mean. (a) How many intervals would you expect to miss the true mean? (b) Find the probability that all 20 intervals catch it. (c) Three intervals miss. A student whose interval missed says "I must have made a mistake." How likely is three or more misses, and is the student right? Could the students have found out which intervals missed without the teacher?

Hint

Each interval independently catches the true mean with probability 0.95, so the number that miss is binomial with n = 20 and p = 0.05.

Answer

(a) 1. (b) 0.95²⁰ ≈ 0.358. (c) P(3 or more miss) ≈ 0.075, so it is not very unusual. The student need not have made a mistake: about 1 in 20 correctly built intervals misses. Without the true mean, nobody can tell which intervals missed.

Step by step
  1. Fairly sure, 95%, means the method catches the true mean in about 95% of samples. So each interval misses with probability 0.05.
  2. Expected misses: 20 × 0.05 = 1.
  3. All 20 catch it: 0.95 multiplied 20 times, 0.95²⁰ ≈ 0.358. So about two times in three, at least one interval misses.
  4. Let X be the number of misses, binomial with n = 20, p = 0.05. P(X ≤ 2) ≈ 0.925, so P(X ≥ 3) ≈ 0.075, roughly 1 in 13.
  5. A miss comes from an unlucky random sample, not from a wrong method. Each student's interval looks just as believable as the others.
  6. Only someone who knows the true mean can see which ones missed. In real research nobody knows it, which is why we say fairly sure, never certain.
Full working
  1. P(miss) = 1 − 0.95 = 0.05for each interval
  2. expected misses = 20 × 0.05 = 1
  3. P(all catch) = 0.95²⁰ = 0.358
  4. X ~ binomial(20, 0.05), P(X ≤ 2) = 0.925
  5. P(X ≥ 3) = 1 − 0.925 = 0.075not very unusual
  6. 1 expected; 0.358; P(3 or more) ≈ 0.075, no mistake needed
3

A random sample of 100 students at one New Zealand university gives their paid work hours last week: mean 11.0 hours, standard deviation 10.0 hours. 40 of the 100 did no paid work. The 60 who worked had a standard deviation of 5.6 hours. A student magazine writes: "University students who have a job work about 11 hours a week." (a) Find the 95% confidence interval from the whole sample, and say what it estimates. (b) Find the mean for the 60 who worked and a 95% confidence interval for them. (c) Evaluate the magazine's statement.

Hint

The 40 zeros add nothing to the total hours. The total is 100 × 11.0, shared among only the 60 who worked.

Answer

(a) 9.04 to 12.96 hours: the mean for all students at this university, including those with no job. (b) Mean 18.33 hours; interval 16.92 to 19.75 hours. (c) Not justified: 11 hours describes all students, not those with a job. For working students the interval is entirely above 16.9 hours, so they work much more than 11 hours, and the results only cover this one university.

Step by step
  1. Whole sample: margin = 1.96 × 10.0 ÷ √100 = 1.96, so 11.0 ± 1.96 gives 9.04 to 12.96 hours.
  2. That interval is about the mean of all students at this university, and 40% of them worked zero hours. It is not about students who have a job.
  3. The total hours are 100 × 11.0 = 1100, all from the 60 workers. Their mean is 1100 ÷ 60 ≈ 18.33 hours.
  4. Their margin: 1.96 × 5.6 ÷ √60 ≈ 1.42, giving 16.92 to 19.75 hours.
  5. The magazine has the wrong parameter for its population: 11 hours is pulled down by the 40 non-workers. Working students are fairly surely between about 17 and 20 hours a week.
  6. Further limits: one university, so not all NZ students, and hours are self-reported for one week, which may not be typical, for example near exams.
Full working
  1. margin = 1.96 × 10.0 ÷ √100 = 1.96all 100 students
  2. 11.0 ± 1.96 = 9.04 to 12.96mean for all students
  3. total = 100 × 11.0 = 1100non-workers add 0
  4. workers' mean = 1100 ÷ 60 = 18.33
  5. margin = 1.96 × 5.6 ÷ √60 = 1.42
  6. 18.33 ± 1.42 = 16.92 to 19.75all well above 11
  7. 9.04 to 12.96 (all students); 16.92 to 19.75 (workers); statement not justified

More challenge problems

Worksheet with answersWithout answersDownload PDF
Report a mistake

More in AS 91582

Is your child on track?

Take the free placement test