---
title: "Standard deviation mathematical notation"
description: "σ is the population standard deviation and s the sample one. Formulas, a worked example, why s divides by n − 1, and how to type σ."
canonical_url: "https://fanout.sh/labs/math-decoder/symbol/standard-deviation"
md_url: "https://fanout.sh/labs/math-decoder/symbol/standard-deviation.md"
last_updated: "2026-11-05"
access: "public"
---

# Standard deviation mathematical notation

σ is the population standard deviation and s the sample one. Formulas, a worked example, why s divides by n − 1, and how to type σ.

## Public overview

The standard deviation symbol is σ (lowercase Greek sigma) for a whole population or a probability distribution, and s for a sample. Both are the square root of the variance, so they measure spread in the same units as the data.

Read it as: sigma, s.

Type it: Unicode U+03C3 · HTML &sigma; · LaTeX \sigma

Mac: switch to the Greek keyboard layout and press S, or press Globe-E and search for sigma.

Windows: hold Alt and type 229 on the numeric keypad, or in Word type 03C3 and press Alt+X.

Population standard deviation, σ: The square root of the mean squared distance from the mean μ, taken over every member of a population or over a probability distribution.

$$\sigma=\sqrt{\frac1N\sum_{i=1}^{N}(x_i-\mu)^2}$$

For the population 2, 4, 4, 4, 5, 5, 7, 9: the mean is μ = 5, the squared deviations 9, 1, 1, 1, 0, 0, 4, 16 add up to 32, 32/8 = 4, and σ = √4 = 2.

σ² is the variance and σ its square root, so a variance of 4 means σ = 2. Capital Σ is a different symbol: a sum or a covariance matrix. σ(z), written with an argument, is usually the sigmoid function.

Sample standard deviation, s: The estimate of σ from a sample of n values. It divides by n − 1 instead of n, which makes s² an unbiased estimate of σ² (Bessel's correction).

$$s=\sqrt{\frac1{n-1}\sum_{i=1}^{n}(x_i-\bar x)^2}$$

Treat the same eight numbers as a sample: x̄ = 5, and s = √(32/7) ≈ 2.14, slightly larger than σ = 2.

Libraries disagree on the default. NumPy's np.std divides by n; pandas' .std(), torch.std and Python's statistics.stdev divide by n − 1. Use np.std(x, ddof=1) to get s.

Scale in normalization and noise: In machine learning, σ sets a scale. Standardizing a feature divides by its standard deviation, BatchNorm and LayerNorm do the same per batch or per example, and σ is the noise level in Gaussian noise and diffusion models.

$$z=\frac{x-\mu}{\sigma}$$

With μ = 5 and σ = 2, the value 9 becomes z = (9 − 5)/2 = 2, two standard deviations above the mean. Normalization layers compute (x − μ)/√(σ² + ε) with a small ε, 10⁻⁵ by default in PyTorch, so a constant input cannot divide by zero.

Sampling functions take σ, not σ². The math writes N(μ, σ²), but np.random.normal(loc, scale) and torch.normal(mean, std) both expect the standard deviation.

---
This representation contains public Fanout content only. Protected Pro lessons, account data, billing, checkout, and pricing are not included.

Browse the public content map: https://fanout.sh/sitemap.md
