Back to Blog

Statistics and Probability

The biggest AI SL topic, decoded: confidence intervals, hypothesis tests, chi-squared and correlation in one place.

Overview diagram linking descriptive statistics, inferential statistics and probability distributions
Subject
Maths AI
Curriculum
IB Diploma Programme
Grade
DP
Topic
Statistics and Probability
Reading
9 min
Difficulty
Standard

Quick facts

Difficulty
★★★☆☆
Exam weight
≈27 hours — largest AI SL topic
Appears in
Paper 1 and Paper 2, every sitting
Prerequisites
Basic algebra, GDC statistics functions
You'll learn
CIs, hypothesis tests, chi-squared, correlation
Revision time
2-3 focused sessions

Statistics and Probability is the single biggest topic in IB Maths AI SL, and it shows up in almost every exam paper — usually as one full 15-20 mark question plus smaller parts scattered elsewhere. The good news is that your GDC does the heavy computation: regression coefficients, , , -values and confidence intervals all come from a button press. The actual skill being tested is setting up the right calculation and writing a conclusion that references the scenario, not generic maths. This teaser walks through the five ideas that come up most often — descriptive statistics for grouped data, correlation and regression, confidence intervals, one-sample hypothesis tests, and the chi-squared test for independence — with the common mistakes examiners flag every year. For the full worked examples, formula derivations and practice sets, the complete revision notes are linked below.

What you’ll be able to do

Estimate mean and variance from grouped/continuous data using midpoints
Identify and describe outliers using the $1.5 \times IQR$ rule
Interpret Pearson's correlation coefficient $r$ in context
Choose correctly between a $z$-test and a $t$-test for a one-sample mean
Construct and interpret a confidence interval for a population mean
State $H_0$ and $H_1$ correctly, including one-tailed vs two-tailed direction
Calculate expected frequencies and degrees of freedom for a chi-squared test
Write exam-scoring conclusions that reference the original scenario
1

Descriptive Statistics: Grouped Data, Spread and Outliers

For grouped or continuous data, you can't recover the raw values, so the mean is always an estimate using class midpoints: . The interquartile range () is a more robust measure of spread than the range because it ignores the extreme 25% at each end where outliers live. An outlier is formally anything below or above — this is exactly the fence your GDC uses to plot separate points on a box plot.

Box plot showing Q1, median, Q3, whiskers and an outlier beyond the 1.5 IQR fence

Exam tip

Remember grouped-data means and variances are estimates — say so explicitly if a question asks you to justify precision.

Mini summary

Grouped data → midpoint estimates; IQR and the 1.5×IQR fence define spread and outliers.

2

Correlation and Regression

Bivariate data uses a scatter diagram to spot a linear trend, and Pearson's correlation coefficient quantifies its strength, ranging from to . The exam rarely tests the calculation itself — the GDC gives you instantly — it tests whether you can interpret and the regression equation in the context of the question rather than just quoting numbers.

Scatter diagram with a line of best fit and correlation coefficient labelled

Common mistake

Quoting or the regression line without ever relating it back to what the variables actually represent in the scenario.

Mini summary

measures strength/direction of linear correlation; always interpret it in context, not just numerically.

3

Confidence Intervals: z vs t

A confidence interval is a range, built from your sample, expected to contain the true population mean with a stated level of confidence. Use only when the population standard deviation is explicitly given; otherwise use — the far more common IB case, since real samples almost never come with a known .

Normal distribution curve with a confidence interval band around the sample mean
Featurez-test / z-intervalt-test / t-interval
Standard deviation usedPopulation (given)Sample (estimated)
When to use explicitly stated as known unknown — most IB questions
Degrees of freedomNot applicable

Exam tip

Ask yourself first: 'Is given, or am I estimating it from sample data?' That single question decides or .

Common mistake

Plugging the GDC's population-style standard deviation (, shown as ) into the CI formula instead of the unbiased — this silently understates the interval width.

Mini summary

known → -interval; unknown (the usual case) → -interval with .

4

Hypothesis Testing on a Single Mean

always contains an equals sign (e.g. ), while 's direction — , , or — is read straight from the wording of the claim. You compare either the test statistic to a critical value, or the -value to the significance level (often 0.05), but never mix the two comparisons in one answer.

