Sub topic 9
Z-scores: measuring distance in standard deviations
This chapter assumes you can compute a mean and understand standard deviation as a measure of spread. It also assumes you can read a number line and work with fractions, decimals, and percents. The goal is to turn any value from a normal distribution into one number that says how far it sits from the mean, measured in standard deviations.
What a z-score is
A z-score is the distance of a value from the mean, measured in standard deviations. The formula is:
z = (x − μ) / σ
Here x is the value, μ is the mean, and σ is the standard deviation.
The sign of z gives the direction. A positive z means the value is above the mean. A negative z means it is below. A z of 0 means the value equals the mean. The size of z gives the distance, so |z| = 2 means two standard deviations away, whichever side.
Raw distances such as "50 points above average" are hard to judge without knowing the spread. A z-score removes the units, so "1.5" means the same thing for test scores, heights, or weights.
A first example
Suppose exam scores have a mean of 500 and a standard deviation of 100. A score of 650 is 150 points above the mean. That is 1.5 standard deviations.
mu = 500
sigma = 100
x = 650
z = (x - mu) / sigma
print(z) # 1.5The calculation is a subtraction followed by a division. On the GRE you will often skip the formula and count steps instead. Each step of 100 from the mean is one standard deviation, so 600 is z = 1, 700 is z = 2, and 650 is halfway between, z = 1.5.
Going backward: from z to a raw value
Rearranging the formula gives the raw value:
x = μ + zσ
If the mean is 500, the standard deviation is 100, and z = −0.8, then x = 500 + (−0.8)(100) = 420.
Many GRE problems give a value and ask for the mean or the standard deviation. Set up the z-score equation and solve for the unknown.
Example: a value of 74 is 2 standard deviations above the mean, and the mean is 62. Then 74 − 62 = 12 is two standard deviations, so σ = 6.
Example: a value of 30 is 1.5 standard deviations below the mean, and σ = 4. Then the mean is 30 + 1.5(4) = 36. Note that you add because the value sits below the mean.
How z-scores connect to the empirical rule
For a normal distribution, z-scores tie directly to areas under the curve. The empirical rule (68-95-99.7) says the share of values within 1, 2, and 3 standard deviations of the mean is about 68%, 95%, and 99.7%. In z-score language, those are the shares with |z| ≤ 1, |z| ≤ 2, and |z| ≤ 3.
The code below computes these shares exactly. It uses the standard normal cumulative distribution function, which gives the proportion of values at or below a given z.
from math import erf, sqrt
def phi(z):
return 0.5 * (1 + erf(z / sqrt(2)))
for k in (1, 2, 3):
print(k, round(phi(k) - phi(-k), 4))
# 1 0.6827
# 2 0.9545
# 3 0.9973
print(round(phi(1), 4)) # 0.8413The last line shows that z = 1 sits near the 84th percentile. That fits the empirical rule: 50% of values fall below the mean, and 34% (half of 68%) fall between the mean and z = 1. Together they give 84%.
The diagram shows the standard path of reasoning on a GRE problem.
Using z-scores to estimate proportions
The GRE rarely expects a z-table. It expects you to use whole-number z-values and symmetry. Work through the following example.
Test scores are normally distributed with a mean of 70 and a standard deviation of 8. About what percent of scores are above 86?
- Compute z: (86 − 70) / 8 = 2.
- About 95% of scores lie within 2 standard deviations, so about 5% lie outside.
- The curve is symmetric, so the 5% splits evenly into two tails of 2.5% each.
- The answer is about 2.5%.
Now suppose 400 people took the test. About how many scored above 86? Multiply: 2.5% of 400 is 10.
When z is not a whole number, bracket the answer. If z = 1.5, the share above the value lies between the share above z = 1 (about 16%) and the share above z = 2 (about 2.5%). So it falls between 2.5% and 16%. Many GRE answer choices are far enough apart that bracketing is enough.
| z-score | Approx. percent below | Approx. percent above |
|---|---|---|
| −2 | 2.5% | 97.5% |
| −1 | 16% | 84% |
| 0 | 50% | 50% |
| 1 | 84% | 16% |
| 2 | 97.5% | 2.5% |
Z-scores are unit-free
Because z divides by σ, the units cancel. A z-score of 1.2 for height in inches equals a z-score of 1.2 for height in centimeters. This property is what makes z-scores useful for comparing values from different distributions, which a later chapter develops fully.
Here is a short preview. A student scores 82 on a test with mean 70 and σ = 6. Another scores 90 on a test with mean 78 and σ = 12. The first has z = 2. The second has z = 1. The first student did better relative to their group, even though the raw score is lower.
Common mistakes
- Dividing by the variance. The formula uses the standard deviation, not the variance. If a problem gives the variance as 25, then σ = 5.
- Forgetting the sign. A value below the mean has a negative z. When you solve for the mean from a value below it, you add to the value.
- Treating z as a percentile. A z of 1 is not the 1st percentile. It is about the 84th.
- Applying the empirical rule to non-normal data. The 68-95-99.7 percentages hold only when the problem says the distribution is normal or approximately normal. For other shapes you cannot use them.
- Rounding too early. Keep z as a fraction or exact decimal until you map it to a percent.
- Counting only one tail. "More than 2 standard deviations from the mean" includes both tails, about 5% in total. "More than 2 standard deviations above the mean" is one tail, about 2.5%.
Z-scores after shifting or scaling
If every value is shifted or scaled, a value's z-score stays the same, as long as the mean and standard deviation are transformed the same way. Suppose scores have a mean of 50 and σ = 8, and Y = 2X + 10. The new mean is 110 and the new σ is 16.
mean_x = 50
sd_x = 8
# Y = 2X + 10
mean_y = 2 * mean_x + 10
sd_y = abs(2) * sd_x
print(mean_y, sd_y) # 110 16A score of X = 58 has z = (58 − 50) / 8 = 1. The matching Y = 2(58) + 10 = 126 has z = (126 − 110) / 16 = 1. The position within the distribution does not change. This is why z-scores are a reliable common scale.
Practice
Exercise
The heights of a group of adults are approximately normally distributed with a mean of 170 cm and a standard deviation of 10 cm. What is the z-score of a person 185 cm tall, and about what percent of the group is taller than that person? Give your answer using the empirical rule and a bracket.
Show answer
z = (185 − 170) / 10 = 1.5. This lies between z = 1 (about 16% above) and z = 2 (about 2.5% above). So the percent taller than 185 cm is between 2.5% and 16%, and nearer 7% in fact.
Exercise
A value of 41 is 2.5 standard deviations below the mean of a distribution, and the standard deviation is 6. What is the mean?
Show answer
Use x = μ + zσ with z = −2.5. Then 41 = μ − 15, so μ = 56.
Exercise
Scores on a normal distribution have a mean of 120 and a standard deviation of 15. In a group of 2,000 people, about how many scored below 90?
Show answer
z = (90 − 120) / 15 = −2. About 2.5% of values lie below z = −2. So 0.025 × 2,000 = 50 people.