← IB Mathematics: Applications & Interpretation · HL · IB Maths AI revision
⭐ 0
IB Diploma Mathematics: Applications & Interpretation HL · HL Statistics
Mini-Lesson

HL Statistics (AI HL)

3 missions. Guess, learn, then check. Your place is saved.

  1. Mission 1A survey says students sleep 7.1 ± 0.2 hours. What does ± promise?
  2. Mission 2Usually 3 complaints a week. This week, 8. Bad luck or a real problem?
  3. Mission 3Two curves fit the same data. Which is better, and can you prove it?
Mission 1

A survey says students sleep 7.1 ± 0.2 hours. What does ± promise?

Make a guess: A survey says students sleep 7.1 ± 0.2 hours. What does ± promise?

HL statistics · estimators and confidence intervals

Transforming and combining random variables

  • One variable: E(aX+b) = aE(X)+b and Var(aX+b) = a²Var(X). Adding b shifts; it never changes the spread.
  • Any X and Y: E(aX ± bY) = aE(X) ± bE(Y).
  • Independent X and Y: Var(aX ± bY) = a²Var(X) + b²Var(Y). Variances always add, even for a difference.
  • Two separate observations are not the same as doubling one: Var(X₁ + X₂) = 2Var(X) but Var(2X) = 4Var(X).
  • A linear combination of independent normal variables is normal.
Worked example HL statistics · estimators and confidence intervals

Packing a box of flour

Question
Bags of flour have mass X ~ N(1010, 6²) grams. An empty box has mass Y ~ N(250, 4²) grams. A full box holds 5 bags, all masses independent. Find the probability that a full box weighs more than 5,320 g.
  1. 1
    Write the total as separate bags: T = X₁ + X₂ + X₃ + X₄ + X₅ + Y
  2. 2
    Expected value: E(T) = 5 × 1010 + 250 = 5300
  3. 3
    Variance, adding each part: Var(T) = 5 × 36 + 16 = 196, so the standard deviation is 14
  4. 4
    T is normal, so use your GDC: P(T > 5320) with T ~ N(5300, 14²) gives 0.0766
Answer
0.0766 (3 s.f.)
⚠️ Watch out
writing 5X gives Var(T) = 25 × 36 + 16 = 916 and a probability of 0.254. Five different bags are X₁ + ⋯ + X₅, not one bag counted five times.
Quick check
?X and Y are independent with Var(X) = 4 and Var(Y) = 1. Find Var(2X − 3Y).
HL statistics · estimators and confidence intervals

Estimators and the central limit theorem

  • x̄ = (Σ xᵢ)/n is an unbiased estimate of the population mean μ.
  • sₙ₋₁² = n/(n−1)sₙ² is an unbiased estimate of σ². Dividing by n tends to underestimate it.
  • If X ~ N(μ, σ²), then X̄ ~ N(μ, σ²/n) for any n.
  • Central limit theorem: whatever the distribution of X, X̄ is approximately N(μ, σ²/n) for large n. In IB exams, n > 30 counts as large.
Calculate
?A random sample of 8 apples has masses, in grams: 48, 52, 50, 47, 55, 51, 49, 54. Use your GDC to find an unbiased estimate of the population variance. Give your answer to 3 significant figures.
Calculate
?The number of people in a car on a city road has mean 1.6 and standard deviation 0.9. Its distribution is not normal. A random sample of 50 cars is taken. Use the central limit theorem to estimate the probability that the sample mean is greater than 1.75. Give your answer to 3 significant figures.
HL statistics · estimators and confidence intervals

Confidence intervals for a mean

Twenty 95% confidence intervalsμ
  • A confidence interval is estimate ± margin: x̄ ± z^(*)σ/(√n) when σ is known.
  • When σ is unknown, use sₙ₋₁ and the t-distribution with n−1 degrees of freedom, whatever the sample size. Your GDC does both.
  • Meaning: if you took many samples and built a 95% interval from each, about 95% of the intervals would contain μ. The 95% belongs to the method, not to one interval.
  • Higher confidence or a smaller sample gives a wider interval.
