COLLEGE STATISTICS • DESCRIPTIVE STATISTICS

Percentiles & Quartiles — Percentiles and Quartiles

Quantifying relative standing in a distribution to reveal where individual observations fall among their peers.

Historical Context & Motivation

The need to describe where a particular observation sits relative to others in a dataset is nearly as old as statistics itself. When Francis Galton studied human variation in the late nineteenth century, he realized that measures of central tendency alone—means and medians—were insufficient for characterizing the full picture of how individual measurements compared to one another. What was needed was a systematic way to express relative standing: the proportion of a distribution that falls below a given value. This motivation gave rise to the concepts we now call percentiles and quartiles, two of the most widely used tools in descriptive statistics.

1875
Galton's Ogive Curve
Francis Galton introduced the ogive (cumulative frequency curve) to visualize the proportion of observations below each value, laying the conceptual groundwork for percentile-based thinking.
1882
Galton Coins 'Quartile'
Galton formally proposed dividing a ranked dataset into four equal groups, calling the dividing points quartiles. He used these to construct the interquartile range as a robust measure of spread.
1920s
Percentiles in Psychometrics
Educational psychologists adopted percentile ranks to report standardized test scores, making percentiles accessible to non-statisticians and embedding the concept in public discourse.
1977
Tukey's Box Plot
John Tukey's box-and-whisker plot codified the five-number summary (min, Q₁, median, Q₃, max), elevating quartiles to a standard graphical tool in exploratory data analysis.
2000s+
Big Data & Quantile Regression
Modern computational power enabled quantile regression and streaming percentile algorithms. Percentile-based approaches now underpin performance monitoring, clinical growth charts, and machine learning diagnostics.

At their core, percentiles and quartiles answer a deceptively simple question: where does a particular value sit in the overall distribution? Whether you are interpreting a patient's blood-pressure reading against population norms, evaluating a student's GRE score, or identifying outliers in a financial dataset, the machinery of percentiles and quartiles provides the formal framework. The remainder of this lesson develops that framework rigorously, from definitions and computation to interpretation and application.

Core Principles & Definitions

Before computing any percentile or quartile, one must first arrange the data in ascending order. Every concept in this lesson operates on ranked (sorted) data. With that prerequisite in mind, the following foundational ideas define the landscape of positional statistics.

1

Percentile (Pₖ)

The k-th percentile is a value below which approximately k% of the observations in a dataset fall. For example, P₈₅ = 72 means roughly 85% of observations are at or below 72.
2

Percentile Rank

The percentile rank of a given observation x is the percentage of values in the dataset that are less than or equal to x. It inverts the percentile question: given a value, what is its standing?
3

Quartiles (Q₁, Q₂, Q₃)

Quartiles split sorted data into four equal parts. Q₁ (25th percentile), Q₂ (median, 50th percentile), and Q₃ (75th percentile) together form the backbone of the five-number summary.
4

Interquartile Range (IQR)

The IQR equals Q₃ − Q₁ and captures the spread of the middle 50% of data. It is resistant to outliers, making it a robust alternative to the standard deviation for skewed distributions.
5

Quantile (General Term)

A quantile is any cut point dividing a distribution into equal-probability intervals. Quartiles (4 parts), deciles (10 parts), and percentiles (100 parts) are all specific cases of quantiles.
KEY TAKEAWAY
Think of percentiles like mile markers on a highway. If you are at mile marker 72 on a 100-mile highway, you know that 72% of the road is behind you and 28% lies ahead. Similarly, a score at the 72nd percentile means approximately 72% of all observations fall below that score. Quartiles are simply the 25-mile, 50-mile, and 75-mile markers—they carve the highway into four equal stretches, giving you a quick sense of whether you are in the first, second, third, or fourth quarter of the distribution.

Visual Explanation — The Distribution Divided

A well-crafted diagram can make the abstract notion of 'splitting a distribution' immediately concrete. The following SVG illustrates a continuous bell-shaped distribution partitioned at the three quartile boundaries. Each shaded region contains approximately 25% of the total area under the curve, corresponding to the four quarters of the data.

