IB Middle Years Programme · Mathematics (Standard) MYP Year 5

Statistics and Probability

Cover illustration for Statistics and Probability (Mathematics (Standard) MYP Year 5).
MYP · Mathematics (Standard) MYP Year 5

Statistics and Probability

MYP Mathematics Framework — Statistics and Probability strand (no single numbered code; assessed under Criteria A, B and D)

26 min readStandardHigh — recurs across Criterion A (Knowing & Understanding), B (Investigating Patterns) and D (Applying Maths) tasks, and is the most common context for simulation/data-handling eAssessment items

This chapter is really one long argument between what should happen (theoretical probability) and what actually happens when you run the experiment (experimental probability) — every other skill here exists to describe, organise or combine data so you can make that comparison properly. You'll build frequency tables, describe a data set with one number (centre) and one number (spread), read those same ideas off box plots, histograms and cumulative frequency curves, then combine multiple events with tree diagrams and formal rules. The exam bank leans heavily on simulations (dice, coins, RNGs, spreadsheets) standing in for real trials — so assumptions and reasoning matter as much as arithmetic.

Overview — The Shape of This Chapter

Everything in this topic sits on one axis: describing a single data set (how do we organise it, summarise its centre, summarise its spread, display it) and describing chance events (what should happen theoretically, what did happen experimentally, and what happens when we combine two or more events). Simulations are the bridge between the two halves — a spreadsheet rolling a virtual die 200 times is both a probability experiment and a data set waiting to be summarised.

  • Probability starts with the experimental-vs-theoretical comparison, then extends to combining independent and dependent events.
  • Data handling starts with collecting and organising raw numbers, then compresses them into centre (mean/median/mode) and spread (range/IQR/standard deviation) statistics.
  • Graphical tools (box plots, histograms, cumulative frequency curves) let you read those same statistics back off a picture instead of a calculation.
  • Formal probability rules and tree diagrams close the loop by letting you calculate probabilities for multi-stage, real-world scenarios — free throws, disease tests, factory sampling.

The shape of the chapter

Command terms this topic actually tests

Command termWhat it demandsAOMark-earning move
Show thatProduce the explicit calculation leading to a given value.AO1/AO2Write the actual substitution (e.g. ) even though the answer is already stated — the mark is for the working line, not for agreeing with the number.
CalculateObtain a numerical answer showing relevant working.AO1Bare final answers with no working lose the method mark even if correct — always show the substitution step.
StateGive a short answer with no working or explanation required.AO1Don't over-write — one correct value or fact per mark; extra unrequested explanation doesn't earn more.
ExplainGive a reason that links cause to effect.AO2Must name the mechanism (sample size, Law of Large Numbers, changed sample space) — 'because it's random' scores zero.
DeduceUse given data to reach a conclusion not stated outright.AO2/AO3Requires you to compute all relevant values first (e.g. every absolute difference) before selecting the answer — spot-checking a couple of values and guessing loses the mark even if the guess is right.
JustifySupport a conclusion with calculated evidence or a stated criterion.AO3Must reference the actual numbers or criterion (e.g. compare to a critical value or fence) — an opinion without the comparison scores 0.
ConstructBuild a table, diagram or graph accurately from data.AO1Missing axis labels, wrong scale, or overlapping class boundaries lose construction marks even if the underlying numbers are right.
IdentifySelect or name a specific feature or assumption.AO1One mark per correctly named item — no explanation needed unless the question also says 'explain'.

Key point

Experimental probability tells you what happened; theoretical probability tells you what should happen given equally likely outcomes. More trials narrow the gap between the two — the Law of Large Numbers is a tendency, never a guarantee for any specific number of trials.

Experimental vs Theoretical Probability

Two ways to think about probability

  • Theoretical probability is counted before you run anything: , assuming every outcome in the sample space is equally likely.
  • Experimental probability (relative frequency) comes from actually running trials and counting what happened: frequency of the outcome ÷ total trials.
  • A single small-sample deviation from the theoretical value — like 28 heads out of 50 tosses instead of exactly 25 — is completely normal statistical noise, not evidence of bias.
  • The Law of Large Numbers says experimental probability drifts closer to theoretical probability as trials increase; it does not promise the two will match at any fixed sample size.

