Percentiles Depend on a Stated Method

A sample percentile estimates a boundary in an ordered distribution. Packages may use distinct rank and interpolation conventions.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a small ordered list
  2. Preserve reproducibility

Trace a small ordered list

On values 2, 4, 6, and 8, a nearest-rank 75th percentile selects the third value, six. An interpolation using the position with index \(0.75(4-1)\) gives 6.5. Zero-based positions identify that fractional position.

Preserve reproducibility

Document the chosen method with its input filtering and units. Ask for a representative exact sample when comparing test results across tools.[1][2]

References

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