Quartiles, percentiles and box plots
Quantiles cut sorted data into equal parts: quartiles four, quintiles five, deciles ten, percentiles 100. The interquartile range (IQR), the third quartile minus the first, holds the middle 50% and is the box of a box and whisker plot. Points beyond 1.5 × IQR are flagged as outliers.
Watch the lesson 17 min
The video follows this page: the same examples, then the checkpoint questions.
Before this: Mean, median, mode and what outliers do to them
On the exam
- Calculate, interpret, and evaluate various measures of (1) central tendency and location and (2) dispersion
Calculate, interpret and evaluate quantiles. Expect to find a quartile, quintile, decile or percentile from sorted data or a cumulative frequency table, compute the interquartile range and an outlier fence, and read a box and whisker plot.
How deeply to learn each part
- Know the idea
- Understand it in general. It frames other topics, but you will not calculate with it.
- Use it
- Understand it well enough to solve a question with it. Recognize when it applies.
- Memorize
- Learn it by heart. The exam will not give it to you.
You know this one. The full lesson is folded away. The takeaways, formulas and checkpoint below are your quick refresher, and the checkpoint is a fair test of whether you still do.
You tested strong here. The full lesson is folded away. The takeaways, formulas and checkpoint below are your quick refresher, and the checkpoint is a fair test of whether you still know it.
What is a quantile?
A quantile is the value at or below which a stated fraction of the data lies. The 30th percentile is the value with 30% of the observations at or below it.
Quantiles are measures of location : they say where a value sits in the sorted data, not where the data are centered. Quartiles make four groups, quintiles five, deciles ten and percentiles one hundred. The second quartile, the 50th percentile and the median are the same value.
- Median Memorize 2 equal parts, 1 cut point (the 50th percentile)
- Quartiles Memorize 4 parts, 3 cut points: Q1, Q2 (median), Q3
- Interquartile range Q3 − Q1, the spread of the middle half
-
- Quintiles Use it 5 parts, 4 cut points (20th, 40th, 60th, 80th percentiles)
- Deciles Use it 10 parts, 9 cut points
- Percentiles Memorize 100 parts, 99 cut points
- Labels by field Know the idea fund rankings: first quartile = best; size deciles: first = smallest
How do you read quantiles from a frequency table?
Use it
Find the first bin whose cumulative percentage reaches the percentile you want. That bin holds it.
A cumulative frequency table lists each bin with a running total of the share of observations at or below its upper edge.
How do you place a percentile by hand?
Software does this for you, and the reading itself uses spreadsheet functions. By hand, one common method sorts the data, finds a position and interpolates. It is a convention, not the only one, so a question that needs a position will tell you which method to use.
The position of the y-th percentile in a list of n sorted values, by the (n + 1) method, is:
L rarely lands on a whole number. When it falls between two positions, interpolate:
The (n + 1) method from every side:
A sorted list holds 12 returns. Using L = (n + 1) × y ÷ 100, the position of the 25th percentile is closest to:
(12 + 1) × 0.25 = 3.25
Position, L3.25
- 12+1=×0.25=the position, counted from the smallest value
- 12ENTER1+0.25×the position, counted from the smallest value
ENTER enter (on the HP, puts the number on the stack)
Try this 0 of 3
- Find a percentile where the two methods differ by more than 1 percentage point
- Put the median in the frequency table
- Drag the largest return past the upper fence so it becomes an outlier
Twelve monthly returns, sorted (%), with their positions
- pos 1−6.2
- pos 2−3.1
- pos 3−1.8
- pos 4−0.4
- pos 50.7
- pos 61.5
- pos 72.2
- pos 82.9
- pos 93.6
- pos 104.8
- pos 116.0
- pos 129.5
L = 3.25: between positions 3 and 4 (outlined)
Box and whisker plot ((n + 1) method quartiles, fences at 1.5 × IQR)
Drag the orange dot (the largest return), or focus it and use the arrow keys. A hollow dot is an outlier.
Method
L = 3.25 sits 25% of the way from position 3 to position 4. The other method gives −0.75%, 0.70 points higher.
Show working
(n + 1) method (= .EXC): L = (n + 1) × y ÷ 100 = 13 × 25 ÷ 100 = 3.25.
Value = X3 + (L − 3) × (X4 − X3) = −1.8 + 0.25 × (−0.4 − (−1.8)) = −1.45%.
Box: Q1 (L = 3.25) = −1.45%, median (L = 6.5) = 1.85%, Q3 (L = 9.75) = 4.50%. Interquartile range (IQR) = 4.50 − (−1.45) = 5.95.
Fences: −1.45 − 1.5 × 5.95 = −10.375%; 4.50 + 1.5 × 5.95 = 13.425%. Every return lies inside, so there are no outliers by this rule.
The (n + 1) method matches a spreadsheet's PERCENTILE.EXC and QUARTILE.EXC; PERCENTILE.INC and QUARTILE.INC (and Google Sheets' PERCENTILE and QUARTILE) place the y-th percentile at 1 + (n − 1) × y ÷ 100. A question that needs a position states its method.
- 13×25÷100=L = 3.25
- 0.4+|-+1.8=gap 1.40
- ×0.25=0.35
- −1.8=−1.45%
+|- change sign
- 13ENTER25×100÷L = 3.25
- 0.4CHSENTER1.8CHS−gap 1.40
- 0.25×0.35
- 1.8CHS+−1.45%
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Move the Percentile y slider and watch the position move. Position first, then interpolate.
Exam tip Check the position before you interpolate. If L comes out as exactly 16.0, the answer is the 16th value and there is nothing to interpolate.
In a spreadsheet
Know the idea
Use QUARTILE.INC(range, 1) and QUARTILE.INC(range, 3) for Q1 and Q3. PERCENTILE.INC(range, K) takes K as a fraction: 0.2 for the first quintile cut, 0.4 for the second, 0.3 for the 30th percentile. The .INC functions include the smallest and largest values as the 0th and 100th percentiles; .EXC excludes them. Google Sheets’ QUARTILE and PERCENTILE work like .INC.
What are the interquartile range and a box plot?
The interquartile range (IQR) is the distance from the first to the third quartile. It covers the middle half of the data, so extreme values cannot move it.
A box and whisker plot draws that information. The box runs from Q1 to Q3 with a line at the median, and the whiskers reach out toward the extremes.
- Box Memorize from Q1 to Q3; its height is the IQR
- Line inside the box the median (Q2)
- Whiskers to the furthest points inside the fences (or to the min and max)
- Fences Use it Q1 − 1.5 IQR and Q3 + 1.5 IQR: a convention
- Points beyond a fence flagged as outliers and drawn as dots
-
In the common version the outlier fences sit 1.5 IQR beyond the box. Any point past a fence is flagged as an outlier.
A return series has Q1 = -0.90% and Q3 = 2.70%. The interquartile range, in percentage points, is closest to:
2.70% − (-0.90%) = 3.6 percentage points
Interquartile range3.60%
- 2.7−0.9+|-=
+|- change sign
- 2.7ENTER0.9CHS−
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
The box can mark the median or the mean. Whiskers end at the most extreme points still inside the fences; anything beyond is drawn as a dot. Some charts simply run the whiskers to the minimum and maximum. The 1.5 × IQR fence is a practical convention rather than a law, so treat flagged points as candidates to examine, not as errors.
Where are these used?
- Fund rankings. Managers are ranked by quintile or decile of past return.
- Factor investing. Stocks are sorted into decile buckets on a characteristic and the top and bottom buckets are compared.
- Risk. The 5th percentile of a return distribution is a loss figure that a risk manager reads as a “bad day” threshold.
Which end is “first” depends on the field. In a spreadsheet the 0th percentile is the minimum and the 100th the maximum. In manager rankings the first quartile holds the best returns and the fourth the worst. In research on company size the first decile usually holds the smallest companies. Read the convention before you read the number.
Go deeper Why spreadsheets can disagree with the hand method
The (n + 1) method gives the same answers as Excel’s .EXC functions. The .INC functions place the y-th percentile at position 1 + (n − 1) × y ÷ 100 instead. For the 12 returns above, .INC gives Q1 = −0.75% and Q3 = 3.90% (IQR 4.65) against −1.45% and 4.50% (IQR 5.95) by the (n + 1) method; the median is 1.85% either way. On small samples the methods differ noticeably; on large ones they converge.
Go deeper Percentile ranks in manager selection
A fund’s “percentile rank” tells you the share of peers it beat. Being in the 80th percentile of its peer group over three years means it beat about 80% of them. Ranks are easy to compare across groups, but they hide how far apart the funds are: the gap between the 80th and 90th percentile can be tiny or huge depending on the group.
Memorize this
MemorizeQuantile names
| Name | Parts | Cut points |
|---|---|---|
| Median | 2 | 1 |
| Quartile | 4 | 3 |
| Quintile | 5 | 4 |
| Decile | 10 | 9 |
| Percentile | 100 | 99 |
Memory hook Cut points are always one fewer than the parts: 4 parts, 3 cuts.
Know it cold Quantile = value at or below which that share of the data lies. , the middle 50%. Fences: and . Fund rankings: first quartile = best.
- Median Memorize 2 equal parts, 1 cut point (the 50th percentile)
- Quartiles Memorize 4 parts, 3 cut points: Q1, Q2 (median), Q3
- Interquartile range Q3 − Q1, the spread of the middle half
-
- Quintiles Use it 5 parts, 4 cut points (20th, 40th, 60th, 80th percentiles)
- Deciles Use it 10 parts, 9 cut points
- Percentiles Memorize 100 parts, 99 cut points
- Labels by field Know the idea fund rankings: first quartile = best; size deciles: first = smallest
- Box Memorize from Q1 to Q3; its height is the IQR
- Line inside the box the median (Q2)
- Whiskers to the furthest points inside the fences (or to the min and max)
- Fences Use it Q1 − 1.5 IQR and Q3 + 1.5 IQR: a convention
- Points beyond a fence flagged as outliers and drawn as dots
-
Quick example
19 sorted returns, 80th percentile, (n + 1) method. L = (19 + 1) × 0.80 = 16, so the 16th value exactly.
- 19+1=×0.8= 16
- 19ENTER1+0.8× 16
ENTER enter (on the HP, puts the number on the stack)
Quick example
L = 12.6 sits between the 12th value, 3.1, and the 13th, 3.6. 3.1 + 0.6 × (3.6 − 3.1) = 3.40%.
- 3.6−3.1=×0.6+3.1= 3.4
- 3.6ENTER3.1−0.6×3.1+ 3.4
ENTER enter (on the HP, puts the number on the stack)
Quick example
Q1 = −0.8% and Q3 = 2.2%. IQR = 2.2 − (−0.8) = 3.0 percentage points.
- 2.2−0.8+|-= 3
+|- change sign
- 2.2ENTER0.8CHS− 3
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
Q1 = −0.6% and Q3 = 2.4%, so IQR = 3.0. Upper fence 2.4 + 1.5 × 3.0 = 6.90%; lower fence −0.6 − 4.5 = −5.10%.
- 2.4−0.6+|-=×1.5+2.4= 6.9
+|- change sign
- 2.4ENTER0.6CHS−1.5×2.4+ 6.9
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
How it is asked
-
Which bin holds it
Cumulative shares by bin: 61.5%, 79.0%, 84.5%, 92.0%. Which bin holds the 85th percentile?
The first bin to reach 85%: the one ending at 92.0%. Trap: the 84.5% bin, which stops just short.
-
Position with a stated method
17 sorted returns, 12th 3.1%, 13th 3.6%, (n + 1) method, 70th percentile?
L = 18 × 0.70 = 12.6 → 3.1 + 0.6 × 0.5 = 3.40%. Trap: 17 × 0.7.
-
Upper fence
Q1 = −0.9% and Q3 = 2.7%. Upper fence using 1.5 × IQR?
IQR = 3.6, so 2.7 + 5.4 = 8.10%. Trap: adding one IQR (6.30%).
-
What the box shows
In a box and whisker plot, the height of the box represents…
The interquartile range, not the range or the standard deviation.
Exam traps
- Stopping one bin early in a cumulative table: the percentile sits in the first bin whose cumulative share reaches it.
- Reading 'first quartile' in a fund ranking as the worst returns. In rankings, first means best.
- Reading the whisker length as the interquartile range. The IQR is the box.
- Forgetting to sort first, or counting positions from the largest value.
Checkpoint
5 exam-style questions. About 90 seconds each.
1A sorted list of 15 returns has 1.2% in the 6th position and 1.7% in the 7th. Using L = (n + 1) × y ÷ 100, the 40th percentile is closest to:
2In a box and whisker plot, the height of the box represents the:
3A data set has Q1 = −0.5% and Q3 = 3.5%. Using the 1.5 × IQR rule, the upper fence is closest to:
4A table groups the one-year returns of 400 funds into bins. The cumulative share of funds is 74.0% up to 10%, 89.5% up to 15%, 96.5% up to 20% and 100% above 20%. The 90th percentile of fund returns lies in the bin:
5A consultant reports that a manager's five-year return ranks in the first quartile of its peer group. The manager's return was most likely:
Key takeaways
- A quantile is the value at or below which a stated share of the data lies; quartiles 4 parts, quintiles 5, deciles 10, percentiles 100.
- In a frequency table, the percentile sits in the first bin whose cumulative share reaches it.
- IQR = Q3 − Q1 is the middle 50% and the height of the box.
- Fences 1.5 × IQR beyond the box flag outliers; whiskers stop at the last point inside.
Quick example
19 sorted returns, 80th percentile, (n + 1) method. L = (19 + 1) × 0.80 = 16, so the 16th value exactly.
- 19+1=×0.8= 16
- 19ENTER1+0.8× 16
ENTER enter (on the HP, puts the number on the stack)
Quick example
L = 12.6 sits between the 12th value, 3.1, and the 13th, 3.6. 3.1 + 0.6 × (3.6 − 3.1) = 3.40%.
- 3.6−3.1=×0.6+3.1= 3.4
- 3.6ENTER3.1−0.6×3.1+ 3.4
ENTER enter (on the HP, puts the number on the stack)
Quick example
Q1 = −0.8% and Q3 = 2.2%. IQR = 2.2 − (−0.8) = 3.0 percentage points.
- 2.2−0.8+|-= 3
+|- change sign
- 2.2ENTER0.8CHS− 3
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
Q1 = −0.6% and Q3 = 2.4%, so IQR = 3.0. Upper fence 2.4 + 1.5 × 3.0 = 6.90%; lower fence −0.6 − 4.5 = −5.10%.
- 2.4−0.6+|-=×1.5+2.4= 6.9
+|- change sign
- 2.4ENTER0.6CHS−1.5×2.4+ 6.9
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
All Quantitative Methods formulas, every lesson
Practice exam-style questions on Statistical Characteristics of Asset Returns
Questions about this lesson?
Where this comes back
- Range, mean absolute deviation, variance and standard deviation Statistical Characteristics of Asset Returns
- Introduction to Risk Management Portfolio Construction
Questions candidates ask
How do you find a percentile for CFA Level 1?
Sort the data. From a table, take the first bin whose cumulative share reaches the percentile. In a spreadsheet, use PERCENTILE.INC(range, y ÷ 100). By hand, one common method puts the y-th percentile at position (n + 1) × y ÷ 100 and interpolates. Methods differ slightly on small samples.
What is the interquartile range?
The distance between the third and first quartiles, Q3 − Q1. It measures the spread of the middle half of the data and ignores the extremes. It is the height of the box in a box and whisker plot, and the basis for the 1.5 × IQR outlier fences.
How do you read a box and whisker plot?
The box runs from Q1 to Q3 with a line at the median. The whiskers extend to the fences or to the extreme values. In the common version the fences sit 1.5 IQR beyond the box, the whiskers stop at the furthest points inside the fences, and points past the fences are drawn as dots and treated as outliers.
Spotted an error? Tell us and we will fix it.