Why simulations replace physical trials

  • Real repetition (tossing a coin thousands of times) is slow, so questions increasingly ask you to simulate with random-number generators — assigning number ranges to outcomes based on a given probability (e.g. 1–72 = success, 73–100 = miss, for a 72% free-throw rate).
  • Every simulation rests on assumptions: that the RNG is truly uniform, that a past success rate predicts future trials, that population mixing is random. Increasingly the exam asks you to identify and critique these assumptions, not just crunch the numbers.
Experimental probability
Probability estimated from real (or simulated) trial data: frequency of the outcome divided by total trials.
Theoretical probability
Probability calculated from equally likely outcomes without running any trials: .
Relative frequency
Another name for experimental probability, expressed as a fraction, decimal or percentage of trials run.
Law of Large Numbers
As the number of independent trials increases, experimental probability tends toward theoretical probability — a long-run tendency, not a fixed-trial guarantee.

Relative (experimental) frequency of event A.

— frequency of the observed outcome
— total number of trials

Theoretical probability of event A.

— number of favourable outcomes
— total outcomes in the sample space

Worked example

Coin simulator — show that and explain

[2]
A virtual simulator tosses a coin 50 times: 28 heads, 22 tails. (a) Show that the relative frequency of heads is 0.56. (b) The theoretical probability of heads for a fair coin is 0.5. Explain why this result doesn't necessarily mean the coin is biased.

Worked example

Two dice, 50 rolls — deducing the biggest gap

Two fair dice are rolled 50 times; sums 2–12 are recorded with given frequencies. Deduce which sum shows the greatest absolute difference between experimental and theoretical probability.

Common mistake

Concluding a coin or die 'must be biased' straight from one experiment showing a deviation from the theoretical value.

Consequence: Loses the explanation mark completely — examiners want reasoning about sample size and natural variability, not a flat verdict.

Fix: Always frame the answer as: the deviation is/isn't consistent with expected random variation for this sample size, and more trials would clarify whether it's genuine bias.

Examiner tip

Whenever a question says 'Show that X = value', write the actual fraction and division (e.g. ) even though the answer is given to you — the mark is for the method line, not for agreeing with the number.

Quality control by sampling

Factories test items via sampling instead of checking every unit — a tile inspector draws slips from a bag of 9,500 'good' and 500 'defective' slips (with replacement) to estimate the real defect rate rather than checking all 10,000 tiles daily. The model assumes each draw is independent and representative, which is exactly why sampling with replacement (or from a huge population) is used to keep probabilities constant between draws.

Beyond the syllabus — Chi-squared goodness-of-fit test

Some exam-bank questions push into formal hypothesis testing, comparing against a critical value (e.g. 11.07 at the 5% significance level with 5 degrees of freedom for a six-sided die) to decide whether an observed distribution differs significantly from the theoretical one. This inferential-statistics machinery belongs to a later course (IB DP), not the MYP 5 syllabus — you won't be asked to build a chi-squared test from scratch here, but the underlying logic is useful: statistic ≤ critical value means the deviation is consistent with chance, not proof of bias.

Key takeaways

  • Relative frequency = frequency ÷ total trials — always show the actual division for 'show that' marks.
  • Small-sample deviations from theoretical probability are expected; explanations must invoke sample size / Law of Large Numbers, not 'because it's random'.
  • Simulations replace physical repetition but carry assumptions (fair RNG, independence, representative sampling) that exams now explicitly ask you to identify and critique.

Collecting and Organizing Data

  • Data splits into categorical (nominal/ordinal) and numerical (discrete/continuous) — the type determines which table and graph are even valid to use.
  • Frequency tables record how often each value or category occurs; grouped frequency tables bucket wide-ranging or continuous data into class intervals to keep the table readable.
  • Class width = upper boundary − lower boundary; midpoint = (lower + upper)/2, used as a stand-in for every raw value inside that class once the individual numbers are lost.
  • Sampling method choice (random, stratified, systematic, convenience) affects whether the results actually generalise to the wider population — this is now examined directly, not just assumed.

