Averages and spread
Median and mode
Goal: Find the median and the mode of a data set · 8 min
Median — the middle value after sorting:
- odd number of values: the one in the middle (position (n + 1)/2);
- even number: the mean of the two middle values.
2, 9, 4, 7, 3 → sorted 2, 3, 4, 7, 9 → median 4. 2, 9, 4, 7 → 2, 4, 7, 9 → median (4 + 7)/2 = 5.5.
Mode — the value that occurs most often. A data set can have no mode or several modes. It is the only average for categorical data.
Worked example: Shoe sizes in a shop
- Sold: 38, 41, 39, 41, 42, 40, 41.
- Sorted: 38, 39, 40, 41, 41, 41, 42 → median 41.
- Mode 41 — the size to stock most.