Percentile¶
Concept¶
\(R = \text{Ceiling}\left(\frac{k}{100} \cdot N\right)\)
- \(R\): Rank
- \(k\): Desired percentile
- \(N\): Total number of points
- \(Ceiling(x)\): The smallest integer greater or equal to \(x\)
The sample data
Sort the data
Define the desired percentile
Calculate the rank R
Get the value at rank R (0-based index is R-1)
The result means that 75% of the entire distribution is less than 45
Quartile¶
Quartile means a quarter
- \(1^{st}\): 25%
- \(2^{nd}\): 50%
- \(3^{rd}\): 75%