liveBook · Manning

Standard deviation

Standard deviation is the nonnegative square root of variance and measures the typical dispersion of values around their mean in the original units.

How 15 Manning books explain it

Cyber Threat Hunting

Standard deviation is the square root of variance and measures the typical distance of data values from their mean.

How it is used
Prioritizes repeated network flows with consistent connection intervals while hunting for malicious beaconing.
How deep it goes
Defines standard deviation from variance and works through grouped interval calculations, thresholds, plots, and follow-up investigation.
Examples
Uses network flows to Wikipedia and 34.125.188.180, line plots, histograms, certificates, HTTP events, and an osquery process query.
What you can do after
Diagnose/debug with it by ranking regular connection patterns and validating beaconing candidates with network and endpoint evidence.

Read how Cyber Threat Hunting explains standard deviation →

Grokking Statistics

The nonnegative square root of variance, measuring typical dispersion in the original units of a variable.

How it is used
Measures numeric spread around a mean for descriptive analysis, prediction reliability, and normal-distribution modeling.
How deep it goes
Defines standard deviation as variance’s square root and implements sample calculation from scratch with NumPy verification.
Examples
Uses collie weights, March weather temperatures, adult heights, and barista coffee-ground preferences.
What you can do after
Apply it via NumPy or a from-scratch function to describe sample spread in original units.

Read how Grokking Statistics explains standard deviation →

Effective Data Analysis

Standard deviation is a measure of the typical spread of numerical observations around their mean.

How it is used
Summarizes spread around the mean during exploratory analysis and stakeholder reporting.
How deep it goes
Explains deviations from the mean visually and gives practical guidance on when the measure is appropriate.
Examples
Uses a diagram of deviations from the mean and an exercise plotting and summarizing a generated distribution.
What you can do after
Evaluate/understand it when reporting variability, checking distribution shape before choosing statistics for stakeholders.

Read how Effective Data Analysis explains standard deviation →

Pandas Workout: 200 exercises to make you a stronger data analyst

A measure of the spread of numerical values around their mean, and a scale parameter of a normal distribution.

How it is used
Uses standard deviation to summarize data spread and classify observations relative to their mean.
How deep it goes
Explains the measure through a formula, normal-distribution interpretation, pandas methods, and an outlier exercise.
Examples
Uses generated normal values, descriptive statistics, altered extrema, test-score bands, city latitudes, and repeated weekly temperatures.
What you can do after
Apply it via pandas Series methods to summarize spread, compare observations with thresholds, and investigate outliers.

Read how Pandas Workout: 200 exercises to make you a stronger data analyst explains standard deviation →

Build a Robo-Advisor with Python (From Scratch)

Standard deviation is a measure of the dispersion of investment returns around their mean, commonly interpreted as return volatility.

How it is used
Frames portfolio risk against expected return and supports allocation choices based on risk tolerance.
How deep it goes
Derives portfolio volatility through covariance matrices and matrix multiplication, while deferring the minimum-variance-frontier derivation.
Examples
Uses FE, WMT, and AAPL; random portfolio weights; and a stock–bond slider showing a 95% worst-case loss.
What you can do after
Apply it via NumPy to compute portfolio volatility and compare simulated portfolios in risk–reward space.

Read how Build a Robo-Advisor with Python (From Scratch) explains standard deviation →

Math and Architectures of Deep Learning

The square root of variance, used as a spread measure in the same units as the underlying values.

How it is used
Uses spread to interpret probability distributions, filter variation, and estimate Gaussian parameters from data.
How deep it goes
Defines standard deviation through variance and expected squared distance, then applies it in Gaussian modeling without proving Gaussian formulas.
Examples
Uses Gaussian height data, bell-curve width comparisons, and PyTorch sample statistics to illustrate spread.
What you can do after
Apply it via PyTorch to estimate Gaussian spread and calculate interval probabilities from observed data.

Read how Math and Architectures of Deep Learning explains standard deviation →

Statistics Slam Dunk

Standard deviation is a measure of the dispersion of numeric observations around their mean.

How it is used
Uses dispersion to describe NBA player variation and compare competitive parity across seasons.
How deep it goes
Explains interpretation, manual calculation, R implementation, normal-distribution intervals, and grouped seasonal analysis.
Examples
Demonstrates draft statistics, paired numeric vectors, seasonal team wins, and year-by-year NBA scoring z-scores.
What you can do after
Apply it via base R’s sd() function, calculate z-scores, and interpret dispersion in player or team data.

Read how Statistics Slam Dunk explains standard deviation →

Experimentation for Engineers

A measure of the typical magnitude of deviations from a quantity's mean.

