Finding the Median in an Ordered Sample

The median identifies a central value under an ordering. A convention is needed for even sample size.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace two lists
  2. Check missing observations

Trace two lists

For sorted 2, 4, 15, the median is four. For 2, 4, 6, 15, a common numeric convention averages the middle two to get five. Ordered sequence search distinguishes positions from observed values.

Check missing observations

If unavailable readings are excluded, the sorted sample may have a different length. Document the presence rule and do not silently fill them with zero.[1][2]

References

  1. Hadley Wickham, Tidy Data ↩
  2. Matplotlib Development Team, Plot Types ↩