Z-score
A z-score is a signed standardized value expressing how many standard deviations an observation lies above or below a reference mean.
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.
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 →
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 typical dispersion of values around their mean in the original units.
- meanuses · A mean is a measure of central tendency, calculated as the arithmetic average of values or, for a random variable, as the probability-weighted average of its possible values.
- standardizationproduced by · Standardization is the transformation of numerical data by centering and scaling it to a common reference, typically to a mean of zero and a standard deviation of one.
- z-score tableused by · A z-score table is a tabular reference that gives cumulative probabilities associated with standardized values in the standard normal distribution.
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.







