The median is a fundamental measure of central tendency representing the exact middle value of an ordered data set. When numerical observations are sorted in ascending order from smallest to largest, the median splits the distribution into two equal halves: exactly 50% of the data points lie below or equal to the median, and 50% lie above or equal to it.
In statistical theory, the median is also designated as the second quartile () and the percentile ().
Why the Median Matters
- Robustness Against Outliers: Unlike the arithmetic mean, which is pulled disproportionately by extreme high or low values, the median is an outlier-resistant (non-parametric) statistic. For example, national economic statistics report median household income and median house prices rather than mean averages, because a handful of multi-millionaires would distort the mean upward.
- Academic Relevance: The median forms the centre of box plots (box-and-whisker diagrams), defines the boundaries of the Interquartile Range (), and serves as the baseline for evaluating distribution skewness.
- Exam Importance: The median is assessed across all UK exam boards (Edexcel, AQA, OCR). At GCSE, students are tested on finding the median from raw lists, frequency tables, stem-and-leaf diagrams, and cumulative frequency curves (typically 2–4 marks). At A-Level Mathematics (Statistics), questions demand linear interpolation for grouped continuous data and comparing the median with the mean to evaluate skewness (regularly worth 4–6 marks).
Ungrouped Discrete Data
To find the median of a list of raw numerical observations:
- Sort: Arrange the data in ascending order (smallest to largest).
- Count: Determine the total number of observations, denoted by n.
- Locate: Use the position formula:
Depending on whether the sample size n is odd or even, two distinct cases arise:
Case A: Odd Number of Elements
When n is odd, yields a whole integer. The median is the single observed value occupying that exact position.
Case B: Even Number of Elements
When n is even, yields a half-integer (e.g., 4.5, 8.5). There is no single middle number. The median is the arithmetic mean of the two central values:
Skewness: Comparing the Median and the Mean
Comparing the median to the mean provides immediate insight into the shape and skewness of a statistical distribution:
Symmetric Distribution:
Positively Skewed (Right-Skewed):. A tail of unusually large positive values pulls the mean to the right, while the median remains anchored.
Negatively Skewed (Left-Skewed):. A tail of unusually small negative values pulls the mean to the left.
Worked Example
Ungrouped Discrete Data
Calculate the median of the following raw test scores:
Step 1: Arrange the data in ascending order
Step 2: Determine n and find the median position
There are n = 9 items.
The median is the 5th value in the ordered list.
Step 3: Identify the value
Practice Questions & Solutions
A list of six positive integers is arranged in ascending order:

Given that the median of this data set is 9:
(a) Find the value of
.
(b) Determine the arithmetic mean of the completed list.
(a)
Since the data set contains n = 6 items (an even sample size), the median lies halfway between the
and
ordered values:

The
term is
and the
term is
.
Set up the median equation:



(b)
Substitute x = 8 into the list to identify all six integers:

Calculate the arithmetic mean:

A survey recorded the number of books read in a month by 50 secondary school students. The results are summarized below:
0 books: 14 students
1 book: 17 students
2 books: 11 students
3 books: 5 students
4 books: 3 students
(a) Find the median number of books read.
(b) Determine the lower quartile (
) and the upper quartile (
).
(c) Calculate the interquartile range (
).
First, determine the cumulative frequencies (
) for the discrete distribution:
Up to
books: 
Up to
book: 
Up to
books: 
Up to
books: 
Up to
books: 
(a)
Total frequency
.

The
and
observations both fall within the group of students reading
book (covering positions
to
).

(b)
Lower Quartile (
):

The
position falls into the
books category (since
).

Upper Quartile (
):

The
position falls into the
books category (since the cumulative frequency covers positions
to
).

(c)

The times,
minutes, taken by
athletes to complete a
race are summarized as follows:
minutes:
athletes
minutes:
athletes
minutes:
athletes
minutes:
athletes
Use linear interpolation to calculate an estimate for the median race time.
Compute the cumulative frequencies for the race times:
: 
: 
: 
: 
Step 1: Determine the median position
For continuous grouped data:

The
observation falls at the end of the interval
.
Step 2: Identify interpolation variables for the class 
Lower class boundary (
) 
Cumulative frequency before this class (
) 
Frequency of the class (
) 
Class width (
) 
Step 3: Apply the linear interpolation formula



The daily maximum temperatures (in
) recorded over
consecutive days in Town A are:

In Town B, the temperatures over the same
-day period have a recorded median of
and a calculated mean of
.
(a) Calculate the median and the mean temperature for Town A.
(b) State, with reasons, the type of skewness shown by each town's temperature distribution.
(a)
Town A has
recorded values.
The data is already sorted in ascending order:

Median of Town A:

The
value is
.

Mean of Town A:


(b)
Town A: The mean (
) is greater than the median (
). This indicates that the distribution has a positive skew (skewed to the right), caused by higher temperature values such as
pulling the mean upward.
Town B: The mean (
) is greater than the median (
). Since
, Town B also exhibits a positive skew.
A set of seven positive integers is arranged in ascending order:

(a) Given that the median of these seven numbers is
, state the value of
.
(b) Given that the arithmetic mean of the set is
, determine the value of
.
(c) An eighth integer,
, is added to the data set. Find the new median of the eight numbers.
(a)
Find the Value of 
The dataset has
values, which is an odd number.
Find the position of the median:

In the ordered list, the
value is
.
Since the median is
:

(b)
Find the Value of 
The arithmetic mean of
numbers is defined as:

Substitute the known values including
:

Sum the known terms in the numerator:


Multiply both sides by
:


(Check:
, satisfying the ascending order condition).
(c) Calculate the New Median with Eight Values
Insert the number
into the completed, sorted list:

Now the sample size is even (
).
Locate the median position:

The median is the arithmetic mean of the
and
items:



Summarise with AI:







