Percentile

noun

say it: “per-SEN-tyl” /pərˈsɛnˌtaɪl/

A value below which a given percentage of a set of numbers falls; the 90th percentile is higher than 90 percent of them.

What is a percentile?

A percentile is the value a given share of the data sits at or below: 90% of the rents are at or under the 90th percentile. The 50th percentile is the median. In pandas, quantile(0.9) gives the 90th.

import pandas as pd
rents = pd.Series([1100, 1200, 1250, 1300, 1350, 1400, 1500, 1600, 1800, 2400])
print(rents.quantile(0.9).round())   # 1860.0: the 90th percentile

In a sentence

  • “The median is the 50th percentile.”
  • “A rent at the 90th percentile is higher than nine listings in ten.”

Level: Apprentice · More Python terms at this level

Updated