In the world of data science and machine learning, two common preprocessing techniques often cause confusion: normalization and standardization.
Normalization, also known as min-max scaling, transforms features to a fixed range, typically [0, 1] or [-1, 1]. It is useful when the data does not follow a Gaussian distribution and when you need to preserve the shape of the original distribution.
Standardization, on the other hand, centers the data around the mean with a unit standard deviation (z-scores). It works well for data that is normally distributed and is less sensitive to outliers, as it does not bound values to a specific range.
In short, normalize when your data has varying scales but you need to bound values, and standardize when your algorithm assumes normally distributed data (e.g., linear regression, PCA, SVM). This clear distinction helps in choosing the right preprocessing step for your machine learning pipeline.