Median
The median is a fundamental measure of central tendency. It represents the middle value of an ordered dataset.
What is the median?
The median is the value that lies exactly in the middle of a dataset once the values are sorted in ascending order.
Unlike the mean, the median is not affected by extremely large or small values.
How to calculate the median
Step 1: Sort the values
Arrange all values from smallest to largest.
Step 2: Identify the middle
If the number of values is odd → take the middle value. If it is even → average the two middle values.
Examples
Odd number of values
Even number of values
How to interpret the median
Half of the values are below the median and half are above it. The median is especially useful when data is skewed or contains outliers.
Median vs Mean
Both median and mean describe the center of a dataset, but they behave differently when extreme values are present.
FAQ – Median
Can the median be a value not in the dataset?
Yes. When the dataset has an even number of values, the median is the average of the two middle numbers.
When should I use the median?
When data contains outliers or is not symmetrically distributed.