NEW
Also known as: Normalization (min-max)
Rescaling features to a fixed range, typically [0, 1], preserving relationships but not variance.
DESCRIPTION
Min-max scaling transforms each feature to a specified range by linear rescaling based on observed minima and maxima. It is sensitive to outliers, which can compress most values into a narrow subrange. The method is commonly used for algorithms requiring bounded inputs or distance-based metrics. Standardization or robust scaling may be preferable in the presence of outliers. Apply consistently across train, validation, and test splits to avoid leakage.
ALTERNATIVE DEFINITIONS
scikit-learn
Transform features by scaling each feature to a given range.
Concise emphasis on feature-wise scaling to specified bounds.
Wikipedia
In machine learning, feature scaling is a method used to normalize the range of independent variables or features of data.
Places min-max scaling within the broader context of feature scaling.
RELATED TERMS
Standardization Preprocessing Outlier Handling Feature Engineering Rescaling
COMPETING TERMS
Feature Scaling Robust Scaling
RELATIONS
- Broader: Scaling
KNOWLEDGE AREAS
Mathematics Data Science AI Testing & Validation
TARGET AUDIENCE
Data Scientist AI Engineer Analytics Engineer Data Engineer
EXTERNAL SOURCES
- Wikipedia - Feature scaling
- scikit-learn - Guide on MinMaxScaler usage
- Google Developers - Normalization overview and guidance
TOP QUESTIONS
What is Min-Max Scaling and when should Min-Max Scaling be used?
Min-max scaling rescales features to a fixed range. Use it for bounded inputs, visualization, or when models are sensitive to feature magnitude.
Category: Overview
What is a common mistake with Min-Max Scaling?
Fitting the scaler on the full dataset causes leakage. Always fit on training data and apply the same transform to validation and test sets.
Category: Mistakes
What risks arise with Min-Max Scaling?
Outliers expand the range and compress most values, reducing resolution for typical data points.
Category: Risks
What are alternatives to Min-Max Scaling?
Standardization (z-score) and robust scaling using medians and IQR are common alternatives, especially with outliers.
Category: Alternatives
How does Min-Max Scaling impact distance-based models?
It aligns feature scales, improving distance computations. However, outliers can distort distances if not handled.
Category: Opinion
How to choose the target range for Min-Max Scaling?
Default is [0, 1], but some models prefer [-1, 1]. Choose based on algorithm requirements and downstream feature interactions.
Category: Requirements
Is Min-Max Scaling appropriate for sparse data?
Scaling can densify or distort sparse features. Consider careful preprocessing or algorithm-specific constraints.
Category: Misunderstanding
What preprocessing complements Min-Max Scaling?
Outlier mitigation, log transforms for skewed features, and consistent train/test application improve effectiveness.
Category: BestPractice
What is currently a hot topic around Min-Max Scaling?
Robust preprocessing pipelines, automated data validation, and leakage detection in ML workflows are key discussions.
Category: Topic