Skip to content

Z-Score Normalization calculator

Z-Score Normalization calculator

Z-Score Normalization

Paste numbers (comma, space, tab, or newline separated). Formula: z = (x − μ) / σ

What a z-score tells you

A z-score shows how far a value is from the average, measured in standard deviations. A z-score of 0 means the value equals the average. A z-score of 2 means it is two standard deviations above the average. Negative z-scores are below the average.

The formula

z = (x − mean) ÷ standard deviation

Worked example

Take the values 2, 4, 4, 4, 5, 5, 7, 9. The mean is 5.

  • With the population standard deviation (2.00), the value 9 has z = (9 − 5) ÷ 2 = 2.00.
  • With the sample standard deviation (2.14), the same value has z ≈ 1.87.

Sample or population?

Choose Sample (n − 1), the default, when your numbers are a sample from a bigger group, which is the usual case. Choose Population (n) when your numbers are the whole group. The sample version divides by n − 1, which gives a slightly larger standard deviation and slightly smaller z-scores.

Why normalise data?

Machine learning models often work better when features are on the same scale. Z-score normalisation (also called standardisation) gives every feature a mean of 0 and a standard deviation of 1. This matters for distance-based methods such as k-nearest neighbours, where a feature measured in thousands would otherwise swamp one measured in single digits. See Euclidean distance for why.

Frequently asked questions

What z-score counts as unusual?

A common rule of thumb flags values with a z-score above 3 or below −3 as possible outliers. In normally distributed data, about 99.7% of values fall within 3 standard deviations of the mean.

Why do all my z-scores show 0?

If every value is the same, the standard deviation is 0 and z-scores cannot be calculated, so the tool shows 0.

Z-score or min-max scaling?

Min-max scaling squeezes values into a range such as 0 to 1. It is simple but sensitive to outliers. Z-scores keep outliers visible and suit methods that assume roughly normal data.

Share

One Response

Leave a Reply

Your email address will not be published. Required fields are marked *

One short email when a new calculator or article goes live. No spam, and you can unsubscribe in one click.