IB · International Baccalaureate
✓ Official Syllabus VerifiedStandards & Rigor ↗
4

Statistics & Probability (HL)

IB Mathematics HL P1, P2 & P3 AA HL AI HL

HL Statistics & Probability establishes formal measure-theoretic foundations for continuous random variables, calculus of expectation and variance, Poisson processes, linear combinations of independent normals, and Bessel-corrected unbiased estimators.

● Level 1 Foundation — Probability Axioms, Law of Total Probability & Bayes

Kolmogorov Axioms & Conditional Probability: For events in sample space S: \[ 0 \le P(A) \le 1, \quad P(S) = 1, \quad P(A \cup B) = P(A) + P(B) - P(A \cap B). \] Conditional probability of event A given \(B\) (with \(P(B) > 0\)): \[ P(A \mid B) = \frac{P(A \cap B)}{P(B)}. \] Events \(A\) and \(B\) are independent if and only if \(P(A \cap B) = P(A)P(B) \iff P(A \mid B) = P(A)\).

Law of Total Probability & Bayes' Theorem: Let \(\{B_1, B_2, \dots, B_k\}\) be a partition of \(S\) (mutually exclusive and exhaustive events with \(P(B_i) > 0\)):

  • Law of Total Probability: \[ P(A) = \sum_{i=1}^k P(A \cap B_i) = \sum_{i=1}^k P(A \mid B_i)P(B_i). \]
  • Bayes' Theorem: Evaluates posterior probabilities updated from prior evidence: \[ P(B_j \mid A) = \frac{P(A \mid B_j)P(B_j)}{P(A)} = \frac{P(A \mid B_j)P(B_j)}{\sum_{i=1}^k P(A \mid B_i)P(B_i)}. \]
Conditional probability tree for Bayes' Theorem \(P(D \mid +) = \dfrac{0.02 \times 0.95}{0.02 \times 0.95 + 0.98 \times 0.04} \approx 0.326\).
⊙ Explorer · Confidence interval for the mean
interactive
margin of error \(E\)\(2.058\)
confidence interval\([50.242, 54.358]\)

The sampling distribution of the sample mean is centered at \(\bar{x}\) with standard error SE = \(s / \sqrt{n}\). The shaded central region spans the confidence interval \([\bar{x} - E, \bar{x} + E]\). Increasing sample size \(n\) narrows the interval (greater precision); increasing the confidence level widens it (greater certainty).

▲ Level 2 Analytical Tools — Poisson Distribution & Linear Combinations

The Poisson Distribution: Models the count of rare events occurring in a fixed interval of continuous time or space. A random variable \(X \sim \text{Po}(\lambda)\) (with parameter \(\lambda > 0\)) assumes:

  1. Events occur independently.
  2. Events occur at a constant average rate \(\lambda\).
  3. Events occur singly (two events cannot occur simultaneously).

Probability Mass Function (PMF): \[ P(X = k) = \frac{\lambda^k e^{-\lambda}}{k!}, \quad k = 0, 1, 2, \dots \] Theoretical Moments: Mean and variance are identically equal: \[ E[X] = \lambda, \quad \text{Var}(X) = \lambda. \] Sum of Independent Poissons: If \(X_1 \sim \text{Po}(\lambda_1)\) and \(X_2 \sim \text{Po}(\lambda_2)\) are independent, then: \[ X_1 + X_2 \sim \text{Po}(\lambda_1 + \lambda_2). \]


Linear Combinations of Random Variables: For any random variables \(X, Y\) and constants \(a, b\):

  • Expectation (Always Linear): \(E[aX + bY] = aE[X] + bE[Y]\).
  • Variance of Independent Variables: If \(X\) and \(Y\) are independent: \[ \text{Var}(aX \pm bY) = a^2\text{Var}(X) + b^2\text{Var}(Y). \]
  • Linear Combinations of Independent Normal Variables: If \(X \sim N(\mu_X, \sigma_X^2)\) and \(Y \sim N(\mu_Y, \sigma_Y^2)\) are independent, then \(W = aX + bY\) is strictly normally distributed: \[ W = aX + bY \sim N(a\mu_X + b\mu_Y, \; a^2\sigma_X^2 + b^2\sigma_Y^2). \] In particular, the difference \(D = X - Y \sim N(\mu_X - \mu_Y, \; \sigma_X^2 + \sigma_Y^2)\) (variances always add!).
