Skip to content
← All questions

What is the formula for standardization?

Standardization (or Z-score normalization) is a linear transformation that centers the data around zero and scales it to have a standard deviation of one. It subtracts the mean of the feature from each data point and divides by the standard deviation.

Conditions

  • Applied to a continuous numerical feature.
  • Requires knowing the mean and standard deviation of the feature.
  • The standard deviation must not be zero (to avoid division by zero).

Reasoning, step by step

  1. Identify the raw feature value xx.
  2. Calculate the mean xˉ\bar{x} and standard deviation σ\sigma of the feature in the dataset.
  3. Subtract the mean from the raw feature: x−xˉx - \bar{x}.
  4. Divide the result by the standard deviation: σ\sigma.
  5. The final transformed value is x′=x−xˉσx' = \frac{x - \bar{x}}{\sigma}.

Example

The video displays the formula on-screen as "standardization : x' = (x−xˉx - \bar{x}) / σ\sigma" and explains that it makes the mean zero and standard deviation one.

Common misconceptions

  • Believing that standardization forces the data into a normal (Gaussian) distribution; it only adjusts the mean and standard deviation, not the underlying shape.
  • Confusing standardization with min-max normalization, which scales to a fixed range like [0, 1] rather than centering at zero.

Watch the explanation

Explore next

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.