Z-score
A z-score is a standardized value expressing its signed difference from a reference mean in units of the relevant standard deviation or standard error.
Statistics Slam Dunk
The z-score method standardizes a numeric observation by subtracting its population mean and dividing by the population standard deviation.
- How it is used
- Standardizes NBA measures to compare payrolls, wins, and scoring across differing scales and seasons.
- How deep it goes
- Defines the formula, walks through R calculations and validation, and interprets grouped scoring results.
- Examples
- Uses NBA team payrolls and wins, plus yearly player points-per-game leaders from 1950 through 1999.
- What you can do after
- Apply it via R group_by() and mutate() to create and validate standardized numeric variables.
Statistics Every Programmer Needs
A z-score is a standardized measure indicating how many standard deviations an observation lies above or below a distribution's mean.
- How it is used
- Supports cross-scale comparisons, normal-distribution probabilities, project-deadline estimates, and process monitoring.
- How deep it goes
- Defines and interprets the formula, then calculates cumulative probabilities and a deadline estimate; does not establish universal intervention thresholds.
- Examples
- Uses standard-normal CDF values and a 30-week project deadline; also applies the measure to quality-control observations.
- What you can do after
- Apply it via SciPy to estimate normal-distribution probabilities, while checking the underlying assumptions and reported results.
Read how Statistics Every Programmer Needs explains z-score →
Grokking Statistics
A standardized score expressing how many standard deviations an observation lies above or below a distribution's mean.
- How it is used
- Standardizes observations and sample means for normal-distribution interpretation, confidence intervals, and Z-tests.
- How deep it goes
- Explains calculation, reverse conversion, dataset transformation, and test-statistic use, while deferring formal derivations.
- Examples
- Uses coffee grams, sleep-hour confidence intervals, potato-chip bag weights, and classroom-score comparisons.
- What you can do after
- Apply it via SciPy to calculate confidence intervals and test whether sample means differ from hypothesized means.
Outlier Detection in Python
A z-score is the signed number of standard deviations by which a numeric value differs from the mean of a reference set.
- How it is used
- Detects unusual numeric values relative to the mean and standard deviation of a reference set.
- How deep it goes
- Defines calculation and thresholding, then stops short of treating the method as reliable across distributions or multivariate tables.
- Examples
- Uses a ten-value example, an abalone weight distribution, and a swarm plot showing sensitivity to extreme observations.
- What you can do after
- Diagnose candidate outliers by calculating standardized scores and comparing their absolute values with a chosen threshold.
The Well-Grounded Data Analyst
A z-score is a standardized value expressing how many standard deviations an observation lies above or below a variable's mean.
- How it is used
- Prevents larger-scale continuous variables from dominating distance-based user clustering.
- How deep it goes
- Defines standard-deviation distance and demonstrates selective implementation, without deriving the transformation mathematically.
- Examples
- Uses mobile-user features including apps, sessions, and average session length, while preserving binary indicators.
- What you can do after
- Apply it via scikit-learn’s StandardScaler to selected continuous features before clustering.
Classic Computer Science Problems in Swift: Essential techniques for practicing programmers
A z-score is a standardized value expressing how many standard deviations a value lies from its distribution's mean.
- How it is used
- Normalizes dimensions before k-means so distance calculations do not favor numerically larger dimensions.
- How deep it goes
- Defines the formula and implements it in Swift, while deferring elementary statistical instruction.
- Examples
- Uses a five-value Double array and applies normalization independently across dimensions of three-dimensional data points.
- What you can do after
- Build z-score normalization for Double arrays and apply it to data prepared for k-means clustering.
Machine Learning System Design
A z-score is the number of standard deviations by which a value differs from the mean of a reference distribution.
- How it is used
- Uses z-scores to set data-quality alarms and support experiment sample-size planning.
- How deep it goes
- Explains threshold-based monitoring and Zα/Zβ in a sample-size equation, without deriving the underlying statistics.
- Examples
- Uses three- and four-z-score alarms, expected feature ranges, and Zα/Zβ in experiment planning.
- What you can do after
- Apply it via historical baselines for monitoring and experiment-design calculations.
Timeless Algorithms, The Foundational Ideas
A z-score is a standardized value expressing a measurement's distance from a mean in units of standard deviation.
- How it is used
- Standardizes a sensor measurement to assess whether it is unusually high relative to historical normal operating conditions.
- How deep it goes
- Defines the calculation and interprets a worked value of 3.1 standard deviations above the mean.
- Examples
- Uses an aircraft vibration sensor reading compared with historical normal vibration levels.
- What you can do after
- Evaluate how unusual an observation is relative to a mean and standard deviation.
Read how Timeless Algorithms, The Foundational Ideas explains z-score →
Pandas Workout: 200 exercises to make you a stronger data analyst
A z-score is the number of standard deviations by which a value differs from the mean of its data set.
- How it is used
- Uses standardized values to investigate unusually distant trips and other potential outliers.
- How deep it goes
- Defines rescaling and centering, then stops at applying scipy.stats.zscore to search for absolute scores above 3.
- Examples
- Uses trip distances and an absolute z-score threshold of 3 as the concrete analysis.
- What you can do after
- Apply scipy.stats.zscore to identify distances whose absolute standardized values exceed 3.
Read how Pandas Workout: 200 exercises to make you a stronger data analyst explains z-score →
Also covered in
- Experimentation for Engineers
- Grokking BayesIn early access (MEAP)
- Digital Twins in Action
What to know first
- standard deviationStandard deviation is the nonnegative square root of variance and measures the dispersion of values around their mean in the same units as those values.
- meanThe mean is a measure of central location equal to the arithmetic average of numerical observations, or the probability-weighted average of a random variable’s possible values.
- normal distributionA normal distribution is a continuous probability distribution with a symmetric, bell-shaped density determined by its mean and variance.
- standard normal distributionA standard normal distribution is a normal probability distribution with mean zero and standard deviation one.
Related concepts
- z-score testused by · A z-score test is an outlier-detection procedure that flags values whose absolute z-scores exceed a selected cutoff.
- standard deviationuses · Standard deviation is the nonnegative square root of variance and measures the dispersion of values around their mean in the same units as those values.
- meanuses · The mean is a measure of central location equal to the arithmetic average of numerical observations, or the probability-weighted average of a random variable’s possible values.
- standardizationproduced by · Standardization transforms numerical values by centering and scaling them, commonly to a mean of zero and a standard deviation of one.
Questions about z-score
What is z-score?
A z-score is a standardized value expressing its signed difference from a reference mean in units of the relevant standard deviation or standard error.
Which Manning books explain z-score?
Statistics Slam Dunk, Statistics Every Programmer Needs, Grokking Statistics, Outlier Detection in Python, The Well-Grounded Data Analyst, Classic Computer Science Problems in Swift: Essential techniques for practicing programmers, Machine Learning System Design, Timeless Algorithms, The Foundational Ideas and 1 more.
What should I know before learning z-score?
Manning books that teach z-score usually introduce standard deviation, mean, normal distribution and standard normal distribution first.
What is the difference between z-score and modified z-score?
A z-score is a standardized value expressing its signed difference from a reference mean in units of the relevant standard deviation or standard error. A robust standardized score based on the median and median absolute deviation for measuring how far an observation deviates from a dataset's center.
What is z-score also called?
Z-score is also called standard score.
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.








