Standard Deviation & Variance Calculator

Compute sample and population standard deviation ($\sigma$ and $s$), variance with Bessel's unbiased degree of freedom ($n - 1$), standard error of the mean, and detailed residual square step-by-step tables.

Parametric Statistical Dispersion & Moment Analysis Engine
Supports negative numbers, floating-point decimals, and large arrays (up to 5,000 values)
Primary Target Metric
N = 10 Values Detected
Sample Standard Deviation (s)
5.2334
Sample Variance: s² = 27.3889 • Degrees of Freedom: n - 1 = 9
Sample SD (s) 5.2334 Bessel's correction (n - 1)
Population SD (σ) 4.9649 Exhaustive universe (N)
Sample Variance (s²) 27.3889 Mean squared deviation
Population Variance (σ²) 24.6500 SS divided by N
Mean (μ or x̄) 85.8000 Sum divided by count
Sum (Σx) 858.0000 Total of all values
Sum of Squares (SS) 246.5000 Σ(x - x̄)²
Standard Error (SEM) 1.6549 s / √n
Five-Number Distribution Summary & Outlier Range
Minimum 78
Q1 (25th %) 82
Median (Q2) 87
Q3 (75th %) 90
Maximum 94
Range: 16 Interquartile Range (IQR): 8 Coefficient of Variation (CV): 6.10%

Step-by-Step Deviation & Squared Residual Table

Index (i) Value (xi) Deviation from Mean (xi − x̄) Squared Deviation (xi − x̄)²

Statistical Dispersion Theory, Variance & Bessel's Correction

In mathematical statistics and empirical data science, central tendency measures (such as the arithmetic mean, median, and mode) describe the center of a numeric distribution. However, central location alone fails to convey distribution structure without a quantitative measure of statistical dispersion—the degree to which individual observations vary, scatter, or cluster around the mean. Standard deviation (SD) and variance represent the primary second-moment measures of quantitative spread in probability theory.

Population Variance & Standard Deviation

When an analyst possesses observations for the entire exhaustive universe under study (a statistical population of finite size $N$), the population mean $\mu$ and population variance $\sigma^2$ are defined as:

$$\mu = \frac{1}{N}\sum_{i=1}^N x_i, \qquad \sigma^2 = \frac{1}{N}\sum_{i=1}^N (x_i - \mu)^2$$

The population standard deviation $\sigma$ is the non-negative square root of variance, restoring dimensional parity with the original measurement units:

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

Sample Variance & Bessel's Correction ($n-1$)

In virtually all practical statistical inference, gathering observations for an entire population is impossible. Instead, analysts inspect an unbiased random sample of size $n$ drawn from the larger population. Computing variance by dividing the sum of squared deviations around the sample mean $\bar{x}$ by $n$ produces a systematically downward-biased estimator because observations cluster closer to their sample mean than to the true unknown population mean $\mu$:

$$E\left[ \frac{1}{n}\sum_{i=1}^n (x_i - \bar{x})^2 \right] = \frac{n - 1}{n} \sigma^2 < \sigma^2$$

To eliminate this systematic negative bias and achieve an asymptotically unbiased estimator ($E[s^2] = \sigma^2$), German astronomer Friedrich Bessel proved that dividing by the degrees of freedom $n - 1$ restores complete expectation equality. Hence, sample variance $s^2$ and sample standard deviation $s$ are formulated as:

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

The Computational Shortcut Formula

In algorithmic software and streaming computational pipelines, computing $\bar{x}$ first requires two sequential data passes. Algebraically expanding the sum of squared residuals allows evaluation in a single linear $O(n)$ pass:

$$\sum_{i=1}^n (x_i - \bar{x})^2 = \sum_{i=1}^n x_i^2 - \frac{\left(\sum_{i=1}^n x_i\right)^2}{n}$$

Auxiliary Dispersion Metrics

  • Standard Error of the Mean (SEM): Quantifies sample mean sampling variability: $$SEM = \frac{s}{\sqrt{n}}$$
  • Coefficient of Variation (CV): Normalized, dimensionless dispersion ratio: $$CV = \left( \frac{s}{\bar{x}} \right) \times 100\%$$
  • Interquartile Range (IQR): Non-parametric spread between the 75th ($Q_3$) and 25th ($Q_1$) percentiles: $$IQR = Q_3 - Q_1$$

Step-by-Step Sample Standard Deviation Calculation

Consider a dataset of $n = 5$ examination scores: $\{82, 88, 90, 78, 92\}$.

  1. Calculate Sample Mean ($\bar{x}$): $$\bar{x} = \frac{82 + 88 + 90 + 78 + 92}{5} = \frac{430}{5} = \mathbf{86.0}$$
  2. Compute Squared Deviations from Mean $(x_i - \bar{x})^2$:
    • $(82 - 86)^2 = (-4)^2 = 16$
    • $(88 - 86)^2 = (2)^2 = 4$
    • $(90 - 86)^2 = (4)^2 = 16$
    • $(78 - 86)^2 = (-8)^2 = 64$
    • $(92 - 86)^2 = (6)^2 = 36$
  3. Sum of Squared Deviations ($SS$): $$SS = 16 + 4 + 16 + 64 + 36 = \mathbf{136}$$
  4. Sample Variance ($s^2$ with $n - 1 = 4$): $$s^2 = \frac{136}{5 - 1} = \frac{136}{4} = \mathbf{34.0}$$
  5. Sample Standard Deviation ($s$): $$s = \sqrt{34.0} \approx \mathbf{5.831}$$
Google AdSense Leaderboard • 728 × 90
AD
Institutional Wealth & Health Analytics Platform
Empower your decision making with professional tools. Visit Official Partner.
Advertisement Bottom Banner • 728 × 90
AD
Reserved Advertising Space
Responsive display ad slot reserved for Google AdSense partner network.