Worked example HL statistics · estimators and confidence intervals

A t-interval for mean sleep

Question
A random sample of 12 students records sleep times, assumed normal. The sample has x̄ = 7.1 hours and sₙ₋₁ = 0.31 hours. Find a 95% confidence interval for the mean sleep time of all students.
  1. 1
    σ is unknown, so use a t-interval with 12 − 1 = 11 degrees of freedom
  2. 2
    Use your GDC with x̄ = 7.1, sₙ₋₁ = 0.31, n = 12, level 0.95: the critical value is t^(*) ≈ 2.201
  3. 3
    Margin: 2.201 × 0.31/(√12) ≈ 0.197
  4. 4
    Interval: 7.1 ± 0.197
Answer
6.90 < μ < 7.30 hours (3 s.f.)
⚠️ Watch out
using z^(*) = 1.96 here gives a narrower interval, 6.92 to 7.28. With σ unknown the IB expects t, even for large samples.
Calculate
?A machine fills bottles. The volumes are normal with known standard deviation 2.4 ml. A sample of 36 bottles has mean 51.3 ml. Find the lower limit of a 99% confidence interval for the mean volume. Give your answer to 3 significant figures.
ml
Mission check

?A survey says students sleep 7.1 ± 0.2 hours (95% confidence). What does ± promise?
Mission 2

Usually 3 complaints a week. This week, 8. Bad luck or a real problem?

Make a guess: Usually 3 complaints a week. This week, 8. Bad luck or a real problem?

HL statistics · Poisson and hypothesis tests

The Poisson model

  • X ~ Po(m) counts events in a fixed interval: P(X = x) = (m^x e^(−m))/(x!), for x = 0, 1, 2, …
  • Mean = variance = m.
  • Use it when events are independent and occur at a uniform average rate. Scale m with the interval: 3 a week is 6 a fortnight.
  • If X ~ Po(m₁) and Y ~ Po(m₂) are independent, then X + Y ~ Po(m₁ + m₂).
Worked example HL statistics · Poisson and hypothesis tests

Two help desks

Question
Calls reach help desk A at an average rate of 2.5 per hour and desk B at 1.5 per hour, independently and at random. Find the probability that the two desks receive at most 2 calls in total in one hour.
  1. 1
    Add the independent Poisson means: T ~ Po(2.5 + 1.5) = Po(4)
  2. 2
    Write the event: P(T ≤ 2) = P(T = 0) + P(T = 1) + P(T = 2)
  3. 3
    Substitute: e⁻⁴(1 + 4 + 4²/2) = 13e⁻⁴
  4. 4
    Evaluate, or use the Poisson cdf on your GDC with m = 4, upper bound 2
Answer
13e⁻⁴ ≈ 0.238 (3 s.f.)
⚠️ Watch out
"at most 2" includes 2. Using P(T < 2) leaves out P(T = 2) and gives 0.0916.
Sort it
?Choose the best model for each random variable.

Tap a statement, then tap the group it belongs in. Then press Check.

HL statistics · Poisson and hypothesis tests

Testing a parameter; critical regions and errors

  • Binomial and Poisson tests are one-tailed, e.g. H₀: m = 3, H₁: m > 3.
  • p-value: probability, under H₀, of a result at least as extreme as the one seen. Reject H₀ if p < the significance level.
  • Critical region: the values that lead to rejecting H₀. For a discrete variable, make P(X ∈ CR) as large as possible while staying below the significance level.
  • Type I error: rejecting a true H₀; its probability is P(X ∈ CR | H₀). Type II error: accepting a false H₀.
Worked example HL statistics · Poisson and hypothesis tests

A binomial test for a proportion

Question
A seed company claims 80% of its seeds germinate. A gardener suspects the rate is lower. She plants 20 seeds and 12 germinate. Test the claim at the 5% significance level.
  1. 1
    Hypotheses: H₀: p = 0.8, H₁: p < 0.8, where p is the proportion that germinate
  2. 2
    Under H₀, X ~ B(20, 0.8)
  3. 3
    Use your GDC: p-value = P(X ≤ 12) ≈ 0.0321
  4. 4
    Compare: 0.0321 < 0.05, so reject H₀
