Formula & Calculator
Standard Deviation
Measures the spread of a dataset around its mean.
Interpretation
σ = √(Σ(xᵢ−μ)²/N). Measures the spread of a population dataset around the mean. Used in statistics, quality control, and finance. Larger σ indicates more variability.
Variables
| Symbol | Quantity | Unit |
|---|---|---|
| σ | Standard deviation | |
| xᵢ | Data point | |
| μ | Mean | |
| N | Population size |
What it means
The population standard deviation (σ) is a measure of the dispersion of a set of data points relative to the population mean (μ). It is calculated by taking the square root of the average of the squared deviations from the mean. It has the same units as the data and is widely used in statistical analysis to quantify variability. In quality control, it is used to monitor process capability (six sigma). In finance, it represents volatility (risk). In the physical sciences, it indicates measurement precision. A small σ means data points cluster close to the mean; a large σ indicates wide spread. Understanding standard deviation is essential for interpreting confidence intervals, hypothesis tests, and for comparing variability across datasets. It is a foundational concept in statistics and data science.
Worked example
Population Standard Deviation – Two Examples
Real‑World| Parameter | Value |
|---|---|
| Data | 2,4,6,8,10 |
| μ (mean) | 6 |
| N | 5 |
| Parameter | Value |
|---|---|
| Data | 1,1,1,1,1 |
| μ | 1 |
| N | 5 |
Common mistakes
- Population vs. sample: This formula uses N (population size) – for sample standard deviation, use n−1.
- Mean μ: Use the population mean, not the sample mean (x̄).
- Units: The standard deviation has the same units as the data.
- Square root: Do not forget to take the square root after summing squared deviations.
- Zero variance: If all values are equal, σ = 0.
Applications
The standard deviation (σ for population, s for sample) measures the average distance of data points from the mean, quantifying the spread or variability of a dataset. It is one of the most important statistical measures, used across all fields that involve numerical data. In quality control, it defines process capability and control limits. In finance, it represents risk (volatility). In engineering, it quantifies measurement uncertainty and tolerances. In research, it helps interpret the reliability of results. By understanding the standard deviation, professionals can assess consistency, identify outliers, and compare variability between different groups. It forms the basis for many inferential statistics, including confidence intervals and hypothesis tests. Whether monitoring production quality or analysing experimental data, the standard deviation is indispensable for making data‑driven decisions and ensuring that conclusions are robust.
- Quality control and Six Sigma process monitoring
- Financial risk assessment and portfolio volatility
- Engineering tolerances and measurement system analysis
- Scientific research – data spread and reliability
- Educational assessment – score variability
Frequently Asked Questions
The formula is σ = √(Σ(xᵢ−μ)² / N) for a population. It measures the average distance of each data point from the mean, quantifying the spread or dispersion of a dataset. A larger σ indicates greater variability.
Population σ uses N in the denominator and is used when you have data for the entire population. Sample s uses N−1 (Bessel's correction) to provide an unbiased estimate of the population variance from a sample. The sample formula is s = √(Σ(xᵢ−x̄)² / (n−1)).
A low standard deviation means the data points are clustered closely around the mean, indicating low variability and high precision. This is often desirable in manufacturing and quality control.
It is used to:
- Identify outliers (e.g., values beyond 3σ).
- Calculate confidence intervals and margin of error.
- Perform hypothesis testing (e.g., z‑tests, t‑tests).
- Normalize data via z‑scores.
Variance is the square of the standard deviation (σ²). While variance is in squared units, standard deviation is in the original units of the data, making it easier to interpret.
If you transform each data point as Y = aX + b, then the standard deviation of Y is |a| · σ_X. Adding a constant (b) does not change the standard deviation.
For a normal distribution:
- ≈68% of data lies within ±1σ of the mean.
- ≈95% within ±2σ.
- ≈99.7% within ±3σ.
Use the weighted formula: σ = √(Σ fᵢ (xᵢ − μ)² / N), where fᵢ are the frequencies, xᵢ are the class midpoints, and N = Σ fᵢ. This accounts for the frequency of each value.
Standard deviation is sensitive to outliers – a single extreme value can inflate σ significantly. It also assumes symmetry; for skewed distributions, the interquartile range (IQR) is often more robust.
In finance, σ (or volatility) measures the risk of an asset’s returns. Higher σ indicates higher price fluctuations and greater investment risk. It is also used in the Sharpe ratio to assess risk‑adjusted returns.