STAT 200 · Statistics for Economics
Percentiles, Skew and Outliers
Use percentiles and quartiles to place a value, recognize skewed distributions, and handle outliers honestly.
Key takeaways
- A percentile tells you the value at or below which a given percentage of the data falls.
- The quartiles split sorted data into four parts, and the distance between the first and third is the interquartile range.
- A distribution is skewed toward whichever side has the longer tail, and the mean usually gets pulled that way.
- A common screening rule flags values more than 1.5 interquartile ranges beyond the quartiles.
- An outlier is a reason to investigate, never an automatic reason to delete.
Your cousin texts: "I scored 62 on the entrance exam!" Is that wonderful or awful? You cannot tell. A 62 out of 100 might be the best score in the room or the worst. What you really want to know is how many people she beat.
That question, "where does this value stand among all the others?", leads to percentiles. They also help with two troublemakers that every real data set seems to contain: a long lopsided tail, and a value so strange you wonder whether someone's cat walked across the keyboard.
Our guide is Dana, who manages a small apartment building and has been asked whether the rents are "normal." She lists the monthly rent for eleven units, in dollars: 850, 900, 920, 950, 980, 1,000, 1,040, 1,100, 1,150, 1,250, 2,600. The last one is a rooftop unit with a view, a hot tub, and apparently its own self-esteem.
Percentiles: your place in line
The pth percentile is a value such that about p percent of the data are at or below it. If your cousin's 62 sits at the 90th percentile, about 90% of test takers scored 62 or lower. Excellent news. If it sits at the 15th, perhaps change the subject.
Do not confuse a percentile with a percentage score. "62%" describes how much of the test she got right. "90th percentile" describes how she compares with others.
You can also work in reverse. The percentile rank of a value is the percentage of data at or below it. In Dana's list, seven of eleven rents are $1,040 or less, so its percentile rank is 7 ÷ 11 ≈ 64%.
One honest warning: there are several accepted ways to calculate percentiles, especially in small samples, and different software may give slightly different answers. With large data sets the differences hardly matter. In this lesson we use one simple method, described next.
Quartiles and the five-number summary
The most used percentiles have names. The first quartile (Q1) is roughly the 25th percentile. The median is the 50th, sometimes called Q2. The third quartile (Q3) is roughly the 75th.
Here is our method. Sort the data. Find the median. Q1 is the median of the values below it, and Q3 is the median of the values above it. When n is odd, leave the overall median out of both halves.
Dana's eleven sorted rents:
850 900 920 950 980 [1,000] 1,040 1,100 1,150 1,250 2,600
Median = 6th value = 1,000
Lower half: 850 900 920 950 980 → Q1 = 920
Upper half: 1,040 1,100 1,150 1,250 2,600 → Q3 = 1,150 The minimum, Q1, median, Q3 and maximum together form the five-number summary: 850, 920, 1,000, 1,150, 2,600. In five numbers you know where the data start, where they end, and where the middle half lives.
The interquartile range (IQR) is Q3 − Q1 = 1,150 − 920 = 230 dollars. It is the width of the middle half of the data. Unlike the standard deviation, it hardly notices what happens out at the ends. Raise the rooftop rent to $26,000 and the IQR stays 230.
A box plot draws this summary: a box from Q1 to Q3, a line at the median, and "whiskers" reaching out toward the extremes, with unusual points plotted separately. Several box plots side by side make a fast, fair comparison of groups.
Comparing groups with five numbers
Dana's friend manages a second building nearby. Its five-number summary is 990, 1,010, 1,040, 1,070 and 1,100. Without seeing a single individual rent, you can say a lot.
Its median of $1,040 is $40 above Dana's. Its IQR is 1,070 − 1,010 = 60 dollars, far tighter than her 230. Its cheapest unit costs more than Dana's first quartile of $920, so a bargain hunter should knock on Dana's door. And its most expensive unit, $1,100, is less than half of her rooftop rent.
Which building is "more expensive"? It depends on where you look. At the median, the second building costs more. At the very top, Dana's does. Comparing quartile by quartile keeps you from squashing two different shapes into one verdict.
Percentile points as policy language
Economists lean on percentiles because they describe different parts of a distribution separately. A report might say that pay at the 10th percentile rose 6% while pay at the 90th percentile rose 3%, with both figures invented here. That would mean lower pay levels grew faster, even if the overall median barely moved.
One popular summary is the 90/10 ratio: the value at the 90th percentile divided by the value at the 10th. If those are $90,000 and $15,000, the ratio is 90,000 ÷ 15,000 = 6. A higher ratio means a wider gap between the upper and lower parts. Because it ignores the extreme tips, it is not thrown off by a few astronomical values. For the same reason, it can miss changes that happen only at the very top.
Skew: which way does the tail point?
A distribution is symmetric when its two sides roughly mirror each other. It is skewed when one side stretches out much farther.
- Right skewed (positively skewed): a long tail toward high values. Incomes, wealth, house prices and Dana's rents are typical examples.
- Left skewed (negatively skewed): a long tail toward low values. Scores on a very easy test often look like this, with most people near the top and a few far below.
The name follows the tail, not the hump. That trips up almost everyone once.
In a right-skewed set, the mean is usually above the median, because the large values drag it up. In Dana's building:
Sum of rents = 850 + 900 + 920 + 950 + 980 + 1,000
+ 1,040 + 1,100 + 1,150 + 1,250 + 2,600 = 12,740
Mean = 12,740 ÷ 11 ≈ 1,158
Median = 1,000 The mean of about $1,158 is higher than nine of the eleven rents. Treat "mean above median means right skew" as a strong hint, not an iron law. Look at the picture too.
Quartiles hint at skew as well. From Q1 to the median is 80 dollars, while from the median to Q3 is 150. The upper side is more stretched.
Why lopsided data happen
Right skew often appears when values have a floor but no real ceiling. A rent cannot drop below zero, but it can climb as high as someone is willing to pay. Waiting times, repair bills and firm sizes behave in similar ways. Left skew appears when there is a ceiling instead, such as a test with a maximum score that most students nearly reach.
Skewed data are sometimes redrawn on a logarithmic scale, where equal steps mean equal multiples: 100, 1,000, 10,000. This squeezes a long right tail so you can see detail among the smaller values. It is a fair tool when labeled clearly, and a confusing one when the label hides in tiny print.
Outliers: the 1.5 × IQR screen
An outlier is a value that lies unusually far from the rest. "Unusually far" needs a rule, or you will find outliers whenever they are inconvenient. A widely used screen builds two fences:
Lower fence = Q1 − 1.5 × IQR = 920 − 1.5 × 230 = 920 − 345 = 575
Upper fence = Q3 + 1.5 × IQR = 1,150 + 345 = 1,495 Any rent below $575 or above $1,495 gets flagged. Only $2,600 is outside. The fences are a convention, a handy tripwire, and not a law of nature. In strongly skewed data they will flag many perfectly real values.
A worked example: what changes without the rooftop?
Dana wonders how much that one unit shapes her story. Drop $2,600 and ten rents remain.
Sum = 12,740 − 2,600 = 10,140
Mean = 10,140 ÷ 10 = 1,014
Median = (980 + 1,000) ÷ 2 = 990
Lower half: 850 900 920 950 980 → Q1 = 920
Upper half: 1,000 1,040 1,100 1,150 1,250 → Q3 = 1,100
IQR = 1,100 − 920 = 180 The range collapses from $1,750 to $400. The mean falls by about $144. The median moves just $10. If Dana's question is "what does a typical unit rent for?", the median of about $1,000 is a good answer either way. If the question is "how much rent comes in each month?", the rooftop money is real and must be counted.
What to do with an outlier
First, check for error. Was $2,600 typed correctly, or was it $1,260 with fingers in a hurry? If it is a mistake, fix it and note the fix.
Second, ask whether it belongs to the group you are studying. If Dana's question is about standard apartments, a luxury penthouse may reasonably be reported separately. Decide on grounds that make sense apart from whether you like the result.
Third, if it is genuine and relevant, keep it. Report resistant measures, or show results both with and without it, and say which is which. In economics, the extremes are often the whole story. Research on income inequality is largely about what happens in the tails.
A common mistake: deleting until it looks nice
Suppose Dana removes the highest rent because it "looks odd," recomputes the fences, finds that $1,250 now looks a bit lonely, and removes it too. Keep going and she will end up with a very tidy data set describing a building that does not exist.
The rule of thumb is simple. Never delete a value only because it is far away or spoils your conclusion. Record every removal and the reason. Someone checking your work should be able to put the point back.
A second mistake is reading a percentile change as a change in the same people. If the 10th percentile of pay rose over five years, the people at that position today may not be the people who were there before.
Percentiles place one value among many. The next question is how two variables travel together, which covariance and correlation answers.
Words to know
Percentile a value at or below which a stated percentage of the data falls.
Quartiles the values that divide sorted data into four roughly equal parts.
Interquartile range the third quartile minus the first, the width of the middle half.
Five-number summary the minimum, first quartile, median, third quartile and maximum.
Skewed distribution one with a noticeably longer tail on one side than the other.
Outlier a value lying unusually far from the bulk of the data.
Check yourself
- What does it mean to say a baby's weight is at the 40th percentile?
- For the sorted data 2, 4, 5, 7, 8, 10, 13, find the median, Q1 and Q3.
- If Q1 = 30 and Q3 = 50, what are the 1.5 × IQR fences?
- A distribution has a long tail toward low values. Which way is it skewed, and where would you expect the mean relative to the median?
- Why does the interquartile range change little when the largest value is made much larger?
- Explain what you should do before removing an outlier from an analysis.
Show the answers
- About 40% of comparable babies weigh the same or less.
- The median is 7, Q1 is the median of 2, 4, 5, which is 4, and Q3 is the median of 8, 10, 13, which is 10.
- The IQR is 20, so the fences are 30 − 30 = 0 and 50 + 30 = 80.
- It is left skewed, and the mean would usually be below the median.
- It depends only on the quartiles, which are set by positions in the middle of the sorted data.
- Check whether it is an error and whether it belongs to the group studied, then document any removal and ideally report results both ways.