Simulations are increasingly a data-collection method in their own right — dice, coins, and RNGs generate the raw data set itself, so recording the actual simulated outputs (not just a summary statistic) is often an explicit mark requirement.

Population
The entire group being studied.
Sample
A subset of the population actually surveyed or measured.
Discrete data
Numerical data that can only take specific, countable values (e.g. number of siblings).
Continuous data
Numerical data that can take any value within a range (e.g. height, time).
Class width
The size of a grouped-data interval: upper boundary minus lower boundary.
Midpoint
The class value used to represent every raw value inside that interval: (lower + upper) ÷ 2.

Sampling methods

MethodHow it worksMain risk / benefit
Simple randomEvery member of the population has an equal chance of selection (e.g. names drawn from a hat)Unbiased in theory but can be impractical for large populations
StratifiedPopulation split into subgroups (strata); sample taken from each in proportion to its sizeGuarantees subgroup representation, but needs known subgroup sizes
SystematicSelect every k-th item from a list after a random startFast and simple, but risky if the list has a hidden pattern matching k
ConvenienceWhoever is easiest to reach (e.g. surveying people walking past)Quick but usually badly biased — results cannot safely be generalised

Frequency histogram — equal class widths

Equal-width histogram: bar height directly equals frequency.

Test scoreFrequency0-1010-2020-3030-4040-5050-60

Worked example

Building a grouped frequency table

20 raw ages are collected: 12, 15, 19, 22, 25, 27, 31, 33, 18, 21, 24, 29, 35, 38, 14, 17, 26, 30, 23, 20. Construct a grouped frequency table using class width 10, and state the modal class.

Common mistake

Choosing class boundaries that overlap (e.g. 0–10, 10–20) so a value of exactly 10 could belong to either class.

Consequence: Construction marks are deducted for ambiguous or overlapping boundaries — every value must belong to exactly one class, no exceptions.

Fix: Write boundaries as inequalities, e.g. , , so there is no overlap and no gap anywhere on the number line.

Key takeaways

  • Data type (categorical vs numerical, discrete vs continuous) decides which table and graph are valid — check this before building anything.
  • Class intervals must have no overlap and no gap; midpoints stand in for lost raw values once data is grouped.
  • Sampling method choice directly affects whether conclusions generalise — convenience sampling is fast but usually badly biased.

Independent and Dependent Events

  • Independent events: the outcome of one has zero effect on the probability of the other (separate dice rolls, or drawing with replacement). Multiply straight through: .
  • Dependent events: the first outcome changes the sample space (or the probabilities) for the second — the classic case is drawing without replacement, where the denominator shrinks by one and the numerator shrinks too if the same type is drawn again.
  • The phrase 'with replacement' signals independent; 'without replacement' or 'then, without putting it back' signals dependent — this wording is the single biggest clue examiners give you.
  • Mutually exclusive is a completely different relationship from independent — don't merge the two ideas (see the confusion check below).
Independent events
Events where the occurrence of one does not change the probability of the other.
Dependent events
Events where the occurrence of one changes the sample space or probabilities for the other.
Mutually exclusive events
Events that cannot both occur at the same time: .
Conditional probability (informal)
The probability of a second event recalculated using the changed sample space once the first event's outcome is known.

Independent events — multiply the unadjusted probabilities directly.

Dependent events — the second probability must be recalculated using the reduced or changed sample space after A has happened.

Tree diagram — drawing without replacement

Second-stage denominators drop from 8 to 7 because one counter has already been removed.

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

Worked example

Two counters, no replacement

A bag contains 5 red and 3 blue counters. Two are drawn without replacement. Find P(both red).

Frequently confused

Concept AConcept BThe distinction that matters
Independent eventsMutually exclusive eventsIndependent means one event's probability doesn't change because of the other — they can still happen together. Mutually exclusive means the two events literally cannot both happen (). If two events are mutually exclusive with nonzero probabilities, they are automatically NOT independent — proving both properties at once is impossible unless one event has probability zero.

Common mistake

