# Percentile

 Articles WikiDoc Resources for Percentile

## Overview

A percentile is the value of a variable below which a certain percent of observations fall. So the 20th percentile is the value (or score) below which 20 percent of the observations may be found. The term percentile and the related term percentile rank are often used in descriptive statistics as well as in the reporting of scores from norm-referenced tests.

The 25th percentile is also known as the first quartile; the 50th percentile as the median.

There is no standard definition of percentile [1] [2] , however all definitions yield similar results when the number of observations is large. One definition is that the ${\displaystyle p}$-th percentile of ${\displaystyle N}$ ordered values is obtained by first calculating the rank ${\displaystyle n={\frac {N}{100}}\,p+{\frac {1}{2}}}$, rounding to the nearest integer, and taking the value that corresponds to that rank.

An alternative method, used in many applications, is to use linear interpolation between the two nearest ranks instead of rounding. Specifically, if we have ${\displaystyle N}$ values ${\displaystyle v_{1}}$, ${\displaystyle v_{2}}$, ${\displaystyle v_{3}}$,...,${\displaystyle v_{N}}$ , ranked from least to greatest, define the percentile corresponding to the ${\displaystyle n}$-th value as ${\displaystyle p_{n}={\frac {100}{N}}(n-{\frac {1}{2}}).}$ In this way, for example, if ${\displaystyle N=5}$ the percentile corresponding to the third value is ${\displaystyle p_{3}={\frac {100}{5}}(3-{\frac {1}{2}})=50.}$ Suppose we now want to calculate the value ${\displaystyle v}$ corresponding to a percentile ${\displaystyle p}$. If ${\displaystyle p or ${\displaystyle p>p_{N}}$, we take ${\displaystyle v=v_{1}}$ or ${\displaystyle v=v_{N}}$ respectively. Otherwise, we find an integer ${\displaystyle k}$ such that ${\displaystyle p_{k}\leq p\leq p_{k+1}}$ , and take ${\displaystyle v=v_{k}+{\frac {N}{100}}(p-p_{k})(v_{k+1}-v_{k}).}$ [3] When ${\displaystyle p=50}$, the formula gives the median. When ${\displaystyle N}$ is even and ${\displaystyle p=25}$, the formula gives the median of the first ${\displaystyle {\frac {N}{2}}}$ values.

Linked with the percentile function, there is also a weighted percentile, where the percentage in the total weight is counted instead of the total number. In most spreadsheet applications there is no standard function for a weighted percentile. One method for weighted percentile extends the method described above. Suppose we have positive weights ${\displaystyle w_{1}}$, ${\displaystyle w_{2}}$, ${\displaystyle w_{3}}$,...,${\displaystyle w_{N}}$ , associated respectively with our ${\displaystyle N}$ sample values. Let ${\displaystyle S_{n}=\sum _{k=1}^{n}w_{k}}$ be the ${\displaystyle n}$-th partial sum of these weights. Then the formulas above are generalized by taking ${\displaystyle p_{n}={\frac {100}{S_{N}}}(S_{n}-{\frac {w_{n}}{2}})}$ and ${\displaystyle v=v_{k}+{\frac {p-p_{k}}{p_{k+1}-p_{k}}}(v_{k+1}-v_{k}).}$

## Relation between percentile, decile and quartile

• P25 = Q1
• P50 = D5 = Q2 = median value
• P75 = Q3
• P100 = D10 = Q4
• P10 = D1
• P20 = D2
• P30 = D3
• P40 = D4
• P60 = D6
• P70 = D7
• P80 = D8
• P90 = D9

Note: One quartile is equivalent to 25 percentile while 1 decile is equal to 10 percentile.

## Examples

When ISPs bill "Burstable" Internet bandwidth, the 95th or 98th percentile usually cuts off the top 5% or 2% of bandwidth peaks in each month, and then bills at the nearest rate. In this way infrequent peaks are ignored, and the customer is charged in a fairer way.

Physicians will often use infant and children's weight and height percentile as a gauge of relative health.