Median (middle value)
The median is the value that lies right in the middle of a sorted list.
Idea
To find the median:
- Sort the list from smallest to largest (or largest to smallest).
- If the count is odd, the median is the value at position .
- If is even, the median is the mean of the two middle values at positions and .
Example: . Sort: . Odd count (), middle is the rd value: median .
Example: . Sort: . Even count (), middle two are and . Median .
Why median? The median is the " value" , half the data is below it, half is above. Unlike the mean, it is not pulled by outliers. Adding a value of to changes the mean drastically but the median only slightly.
Median is good for income data, house prices, anything skewed.
Worked examples
Example 1. Find the median of .
Sort: . Middle value (3rd): .
Example 2. Find the median of .
Sort (already): . Middle two: . Median .
Example 3. Five exam scores: . Median?
Sort: . Median: .
Example 4. Add the value to the list in Example 3. How do the mean and median change?
Before: mean was , median was . After adding (six values): mean . Median: sort ; middle two are ; median . Mean shot up; median changed only a little.
Try it yourself
- Median of .
- Median of .
- Find median of .
- Marks: . Median?
- Median of to .
- List , median?
- Median vs mean for .
- List . Median?
Activity
Collect heights (in cm) of classmates. Sort the list. Find the median. Compare with the mean.