Answer
there is significant evidence at the 5% level that fewer than 80% of the seeds germinate.
⚠️ Watch out
the p-value is P(X ≤ 12), not P(X = 12) ≈ 0.0222. "At least as extreme" means 12 or fewer here.
Calculate
?A road has an average of 2.5 accidents a month. Residents think a new junction has increased this. The council tests H₀: m = 2.5 against H₁: m > 2.5 at the 5% level, using X, the number of accidents in one month. The critical region is X ≥ c. Find c.
Calculate
?For the test on the previous screen (critical region X ≥ 6), the true mean rate is in fact 5 accidents a month. Find the probability of a Type II error. Give your answer to 3 significant figures.
HL statistics · Poisson and hypothesis tests

Tests for a mean and for correlation

  • σ known: z-test on x̄, with X̄ ~ N(μ₀, σ²/n) under H₀. Critical values and error probabilities can be found.
  • σ unknown: t-test using sₙ₋₁, whatever the sample size. Use the p-value from your GDC.
  • Paired samples (before and after, on the same people): find each difference d, then do a one-sample test on the differences, H₀: μ_d = 0.
  • Correlation: for bivariate normal data, your GDC tests H₀: ρ = 0 and gives a p-value.
Calculate
?Bags of rice have masses that are normal with known standard deviation 4 g. The label says the mean is 500 g. An inspector weighs a random sample of 16 bags and tests H₀: μ = 500 against H₁: μ < 500 at the 5% significance level. The true mean is in fact 497 g. Find the probability of a Type II error. Do not round the critical value, and give your answer to 3 significant figures.
Mission check

?Usually 3 complaints a week. This week, 8. Bad luck or a real problem?
Mission 3

Two curves fit the same data. Which is better, and can you prove it?

Make a guess: Two curves fit the same data. Which is better, and can you prove it?

HL statistics · data collection and non-linear regression

Designing valid data collection

  • Questions must be unbiased (not leading), precise and, where possible, structured with consistent answer choices. Open, unstructured questions are hard to analyse.
  • Avoid needlessly personal questions: people skip them or answer untruthfully.
  • Choose only the relevant variables and data for your question.
  • For a chi² test, choose categories so every expected frequency is greater than 5, merging neighbouring classes if needed.
  • In a goodness of fit test, each parameter estimated from the data removes one more degree of freedom.
Sort it
?Sort each survey question.

Tap a statement, then tap the group it belongs in. Then press Check.

HL statistics · data collection and non-linear regression

Reliability and validity

  • Reliable: gives consistent results when repeated. Valid: measures what it claims to measure. A test can be reliable but not valid.
  • Test-retest (reliability): the same people take the same test again later; the scores should correlate strongly.
  • Parallel forms (reliability): the same people take two equivalent versions; the scores should correlate strongly.
  • Content validity: the test covers the full range of what it should measure.
  • Criterion-related validity: results agree with an established measure (the criterion).
Quick check
?A new 10-minute fitness test is given to 40 athletes, who also run a standard lab treadmill test that is known to be accurate. The two sets of scores have a correlation of 0.88. What has been checked?
Calculate
?The number of goals in each of 80 matches is recorded. A chi² goodness of fit test checks whether a Poisson model fits, with the mean estimated from the data as 1.9. The categories are 0, 1, 2, 3, 4 and 5 or more, but the expected frequency for "5 or more" is about 3.5, so it is merged with "4". How many degrees of freedom does the test have?
HL statistics · data collection and non-linear regression

Residuals, SS_res and R²

Data with the line y-hat = 2x + 1.5 and its residuals012340246810MonthsUsers (thousands)residualy=2x+1.5
  • Your GDC fits least squares models: linear, quadratic, cubic, exponential, power and sine.
  • A residual is y − ŷ: observed minus predicted. The sum of square residuals SS_res = Σ (y − ŷ)². Smaller means a closer fit.
  • R² is the proportion of the variability in y explained by the model. For a linear model, R² = r².
  • R² alone can't choose a model: extra terms never lower it. Check the model makes sense in context.
