NEW
Transforming variables to a common scale, such as 0–1 ranges or standardized z-scores, to improve model stability and comparability.
DESCRIPTION
Statistical normalization rescales features to comparable ranges or distributions. Common techniques include min–max scaling to [0,1] and standardization to zero mean and unit variance. Normalization reduces numerical instability, accelerates optimization, and prevents features with large magnitude from dominating models. It is crucial for distance-based algorithms, gradient-based learning, and regularization. Careful handling of outliers and data leakage is important, often using robust scalers and fitting on training data only. In pipelines, normalization is applied after splitting data. Different models may require or benefit from different scaling choices.
ALTERNATIVE DEFINITIONS
Wikipedia
In data processing, feature scaling is a method used to normalize the range of independent variables or features of data.
Defines feature scaling as normalization of variable ranges in preprocessing.
scikit-learn
Standardization of datasets is a common requirement for many machine learning estimators: they might behave badly if the individual features do not more or less look like standard normally distributed data.
Emphasizes estimator behavior and benefit of standardized features.
RELATED TERMS
Feature Scaling Z-score Min-Max Scaling Standard Deviation Outliers Robust Scaling Feature Engineering Preprocessing Log Transform Regularization
COMPETING TERMS
Raw Features pipelines
RELATIONS
- Broader: Statistics
KNOWLEDGE AREAS
Data Science AI Mathematics Testing & Validation
TARGET AUDIENCE
Data Scientist AI Engineer MLOps Engineer Data Analyst
EXTERNAL SOURCES
- Wikipedia - Feature scaling
- scikit-learn - Comprehensive preprocessing guidance
- Google Developers - ML data normalization guide
- Machine Learning Mastery - Practical normalization tutorial
TOP QUESTIONS
Why is Normalization (Statistics) important for machine learning?
It improves numerical stability and training speed by aligning feature scales, especially for distance-based and gradient-based algorithms.
Category: Relevancy
What is the difference between normalization and standardization?
Normalization often means min–max scaling, while standardization produces zero-mean, unit-variance features using z-scores.
Category: Differences
When should I avoid min–max scaling?
Avoid when strong outliers exist; robust scaling or standardization may be safer.
Category: Mistakes
How do I prevent data leakage when normalizing?
Fit scaling parameters only on training data and apply to validation/test sets.
Category: Best practices
Do tree-based models need normalization?
Usually not; trees are scale-invariant. However, normalization can still help with regularization or mixed-model pipelines.
Category: Opinion
How does normalization affect distance metrics?
It prevents large-scale features from dominating Euclidean or cosine distances.
Category: Mechanism
What is a common mistake with Normalization (Statistics)?
Fitting scalers on the full dataset before splitting, causing optimistic evaluation.
Category: Mistakes
Which algorithms benefit most from normalization?
KNN, K-means, SVMs with kernels, logistic regression, and neural networks benefit significantly.
Category: Application
Should categorical features be normalized?
No; encode them first. Scaling applies to numerical features after encoding as needed.
Category: Requirements