Standardization › Mathematical Foundation
Machine Learning from ScratchAll chapters Standardization › Mathematical FoundationOne section · Sections in this chapter3 / 10 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
The Standardization Formula
For a feature with observations, standardization transforms each value to using:
where:
- is the standardized value of feature for observation
- is the mean of feature
- is the standard deviation of feature
Key Properties
After standardization, each feature in your dataset is transformed so that it has a mean of zero and a standard deviation of one. This transformation ensures that all features, regardless of their original scale or units, are directly comparable and contribute equally to the analysis. In practical terms, this means that no single feature will dominate the learning process simply because it has larger numeric values. Instead, every feature is centered and scaled, allowing algorithms.especially those sensitive to feature magnitude, such as regularized regression or clustering.to perform optimally and fairly.
- Mean: for all features
- Standard deviation: for all features
- Variance: for all features
This ensures that all features contribute equally to distance calculations and regularization penalties.