How it is used
Quantifies execution-cost variation and sizes A/B tests so practically significant differences can become statistically significant.
How deep it goes
Defines SD, works through deviations and aggregation, and extends it to standard error and power-based measurement planning.
Examples
Uses ASDAQ and BYSE execution-cost measurements, NumPy calculations, repeated aggregate simulations, and measurement-count design examples.
What you can do after
Apply it via NumPy to quantify variation, estimate aggregate-measurement error, and design A/B-test sample sizes.

Read how Experimentation for Engineers explains standard deviation →

Modern C

Standard deviation is a measure of the dispersion of observations around their mean.

How it is used
Assesses variation across repeated runtime measurements before judging their relevance.
How deep it goes
Defines standard deviation through timing variation and works a relative comparison; does not derive its formula.
Examples
Uses twenty timings, their frequency histogram, and a 52% relative standard deviation.
What you can do after
Evaluate/understand whether repeated runtime measurements vary too much to support a confident interpretation.

Read how Modern C explains standard deviation →

Modern C, Third Edition

Standard deviation measures the typical dispersion of observed values around their mean.

How it is used
Assesses whether repeated code timings are consistent enough to support a performance comparison.
How deep it goes
Defines its interpretation and works through one timing sample, without deriving a formula.
Examples
Uses 20 timings with a 0.6-second mean and 0.31-second standard deviation, plus C timing-statistics output.
What you can do after
Evaluate/understand whether variation makes an average timing unreliable.

Read how Modern C, Third Edition explains standard deviation →

Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI

Standard deviation measures the typical dispersion of values around their arithmetic mean.

How it is used
Uses feature dispersion to identify constant or quasi-constant numeric columns during tabular-data exploration.
How deep it goes
Defines dispersion operationally and applies pandas computation, stopping short of mathematical derivation.
Examples
Uses Auto MPG features including mpg, displacement, horsepower, weight, and acceleration.
What you can do after
Apply it via pandas to screen low-variance features and prepare comparable standardized columns.

Read how Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI explains standard deviation →

Statistics Every Programmer Needs

Standard deviation is a measure of the typical distance of observations from their mean.

How it is used
Measures spread for descriptive analysis, volatility modeling, simulation, and quality-control monitoring.
How deep it goes
Explains interpretation, continuous and proportion formulas, Python calculation, simulation use, and s-chart control limits.
Examples
Uses GM returns, GM closing prices, piston-ring diameters, defective proportions, and Benford-distribution leading digits.
What you can do after
Apply it via Python to quantify variability, parameterize simulations, compare datasets, and monitor process stability.

Read how Statistics Every Programmer Needs explains standard deviation →

Classic Computer Science Problems in Swift: Essential techniques for practicing programmers

Standard deviation is the square root of variance and measures the typical magnitude of deviations from the mean.

How it is used
Provides a statistical primitive and supports z-score normalization before k-means clustering.
How deep it goes
Implements the formula in Swift and demonstrates composition with variance, but defers elementary statistical theory.
Examples
Uses a five-value Double array producing variance 21704 and standard deviation 147.
What you can do after
Apply it via Swift Array extensions to calculate standard deviation and generate normalized z-scores.

Read how Classic Computer Science Problems in Swift: Essential techniques for practicing programmers explains standard deviation →

Investing for Programmers

Standard deviation is the square root of variance and measures dispersion in the original units of the observations.

How it is used
Quantifies historical stock-price or return dispersion for technical analysis and risk comparison.
How deep it goes
Defines the square-root relationship with variance and demonstrates aggregation, while deferring deeper portfolio analysis.
Examples
Uses Python aggregations, return histograms, and stock comparisons involving Coca-Cola, Apple, NuScale, Microsoft, Amazon, and Alphabet.
What you can do after
Evaluate historical dispersion by computing standard deviation on price or logarithmic-return DataFrames.

Read how Investing for Programmers explains standard deviation →

AI-Powered Developer: Build software with ChatGPT and Copilot

Standard deviation is a measure of the dispersion or variability of values around their mean.

How it is used
Uses standard deviation as a small software task for comparing, prompting, reviewing, and verifying AI-generated Python code.
How deep it goes
Explains the calculation procedure, population-sample distinction, denominator discrepancy, and verification, but stops short of deeper statistical theory.
Examples
Demonstrates calculation with the list [1, 2, 3, 4, 5] and compares pure-Python model-generated implementations.
What you can do after
Diagnose standard-deviation implementations by checking formulas, denominators, requirements, and outputs against an independently verified result.

Read how AI-Powered Developer: Build software with ChatGPT and Copilot explains standard deviation →

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.