Worked example HL statistics · data collection and non-linear regression

SS_res for an exponential model

Question
An app's users y (thousands) after x months are (0, 2.1), (1, 2.9), (2, 4.6), (3, 6.8), (4, 10.3). Model A is ŷ = 2 × 1.5^x. Find SS_res for model A.
  1. 1
    Predicted values: ŷ = 2, 3, 4.5, 6.75, 10.125
  2. 2
    Residuals y − ŷ: 0.1, −0.1, 0.1, 0.05, 0.175
  3. 3
    Square: 0.01, 0.01, 0.01, 0.0025, 0.030625
  4. 4
    Add: SS_res = 0.063125
Answer
SS_res ≈ 0.0631 (3 s.f.)
⚠️ Watch out
square each residual before adding. The residuals themselves add to 0.325, and positive and negative residuals can cancel.
Calculate
?For the same app data, model B is the straight line ŷ = 2x + 1.5. Find SS_res for model B, exactly as a decimal.
Calculate
?A farmer records yield y (kg per plot) for fertiliser x (kg per plot): (0, 1.5), (1, 5.6), (2, 9.3), (3, 9.4), (4, 9.0), (5, 5.1). Use your GDC to fit a quadratic regression model and find the coefficient of determination R². Give your answer to 3 significant figures.
Mission check

?Two curves fit the same data. Which is better, and can you prove it?
Recap

Big ideas

  • E(aX ± bY) = aE(X) ± bE(Y); for independent variables Var(aX ± bY) = a²Var(X) + b²Var(Y).
  • x̄ and sₙ₋₁² are unbiased estimates; X̄ has standard deviation σ/(√n) and is approximately normal for n > 30.
  • Confidence interval for μ: normal if σ is known, t with n − 1 degrees of freedom if not. 95% describes the method.
  • X ~ Po(m): independent events at a uniform average rate; mean = variance = m; independent Poisson variables add.
  • Binomial and Poisson tests are one-tailed. The critical region is as large as possible with P(Type I error) below the significance level.
  • σ known: z-test; σ unknown: t-test; paired data: one-sample test on the differences.
  • Good questions are unbiased, precise and structured; a reliable test is consistent (test-retest, parallel forms); a valid test measures the right thing (content, criterion-related).
  • chi² goodness of fit: merge classes so expected frequencies exceed 5; df = categories − 1 − parameters estimated.
  • SS_res = Σ (y − ŷ)² measures fit; R² is the proportion of variability explained; neither alone decides between models.
🏆

Mini-lesson complete!

⭐⭐⭐

You've worked through HL Statistics (AI HL) for IB Diploma Mathematics: Applications & Interpretation HL. 🎉

  1. Mission 1A survey says students sleep 7.1 ± 0.2 hours. What does ± promise?
  2. Mission 2Usually 3 complaints a week. This week, 8. Bad luck or a real problem?
  3. Mission 3Two curves fit the same data. Which is better, and can you prove it?

Your stars: 0 / 0

Next: more IB Mathematics: Applications & Interpretation · HL lessons and games on the IB Mathematics: Applications & Interpretation · HL page.

📣 Smashed it? Share your score

Challenge a mate to beat your stars, or show a parent how you got on.

→ Back to IB Mathematics: Applications & Interpretation · HL

Specification points and sources for this lesson are listed at the bottom of the page.

Sources (3)

The specification points and sources behind this lesson.

  1. 1 IB Mathematics: applications and interpretation guide (first assessment 2021), AHL 4.14, 4.15, 4.16
  2. 2 IB Mathematics: applications and interpretation guide (first assessment 2021), AHL 4.17, 4.18 (and SL 4.11 for p-values)
  3. 3 IB Mathematics: applications and interpretation guide (first assessment 2021), AHL 4.12, 4.13