Using the same probability for both draws in a 'without replacement' question — effectively treating dependent events as independent.

Consequence: Every downstream calculation built on this error is wrong, typically costing 2–3 marks in a multi-part tree diagram question.

Fix: After every draw, ask: has the total number of objects, or the number of a particular type, changed? Update both the numerator and denominator before multiplying the next branch.

Key takeaways

  • 'With replacement' = independent, multiply unchanged probabilities; 'without replacement' = dependent, recalculate the second probability from the reduced sample space.
  • Independent and mutually exclusive are different relationships — mixing them up is a guaranteed error on confused-concept questions.
  • On a tree diagram, both numerator and denominator can change together at the second stage — check both, not just one.

Measures of Central Tendency

  • Mean uses every value and is the arithmetic 'balance point' of the data — but it's dragged around by outliers.
  • Median is the middle value once data is ordered — resistant to outliers, found by position for odd , or the average of the two middle values for even .
  • Mode is simply the most frequent value or class — the only measure that works for purely categorical data, and a data set can have no mode, one mode, or several.
  • For grouped data you can't recover exact raw values, so mean, median and mode all become estimates built from class midpoints and frequencies.
Mean
The sum of all values divided by the number of values: .
Median
The middle value of an ordered data set.
Mode
The value or category that occurs most frequently.
Modal class
For grouped data, the class interval with the highest frequency.

Mean of ungrouped data.

Estimated mean of grouped data.

— frequency of each class
— midpoint of each class

The ≈ matters — a grouped mean is always an estimate because the exact raw values inside each class are unknown.

Position of the median in an ordered ungrouped data set (average the two middle positions when is even).

Mnemonic

Mode = Most, Median = Middle, Mean = Maths (add them up and divide)

Ties each measure's name to the action that finds it, so under exam pressure you don't default to calculating a mean when the question actually just wants the most common value.

Worked example

Estimating the mean from a grouped table

40 people's ages are grouped: 0–<20 (freq 6), 20–<40 (freq 14), 40–<60 (freq 12), 60–<80 (freq 8). Estimate the mean age.

Common mistake

Reporting the mean of a grouped table as an exact value without acknowledging it's an estimate, or using frequency alone (forgetting to multiply by the midpoint).

Consequence: Loses the accuracy/communication mark — the word 'estimate' must appear, and skipping the step loses the calculation mark entirely.

Fix: Always write explicitly and call the final answer an 'estimated mean' in your concluding sentence.

Examiner tip

For median with even , don't just pick the value at position — you must average the two middle values (positions and ). Reporting a single term instead of the average is one of the most commonly lost marks in central tendency questions.

Key takeaways

  • Mean uses every value and is outlier-sensitive; median is position-based and outlier-resistant; mode is the only option for categorical data.
  • Grouped-data mean requires using midpoints — always call it an estimate.
  • Even- medians need the average of the two middle values, not a single term.

Measures of Dispersion

  • Range = max − min: crude, uses only two values, wrecked by a single outlier.
  • Interquartile range (IQR) = : describes the spread of the middle 50% of data, ignoring extreme values — much more robust than range.
  • Standard deviation measures how far, on average, each value sits from the mean; a small means data clustered tightly, a large means widely spread.
  • Quartiles split ordered data into four equal-sized groups; for odd , exclude the overall median before splitting into lower and upper halves to find and .
Range
Maximum value minus minimum value.
Interquartile range (IQR)
; the spread of the middle 50% of an ordered data set.
Variance
The mean of the squared deviations from the mean: .
Standard deviation
The square root of the variance; a spread measure in the same units as the original data.
Outlier (1.5×IQR rule)
A value below or above .

Variance.

Standard deviation.

Outlier fences — any value beyond these limits is flagged as an outlier.

Worked example

Quartiles, IQR, and checking for an outlier

Data set: 4, 7, 7, 9, 10, 12, 15, 22. Find , the median, , the IQR, and determine whether 22 is an outlier.

Common mistake

Including the overall median value in both halves when finding and for an odd-sized data set.

Consequence: Shifts both quartiles, which shifts the IQR and the outlier fences — an entire outlier-detection answer can flip from 'no outliers' to 'outlier present' because of this one slip.

