IB Diploma Programme · Maths AA Higher Level

Statistics and Probability

Cover illustration for Statistics and Probability (Maths AA Higher Level (HL)).
IBDP · Maths AA HL

Statistics and Probability

AA HL Topic 4: Statistics and Probability (4.1–4.16)

42 min readAdvanced~30% of AA HL — the single largest topic, tested on Paper 1, Paper 2 and very often as the Paper 3 investigation

Topic 4 is the biggest single chunk of AA HL and it never disappears — it turns up on Paper 1, Paper 2, and almost always as the Paper 3 investigation. The GDC does the arithmetic; what separates a 7 from a 4 is knowing which formula to reach for ( or ? binomial or Poisson? Pearson's or Spearman's ?) and being able to justify that choice in words when a question says 'comment on' or 'determine'. HL bolts four genuinely new ideas onto the SL core: Bayes' theorem, continuous random variables defined by a pdf, the Poisson distribution, and the algebra of combining and transforming random variables. All four are guaranteed marks if the mechanics are automatic.

Overview: How This Topic Fits Together

Everything in this topic flows in one direction: raw data a summary of that data (descriptive statistics) a model of how such data behaves in general (probability distributions) a statement about the population or relationship the sample came from (inference). Every exam question sits somewhere on that chain, and the command term tells you where.

  • Descriptive statistics never mentions 'the population' — it only describes the numbers you were actually given.
  • Probability distributions are theoretical models (binomial, Poisson, normal) — you plug in parameters, not raw data.
  • Inference is the only place the word 'estimate' is honest — it's where a sample statistic is used to say something about a wider population or a relationship between two variables.

The shape of the chapter

Command terms that decide how you're marked

