Professional Documents
Culture Documents
Median
Definition 3.2
The median m of a sample of n observations
x , x , …, x
1 2 n arranged in ascending
or descending order is the middle number that divides the data set into two equal
halfs: one half of the items lie above this point, and the other half lie below it.
Advantage of the median over the mean: Extreme values in data set do not affect the median
as strongly as they do the mean.
Indeed, if in Example 3.1 we have
mean = 5.3, median = 4.8.
The extreme value of 9.0 does not affect the median
START
Find the m =
median of the
data set
if n=2 k −1 Y
(n is even)
Y
(n is odd) if n=2k
m=
x 1
m= k x +x
2 ( k k +1 )
FINISH
m values find