Z-score normalization
Z-score normalization transforms values by subtracting their mean and dividing by their standard deviation.
Advanced Algorithms and Data Structures
Z-score normalization transforms each feature by subtracting its mean and dividing by its standard deviation.
- How it is used
- Prepares differently scaled features for distance-based clustering.
- How deep it goes
- Explains the transformation and its zero-mean, unit-variance result without developing implementation code.
- Examples
- Uses customer salaries and monthly expenses to demonstrate scale imbalance.
- What you can do after
- Apply normalization before Euclidean-distance clustering so differently scaled features contribute more comparably.
Read how Advanced Algorithms and Data Structures explains z-score normalization →
Outlier Detection in Python
Z-score scaling transforms values by subtracting the mean and dividing by the standard deviation.
- How it is used
- Supports comparable numeric features for distance-based outlier detection and standardizes detector scores into standard-deviation units.
- How deep it goes
- Defines the transformation and explains its practical role, but defers implementation details to broader scaling treatments.
- Examples
- Uses baseball statistics and contrasts standard scaling with robust scaling when extreme values affect feature comparability.
- What you can do after
- Evaluate scaling choices for numeric features and detector scores while recognizing when outliers make z-scores unreliable.
Read how Outlier Detection in Python explains z-score normalization →
Related concepts
- z-scoreuses · A z-score is a signed standardized value expressing how many standard deviations an observation lies above or below a reference mean.
- normalizationkind of · Normalization is the process of transforming a value, representation, or data structure to satisfy a specified standard, scale, or structural constraint.
- RobustScaleralternative to · RobustScaler is a scikit-learn transformer that scales features using robust statistics such as the median and interquartile range.
- preprocessingkind of · Preprocessing is the preparation or transformation of data, content, or other inputs into a form suitable for a subsequent computational operation.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

