Historical Context & Motivation
Long before spreadsheets and calculators, people needed ways to make sense of large collections of numbers. Ancient tax records, census counts, and astronomical observations all posed the same challenge: how do you condense hundreds or thousands of individual values into a handful of meaningful numbers? The branch of mathematics we now call statistics grew directly from this practical need. Understanding its origins helps us appreciate why the tools in SL 4.1—mean, median, quartiles, and IQR—are so powerful and widely used today.
The central question has remained the same across centuries: How can we represent an entire data set with just a few numbers and a clear picture? SL 4.1 gives you the essential toolkit to answer that question—measures of central tendency (mean, median), measures of spread (quartiles, IQR), and graphical representations that bring data to life.
Core Principles & Definitions
Before diving into calculations, it helps to understand the big ideas behind summary statistics. Every data set tells a story, and that story has two main characters: center (where the data clusters) and spread (how far the data stretches). The concepts below form the foundation for everything in this topic.
Mean (x̄)
Median
Quartiles (Q₁ and Q₃)
Interquartile Range (IQR)
Five-Number Summary
Visual Explanation — The Box-and-Whisker Plot
A box-and-whisker plot (also called a box plot) is the standard graphical representation for a five-number summary. It instantly shows you the center, spread, and symmetry (or skewness) of a data set. The diagram below uses the ordered data set: 3, 5, 7, 8, 10, 12, 14, 16, 20.
Notice how the right whisker is longer than the left whisker. This tells you the data is positively skewed (stretched toward higher values). When the whiskers are roughly equal in length and the median line sits near the center of the box, the data is approximately symmetric. Being able to read these visual cues is a key skill on IB exams.
Mathematical Framework
Now let's formalize the calculations. Each formula below is defined for a data set of n values, listed in ascending order as x₁, x₂, …, xₙ.
Detailed Breakdown — Choosing the Right Measure
Not every data set is best described by the same statistic. The mean is excellent when data is roughly symmetric, but it can be misleading when a few extreme values pull it away from the bulk of the data. The diagram below compares a symmetric data set with a skewed one to show how the mean and median behave differently.
| Scenario | Best Measure of Center | Why? |
|---|---|---|
| Data is symmetric, no outliers | Mean | Uses all values; gives the most precise summary |
| Data is skewed or has outliers | Median | Resistant to extreme values; stays near the bulk of data |
| You want to describe spread | IQR | Captures the middle 50 %, ignoring extremes at both tails |
| Quick overall range needed | Range (Max − Min) | Simple to compute, but heavily affected by a single outlier |
Worked Example
A class of 12 students recorded the number of hours they studied for a math test. The raw data (in hours) are: 4, 7, 5, 10, 3, 8, 6, 12, 5, 9, 7, 6. Find the mean, median, Q₁, Q₃, and IQR.
3, 4, 5, 5, 6, 6, 7, 7, 8, 9, 10, 12. Always order first—quartile calculations depend on position.Strengths & Limitations of Each Measure
Each summary statistic has trade-offs. Knowing when to rely on the mean versus the median—and when the IQR tells a more honest story than the range—is a critical thinking skill tested on the IB exam. The table below puts these trade-offs side by side.
| Measure | Strengths | Limitations |
|---|---|---|
| Mean | Uses every data point; algebraically convenient; required for standard deviation and further analyses | Sensitive to outliers; can be misleading for highly skewed data |
| Median | Resistant to outliers; always represents the "middle" of the data; easy to interpret | Ignores extreme values entirely; less useful for algebraic operations |
| Range | Very simple to compute; gives a quick sense of total spread | Entirely determined by two extreme values; one outlier can inflate it dramatically |
| IQR | Describes the spread of the central 50 %; resistant to outliers; used to identify outliers | Ignores the tails of the distribution; less precise than standard deviation for symmetric data |
Connection to Advanced Topics
The summary statistics in SL 4.1 are the building blocks for more sophisticated analysis later in the course and at higher levels. Understanding how these concepts extend will help you see the bigger picture of statistics.
| SL 4.1 Concept | Extends To … | Why It Matters |
|---|---|---|
| Mean (x̄) | Standard deviation (σ) and variance (σ²) in SL 4.2 | Variance measures how far data points deviate from the mean on average, giving a more precise picture of spread |
| Median & Quartiles | Cumulative frequency curves and percentiles | Reading Q₁, Q₂, Q₃ from a cumulative frequency graph is a common IB exam technique |
| IQR | Outlier detection rule: values beyond Q₁ − 1.5 × IQR or Q₃ + 1.5 × IQR | The IQR gives you a formal method to decide whether an extreme value is genuinely unusual |
| Box plots | Histograms, frequency polygons, and normal distribution curves | More detailed representations become necessary as data sets grow larger and analysis becomes more complex |
As you progress through HL topics or pursue statistics at university, you'll encounter concepts like standard deviation, z-scores, and regression analysis. Every one of these builds on the foundational idea that data has a center and a spread—exactly what you've learned here in SL 4.1.
Practice Problems
Summary
SL 4.1 equips you with the essential toolkit for describing any data set. The mean (x̄ = Σxᵢ / n) gives the arithmetic average and uses every value, while the median identifies the exact middle of ordered data and resists the influence of outliers. Together, these two measures of center reveal both the typical value and the data's symmetry. When mean > median, the distribution is positively skewed; when mean < median, it is negatively skewed.
To describe spread, the quartiles Q₁ and Q₃ divide the data into four equal-frequency groups, and the interquartile range (IQR = Q₃ − Q₁) captures the width of the central 50 %. The five-number summary (Min, Q₁, Median, Q₃, Max) provides all the information needed to construct a box-and-whisker plot, which visually displays center, spread, and skewness in a single diagram. Always choose the summary statistic that matches your data's shape: the mean for symmetric distributions, the median and IQR when outliers or skewness are present.