Sub topic 13
Comparing Values from Different Distributions
What this chapter assumes
You should already know how to compute a z-score, use the 68-95-99.7 rule, and read approximate percentiles from the standard normal curve. If any of these feel shaky, review the chapters on z-scores and percentiles first. This chapter applies those skills to one task that GRE Quantitative Reasoning asks about often: deciding which of two values is "better" or "more unusual" when they come from different scales.
Why raw values cannot be compared directly
Suppose a student scores 82 on a biology exam and 74 on a chemistry exam. The biology score is higher, but that does not make it the stronger result. The two exams may have different averages and different amounts of spread.
A raw value only has meaning relative to its own distribution. To compare across distributions, you need a common scale. The z-score is that scale. It measures how many standard deviations a value sits from its own mean, so it removes the units, the center, and the spread of each distribution.
The core method
To compare a value from one distribution with a value from another:
- Find the mean and standard deviation of each distribution.
- Compute each z-score with z = (x - mean) / sd.
- Compare the z-scores. The larger z-score is further above its mean, so it is relatively higher.
- If the question asks about percentiles or probabilities, convert each z-score using the empirical rule or the standard normal approximations.
Worked example: two exams
A student scores 82 on a biology exam with mean 70 and standard deviation 6. The same student scores 74 on a chemistry exam with mean 62 and standard deviation 4. Both sets of scores are approximately normal.
def z_score(x, mu, sigma):
return (x - mu) / sigma
bio = z_score(82, 70, 6)
chem = z_score(74, 62, 4)
print(bio) # 2.0
print(chem) # 3.0The biology z-score is 2.0 and the chemistry z-score is 3.0. The chemistry score is 3 standard deviations above its mean, while the biology score is only 2. Chemistry is the stronger relative performance, even though its raw score is lower.
The empirical rule gives the percentiles. About 95% of values fall within 2 standard deviations of the mean, so about 2.5% lie above z = 2. That puts the biology score near the 97.5th percentile. About 99.7% fall within 3 standard deviations, so about 0.15% lie above z = 3. That puts the chemistry score near the 99.85th percentile.
Converting z-scores to percentiles
The standard normal cumulative distribution function gives the area to the left of any z-score. The code below computes it with only the standard library.
from math import erf, sqrt
def phi(z):
return 0.5 * (1 + erf(z / sqrt(2)))
for name, z in (("biology", 2.0), ("chemistry", 3.0)):
print(name, round(phi(z) * 100, 2))
# biology 97.72
# chemistry 99.87The exact values, 97.72 and 99.87, are close to the empirical-rule estimates of 97.5 and 99.85. On the GRE you will usually be expected to use the rough values, since no calculator tables are provided.
Useful approximate reference values
Memorize these standard normal percentiles. They cover most comparison questions.
| z-score | Approximate percentile |
|---|---|
| -2 | 2.5th |
| -1 | 16th |
| 0 | 50th |
| 1 | 84th |
| 2 | 97.5th |
| 3 | 99.85th |
Symmetry lets you derive the negative side from the positive side. If z = 1 is the 84th percentile, then z = -1 is the 16th, because 100 - 84 = 16.
Solving for an unknown: working backward
Comparison questions often give you a z-score relationship and ask for a raw value. In that case, reverse the formula: x = mean + z * sd.
Suppose a student wants the same relative standing on a test with mean 150 and standard deviation 10 that a score of 650 would give on a test with mean 500 and standard deviation 100.
- The z-score on the first test is (650 - 500) / 100 = 1.5.
- The matching score on the second test is 150 + 1.5 * 10 = 165.
def match_score(x, mu1, sigma1, mu2, sigma2):
z = (x - mu1) / sigma1
return mu2 + z * sigma2
print(match_score(650, 500, 100, 150, 10)) # 165.0Comparing distances in either direction
A value below the mean has a negative z-score. When a question asks which value is "more unusual" or "further from typical," compare the absolute values of the z-scores, not the signed values.
Example: a value with z = -2.5 is more unusual than a value with z = 2.0, even though -2.5 is the smaller number. Its distance from the mean is 2.5 standard deviations versus 2.0.
When a question asks which value is "relatively higher" or "better," the sign matters. For a measure where lower is better, such as race times, a negative z-score is the stronger result.
The role of spread
Two distributions with the same mean can give very different z-scores for the same raw value, because the standard deviation differs. A narrower distribution makes any given gap from the mean count for more.
| Distribution | Mean | SD | Value | z-score |
|---|---|---|---|---|
| Narrow | 100 | 5 | 110 | 2.0 |
| Wide | 100 | 20 | 110 | 0.5 |
Both values are 10 above the mean. The narrow distribution turns that into 2 standard deviations, which is about the 97.5th percentile. The wide distribution turns it into half a standard deviation, which is about the 69th percentile. Equal raw gaps do not mean equal standing.
Comparing counts, not only percentiles
Some questions ask how many individuals fall above a value, then compare across groups of different sizes. Convert the z-score to a proportion first, then multiply by the group size.
Group A has 2,000 people with scores above z = 1. Roughly 16% lie above z = 1, so about 0.16 2,000 = 320 people. Group B has 500 people with scores above z = 2. About 2.5% lie above, so about 0.025 500 = 12.5, or roughly 12 or 13 people.
A higher z-score does not guarantee a larger count. The group size scales the result.
Assumptions and limits
Z-score comparisons are only valid under certain conditions.
- Percentile conversions assume each distribution is approximately normal. If one distribution is strongly skewed, the same z-score can correspond to a very different percentile.
- You can still compare z-scores as a measure of distance in standard deviations without normality. You cannot read percentiles from the empirical rule without it.
- The mean and standard deviation must describe the same population as the value being compared. A sample score compared against the wrong group's mean gives a meaningless z-score.
Common errors
- Comparing raw values directly when the distributions have different means or spreads.
- Dividing by the variance instead of the standard deviation. If a problem gives variance, take the square root first.
- Using the wrong mean or standard deviation for one of the two values.
- Ignoring direction when lower values are better.
- Reading a z-score of 2 as "2 percent" or "the 2nd percentile." It is about the 97.5th percentile.
- Assuming that equal percentiles mean equal raw values. They mean equal relative standing only.
- Forgetting that percentile comparisons between groups say nothing about group sizes when counts are requested.
GRE quantitative comparison tip
In Quantitative Comparison questions, you often do not need exact numbers. Estimate each z-score to the nearest half or whole standard deviation and compare. If one value is clearly about 2 standard deviations above its mean and the other is about 1, you can decide without further calculation. Only compute precisely when the estimates are close.
Exercise
Test X has mean 80 and standard deviation 12. Test Y has mean 500 and standard deviation 80. A student scores 98 on Test X and 590 on Test Y. On which test did the student perform relatively better, and by how many standard deviations does the better z-score exceed the other?
Show answer
Test X: z = (98 - 80) / 12 = 1.5. Test Y: z = (590 - 500) / 80 = 1.125. The student did relatively better on Test X. The z-score difference is 1.5 - 1.125 = 0.375 standard deviations.
Exercise
Scores on Exam P are approximately normal with mean 60 and standard deviation 8. What score on Exam Q, with mean 200 and standard deviation 25, represents the same relative standing as a 76 on Exam P? Approximately what percentile is this?
Show answer
On Exam P, z = (76 - 60) / 8 = 2. The matching Exam Q score is 200 + 2 * 25 = 250. A z-score of 2 is about the 97.5th percentile.
Exercise
A runner's 5K time is 21 minutes in a group with mean 24 minutes and standard deviation 2 minutes. A second runner's time is 33 minutes in a different group with mean 36 minutes and standard deviation 1.5 minutes. Lower times are better. Which runner performed relatively better?
Show answer
First runner: z = (21 - 24) / 2 = -1.5. Second runner: z = (33 - 36) / 1.5 = -2. Because lower times are better, the more negative z-score is stronger, so the second runner performed relatively better.