⊙ Explorer · The Poisson distribution
interactive
\(P(X = k)\)\(0.1008\)
mode (peak)\(3\)
\(E(X)\) = Var(\(X\))\(3.000\)

For a Poisson distribution, the mean and variance are always identical: \(E(X)\) = Var(\(X\)) = \(\lambda\). The mode (peak bar) occurs at ⌊\(\lambda\)⌋. When \(\lambda\) is small the distribution is right-skewed; as \(\lambda\) increases it becomes bell-shaped, approaching a normal distribution with mean \(\lambda\) and variance \(\lambda\).

▲ Level 3 University Rigor — Theorem: Continuous Random Variables & Estimator Unbiasedness

Continuous Random Variables & Calculus of Probability: Let \(X\) be a continuous random variable with probability density function (PDF) \(f(x)\):

  • Density Criteria: \(f(x) \ge 0\) for all \(x \in \mathbb{R}\), and \[ \int_{-\infty}^\infty f(x)\,dx = 1. \]
  • Interval Probability & Single-Point Nullity: For any \(a < b\), \(P(a \le X \le b) = \int_a^b f(x)\,dx\). For any specific real point \(c\), \(P(X = c) = \int_c^c f(x)\,dx = 0\).
  • Cumulative Distribution Function (CDF): Defined by \(F(x) = P(X \le x) = \int_{-\infty}^x f(t)\,dt\). By the Fundamental Theorem of Calculus: \[ \frac{d}{dx}F(x) = f(x) \quad \text{at all continuity points of } f. \]
  • Expectation & Higher Moments: \[ E[X] = \mu = \int_{-\infty}^\infty x f(x)\,dx, \quad E[X^2] = \int_{-\infty}^\infty x^2 f(x)\,dx, \quad \text{Var}(X) = E[X^2] - (E[X])^2. \]
  • Median & Mode: The median \(m\) is the root of \(F(m) = \int_{-\infty}^m f(x)\,dx = 0.5\). The mode is the value of \(x\) where \(f(x)\) attains its global maximum.