Fix: For odd , remove the middle value completely before splitting the remaining data into lower and upper halves.

Key takeaways

  • Range is quick but fragile; IQR ignores the extremes and describes the middle 50% robustly.
  • Standard deviation requires squaring deviations, averaging, then square-rooting — skipping the final square root gives variance, not .
  • Outlier decisions must be based on the calculated 1.5×IQR fence, never on how a value 'looks'.

Box Plots, Histograms and Cumulative Frequency

  • A box plot displays the five-number summary (min, , median, , max) — the box spans the IQR, whiskers reach to the min/max (or to the last non-outlier value if outliers are plotted as separate dots).
  • Box plot shape signals skew: a longer whisker/box on the right with the median pulled left = positive skew (a tail of high values); the reverse pattern = negative skew.
  • A histogram looks like a bar chart but isn't one: bars touch (continuous scale, no gaps), and for unequal class widths the plotted height is frequency density = frequency ÷ class width, not the frequency itself — it's the AREA of each bar that represents frequency.
  • A cumulative frequency curve (ogive) plots running totals against upper class boundaries; reading across from a chosen cumulative frequency (e.g. for median, for , for ) down to the x-axis estimates that statistic from grouped data.
Five-number summary
Minimum, , median, , maximum — the five values a box plot displays.
Frequency density
Frequency ÷ class width; the height plotted on a histogram with unequal class widths.
Ogive
Another name for a cumulative frequency curve.
Skew
Asymmetry of a distribution — positive skew has a long tail of high values, negative skew has a long tail of low values.

Box plot — five-number summary

Box spans the IQR (15 to 29); whiskers reach to the extremes (5 and 38).

515222938

Histogram with unequal class widths

Bar height is frequency density (frequency ÷ width); bar AREA equals frequency.

Age (years)Frequency density0-1010-1515-2525-50

Cumulative frequency curve

Reading across from cumulative frequency 25 (=n/2) down to the x-axis estimates the median.

ScoreCumulative FrequencyMedian read-off

Worked example

Recovering frequency from a histogram with unequal widths

A histogram shows the ages of 68 theme-park visitors in unequal-width classes. The bars for 0–10, 10–15 and 15–25 have frequency densities 2.4, 3.6 and 1.6 respectively. Given the total number of visitors is 68, find the frequency density needed for the final class, 25–50.

Worked example

Reading median and IQR off a cumulative frequency curve

A cumulative frequency curve for 50 students' test scores passes through (0,0), (10,4), (20,14), (30,32), (40,44), (50,48), (60,50). Estimate the median and the interquartile range.

Reading a box plot

FeatureValue shownWhat it tells you
Left whisker endMinimumSmallest data value (or smallest non-outlier)
Left box edge25% of data lie below this value
Line inside boxMedian ()50% of data lie below this value
Right box edge75% of data lie below this value
Right whisker endMaximumLargest data value (or largest non-outlier)
Box widthIQR Spread of the middle 50% of data

Common mistake

Treating a histogram's bar height as the frequency itself when class widths are unequal.

Consequence: Every frequency and total calculated from it is wrong — this exact scenario is heavily examined precisely because equal-width histograms don't need this extra step.

Fix: Check the class widths first. If they're not all equal, the vertical axis must be frequency density, and frequency = density × width.

Examiner tip

On cumulative frequency graphs, always draw (or at least state) the horizontal line across at , , before reading down — examiners award a mark for showing the read-off itself, not just for the final number.

Key takeaways

  • Box plots show the five-number summary directly; asymmetric whiskers/box position signal skew.
  • Histogram bar AREA (not height) represents frequency whenever class widths are unequal — height is frequency density.
  • Cumulative frequency curves estimate median and quartiles by interpolating between the two points that straddle the target cumulative frequency.

Probability Rules and Tree Diagrams

  • Complement rule: — the fastest route into 'at least one' problems, since .
  • Addition rule: for mutually exclusive events, ; for overlapping events you must subtract the overlap once, , otherwise you double-count the outcomes where both happen.
  • Multiplication rule along tree branches: multiply probabilities along a single path to get that path's combined probability; add together every separate path that produces the outcome you actually want.
  • Tree diagrams keep multi-stage dependent/independent problems organised — label every branch with a probability, and check the branches leaving any single node sum to 1.