Flowchart for a one-sample hypothesis test showing decision steps

Exam tip

Decide one comparison method per question — statistic vs critical value, OR p-value vs α — and stick to it throughout your working.

Common mistake

Writing something like '' — comparing a test statistic directly to a probability is meaningless and flags a conceptual gap to examiners.

Mini summary

has '=', 's direction comes from the claim's wording; never compare a statistic to a probability.

5

Chi-Squared Test for Independence

The chi-squared statistic compares observed frequencies to the expected frequencies you'd expect if two categorical variables were independent. Degrees of freedom for an contingency table are , and the conclusion should be written in terms of independence or association — never 'equality'.

Contingency table with row totals, column totals and expected frequency formula annotated

Exam tip

Total the rows and columns first, build every from those totals, then recount and before applying .

Common mistake

Assuming by habit for every table instead of recounting rows and columns — a table gives , not 2.

Mini summary

Build from row/column totals, use , and conclude about independence, not equality.

Quick formula sheet

Estimated mean for grouped/continuous data using class midpoints.Grouped data = estimate, not exact — always say so.
Pearson's product-moment correlation coefficient, .
Confidence interval for when population is known.
Confidence interval for when is unknown — the common IB case.
Test statistic for a one-sample test on the mean — z only when known, else t.
Chi-squared statistic comparing observed to expected frequencies.
Expected frequency for a cell in a contingency table under independence.
Degrees of freedom for an contingency table.

Practice questions

Easy
  1. State the difference between a population parameter and a sample statistic, giving one example of each.
  2. A dataset has and . Calculate the IQR and state the upper outlier fence.
  3. Write and for testing whether a machine's mean output has increased from a stated value of 500 units.
Medium
  1. A sample of 12 items gives , . Explain which formula you would use for a 95% confidence interval for and why.
  2. Explain why using instead of in a confidence interval calculation produces a narrower interval than it should.
  3. For a contingency table testing independence between two categorical variables, state the degrees of freedom.
Challenge
  1. A population is known to have , but a student instead calculates a sample and uses it in a z-test. Explain the conceptual error and its effect on the conclusion.
  2. A 95% confidence interval for a claimed mean of 8000 is calculated as (7717, 7983). Explain why the claimed value lying outside this interval is not, on its own, a sufficient conclusion for a formal hypothesis test.
  3. Design a scenario where convenience sampling would bias the results of an inferential statistics test, and explain why no amount of correct calculation afterwards can fix this.

Frequently asked questions

What's the difference between a z-test and a t-test in IB Maths AI?+

Use a z-test only when the population standard deviation is explicitly given in the question. In almost every other case — where you estimate spread from sample data using — you use a t-test with degrees of freedom.

Why do I get the wrong confidence interval even when my arithmetic looks right?+

The most common cause is using the GDC's population-style standard deviation (, shown as ) instead of the unbiased sample standard deviation . Always check which one the question intends before you calculate.

How do I find degrees of freedom for a chi-squared test?+

Count the rows () and columns () of your contingency table and use . Recount for every new table — don't assume it's the same as a previous question.

Does the GDC do all the statistics calculations for me?+

Yes, your GDC computes regression coefficients, , , -values and inverse normal values instantly. The exam actually tests whether you set up the correct calculation and interpret the result in context.

Why does statistics and probability matter so much for my overall AI SL grade?+

It's the largest topic on the syllabus at roughly 27 teaching hours and appears in every Paper 1 and Paper 2, usually as one full 15-20 mark question plus smaller parts elsewhere — making it one of the highest-return topics to revise thoroughly.

How should I write a hypothesis test conclusion to get full marks?+

Always finish with a sentence that ties your statistical decision back to the scenario in the question — for example, referencing the lifetime of bulbs or the pH of lakes — rather than a generic 'reject ' statement.

Master every part of Statistics and Probability for IB Maths AI

Full worked examples for confidence intervals, hypothesis tests and chi-squared, step by step Clear breakdowns of when to use z vs t, and how to build a contingency table correctly Original mock papers and exam-style questions to practise setting up the right calculation under time pressure All the exam tips and common mistakes examiners actually flag, in one complete set of DP-level revision notes
Get the Statistics and Probability notes on RevisionPrep

Related articles