Standard deviation
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.
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.
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.
Effective Data Analysis
Standard deviation is a measure of the typical spread of numerical observations around their mean.
- How it is used
- Uses standard deviation to summarize variability during exploratory analysis and reporting before statistical tests.
- How deep it goes
- Explains interpretation and suitability for symmetric data, and relates standard deviation to variance and standard error.
- Examples
- Uses a simulated normal distribution and an exercise examining a generated distribution’s spread and symmetry.
- What you can do after
- Evaluate and understand spread around the mean while checking distribution shape before communicating results.
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.
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.
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
- Uses standard deviation to assess variation in repeated performance timings and the reliability of measurements.
- How deep it goes
- Defines dispersion and relative standard deviation, works through a numerical sample, and shows C code collecting and printing statistics.
- Examples
- Uses twenty fictive timings, their frequency histogram, and repeated measurements of C loops.
- What you can do after
- Evaluate timing variability by comparing relative standard deviation against a low-percentage guideline.
Modern C, Third Edition
Standard deviation measures the typical dispersion of observed values around their mean.
- How it is used
- Uses dispersion to assess repeated code timings and the reliability of performance measurements.
- How deep it goes
- Defines and interprets standard deviation using a timing sample without deriving a formula.
- Examples
- Uses 20 fictive timings and a frequency histogram to illustrate substantial variation.
- What you can do after
- Evaluate timing variability and recognize possible disturbances in computation or measurement.
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.
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 →
Applied Reinforcement Learning
Standard deviation is the square root of variance and measures the typical spread of a probability distribution.
- How it is used
- Models the spread of a Gaussian policy over continuous actions.
- How deep it goes
- Explains how σ affects action likelihood and works through two sampled-action comparisons.
- Examples
- Compares actions 0.82 and 0.3 under a Gaussian policy with μ = 0.7 and σ = 0.2.
- What you can do after
- Understand how changing σ affects policy spread and the likelihood assigned to sampled actions.
Read how Applied Reinforcement Learning explains standard deviation →
Grokking Bayes
Standard deviation is the nonnegative square root of variance and quantifies the spread of a distribution around its mean.
- How it is used
- Quantifies spread and continuous uncertainty in normal priors, posterior approximations, and mixture-model component widths.
- How deep it goes
- Defines spread, variance notation, credible intervals, and practical limits, but stops short of deriving the calculation formula.
- Examples
- Uses a price-per-square-foot prior, posterior normal approximation, and mixture-model cluster widths as concrete examples.
- What you can do after
- Evaluate continuous uncertainty, interpret normal-distribution intervals, and choose nonnegative width priors in mixture models.
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.
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 →
Timeless Algorithms, The Foundational Ideas
The square root of variance, measuring dispersion in the same units as the quantity described.
- How it is used
- Quantifies variability as typical residual spread in regression and as sample variability in a test of beverage fill volumes.
- How deep it goes
- Works through maximum-likelihood error-variance and standard-deviation estimates, then interprets sample standard deviation in a t-test.
- Examples
- Uses study-hour and exam-score regression with estimated error standard deviation 0.33, and beverage fills with sample standard deviation 0.30 ounces.
- What you can do after
- Evaluate/understand typical residual spread in a fitted line and the role of sample variability in selecting a t-test.
Read how Timeless Algorithms, The Foundational Ideas explains standard deviation →
Also covered in
- Causal AI
- Local Image GenerationIn early access (MEAP)
- Build Your Own Robot: Using Python, CRICKIT, and Raspberry Pi
- Bayesian Optimization in Action
- Optimization Algorithms: AI techniques for design, planning, and control problems
- Data-Driven Cybersecurity
- Julia as a Second Language
What to know first
- 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.
- varianceVariance is the expected squared deviation of a random variable from its mean and measures the dispersion of its values.
- language modelA language model is a computational model that represents patterns in linguistic sequences to assign probabilities, predict, generate, or evaluate language.
- normal distributionA normal distribution is a continuous probability distribution with a symmetric, bell-shaped density determined by its mean and variance.
Related concepts
- varianceuses · Variance is the expected squared deviation of a random variable from its mean and measures the dispersion of its values.
- coefficient of variationused by · The coefficient of variation is a normalized measure of relative variability equal to a quantity’s standard deviation divided by its mean.
- interquartile rangealternative to · The interquartile range is the difference between the third and first quartiles of a distribution, measuring the spread of its middle half.
- normal distributionconfigures · A normal distribution is a continuous probability distribution with a symmetric, bell-shaped density determined by its mean and variance.
- standardizationused by · Standardization transforms numerical values by centering and scaling them, commonly to a mean of zero and a standard deviation of one.
- z-scoreused by · 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.
Questions about standard deviation
What is standard deviation?
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.
Which Manning books explain standard deviation?
Cyber Threat Hunting, Grokking Statistics, Effective Data Analysis, Pandas Workout: 200 exercises to make you a stronger data analyst, Build a Robo-Advisor with Python (From Scratch), Math and Architectures of Deep Learning, Statistics Slam Dunk, Experimentation for Engineers and 10 more.
What should I know before learning standard deviation?
Manning books that teach standard deviation usually introduce mean, variance, language model and normal distribution first.
What is the difference between standard deviation and interquartile range?
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. The interquartile range is the difference between the third and first quartiles of a distribution, measuring the spread of its middle half.
What is standard deviation also called?
Standard deviation is also called std or sigma.
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.

