Complement rule.

Addition rule for overlapping (not mutually exclusive) events.

Addition rule when A and B are mutually exclusive ().

Tree diagram — two independent free throws

Multiply along each branch; add branches that lead to the same final outcome.

Success 0.72Miss 0.28Success-Success 0.5184Success-Miss 0.2016Miss-Success 0.2016Miss-Miss 0.0784

Worked example

Exactly one success in two free throws

A player has a 72% free-throw success rate. Using the tree diagram for two independent attempts, find P(exactly one success).

Common mistake

Using the addition rule without subtracting the overlap when two events can happen together (e.g. P(rain) + P(late bus) for 'rain or late bus' on a day when both can occur).

Consequence: Over-counts the outcomes where both events happen, sometimes inflating the probability above 1, and loses the method mark for using the wrong version of the rule.

Fix: Ask first: can both events happen at once? If yes, subtract once. Only use simple addition when the events are genuinely mutually exclusive.

Examiner tip

When a tree diagram question asks for 'at least one', check whether it's faster to add every relevant path (long way) or use (short way, one branch) — the complement route is almost always fewer calculation lines and fewer chances to drop a matching branch.

Medical screening trees

Disease-screening statistics are built from exactly this branch-multiply, path-add logic: plus gives the overall chance of a positive test — the same tree structure as free throws, just with higher stakes and an extra reason to double-check which paths actually answer the question asked.

Key takeaways

  • Complement rule turns awkward 'at least one' problems into a single quick subtraction from 1.
  • Addition rule needs the overlap subtracted whenever events can occur together — only skip this step if they're genuinely mutually exclusive.
  • On tree diagrams, multiply along a path and add across separate paths leading to the same outcome — check branch probabilities from each node sum to 1.

Quick Reference

Statistics & Probability — everything on one page

Formulas

  • Experimental probability / relative frequency
  • Theoretical probability
  • Mean (ungrouped / estimated for grouped data)
  • Interquartile range — spread of the middle 50%
  • Standard deviation
  • Outlier fences
  • Independent events
  • Addition rule for overlapping events
  • Complement rule — fastest route to 'at least one'

Key facts

Sample space for two fair six-sided dice
36 equally likely outcomes
Median position (ungrouped, odd )
-th value after ordering
Outlier rule
beyond or
Variance vs standard deviation
vs — forgetting the square root gives variance, not SD

Mnemonics

  • Mode = Most, Median = Middle, Mean = Maths (add & divide)Stops you defaulting to the mean when the question wants the most common value or the middle position.

Don't confuse

  • Independent events vs Mutually exclusive events: Independent = one doesn't affect the other's probability (can still co-occur); mutually exclusive = they literally can't both happen.
  • Frequency (equal-width histogram) vs Frequency density (unequal-width histogram): Equal widths: bar height = frequency directly. Unequal widths: bar height = frequency ÷ width, and it's the bar AREA that equals frequency.

Command terms

Show that:
Write out the explicit substitution even though the final value is given.
Deduce:
Compute every relevant value first, then select the answer — no spot-checking.
Explain:
Name the actual mechanism (sample size, Law of Large Numbers, changed sample space).

Exam checklist

  • Small deviations from theoretical probability in a small sample ≠ proof of bias — invoke sample size / Law of Large Numbers.
  • Class intervals: no overlap, no gap; grouped mean is always an 'estimate'.
  • Without replacement: recalculate BOTH numerator and denominator for the next branch.
  • Even- median = average of the two middle values.
  • Odd- quartiles: exclude the overall median before splitting into halves.
  • Unequal-width histogram: height = frequency density = frequency ÷ width; area = frequency.
  • Cumulative frequency reads: interpolate between the two points that straddle , , .
  • Tree diagrams: multiply along a path, add across separate matching paths; branches from one node sum to 1.
  • Overlapping events in the addition rule: subtract once.