Median

From ScienceZero
Jump to: navigation, search

The median value of a list of numbers is the number in the middle of the sorted list. If there is an even number of values then the median is the average of the two values in the middle.

Sample values: 4 3 2 6 4 2 7
Sorted values: 2 2 3 4 4 6 7
Median value:        4


Sample values: 4 3 2 6 4 2
Sorted values: 2 2 3 4 4 6
Median value:      3.5