IB Diploma Programme · Maths AI Standard Level

Statistics and Probability

Cover illustration for Statistics and Probability (Maths AI Standard Level (SL)).
IBDP · Maths AI SL

Statistics and Probability

AI SL — Topic 4: Statistics and Probability

46 min readStandard≈27 teaching hours — the single largest AI SL topic. Appears in every Paper 1 and Paper 2, usually as one full 15–20 mark question plus smaller parts elsewhere.

This is the topic examiners lean on hardest, because it's the one place they can test whether you actually understand what a number means, not just whether you can press the right calculator button. A GDC will hand you , a -value, or a confidence interval in seconds — the marks live in knowing which tool to reach for, reading the question for the tail direction, and finishing with a sentence back in context. Four threads run through it: describing data you already have, inferring about a population you don't, modelling chance for single events, and modelling chance across a whole range of outcomes. They constantly borrow from each other, so treat this as one connected chapter, not four separate ones.

Overview — how the chapter fits together

One dataset, two very different jobs

Descriptive statistics summarises the sample sitting in front of you: mean, spread, a scatter diagram. Inferential statistics uses that same sample to make a claim about a population you'll never fully measure — a confidence interval, a hypothesis test, a chi-squared test. Probability and probability distributions sit underneath both: they're the machinery that tells you how much a sample result could plausibly wobble by chance alone, which is exactly what a -value is measuring.

  • Every stats question on AI SL is really asking: what does this number tell us about the story in the question, not just 'is the arithmetic right'.
  • The GDC does almost all the heavy computation — regression coefficients, , , -values, inverse normal — so time pressure comes from setting up the right calculation, not doing it by hand.
  • Hypotheses, significance levels and conclusions must always reference the scenario (lifetime of bulbs, pH of lakes, rod lengths) — generic 'reject ' answers are routinely capped at partial marks.

The shape of the chapter

Command terms that decide how much working you need

Command termWhat it demandsAOMark-earning move
Write down / StateGive a fact directly from data, GDC or a formula — no derivation expected.AO1Full marks for the bare answer, but wrong rounding or the wrong sign still costs the mark.
CalculateProduce a numerical answer using a defined process.AO2Method mark for correct setup even if arithmetic slips; final accuracy mark needs the right value to the stated sf/dp.
Show thatJustify a given answer with enough intermediate working to prove it, not just state it.AO2/AO3Copying the given final value without the working line in between scores zero, even if your answer 'matches'.
DetermineMulti-step process to find an unknown quantity (e.g. regression coefficients, a critical value).AO2Correct method with a wrong final number still earns M marks; the last A mark needs an exact match.
InterpretExplain what a statistical value means inside the scenario, not just restate it.AO3', strong correlation' with no mention of the two variables in context loses the interpretation mark.
Comment on / SuggestEvaluate a limitation of the model or conclusion tied to this specific data.AO3A generic 'the sample might not be representative' with no link to the scenario scores 0.

Key point

Every inferential answer ends with a sentence back in the scenario. 'Reject ' alone is not a conclusion on AI SL mark schemes — you need 'there is sufficient evidence, at the 5% level, that the mean lifetime is less than 8000 hours'.

Inferential Statistics

Sampling and the logic of inference

A parameter (like or ) describes the whole population and is usually unknown; a statistic (like or ) is computed from a sample and is used to estimate it. Every confidence interval and hypothesis test in this section is built on the same idea: sample statistics vary from sample to sample, and we can quantify exactly how much using the sampling distribution.

  • A biased sampling method (e.g. surveying only people leaving a gym about exercise habits) invalidates the inference stage entirely — no amount of correct arithmetic afterwards fixes it.
  • Stratified sampling divides the population into groups (strata) sharing a characteristic, then samples proportionally from each — used when subgroups differ meaningfully (age bands, school year groups).
  • Systematic sampling picks every th item from an ordered list after a random start; convenience sampling just takes whoever is easiest to reach and is the weakest method examiners ask you to critique.

