Euler Hall — free maths guides

Standardize a data value with a z-score

Compute a z-score from a value, a mean and a deviation. The idea in plain words, a worked example, and a check with the answers shown — part of the free Statistics guides.

One number, comparable across any scale

A z-score says how many standard deviations a value sits from its mean: z=x−μσ.z=\frac{x-\mu}{\sigma}.

The subtraction centres every value on zero, and the division rescales so that one unit is one standard deviation. Those two operations together are called standardising, and they work for any distribution at all — nothing about the normal law is needed to compute a z-score.

What z is for. Two measurements on different scales cannot be compared directly: is 82 on a test with mean 70 and deviation 6 better than 45 on one with mean 40 and deviation 2? The z-scores are 2 and 2.5, so the second is the stronger performance. Standardising puts them on one axis.

Reading the sign and size. Positive means above the mean, negative below. A magnitude of 1 means one deviation away; a magnitude above 2 or 3 is unusual for a roughly bell-shaped distribution, which is the idea the empirical rule makes precise.

What z is not. It is not a probability, and it does not tell you the shape. It is a position on a scale measured in deviations, and the shape has to be known separately before a z can be turned into a probability.

Why dividing by sigma makes scales comparable

Subtracting the mean is not enough. Two populations both centred at zero but with deviations 6 and 2 would still not be comparable, because a distance of 6 is ordinary in the first and extreme in the second.

Dividing by the deviation fixes that: the result is measured in units of the spread, so a distance of one is "one typical deviation" in both populations. That is the whole purpose, and it is why the operation is division rather than, say, subtracting the minimum.

The consequence is that a z-score is unit-free. Converting the original measurements from centimetres to inches multiplies both(x−μ)(x-\mu) andσ\sigma by the same factor, so the ratio is unchanged. A z of 2 is a z of 2 whatever units the data came in — which is precisely what makes comparisons possible.

Worked example: three values, three z-scores

A test has mean 70 and standard deviation 6.

Score 82.z=(82−70)/6=12/6=2z=(82-70)/6 = 12/6 = 2 — two deviations above.

Score 64.z=(64−70)/6=−6/6=−1z=(64-70)/6 = -6/6 = -1 — one below.

Score 70.z=0z=0 — at the mean.

Now the comparison that motivates it. Another test has mean 40 and deviation 2. A score of 45 givesz=(45−40)/2=2.5z=(45-40)/2=2.5, which beats the 82 on the first test. The raw scores 82 and 45 cannot be compared; their z-scores can.

Check the units. If the first test's scores were converted to a 200-point scale by multiplying everything by 2, the mean would be 140, the deviation 12, and the score 164 would still havez=2z=2.

By the end you can
  • Compute a z-score from a value, a mean and a deviation
  • Read the sign and magnitude of a z-score
  • Compare values from different scales by standardising
Check yourself
  1. 1. Mean 200, deviation 25: find the z of 250.
  2. 2. Mean 4.2, deviation 0.6: find the z of 3.0.
  3. 3. Two values have z-scores−1.2-1.2 and+0.4+0.4. Which is further from its mean?
Answers
  1. 1.50/25=250/25 = 2.
  2. 2.−1.2/0.6=−2-1.2/0.6 = -2.
  3. 3. The first:∣−1.2∣>∣0.4∣|-1.2| > |0.4|. The sign says which side, the magnitude says how far.
Work out where to start — free, no accountAnswer six real questions — free, no account