Data Representation
& Summary Stats
Master the tools for organising data and computing measures of central tendency and spread: mean, median, quartiles, and IQR.
Why Summarise Data?
Raw datasets can contain hundreds or thousands of values. Summary statistics let us describe an entire dataset with just a few numbers, making patterns, centre, and spread immediately visible.
Common Data Displays
The Mean \(\bar{x}\)
The arithmetic mean is the sum of all data values divided by the number of values. It is the "balance point" of the dataset.
The Median
The median is the middle value when data are arranged in ascending order. It splits the dataset into two equal halves.
Quartiles & the IQR
Quartiles divide sorted data into four equal parts. The interquartile range measures the spread of the central 50% of data.
Anatomy of a Box Plot
Mean vs Median: When to Use Which?
| Mean \(\bar{x}\) | Median | |
|---|---|---|
| Calculation | Sum ÷ count | Middle value when sorted |
| Affected by outliers? | Yes | No |
| Best for | Symmetric data | Skewed data |
| Uses all values? | Yes | No |
| IB notation | \(\bar{x}\) | \(Q_2\) |
How to Find Quartiles
Worked Example 1
Find the mean, median, \(Q_1\), \(Q_3\), and IQR for the dataset:
3, 7, 8, 5, 12, 14, 21, 13, 18
Worked Example 2: Grouped Data
A grouped frequency table shows test scores. Find the estimated mean.
| Score Range | Midpoint \(x_i\) | Frequency \(f_i\) | \(f_i \cdot x_i\) |
|---|---|---|---|
| 0 – 20 | 10 | 4 | 40 |
| 20 – 40 | 30 | 8 | 240 |
| 40 – 60 | 50 | 15 | 750 |
| 60 – 80 | 70 | 10 | 700 |
| 80 – 100 | 90 | 3 | 270 |
Worked Example 3: Cumulative Frequency
Using the same data (\(n=40\)), estimate the median and quartiles from a cumulative frequency curve.
Effect of Outliers
Consider the dataset: 5, 6, 7, 8, 9, 10, 50. The extreme value 50 is an outlier.
Common Mistakes
Summary of Key Formulas
| Statistic | Formula / Rule | Resistant? |
|---|---|---|
| Mean | \(\bar{x} = \frac{\sum x_i}{n}\) | No |
| Median | Middle value when sorted | Yes |
| \(Q_1\) | Median of lower half | Yes |
| \(Q_3\) | Median of upper half | Yes |
| \(\text{IQR}\) | \(Q_3 - Q_1\) | Yes |
| \(\text{Range}\) | \(\text{Max} - \text{Min}\) | No |
Question 1 of 5
The dataset is 2, 5, 7, 9, 11. What is the mean?
Question 2 of 5
For the sorted dataset 3, 5, 8, 12, 15, 18, 22, what is \(Q_1\)?
Question 3 of 5
A box plot shows \(Q_1 = 20\), \(Q_3 = 48\). What is the IQR?
Question 4 of 5
Which measure of centre is most appropriate for a heavily right-skewed dataset?
Question 5 of 5
A grouped frequency table has class intervals 0–10, 10–20, 20–30 with frequencies 5, 12, 3. What is the estimated mean?