The bell curve is divided into four equal-area regions by Q₁ (P₂₅), Q₂ (median), and Q₃ (P₇₅). The green bracket at the bottom indicates the interquartile range (IQR), which spans the middle 50% of the distribution.

Several features of this diagram deserve attention. First, notice that the quartile boundaries are not evenly spaced along the horizontal axis—Q₁ and Q₃ are closer to Q₂ than they are to the tails, reflecting the fact that data in a bell-shaped distribution are densest near the center. Second, while this diagram uses a symmetric distribution for clarity, quartiles are equally well defined for skewed distributions; in a right-skewed distribution, Q₃ would be pushed further from the median than Q₁, and the IQR would shift accordingly. Finally, the shaded regions are areas under the density curve, so each represents a probability (or proportion) of 0.25, reinforcing that quartiles are conceptually tied to cumulative distribution functions.

Mathematical Framework

Computing percentiles from raw data requires a precise algorithm. Multiple methods exist (there are at least nine recognized variants), but the locator method presented here is widely taught in introductory statistics courses and provides a clear, step-by-step procedure. We also present the percentile rank formula for completeness.

PERCENTILE LOCATOR
L = (k / 100) × n
where L = locator (position index), k = desired percentile (1–99), and n = total number of data points (sorted in ascending order). If L is not a whole number, round up to the next integer and take that value. If L is a whole number, the percentile is the average of the L-th and (L + 1)-th values.
PERCENTILE RANK
Percentile Rank of x = (Number of values ≤ x / n) × 100
This formula returns the percentage of data values at or below a given observation x. Note that some textbooks use 'less than x' (strict inequality) rather than 'less than or equal to x'; always check the convention your course adopts.
QUARTILE DEFINITIONS
Q₁ = P₂₅, Q₂ = P₅₀ (median), Q₃ = P₇₅
Quartiles are simply the 25th, 50th, and 75th percentiles. To compute any quartile, substitute the appropriate value of k (25, 50, or 75) into the locator formula above. The interquartile range is then IQR = Q₃ − Q₁.
⚠️ Convention Alert
Different textbooks, software packages (R, Python, Excel), and standardized tests may use slightly different interpolation rules for percentiles. The locator method described above (sometimes called the 'exclusive' or 'textbook' method) is the most common in introductory courses. In R, quantile(x, type = 6) corresponds closely to this method, while Excel's PERCENTILE.INC uses linear interpolation. When in doubt, confirm the method specified by your instructor or reference.

Detailed Breakdown — Five-Number Summary & Box Plots

Quartiles form the skeleton of the five-number summary, which consists of the minimum, Q₁, median (Q₂), Q₃, and maximum. This summary provides a compact yet informative description of a dataset's center, spread, and range. When plotted graphically as a box-and-whisker plot (or simply box plot), the five-number summary becomes a powerful visual diagnostic for skewness, outliers, and distributional shape.

A box plot for the dataset {2, 5, 7, 8, 10, 12, 14, 16, 18, 21, 25}. The bold vertical line inside the box marks the median (Q₂ = 12). The box spans from Q₁ = 7 to Q₃ = 18, and the whiskers extend to the min (2) and max (25). The IQR bracket above shows that the middle 50% of values spans 11 units.

In a box plot, the length of each whisker relative to the box immediately communicates skewness. If the right whisker (from Q₃ to max) is substantially longer than the left whisker (from min to Q₁), the distribution is right-skewed. If the median line sits closer to Q₁ than to Q₃ inside the box, this further confirms a rightward stretch. Outlier conventions typically flag any observation beyond 1.5 × IQR from the nearest quartile as a potential outlier. In the diagram above, 1.5 × 11 = 16.5, so the lower fence would be 7 − 16.5 = −9.5 and the upper fence would be 18 + 16.5 = 34.5; since all data fall within these fences, no outliers are present.

Five-number summary for the sample dataset
StatisticValueInterpretation
Minimum2Smallest observation in the dataset
Q₁ (P₂₅)725% of observations fall at or below this value
Q₂ / Median (P₅₀)12Center of the distribution; 50% above, 50% below
Q₃ (P₇₅)1875% of observations fall at or below this value
Maximum25Largest observation in the dataset
IQR11Spread of the middle 50%; Q₃ − Q₁ = 18 − 7

