Normalization rescales numerical data to a fixed range, usually to , whereas standardization transforms data so that it has a mean of and a standard deviation of . Both are data-preprocessing techniques, but they use different calculations and produce different distributions.
How the transformations work
Min-max normalization is commonly calculated using:
The minimum value becomes , the maximum becomes , and all other values are placed proportionally between them.
Standardization calculates a z-score:
Here, is the mean and is the standard deviation. A positive z-score is above the mean, while a negative z-score is below it.
| Feature | Normalization | Standardization |
|---|---|---|
| Main effect | Rescales values to a fixed interval | Centers values around the mean |
| Typical output | Usually between and | Not restricted to a fixed range |
| Uses | Minimum and maximum | Mean and standard deviation |
| Sensitivity | Strongly affected by extreme minimum or maximum values | Also affected by outliers, but does not impose fixed boundaries |
| Common purpose | Makes features share the same scale | Makes features comparable by their distance from the mean |
These transformations matter because features measured on larger numerical scales can dominate distance-based calculations and gradient-based learning. Scaling allows an algorithm to compare feature contributions more fairly without changing the order of observations.
When preparing training and test data, calculate the required parameters from the training set only, then apply those same parameters to the test set. Calculating them from all data causes data leakage because test-set information influences preprocessing.
Worked example
For the dataset , normalize :
Its standardized value is because is the mean:
A common misconception is that normalization and standardization are interchangeable terms. In IB Computer Science A4.2, distinguish them by identifying the statistics used and the resulting scale.
Exam technique: For a command term such as distinguish, state both methods and make the difference explicit. For a calculation, show the formula, substitute the values, and interpret the transformed result.