Vocabulary the mark scheme expects you to use precisely

Confidence interval
A range of values, computed from a sample, expected to contain the true population parameter with a stated level of confidence (e.g. 95%).It is the interval that varies from sample to sample — not the fixed — so never say ' has a 95% chance of being in here'.
Null hypothesis,
The 'no change / no effect' statement being tested, always containing an equals sign, e.g. .
Alternative hypothesis,
What you conclude if the evidence is strong enough to reject ; its direction (, , ) is read from the wording of the claim in the question.
Significance level,
The probability threshold (often 0.05 or 0.01) below which the -value triggers rejection of .
-value
The probability of obtaining a test statistic at least as extreme as the one observed, assuming is true.
Degrees of freedom,
The number of independent values free to vary in a calculation; for a -test on one sample, .

Confidence intervals, hypothesis tests and chi-squared

confidence interval for when the population standard deviation is known

— critical value from the standard normal distribution (e.g. 1.960 for 95%)
— sample size
Data booklet

confidence interval for when is unknown — the far more common IB case

— unbiased sample standard deviation
— critical value from the $t$-distribution with $n-1$ degrees of freedom

Read from your GDC's inverse- function, not a -table.

test statistic for a one-sample test on the mean — use only when is genuinely known, otherwise

Memorise

chi-squared statistic comparing observed frequencies to expected frequencies

Data booklet

expected frequency for a cell in a contingency table, assuming the null hypothesis of independence

Memorise

degrees of freedom for an contingency table (test for independence)

One-tailed hypothesis test: rejection region

The test statistic falling inside the shaded rejection region is exactly what 'reject ' means graphically.

rejection regioncritical valuetest statisticH0: μ = μ0

Worked example

Confidence interval for a population mean (pH of lakes)

[6]
pH levels in 9 randomly selected lakes: $6.8, 7.1, 6.9, 7.0, 7.2, 6.7, 7.0, 6.9, 7.1$. Assume pH is normally distributed. (a) State and . (b) Calculate a 99% confidence interval for the population mean. (c) A government agency claims the mean pH is at least 7.0 for safe aquatic life — does the interval support this?

$n$ vs $n-1$, and which critical value table