Worked Example — Computing Percentiles and Quartiles

Consider the following dataset of exam scores (already sorted in ascending order) for a class of 15 students: 42, 48, 53, 56, 60, 63, 67, 70, 73, 78, 82, 85, 88, 92, 97. We will compute the 40th percentile (P₄₀), the three quartiles (Q₁, Q₂, Q₃), and the percentile rank of the score 82.

Finding P₄₀ Using the Locator Method
1
Step 1 — Identify n and kThe dataset has n = 15 observations. We seek the k = 40th percentile.
2
Step 2 — Compute the locator LL = (k / 100) × n = (40 / 100) × 15 = 6.0. Since L is a whole number, we apply the averaging rule.
L = 6.0 (whole number → average the 6th and 7th values)
3
Step 3 — Identify the relevant observationsThe 6th value in the sorted list is 63, and the 7th value is 67.
4
Step 4 — Compute the percentileP₄₀ = (63 + 67) / 2 = 65. This means approximately 40% of exam scores fall at or below 65.
P₄₀ = 65
Finding the Three Quartiles
1
Step 1 — Q₁ (k = 25)L = (25 / 100) × 15 = 3.75. Since L is not a whole number, round up: L → 4. The 4th value is 56.
Q₁ = 56
2
Step 2 — Q₂ (k = 50, Median)L = (50 / 100) × 15 = 7.5. Round up: L → 8. The 8th value is 70.
Q₂ = 70
3
Step 3 — Q₃ (k = 75)L = (75 / 100) × 15 = 11.25. Round up: L → 12. The 12th value is 85.
Q₃ = 85
4
Step 4 — IQRIQR = Q₃ − Q₁ = 85 − 56 = 29. The middle 50% of exam scores span a range of 29 points.
IQR = 29
Percentile Rank of Score 82
1
Step 1 — Count values at or below 82Values ≤ 82 are: 42, 48, 53, 56, 60, 63, 67, 70, 73, 78, 82. That is 11 values.
2
Step 2 — Apply the formulaPercentile Rank = (11 / 15) × 100 ≈ 73.3. A score of 82 exceeds roughly 73% of the class.
Percentile Rank ≈ 73.3

Strengths, Limitations & Comparisons

Percentiles and quartiles are enormously useful, but like every statistical tool they carry assumptions and trade-offs. Understanding when to rely on positional measures versus moment-based measures (like the mean and standard deviation) is essential for choosing the right descriptive summary for a given analysis.

Positional measures vs. moment-based measures
FeaturePercentiles / QuartilesMean / Standard Deviation
Sensitivity to outliersRobust — extreme values have minimal effect on quartilesSensitive — a single outlier can dramatically shift the mean and inflate SD
Best suited forSkewed or ordinal data; distributions with outliersApproximately symmetric, continuous data without extreme outliers
Information capturedPositional — relative standing and spread of the middle 50%Algebraic — uses every observation in the calculation
Ease of interpretationVery intuitive: 'you scored better than 85% of test-takers'Requires understanding of standard deviations and z-scores
Mathematical tractabilityLess amenable to algebraic manipulation; harder to propagate through formulasHighly tractable — forms the basis for most inferential procedures
KEY TAKEAWAY
In practice, good statistical reporting often involves both approaches. A research paper might present the median and IQR in the text (because the data are skewed) while also providing the mean and standard deviation in a table (because readers may want to compare with other studies that report those statistics). The five-number summary and the mean/SD are complementary lenses on the same data, not competitors. Think of quartiles as the structural beams of a building—revealing shape and load distribution—while the mean and standard deviation are the surveyor's precise measurements. Both are indispensable, but they answer different questions.

Connection to Advanced Theory

The concepts developed in this lesson are not merely descriptive conveniences; they connect directly to more advanced topics that you will encounter in subsequent coursework. Percentiles are intimately related to the cumulative distribution function (CDF), and quartiles serve as the foundation for several inferential and diagnostic techniques.

