Median Calculator — Formula
## How to Find the Median
### Steps
1. Sort all values from least to greatest
2. If n is odd, the median is the value at position (n+1)/2
3. If n is even, the median is the average of the two middle values
The median splits the dataset so that half the values lie below it and half above it. Unlike the mean, the median is resistant to outliers.
### Steps
1. Sort all values from least to greatest
2. If n is odd, the median is the value at position (n+1)/2
3. If n is even, the median is the average of the two middle values
The median splits the dataset so that half the values lie below it and half above it. Unlike the mean, the median is resistant to outliers.
Exemplo Resolvido
Find the median of the sorted values 3, 7, 9, 15, 22.
- Values already sorted: 3, 7, 9, 15, 22
- n = 5 (odd), so median position = (5+1)/2 = 3rd value
- Median = 9