liveBook · Manning

Z-score

A z-score is a signed standardized value expressing how many standard deviations an observation lies above or below a reference mean.

How 8 Manning books explain it

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.

Read how Statistics Slam Dunk explains z-score →

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.

Read how Grokking Statistics explains z-score →

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.

Read how Outlier Detection in Python explains z-score →

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.

Read how The Well-Grounded Data Analyst explains z-score →

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.

Read how Classic Computer Science Problems in Swift: Essential techniques for practicing programmers explains z-score →

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.

Read how Machine Learning System Design 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 →

Related concepts

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.