Plugging the population-style standard deviation (, GDC's ) into the confidence interval or -test formula instead of the unbiased .

Consequence: Every CI endpoint and every test statistic comes out slightly wrong — usually still 'close enough' to look plausible, so the error goes unnoticed and costs the final 1–2 accuracy marks silently.

Fix: Whenever a question says 'sample standard deviation' or gives you raw data to estimate a population, use . Only use (or ) when the population variance is explicitly stated as known.

Worked example

Reading off a critical value directly (tree heights)

[4]
A sample of 15 trees gives , . Heights are normally distributed. (a) State the critical value for a 99% CI. (b) Calculate the 99% CI for the population mean height.

Worked example

One-tailed -test via the confidence interval (LED bulb lifetime)

[6]
A company claims mean LED lifetime is 8000 hours; a consumer group suspects it's less. Sample: , , hours, lifetimes normally distributed. (a) Show the 95% CI for is approximately . (b) Test at the 5% level whether the mean lifetime is less than claimed.

Worked example

Spotting a -test in disguise (metal rods)

[5]
Rod lengths are normally distributed with population mean 150 mm and standard deviation 2 mm. A sample of 10 rods gives mm, mm. Test at 5% whether the mean length has decreased.

Worked example

Chi-squared test for independence (music genre vs test result)

[7]
150 students classified by preferred music genre and pass/fail: Pass row = 25, 30, 35; Fail row = 15, 20, 25 across three genres. (a) Calculate the expected frequency for each cell, assuming independence. (b) Test at the 5% level whether music genre and test result are independent.

Compare like with like

Decide once per question whether you're comparing test statistic vs critical value, OR -value vs — never mix the two comparisons in your working, and never write '' (a statistic compared to a probability is meaningless and flags a conceptual gap to the examiner).

-test vs -test on a single mean

Feature-test-test
When to usePopulation stated/knownOnly sample available (far more common)
Test statistic
Distribution usedStandard normal-distribution, degrees of freedom
Critical value depends onConfidence level / onlyConfidence level / AND sample size

Where this shows up outside the exam

'52% ± 3%' in a political poll is a 95% confidence interval for a population proportion — the ±3% is the margin of error your CI formula produces. Pharmaceutical trials routinely run one-tailed -tests to prove a new drug's effect exceeds a benchmark, exactly like the LED-bulb and rod-length questions here, just with lives instead of light bulbs riding on the conclusion.

Key takeaways

  • Use only when the population standard deviation is explicitly given; otherwise it's a -test with .
  • Always use (sample standard deviation), never , when estimating a population from a sample.
  • The wording of the claim ('less than', 'more than', 'different from') fixes whether is one-tailed or two-tailed — decide this before calculating anything.
  • For chi-squared: total rows and columns first, build from totals, use , and conclude in terms of independence/association, not equality.
  • Every final answer needs a sentence back in the scenario — this is a scored mark, not a stylistic nicety.

Descriptive Statistics

Central tendency, spread, and bivariate data

Descriptive statistics has two halves on AI SL: univariate (one variable — mean, median, spread, box plots) and bivariate (two variables — scatter diagrams, correlation, regression). Both halves are computed instantly on the GDC, but the exam tests whether you can read a cumulative frequency graph, estimate from grouped data, and — crucially — interpret a regression equation and correlation coefficient in context rather than just quoting them.

  • For grouped/continuous data, the mean is estimated using class midpoints: — this is always an estimate, never the exact mean, because you've lost the individual raw values.
  • The interquartile range (IQR ) is a far more robust measure of spread than range when outliers are present, since it ignores the extreme 25% at each end.
  • An outlier is formally any value below or above — this is the fence the GDC uses to decide which points get drawn separately on a box plot.

Central tendency, dispersion, correlation and regression

grouped-data mean and variance (population form, )

Data booklet

effect of a linear transformation on the mean and standard deviation of a dataset

Adding a constant shifts the mean but never changes the spread; multiplying scales both.

Pearson's product-moment correlation coefficient,

Data booklet

least-squares regression line of on ; is the gradient (rate of change of per unit ), the -intercept

Memorise

the boundary used to flag outliers on a box plot

Box-and-whisker plot with outlier

minQ1medianQ3maxoutlier

Worked example

Reading a median and IQR off a cumulative frequency curve

[4]
80 students' times (minutes) to finish a puzzle give the cumulative frequencies: (10, 5), (20, 18), (30, 42), (40, 65), (50, 76), (60, 80). Estimate the median and IQR.

Cumulative frequency curve (ogive) with median and quartiles

n/2 = 40median ≈ 29.2Q1Q3

Sample variance denominator

Dividing by instead of (or vice versa) when the question specifically asks for 'the sample standard deviation' vs 'the standard deviation of this data'.

Consequence: A near-miss numeric answer that still loses the final accuracy mark, because the two GDC outputs ( and ) differ and only one matches what was asked.

Fix: If the data IS the whole population you care about, use ( on the GDC). If the data is a sample used to estimate a wider population, use ( on the GDC).

Worked example

Linear regression from summary statistics (study hours vs exam score)

[6]
For 5 students: , , , , . (a) State and . (b) Find the regression line of on . (c) Interpret the gradient in context.

Never extrapolate without flagging it

If asked to predict for an -value outside the given data range, you must state that this is extrapolation and the prediction may be unreliable — omitting this loses the 'comment on validity' mark even if the numerical prediction itself is correct.

Worked example

Quadratic regression and finding an optimum (training hours vs 100 m time)

[6]
For 10 athletes, hours trained per week and 100 m time (s): ; . A quadratic model is proposed. (a) Determine , , . (b) Find the number of training hours that minimises predicted time, and the minimum time.

Scatter diagram with quadratic regression curve

h (hours)t (seconds)vertex ≈ (14.3, 10.9)

Descriptive statistics cheat sheet

MeasureFormula / ruleBest used when
MeanData roughly symmetric, no extreme outliers
MedianMiddle value / Skewed data or outliers present
ModeMost frequent value / modal classCategorical or heavily repeated data
RangeMax MinQuick, crude spread — very outlier-sensitive
IQRRobust spread measure, pairs naturally with median
Standard deviationPairs naturally with the mean; basis for -scores

Key takeaways

  • Grouped-data mean and variance use midpoints and are always estimates, not exact values.
  • Adding a constant to data shifts the mean, never the spread; multiplying scales both mean and spread by the same factor.
  • Regression gradient must be interpreted in context (units and direction); the intercept is only meaningful if is inside the data range.
  • Quadratic (or other non-linear) regression models have a genuine turning point you can extract with — a straight-line model never does.
  • State whether a prediction is interpolation (safe) or extrapolation (flag the risk) every time you're asked to predict.

Probability

Sample spaces, combined events, conditional probability

Everything in this section reduces to counting outcomes in a sample space , or to combining known probabilities using one of three tools: a Venn diagram (for combined/overlapping events), a tree diagram (for sequential events, especially without replacement), or a straight formula (for conditional probability).

  • — the complement rule, useful whenever 'at least one' appears in a question (find P(none) first, then subtract from 1).
  • Without replacement means probabilities on the second draw change — always redraw the tree with new denominators for the second stage.
  • 'Given that' in a question is the conditional probability signal — it restricts the sample space to the condition, so the denominator changes to , not .

The four relationships examiners test

Mutually exclusive events
Events that cannot both happen: , so .
Independent events
Events where one occurring has no effect on the other: .
Conditional probability
— the probability of given that has already occurred.
Complementary events
and partition the whole sample space: .

Combining events

general addition rule (works for overlapping events; reduces to if mutually exclusive)

Data booklet

the multiplication rule for independent events — also the test used to CHECK independence

Memorise

conditional probability

Data booklet

Venn diagram for two events A and B

UABP(A∩B) = 0.3

Worked example

Checking independence with a Venn diagram (subject choices)

[5]
In a class, , , . (a) Find . (b) Determine whether the events are independent. (c) Find .

Tree diagram for two-stage conditional probability

Blue (3/8)Red (5/8)Blue (2/7)Red (5/7)Blue (3/7)Red (4/7)

The pairing every exam checks

Concept AConcept BThe distinction that matters
Mutually exclusiveIndependentMutually exclusive events CANNOT both happen (); independent events CAN both happen and one occurring just doesn't change the other's probability. Two events with non-zero probability can never be both mutually exclusive AND independent.

Assuming mutually exclusive means independent

Treating 'the events can't both happen' as equivalent to 'the events don't affect each other', then multiplying probabilities for mutually exclusive events.

Consequence: If and are genuinely mutually exclusive with , then knowing happened tells you definitely did NOT — the opposite of independence. Using here gives a nonsense positive value for an event that's actually impossible.

Fix: For mutually exclusive events, always. Only use the multiplication rule after confirming independence separately (or being told the events are independent).

Key takeaways

  • 'At least one' problems are almost always faster via the complement: find , subtract from 1.
  • Without replacement changes the denominators on later tree branches — redraw with the new totals, don't reuse the first stage's fractions.
  • 'Given that' signals conditional probability — restrict the sample space to the condition in the denominator.
  • To test independence, always compute and compare to the given — never assume from wording alone.

Probability Distributions

From single events to whole distributions

A discrete random variable takes specific values with specific probabilities that sum to 1; a continuous random variable like the normal distribution assigns probability as AREA under a curve, not to individual points. Binomial handles repeated identical yes/no trials; normal handles continuous, symmetric, bell-shaped measurement data (heights, lengths, times).

  • For a discrete distribution, always — a classic 'find ' question uses this to solve for an unknown probability.
  • The binomial distribution requires: a fixed number of trials, two outcomes per trial, constant probability of success, and independent trials — violate any one and is the wrong model.
  • For a continuous variable, for any single value — you can only ever find , or , i.e. an area.

Core distribution vocabulary

Discrete random variable
A variable that takes a countable set of values, each with an associated probability listed in a probability distribution table.
Expected value,
The long-run average value of : .
Binomial distribution,
Models the number of successes in independent trials, each with success probability .
Normal distribution,
A continuous, symmetric, bell-shaped distribution fully determined by its mean and standard deviation .

Discrete, binomial and normal formulas

mean and variance of a discrete random variable

Data booklet

binomial probability,

Data booklet

mean and variance of the binomial distribution

Memorise

standardising a normal variable to the standard normal distribution

Data booklet

BINS — checking a binomial model applies

B.I.N.S.

Binary outcomes (success/failure) · Independent trials · Number of trials fixed in advance · Same probability of success every trial.

Worked example

Binomial probability and its mean/variance (defective items)

[5]
A factory produces items with 8% defective. A sample of 20 items is taken, . Find (a) and , (b) , (c) .

Normal distribution: area between two non-central values

μ = 150147151P(147 < X < 151)

Worked example

Normal distribution: area (non-central interval) and inverse normal

[5]
Rod lengths mm (same factory as the earlier hypothesis test). (a) Find . (b) Find such that .

GDC keystrokes still need a labelled sketch or working line

Even when the final number comes straight from normal CDF / inverse normal on the calculator, write down , , and the inequality you entered — 'Show that' and even plain 'Calculate' questions award method marks for this line, and you can lose them entirely by writing only the rounded final answer.

Why this exact shape of question keeps appearing

Quality control in manufacturing (rod lengths, bolt diameters, bottle fill volumes) is a textbook normal-distribution setting: a factory sets tolerance limits as -score cutoffs from the target mean, and 'Six Sigma' processes are literally named after pushing defect rates out to from the mean using exactly this area-under-the-curve reasoning.

Key takeaways

  • Discrete probabilities must sum to 1 — use this to solve for an unknown probability in a distribution table.
  • Check BINS before using a binomial model: Binary outcome, Independent trials, fixed Number, Same probability.
  • For continuous (normal) variables, only intervals have non-zero probability — it's always an area, never a single point.
  • Inverse normal problems run the standardising formula backwards — always convert the resulting back into an -value with correct units.

Quick Reference

Statistics & Probability — everything on one page

Formulas

  • CI for mean, unknown (most common case)
  • CI for mean, known
  • one/two-sample -test statistic
  • chi-squared test for independence
  • regression line
  • general addition rule
  • conditional probability
  • binomial
  • standardising a normal variable

Key facts

Degrees of freedom, one-sample
Degrees of freedom, contingency table
Outlier fence
beyond or
Binomial mean/variance
/

Mnemonics

  • B.I.N.S.Binary outcome, Independent trials, fixed Number, Same probability — conditions for a binomial model

Don't confuse

  • Mutually exclusive vs Independent: Mutually exclusive: cannot both happen (). Independent: can both happen, but neither affects the other's probability.
  • (population form) vs (sample form): Use whenever the data is a sample estimating a wider population — the default in almost every inference question.
  • -test vs -test: only when population is explicitly given; otherwise it's with .

Command terms

Show that:
Full substitution required, even to a given answer
State:
Direct read-off, no working needed, but must be exact
Interpret:
Explain the value's meaning using the scenario's variables, not just the number

Exam checklist

  • Fixed the direction of from the wording before calculating anything?
  • Used not for any sample-based inference?
  • Checked whether is known (z) or only is known (t)?
  • Totaled rows/columns before building expected frequencies in a chi-squared table?
  • Finished every inference question with a sentence back in context?
  • Flagged extrapolation risk whenever predicting outside the data range?
  • Converted any inverse-normal -value back into an -value with units?