Command termWhat it demandsAOMark-earning move
Write downState a value read straight off the GDC or a table — no working requiredAO11 mark for the correct value; a wrong value with no working scores 0 (there's nothing to award method marks for)
Calculate / FindProduce a numerical answer; method can be GDC-only unless the question says 'show that'AO2Method mark for the correct formula/setup, then an answer mark for the correct value
Show thatDerive a GIVEN result — every substitution step must be visibleAO2/AO3Marks sit on the intermediate lines; a GDC-only final line matching the given answer can score 0 if no working is shown
DetermineFind a value or reach a decision using a stated rule (e.g. the 1.5×IQR outlier test)AO3State the rule, apply it with numbers, then state the conclusion — skipping the stated rule costs a mark even if the final number is right
Comment on / InterpretGive a statement tied to the actual context and units, not a bare mathematical factAO3'Positive correlation' alone scores 0 for interpretation; it must say what increases with what, in context

Key point

Stats mark schemes reward the SET-UP before the ANSWER: writing the correct formula line (even before you touch the GDC) is often worth as many marks as the final value. Skip straight to a GDC output and a perfect number can still lose marks.

Descriptive Statistics

A population is every member of the group you actually care about; a sample is the (usually much smaller) subset you actually measured. Data is discrete if it's counted in separate steps (number of defective rods) and continuous if it's measured on a scale (length, temperature) — this classification decides whether a histogram's bars can touch (continuous, always touching) and whether 'mid-interval values' are needed at all.

  • Grouped/continuous data is summarised in a frequency table with class boundaries; you always use the mid-interval value to represent every value in that class when calculating a mean.
  • Histograms plot frequency against continuous class intervals with no gaps between bars — unlike bar charts, the bars touching is a mathematical statement, not a formatting choice.
  • For grouped data the median and quartiles are estimated (you don't have the raw values) using the cumulative-frequency formula — this is the single most-tested 'grouped data' skill on Paper 2.
  • Central tendency: mean is pulled by outliers/skew, median is not, mode only matters for genuinely categorical or heavily repeated data.
  • Dispersion: range and IQR only need the 5-number summary (min, , median, , max); variance and standard deviation use every single value, which is exactly why they're more sensitive to outliers.
  • Box plots are drawn directly from the 5-number summary; a value is flagged as an outlier if it lies beyond or — you must state this rule explicitly when a question says 'determine whether there are any outliers'.

Core vocabulary

Population
The entire group of interest, from which a sample is drawn.
Discrete data
Data that can only take separate, countable values (e.g. number of siblings).
Continuous data
Data measured on a continuous scale, rounded for recording (e.g. height, temperature).Continuous data is why grouped-data formulas exist — you never have the exact original value.
Modal class
For grouped data, the class interval with the highest frequency (not a single value).
Outlier
A value lying beyond or ; flagged on a box plot as an isolated point beyond the whisker.

Central tendency & dispersion

Mean, using mid-interval values for grouped/continuous data

Data booklet

Variance treating the data as the whole population (GDC label: )

Data booklet

Unbiased estimate of population variance from a sample (GDC label: )

Data bookletMemorise

Any exam wording containing 'sample variance' or 'estimate the population variance' means THIS one — divide by , not .

Estimated -th quartile (; gives the median) for grouped data

— lower class boundary of the class containing $Q_k$
— cumulative frequency BEFORE that class (not including it)
— frequency of that class
— class width
Data booklet

Effect of a linear transformation of the data on mean and variance

Adding a constant shifts the mean but never changes the spread; scaling by scales the mean and standard deviation by , and the variance by .

Worked example

Grouped data: estimating median and IQR from a histogram

[6]
200 metal rods are measured. Lengths (mm): [50,55) 10 rods, [55,60) 25, [60,65) 45, [65,70) 60, [70,75) 40, [75,80] 20. Estimate the median and the interquartile range.

Worked example

Median, a missing value, and whether IQR actually changes

[5]
Twelve plant heights (cm), sorted: 12, 15, 18, 20, 22, 25, 27, 30, 33, 35, 38, 40. (a) Find the median. (b) A 13th plant of height is added; the new mean is 25 cm. Find . (c) Determine whether adding this plant changes the IQR.

Worked example

'Show that' with sample variance — the n−1 trap

[4]
Temperature readings (°C) at 8 locations: 22.4, 24.1, 23.7, 25.0, 22.8, 24.6, 23.3, 24.9. Show that the sample variance is (3 s.f.).

Common mistake

Treating variance as something you can update with a shortcut when a new data point is added

Consequence: Students try to bolt the new value onto the old using the OLD mean, when the mean itself has changed — this silently corrupts every subsequent value and loses all method marks even though the final formula is written correctly.

Fix: Whenever a data point is added, recompute the mean first from the new total, then recompute (or re-list every deviation) from scratch using the NEW mean. There is no valid shortcut in the AA syllabus for this — do the full recalculation.

'Show that' means show the ugly middle step

For any 'show that' variance/mean question, write the raw sum (e.g. ) and the sum of squared deviations explicitly before dividing. A GDC-only final line that happens to match the given answer can be awarded 0/4 if no intermediate values appear — examiners cannot tell you didn't just copy the given answer.

vs

Concept AConcept BThe distinction that matters
(population variance formula) (unbiased sample variance)Use when the data given IS the entire population you care about ('the variance of these page counts'); use whenever the wording says 'sample' or asks you to estimate a wider population's variance — on your GDC this is vs .

Which measure should you actually use?

SituationBest measure of centreBest measure of spreadWhy
Roughly symmetric data, no outliersMeanStandard deviationUses every value; most statistically efficient when there's nothing distorting the shape
Skewed data or known outliers presentMedianIQRBoth are resistant — unaffected by a few extreme values
Comparing two samples' spreadMedian (compare both)IQR (compare both)Box plots make this a two-line visual comparison examiners can mark quickly
Estimating a population parameter from a sampleThese are the specific unbiased estimators — the only ones valid for inference

Why factories care about n−1

A quality engineer samples 40 rods from today's production run and computes , not — because they don't care about the variance of just those 40 rods, they need the best possible estimate of the variance across EVERY rod the factory will ever produce, so tolerance limits (e.g. Six Sigma control charts) can be set correctly. Using here systematically understates the true variability and lets faulty batches slip through.

Histogram of rod lengths (n = 200)

Six touching bars — the data is continuous, so there can be no gaps between bars.

Length (mm)Frequency

Box plots comparing petal lengths of two orchid species

Compare BOTH centre and spread — never just one — when a question says 'comment on'.

Petal length (cm)

Key takeaways

  • Grouped-data quartiles use — F is cumulative frequency BEFORE the class, always re-identify L, F, f, h for each quartile.
  • 'Sample variance' in exam wording always means divide by ; the raw population-style formula divides by .
  • Adding or changing a single data point requires a full recalculation of the mean and every deviation — there is no valid shortcut.
  • IQR is resistant to extreme values but NOT immune to changing — an added value can still shift which points define a quartile.

Probability and Probability Distributions

This section splits cleanly into two halves: the RULES of probability (Venn diagrams, trees, conditional probability, Bayes' theorem) and the MODELS built from those rules (binomial, Poisson, normal, and general discrete/continuous random variables).

  • always; it simplifies to only for mutually exclusive events, where .
  • Conditional probability — this is the algebra that Bayes' theorem is built from.
  • Independence must be TESTED numerically: and are independent only if — never assume it from the story of the question.
  • Bayes' theorem (HL) reverses a conditional probability: given , it finds — essential whenever a question gives you 'probability of the effect given the cause' and asks for 'probability of the cause given the effect'.
  • A discrete random variable has a probability distribution table with ; is SL content, but the general variance formula is HL only.
  • Binomial needs four conditions: fixed number of trials, only two outcomes, constant probability , independent trials — its mean and variance (, ) are SL content even though the general variance formula above is HL.
  • Poisson (HL only) models the number of independent random events in a fixed interval, at a constant average rate — uniquely, its mean equals its variance, both equal to .
  • The normal distribution is continuous, symmetric, and fully described by and ; almost all normal questions are solved on the GDC using normal cdf / inverse normal, but you must be able to standardise by hand: .
  • Continuous random variables (HL only) are defined by a probability density function rather than a table: total area under over its support equals 1, and — an area, computed by integrating, not read off a table.
  • Algebra of random variables (HL only): and ; for two INDEPENDENT variables, but — variance always adds, even for a difference.

Vocabulary you must use precisely

Random variable
A variable whose value is the numerical outcome of a random process (e.g. number of heads in 5 tosses).
Probability density function (pdf),
A function describing a continuous random variable, where area under the curve over an interval gives the probability the variable falls in that interval; everywhere and the total area over the support is 1.HL only.
Mutually exclusive events
Events that cannot occur together: .
Independent events
Events where one occurring doesn't change the probability of the other: , equivalently .

Probability rules and distributions

Data booklet

Data booklet

Bayes' theorem (HL) — partition the sample space into and

Data booklet

HL only.

Mean and variance of a discrete random variable

Data booklet

is SL; the general formula is HL only.

Binomial distribution

Data booklet

Poisson distribution (HL) — mean and variance are always equal

Data booklet

HL only. Sums of independent Poisson variables are themselves Poisson, with 's added.

Standardising a normal variable

Data booklet

Continuous random variable via a pdf

Data booklet

HL only. Median solves ; mode is where is maximised.

Linear transformation of a random variable (HL)

Data bookletMemorise

Sum/difference of independent random variables (HL)

Data booklet

Variance ADDS for both the sum and the difference — this is the most common HL algebra slip.

Worked example

Bayes' theorem (HL): reversing a conditional probability

[5]
Machine A produces 60% of a factory's rods with a 2% defect rate; Machine B produces the remaining 40% with a 5% defect rate. A rod is picked at random and found defective. Find the probability it came from Machine B.

Worked example

General discrete random variable: E(X) and Var(X) (HL)

[4]
A random variable has distribution: . Find and .

Worked example

Binomial distribution: recognising the model

[4]
12 rods are sampled independently; each has a 5% chance of being defective. Find the probability at least 2 are defective.

Worked example

Poisson distribution (HL): using the sum property

[4]
Calls arrive at a helpdesk independently at an average rate of 4 per 10 minutes. Find (a) , and (b) the parameter to use for a 20-minute interval.

Worked example

Normal distribution: standardising and inverse normal

[4]
Adult male heights are cm. Find (a) , and (b) the height such that .

Worked example

Continuous random variable (HL): area under a non-linear pdf

[6]
A continuous random variable has pdf for , and otherwise. Find , state the mean using symmetry, and find .

Subtracting variances for X − Y

Writing by analogy with

Consequence: This can even produce a negative 'variance', which should be an instant red flag, but many students don't check and submit it anyway — full method marks lost on any HL combination-of-variables question.

Fix: Variance measures spread, and spread can only increase when you combine two independent sources of randomness — for independent : always, regardless of the sign in the mean.

Draw the tree before you touch Bayes' formula

On any Bayes' theorem question, sketch the two-stage tree with every given probability labelled first. Mark schemes routinely award 2–3 method marks for a correctly labelled tree/partition even if the final division is botched — skipping straight to the formula with unlabelled numbers risks losing those marks even with the right final answer.

BINS for binomial conditions

B-I-N-S

Binary outcomes, Independent trials, Number of trials fixed, Same probability of success each time — all four must hold before you're allowed to write .

Mutually exclusive vs independent

Concept AConcept BThe distinction that matters
Mutually exclusiveIndependentMutually exclusive means — the events physically can't both happen. Independent means — one happening doesn't change the other's probability. Two events with nonzero individual probabilities that are mutually exclusive are automatically NOT independent (knowing one happened tells you the other definitely didn't).

Binomial vs Poisson vs Normal

FeatureBinomialPoisson (HL)Normal
Type of variableDiscreteDiscreteContinuous
Parameters only
Mean
Variance (equal to mean)
Typical useFixed number of independent yes/no trialsRare independent events over a fixed intervalMeasured quantities clustering around a centre

Tree diagram for the factory machine / defect problem

Every branch must carry its given probability before you attempt Bayes' theorem.

Standard normal-style bell curve with shaded tail probability

Standardise the boundary, not the whole curve, when solving for an unknown x-value.

Probability density function f(x) = (3/32)x(4−x) on [0,4]

The area of this non-rectangular shaded region is P(X>3) — it must be found by integration, not by reading a table.

Key takeaways

  • Test independence numerically () — never assume it from the wording of a question.
  • Bayes' theorem (HL) reverses a conditional probability; always sketch the labelled tree first for the method marks.
  • Var(X) requires as a separate weighted sum, then subtract — a very common HL slip is subtracting unsquared.
  • For independent random variables, variance ADDS whether you're finding or — it never subtracts.
  • For a continuous random variable, probability is an AREA found by integrating the pdf — check for symmetry first, since it can hand you the mean/median for free.

Inferential Statistics

Descriptive statistics summarises the sample you were actually given; inference uses that sample to say something trustworthy about the wider population, or about the relationship between two variables.

  • A parameter (, ) belongs to the population — it's fixed but usually unknown. A statistic (, ) is computed from the sample and varies from sample to sample — it's an ESTIMATE of the parameter.
  • is an unbiased estimator of ; is the unbiased estimator of — this is the exact formula behind every 'sample variance' question in the Descriptive Statistics section, now viewed as an inference tool rather than just a calculation.
  • For bivariate data, the Pearson's product-moment correlation coefficient () measures the strength and direction of a LINEAR relationship only — close to 0 does not mean 'no relationship', it can mean a strong non-linear one.
  • The regression line of on , , is used to PREDICT from ; it always passes through the mean point , and predictions are only reliable within the range of the original data (interpolation) — going outside that range (extrapolation) assumes the same trend continues, which is rarely justified.
  • Spearman's rank correlation coefficient (HL only) replaces raw values with their ranks, measuring any monotonic (consistently increasing or decreasing) trend, not just a straight-line one — it is far less distorted by a single outlier than Pearson's .

Estimation vocabulary

Parameter
A fixed numerical property of the whole population (e.g. the true mean ), usually unknown.
Statistic
A numerical value calculated from a sample (e.g. ), used to estimate a parameter.
Unbiased estimator
A statistic whose average value over many repeated samples equals the population parameter it estimates.
Extrapolation
Using a regression line to predict beyond the range of the original data — statistically unjustified since the relationship may not continue in the same way.

Estimation and bivariate data

Unbiased estimate of the population variance

Data bookletMemorise

Pearson's product-moment correlation coefficient — found by GDC; sign gives direction, magnitude gives strength of LINEAR association only

Data booklet

Regression line of on , passes through ; valid for interpolation only

Data booklet

Spearman's rank correlation coefficient (HL)

— difference between the two ranks of the $i$-th data pair
— number of pairs
Data booklet

HL only. Rank tied values by averaging the tied positions.

Worked example

Correlation, regression, and the danger of extrapolation

[5]
Six students' revision hours () and test scores (, %): (1,52), (2,58), (3,63), (4,70), (5,75), (6,82). The GDC gives and . (a) Interpret in context. (b) Predict the score for 5 hours of revision. (c) Comment on using this line to predict the score for 15 hours.

Worked example

Spearman's rank correlation coefficient (HL): when Pearson's r is misleading

[4]
Two judges rank 6 gymnasts. Judge 1's ranks: 1,2,3,4,5,6. Judge 2's ranks (disagreeing on two gymnasts): 1,3,2,4,6,5. Find and comment on what it shows compared to a lower Pearson's on the raw scores.

Trusting an extrapolated prediction

Using to predict for an -value well outside the range of the original sample, and quoting the result as reliable

Consequence: Even a perfectly executed substitution scores 0 for the 'comment on reliability' mark, and can also cost the prediction mark itself if the question specifically asks whether the model should be trusted there.

Fix: Always check the given against the ORIGINAL data range before predicting. If it's outside, state explicitly that extrapolation is unreliable because the relationship is not known to continue in the same way beyond the sampled data.

'Sample variance' always means the estimator, even here

If an inference question asks you to 'estimate the population variance from this sample', that's a direct signal to use — the same formula from Descriptive Statistics, now explicitly framed as an unbiased ESTIMATE rather than just a summary number.

Key point

Wording decides the divisor: 'variance of this data set' → divide by ; 'sample variance' or 'estimate the population variance' → divide by . On the GDC these are and respectively — check which one the question is actually asking for before you read off the calculator screen.

Pearson's r vs Spearman's rs

Concept AConcept BThe distinction that matters
Pearson's Spearman's (HL)Pearson's measures LINEAR association using the actual data values, and is distorted by outliers or curved (non-linear) trends. Spearman's measures MONOTONIC association using ranks instead of values, so it stays close to even when the relationship is curved or one point is an outlier, as long as the overall order is preserved.

Why rank correlation matters outside the classroom

Sports judging, wine-tasting competitions and staff performance reviews all rely on Spearman's rank correlation to check whether different judges/assessors broadly agree — the actual numerical scores different judges give are often subjective and not directly comparable, but if the ORDER they rank competitors in agrees strongly, close to 1 confirms the judging is consistent even though Pearson's on the raw scores might look unconvincing.

Scatter diagram: hours revising vs test score, with regression line and extrapolation warning

The dashed extension shows exactly why extrapolation is unreliable — the model predicts an impossible score.

Key takeaways

  • A statistic (from the sample) estimates a parameter (of the population); and are the unbiased estimators AA HL expects you to use.
  • Pearson's only detects LINEAR association — a value near 0 can still hide a strong curved relationship.
  • Regression predictions are only trustworthy for interpolation, inside the original data range; extrapolation assumes an unverified continuation of the trend.
  • Spearman's rank correlation (HL) measures monotonic association via ranks, making it robust to outliers and non-linear-but-consistent trends where Pearson's would understate the relationship.

Quick Reference

Statistics & Probability — HL formula and decision sheet

Formulas

  • Population-style variance — use when the data IS the whole population
  • Unbiased sample variance — use for 'sample variance' / estimating a population
  • Grouped quartiles; F = cumulative frequency BEFORE the class
  • General addition rule
  • Conditional probability
  • Bayes' theorem (HL) — build the tree first
  • General discrete r.v.; Var(X) formula is HL only
  • Binomial
  • Poisson (HL) — mean equals variance, always
  • Standardising a normal variable
  • Continuous r.v. via pdf (HL) — probability is an area
  • Linear transformation (HL)
  • Independent r.v.s (HL) — variance ADDS even for the difference
  • Spearman's rank correlation (HL)

Key facts

Outlier rule
beyond or
Range of Pearson's r
Poisson property
mean = variance =
Binomial variance
, always less than the mean (since )
Total area under any pdf
1

Mnemonics

  • BINSBinary outcome, Independent trials, Number of trials fixed, Same probability — the four binomial conditions

Don't confuse

  • vs : Whole-population data divide by ; sample estimating a population divide by
  • Mutually exclusive vs Independent: Mutually exclusive: . Independent: . Two mutually exclusive events (with nonzero probabilities) can never be independent
  • Pearson's vs Spearman's : measures linear association on raw values; measures monotonic association on ranks and resists outliers

Command terms

Show that:
Write every substitution/intermediate value explicitly — a GDC-only final answer can score 0
Determine:
State the rule/criterion first (e.g. 1.5×IQR), apply it, then conclude
Comment on / Interpret:
Answer in context with the actual variable named, not a bare mathematical fact
Calculate:
GDC answer accepted, but show the formula/setup line for method marks

Exam checklist

  • Did 'sample variance' or 'estimate the population variance' appear? → divide by .
  • For grouped quartiles, did I re-identify L, F (cumulative BEFORE the class), f, h for each quartile separately?
  • Did I test independence numerically () instead of assuming it?
  • For Var(X−Y), did I ADD the variances, not subtract?
  • Is my regression prediction inside the original data range (interpolation), or do I need to flag extrapolation?
  • For a continuous r.v., did I integrate to find area, and check for symmetry before grinding through unnecessary calculus?
  • In 'comment on' answers, did I name the actual variables and units, not just say 'positive' or 'strong'?