Z-score

By Jude Wallis · Published

A z-score tells how many standard deviations a value lies above or below the mean of its distribution, so a negative z-score marks a value below the mean.

A z-score rescales one value into a count of standard deviations. For a population it is z=xμσz = \frac{x - \mu}{\sigma}, where μ\mu (mu) is the mean and σ\sigma (sigma) is the standard deviation; for a sample it is z=xxˉsz = \frac{x - \bar{x}}{s}, with xˉ\bar{x} (x-bar) and ss in those roles. The units cancel in the division, so a z-score has no units of its own and values from different scales become comparable. The sign carries the direction and the size carries the distance.

A student scores 88 on a test with mean 80 and standard deviation 4, then 92 on a test with mean 86 and standard deviation 8. The raw scores say the 92 was the better performance. The z-scores say otherwise: z=(8880)/4=2.00z = (88 - 80)/4 = 2.00 against z=(9286)/8=0.75z = (92 - 86)/8 = 0.75. Relative to the class each score came from, the 88 is much the stronger result, and that comparison is the whole reason to standardize.

The wrong sentence to watch for is "her z-score of 1.5 means she beat 93 percent of the class." That 93.3 percent is the area to the left of 1.5 under the standard normal curve, so it is a fact about the normal model rather than about z-scores. A z-score is defined for any distribution that has a mean and a standard deviation, including badly skewed ones, and only when the distribution is roughly normal does the z-table turn it into a percentile.

Standardizing cannot repair shape. Subtracting and dividing by constants shifts and stretches the values without reordering them, so a right-skewed set of z-scores is still right-skewed and its outliers are still outliers.

Small samples put a hard ceiling on the answer. Using the sample standard deviation, no value among nn observations can have z|z| larger than n1n\frac{n-1}{\sqrt{n}}. For n=5n = 5 that ceiling is 1.79, so a z-score of 2 computed from five data points is an arithmetic error and not a rare event. The formula also breaks down when s=0s = 0, which happens only when every value is the same.

Where this comes up

22 pages on the site use this term.

More describing data terms, or browse the full statistics glossary.