Sampling Theory & Proof of Bessel's Correction: Let \(X_1, X_2, \dots, X_n\) be an i.i.d. sample from a population with mean \(\mu\) and variance \(\sigma^2\):

  • Sample Mean Unbiasedness: \(\bar{X} = \frac{1}{n}\sum X_i\). Then \(E[\bar{X}] = \frac{1}{n}\sum E[X_i] = \frac{1}{n}(n\mu) = \mu\). Standard error \(\sigma_{\bar{X}} = \frac{\sigma}{\sqrt{n}}\).
  • Sample Variance Unbiasedness (Bessel's Correction): If we used the naive sample variance \(S_n^2 = \frac{1}{n}\sum_{i=1}^n (X_i - \bar{X})^2\), its expectation is: \[ E[S_n^2] = \frac{n-1}{n}\sigma^2 \neq \sigma^2 \quad (\text{downwardly biased!}). \] Proof: Write \(X_i - \bar{X} = (X_i - \mu) - (\bar{X} - \mu)\). Summing squares: \[ \sum_{i=1}^n (X_i - \bar{X})^2 = \sum_{i=1}^n (X_i - \mu)^2 - n(\bar{X} - \mu)^2. \] Taking expectations: \(E\left[\sum (X_i - \mu)^2\right] = n\sigma^2\) and \(E[n(\bar{X} - \mu)^2] = n\text{Var}(\bar{X}) = n\left(\frac{\sigma^2}{n}\right) = \sigma^2\). Thus: \[ E\left[\sum_{i=1}^n (X_i - \bar{X})^2\right] = n\sigma^2 - \sigma^2 = (n-1)\sigma^2. \] Dividing by \(n - 1\) yields the unbiased estimator \(S_{n-1}^2\): \[ S_{n-1}^2 = \frac{1}{n-1}\sum_{i=1}^n (X_i - \bar{X})^2 \implies E[S_{n-1}^2] = \sigma^2. \quad \blacksquare \]
◆ Why It Works — First-Principles Derivation (Statistics & Probability (HL))

Why Variance Scales as \(a^2\) and Independent Variances Always Add: By definition, \(\operatorname{Var}(Y) = \mathbb{E}[(Y - \mu_Y)^2]\). For \(Y = aX - bW\) with independent \(X, W\), subtracting its mean \(\mu_Y = a\mu_X - b\mu_W\) gives:

\[ \operatorname{Var}(aX - bW) = \mathbb{E}\!\left[(a(X - \mu_X) - b(W - \mu_W))^2\right] = a^2\mathbb{E}[(X-\mu_X)^2] - 2ab\,\operatorname{Cov}(X,W) + b^2\mathbb{E}[(W-\mu_W)^2] \]

Because independence implies \(\operatorname{Cov}(X, W) = 0\), the cross term vanishes and \((-b)^2 = +b^2\), proving \(\operatorname{Var}(aX - bW) = a^2\operatorname{Var}(X) + b^2\operatorname{Var}(W)\). Uncertainty compounds whether random variables are added or subtracted.

Worked Example 4.1 — Continuous Random Variable Calculus
Problem. A continuous random variable \(X\) has PDF \(f(x) = kx(2 - x)\) for \(0 \le x \le 2\) and \(f(x) = 0\) elsewhere. Find: (a) the constant \(k\); (b) the median \(m\); (c) the variance \(\text{Var}(X)\).
▸ Show step-by-step solution

(a) Normalization condition:
\[ \int_0^2 f(x)\,dx = 1 \implies k \int_0^2 (2x - x^2)\,dx = 1 \] \[ k \left[ x^2 - \frac{x^3}{3} \right]_0^2 = k\left( 4 - \frac{8}{3} \right) = k\left(\frac{4}{3}\right) = 1 \implies k = \frac{3}{4}. \]

(b) Find the median \(m\):
By symmetry about \(x = 1\), the median is \(m = 1\). We can confirm by integrating: \[ \int_0^1 \frac{3}{4}(2x - x^2)\,dx = \frac{3}{4}\left[ x^2 - \frac{x^3}{3} \right]_0^1 = \frac{3}{4}\left(1 - \frac{1}{3}\right) = \frac{3}{4}\left(\frac{2}{3}\right) = \frac{1}{2}. \quad \checkmark \] Thus the median is \(m = 1\).

(c) Find \(\text{Var}(X)\):
By symmetry, \(E[X] = 1\). Compute \(E[X^2]\): \[ E[X^2] = \int_0^2 x^2 f(x)\,dx = \frac{3}{4}\int_0^2 (2x^3 - x^4)\,dx = \frac{3}{4}\left[ \frac{2x^4}{4} - \frac{x^5}{5} \right]_0^2 = \frac{3}{4}\left( 8 - \frac{32}{5} \right) = \frac{3}{4}\left(\frac{8}{5}\right) = \frac{6}{5}. \] Then: \[ \text{Var}(X) = E[X^2] - (E[X])^2 = \frac{6}{5} - 1^2 = \frac{1}{5} = 0.2. \]

Worked Example 4.2 — Poisson Rate Scaling & Conditional Probability
Problem. Incoming inquiries to an advisory hotline follow a Poisson distribution with an average rate of 4 per 10-minute window. Find: (a) the probability of exactly 6 inquiries in a 20-minute window; (b) given that at least 2 inquiries arrived in a 10-minute window, find the probability that exactly 3 inquiries arrived.
▸ Show step-by-step solution

(a) 20-minute window:
The rate scales linearly with the interval length: \(\lambda_{20} = 4 \times 2 = 8\). Let \(Y \sim \text{Po}(8)\): \[ P(Y = 6) = \frac{e^{-8} \cdot 8^6}{6!} = \frac{e^{-8} \cdot 262144}{720} \approx 0.1221. \]

(b) Conditional probability in 10-minute window (\(X \sim \text{Po}(4)\)):
We need \(P(X = 3 \mid X \ge 2) = \dfrac{P(X = 3)}{P(X \ge 2)}\).
Compute \(P(X \ge 2)\): \[ P(X \ge 2) = 1 - P(X = 0) - P(X = 1) = 1 - e^{-4}\left(1 + 4\right) = 1 - 5e^{-4} \approx 1 - 0.09158 = 0.90842. \] Compute \(P(X = 3)\): \[ P(X = 3) = \frac{e^{-4} \cdot 4^3}{3!} = \frac{64 e^{-4}}{6} = \frac{32}{3}e^{-4} \approx 0.19537. \] Therefore: \[ P(X = 3 \mid X \ge 2) = \frac{0.19537}{0.90842} \approx 0.215. \]

Worked Example 4.3 — Difference of Independent Normal Distributions
Problem. The weights of chocolate bars from Brand A and Brand B are independently distributed as \(A \sim N(100, 16)\) and \(B \sim N(95, 9)\) (in grams). Find the probability that a randomly selected bar of Brand A weighs more than a randomly selected bar of Brand B by at least 8 grams.
▸ Show step-by-step solution

1. Define the difference random variable \(D = A - B\).

2. Since \(A\) and \(B\) are independent normal variables, \(D\) is also normally distributed:
Mean: \(\mu_D = E[A - B] = E[A] - E[B] = 100 - 95 = 5\).
Variance: \(\sigma_D^2 = \text{Var}(A - B) = 1^2\text{Var}(A) + (-1)^2\text{Var}(B) = 16 + 9 = 25\).
Thus \(\sigma_D = \sqrt{25} = 5\), and \(D \sim N(5, 25)\).

3. We require \(P(D \ge 8)\):
Standardize: \[ z = \frac{8 - \mu_D}{\sigma_D} = \frac{8 - 5}{5} = 0.6. \] Using the standard normal distribution: \[ P(D \ge 8) = P(Z \ge 0.6) = 1 - \Phi(0.6) \approx 1 - 0.7257 = 0.2743. \]

Poisson PMF
\( P(X=k)=\frac{\lambda^k e^{-\lambda}}{k!} \); \( E[X]=\text{Var}(X)=\lambda \)
Unbiased Variance
\( S_{n-1}^2 = \frac{1}{n-1}\sum (X_i - \bar{X})^2 \); divides by \( n - 1 \)
Linear Variance Law
\( \text{Var}(aX \pm bY) = a^2\text{Var}(X) + b^2\text{Var}(Y) \) for independent \( X, Y \)
Continuous CDF
\( F(x) = \int_{-\infty}^x f(t)\,dt \); \( f(x) = F'(x) \); \( P(X=c)=0 \)
Valid continuous density function \(f(x) = \frac{3}{4}(1 - x^2)\) on \([-1, 1]\) satisfying \(\int_{-1}^1 f(x)\,dx = 1\) and \(\operatorname{Var}(X) = \frac{1}{5}\).
⚠ Topic 4 Exam Traps: Poisson Scaling, Variances & Unbiased Estimators
Poisson Rate Scaling: If events arrive at rate \(\lambda\) per minute, in \(t\) minutes the rate is \(\lambda t\). You must scale \(\lambda\) directly before calculating probabilities.

Variance of a Difference: For independent variables, \(\text{Var}(X - Y) = \text{Var}(X) + \text{Var}(Y)\). A rampant error is subtracting variances: \(\text{Var}(X) - \text{Var}(Y)\). Variability always compounds!

\(2X\) vs \(X_1 + X_2\): \(\text{Var}(2X) = 2^2\text{Var}(X) = 4\sigma^2\), whereas \(\text{Var}(X_1 + X_2) = \text{Var}(X_1) + \text{Var}(X_2) = 2\sigma^2\). The sum of two independently chosen items has half the variance of doubling a single selected item.
Worked Example 4.4 — Variance of Linear Combinations of Independent Normals
Problem. Coffee mug mass \( M \sim N(320, 12^2) \) and liquid coffee mass \( C \sim N(250, 9^2) \) are independent (in grams). Find the distribution of \( M - C \).
▸ Show step-by-step solution

\( E(M - C) = 320 - 250 = 70 \), and by independence variances add: \( \operatorname{Var}(M - C) = 12^2 + (-1)^2 9^2 = 144 + 81 = 225 = 15^2 \), so \( M - C \sim N(70, 15^2) \).

Error Diagnosis — Common Student Traps vs. Exam-Board Method (Statistics & Probability (HL))
Common Student TrapWhy It Fails MathematicallyCorrect Exam-Board Method
Writing \(\operatorname{Var}(X - Y) = \sigma_X^2 - \sigma_Y^2\)Produces smaller or even negative variance for the difference of independent variables.Always add variances of independent variables: \(\sigma_{X-Y}^2 = \sigma_X^2 + \sigma_Y^2\).
Using \(\sigma / n\) instead of \(\sigma / \sqrt{n}\) for \(\bar{X}\)Confuses the variance of the sample mean \(\sigma^2/n\) with its standard error.Take the square root: \(\text{SE}(\bar{X}) = \sigma / \sqrt{n}\).
Accepting \(H_0\) with certainty when \(p > \alpha\)Absence of sufficient evidence against \(H_0\) does not prove \(H_0\) is true.Write in context: "There is insufficient evidence at the \(\alpha\) level to reject \(H_0\)."
▲ Exam Pacing & Verification Strategy — Statistics & Probability (HL)

Exam Marking Tip (IB Diploma Mathematics: AA / AI Higher Level (Papers 1, 2 & 3)): Always state the distribution parameters explicitly (e.g., \(X \sim \operatorname{N}(\mu, \sigma^2)\) or \(\bar{X} \sim \operatorname{N}(\mu, \sigma^2/n)\)) and sketch a quick shaded bell curve before standardizing to \(z = \dfrac{x - \mu}{\sigma}\). This secures the method mark even if a rounding slip occurs later.

A continuous random variable \(X\) has probability density function \(f(x) = 2e^{-2x}\) for \(x \ge 0\) and \(0\) elsewhere. Find the cumulative distribution function \(F(x)\) and determine the exact median of \(X\).
💡 Hint 1 of 3
Find CDF for \(x \ge 0\): \(F(x) = \int_0^x 2e^{-2t}\,dt = \left[ -e^{-2t} \right]_0^x = 1 - e^{-2x}\).
💡 Hint 2 of 3
Set \(F(m) = 0.5\) to find the median \(m\): \(1 - e^{-2m} = 0.5\). Apply the next algebraic step: \(e^{-2m} = 0.5\).
💡 Hint 3 of 3
Use the simplified form to determine \(m\).
1. Find CDF for \(x \ge 0\): \[ F(x) = \int_0^x 2e^{-2t}\,dt = \left[ -e^{-2t} \right]_0^x = 1 - e^{-2x}. \] 2. Set \(F(m) = 0.5\) to find the median \(m\): \[ 1 - e^{-2m} = 0.5 \implies e^{-2m} = 0.5 \implies -2m = \ln(0.5) = -\ln 2 \implies m = \frac{\ln 2}{2}. \]
[Practice 2 · Hard] In proving by induction that \( \displaystyle\sum_{i=1}^{n} i = \dfrac{n(n+1)}{2} \), assuming the result is true for \(n=k\), what must be added to \( \dfrac{k(k+1)}{2} \) to obtain the sum for \(n=k+1\)?
💡 Hint 1 of 3
The \((k+1)\)th term of the sum is \(k+1\).
💡 Hint 2 of 3
So we add \(k+1\) to reach \(\dfrac{(k+1)(k+2)}{2}\).
💡 Hint 3 of 3
Evaluate and simplify \(\dfrac{(k+1)(k+2)}{2}\) carefully (checking signs and units) to obtain the final answer.
\( \text{The }(k+1)\text{th term of the sum is }k+1\text{, so we add }k+1\text{ to reach }\dfrac{(k+1)(k+2)}{2}. \)
[Practice 3 · Hard] A cubic equation with real coefficients \( x^{3} - 10x^{2} + 37x - 52 = 0 \) has \( 3 + 2i \) as one root. Find the real root.
💡 Hint 1 of 3
Complex roots occur in conjugate pairs.
💡 Hint 2 of 3
So \(3 - 2i\) is also a root. Product of all three roots\(=-d=52\), and \((3 + 2i)(3 - 2i)=13\).
💡 Hint 3 of 3
So the real root\(= \dfrac{52}{13}\).
\( \text{Complex roots occur in conjugate pairs, so }3 - 2i\text{ is also a root. Product of all three roots}=-d=52\text{, and }(3 + 2i)(3 - 2i)=13\text{, so the real root}=\dfrac{52}{13}=4. \)
[Practice 4 · Hard] If \( z = 2\left(\cos 30^\circ+i\sin 30^\circ\right) \), find \( |z^{3}| \) and \( \arg(z^{3}) \) (in degrees, \(0\le\arg<360\)).
💡 Hint 1 of 3
By De Moivre's theorem,: \(|z^{3}| = |z|^{3}\).
💡 Hint 2 of 3
Substitute and simplify: \(|z^{3}| = 2^{3}\).
💡 Hint 3 of 3
Compute the final value from: \(3\times30^\circ\).
\( \text{By De Moivre's theorem, }|z^{3}|=|z|^{3}=2^{3}=8,\ \arg(z^{3})=3\times30^\circ=90^\circ \)
Solve \( z^2+2z+5=0 \) over \( \mathbb{C}. \)
💡 Hint 1 of 3
Set up the formula/expression: \(z = \dfrac{-2\pm\sqrt{4-20}}{2}\).
💡 Hint 2 of 3
Substitute and simplify: \(z = \dfrac{-2\pm 4i}{2}\).
💡 Hint 3 of 3
Compute the final value from: \(\dfrac{-2\pm 4i}{2}\).
\( z=\dfrac{-2\pm\sqrt{4-20}}{2}=\dfrac{-2\pm 4i}{2}=-1\pm 2i \) [M1] [A1]

Statistics & Probability (HL) — 8-Mark Structured Problem

8 pts Calculator Active
For Statistics & Probability (HL), consider the linear-rate relationship \(f(x) = 5x + 3\) on \(x \ge 0\) together with the quadratic auxiliary \(g(x) = x^2 - 10x + 3\).
  1. (a)2 pts
    Find the initial value \(f(0)\) and the slope \(f'(x)\).
    Scoring Guideline & Justification
    • [M1] Evaluates f(0) and reads gradient coefficient (1 pt)
    • [A1] Obtains f(0) = 3 and slope = 5 (1 pt)
  2. (b)3 pts
    Determine the vertex \((h, k)\) and minimum value of \(g(x)\).
    Scoring Guideline & Justification
    • [M1] Finds axis of symmetry x = 5 (2 pt)
    • [A1] Evaluates minimum k = -22 (1 pt)
  3. (c)3 pts
    Compute the average rate of change of \(g(x)\) from \(x = 0\) to \(x = 7\).
    Scoring Guideline & Justification
    • [M1] Applies (g(7) - g(0)) / 7 (2 pt)
    • [A1] Simplifies to -3 (1 pt)
Complete Worked Solution
(a) \(f(0)=3\), gradient \(5\). (b) Completing the square gives \(g(x)=(x-5)^2+-22\), minimum \(-22\) at \(x=5\). (c) Average rate \(= (x_1+x_2-10) = -3\).
📝 Chapter Quiz