From descriptive percentiles to advanced theory
Concept from This LessonAdvanced ExtensionWhere You'll See It
Percentile (Pₖ)Inverse CDF / Quantile function: F⁻¹(p)Probability theory, simulation (inverse transform sampling)
QuartilesQuantile regression (modeling conditional quantiles)Econometrics, biostatistics, environmental science
IQRRobust scale estimators (e.g., MAD, Qn)Robust statistics, anomaly detection, quality control
Box plot / 1.5 × IQR ruleBagplot, functional box plots for multivariate dataMultivariate EDA, functional data analysis
Percentile rankEmpirical CDF and Kolmogorov–Smirnov testNonparametric inference, goodness-of-fit testing

Perhaps the most elegant theoretical link is between percentiles and the CDF. For a continuous random variable X with CDF F(x), the p-th quantile is defined as Q(p) = F⁻¹(p), the value x such that F(x) = p. The sample percentile you compute from data is therefore an estimator of this population quantity. As sample size n → ∞, the sample percentiles converge to the true population percentiles—a manifestation of the Glivenko–Cantelli theorem, which states that the empirical CDF converges uniformly to the true CDF. This asymptotic guarantee is what makes percentile-based descriptive statistics theoretically sound, not just practically convenient.

🔭 Looking Ahead
In quantile regression, instead of modeling the conditional mean E[Y | X] as in ordinary least squares, you model a conditional quantile (e.g., the conditional median or the conditional 90th percentile). This is invaluable when the effect of predictors differs across the distribution—for instance, minimum wage policies may affect low-income earners differently than high-income earners. The percentile machinery you learn here is the conceptual starting point for that entire framework.

Practice Problems

PROBLEM 1CONCEPTUAL
A student scores at the 90th percentile on a standardized exam. A classmate claims this means the student answered 90% of questions correctly. Is this interpretation accurate? Explain why or why not, and provide the correct interpretation.
PROBLEM 2BASIC CALCULATION
Given the sorted dataset: 3, 7, 10, 15, 18, 22, 25, 30, 34, 40, find Q₁, Q₂ (median), Q₃, and the IQR using the locator method. Here n = 10.
PROBLEM 3INTERMEDIATE
A dataset of 20 sorted values is given: 12, 15, 18, 20, 22, 24, 25, 27, 28, 30, 32, 33, 35, 37, 38, 40, 42, 45, 50, 65. (a) Find P₆₅. (b) Using the 1.5 × IQR rule, determine whether the value 65 qualifies as an outlier.
PROBLEM 4APPLIED
A pediatrician measures the weights (in kg) of 12 infants at a well-baby visit: 3.2, 3.5, 3.8, 4.0, 4.1, 4.3, 4.5, 4.7, 5.0, 5.2, 5.5, 6.8. A growth chart indicates that the 75th percentile for infant weight in the general population is 5.1 kg. (a) Find Q₃ for this sample. (b) Compare the sample Q₃ to the population P₇₅ and discuss what the comparison suggests about this particular sample of infants.
PROBLEM 5CRITICAL THINKING
Prove or demonstrate with a counterexample: 'For any dataset, the median (Q₂) must always equal the mean if and only if the distribution is perfectly symmetric.' Then explain why percentiles are often preferred over the mean for describing the center of income distributions.

Lesson Summary

Percentiles express the relative standing of a value within a dataset: the k-th percentile (Pₖ) is a value below which approximately k% of observations fall. Quartiles are the special percentiles that divide a sorted dataset into four equal parts: Q₁ = P₂₅, Q₂ = P₅₀ (median), and Q₃ = P₇₅. The interquartile range (IQR = Q₃ − Q₁) captures the spread of the middle 50% and serves as a robust alternative to the standard deviation for skewed data.

To compute a percentile, use the locator formula L = (k/100) × n: if L is not a whole number, round up and take that ranked value; if L is whole, average the L-th and (L + 1)-th values. The five-number summary (min, Q₁, Q₂, Q₃, max) forms the basis of the box-and-whisker plot, a powerful graphical tool for identifying skewness and outliers (flagged by the 1.5 × IQR rule). Percentile-based statistics are robust to extreme values, making them indispensable for real-world data in medicine, education, finance, and beyond.

Varsity Tutors • College Statistics • Percentiles & Quartiles