Standard Deviation Calculator
Calculate the standard deviation of a data set. Supports both population and sample standard deviation.
Calculate the variance of a data set. Supports both population and sample variance and shows the spread around the mean.
| # | Value (x) | x − x̄ | (x − x̄)² |
|---|---|---|---|
| 1 | 2.0000 | -3.0000 | 9.0000 |
| 2 | 4.0000 | -1.0000 | 1.0000 |
| 3 | 4.0000 | -1.0000 | 1.0000 |
| 4 | 4.0000 | -1.0000 | 1.0000 |
| 5 | 5.0000 | +0.0000 | 0.0000 |
| 6 | 5.0000 | +0.0000 | 0.0000 |
| 7 | 7.0000 | +2.0000 | 4.0000 |
| 8 | 9.0000 | +4.0000 | 16.0000 |
| Σ | 40.0000 | 0 | 32.0000 |
| Value | Count | Relative % | Bar |
|---|---|---|---|
| 2.0000 | 1 | 12.5% | |
| 4.0000 | 3 | 37.5% | |
| 5.0000 | 2 | 25.0% | |
| 7.0000 | 1 | 12.5% | |
| 9.0000 | 1 | 12.5% |
| Statistic | Value |
|---|---|
| Minimum | 2.0000 |
| Q1 (25th percentile) | 4.0000 |
| Median (Q2) | 4.5000 |
| Q3 (75th percentile) | 7.0000 |
| Maximum | 9.0000 |
| IQR (Q3 − Q1) | 3.0000 |
| Lower Fence (Q1 − 1.5·IQR) | -0.5000 |
| Upper Fence (Q3 + 1.5·IQR) | 11.5000 |
The Variance Calculator computes both the population variance (σ²) and sample variance (s²) for any data set. Variance measures the average of the squared deviations from the mean.
Variance is a fundamental concept in statistics. It quantifies how far a set of numbers is spread out from their average value. A variance of zero means all values are identical; a large variance means they are widely scattered.
While variance is harder to interpret intuitively because it uses squared units, it is mathematically convenient and forms the basis for standard deviation, ANOVA, regression analysis, and many other statistical methods.
Variance is the foundation for many statistical tests. This calculator computes both population and sample variance and shows all intermediate steps.
σ² = Σ(xᵢ − μ)² / N (population)
s² = Σ(xᵢ − x̄)² / (n−1) (sample)Result: s² = 4.571
Mean = 5. Squared deviations: 9, 1, 1, 1, 0, 0, 4, 16. Sum = 32. Sample variance = 32/7 ≈ 4.571.
Harry Markowitz's Modern Portfolio Theory uses variance as the measure of risk. The goal is to find portfolios that minimize variance for a given expected return.
Analysis of Variance (ANOVA) compares group means by partitioning total variance into within-group and between-group components, allowing statistical testing of mean differences.
Sample variance divides by n−1 (not n) because the sample mean constrains one degree of freedom. This Bessel's correction provides an unbiased estimate of population variance.
Variance also appears in quality control, forecasting, and experimental work where you need to compare how tightly different samples cluster around their mean.
Last updated:
Variance is the average of squared deviations from the mean. It measures how spread out data values are around the center.
Squaring ensures all deviations are positive, so negatives do not cancel positives, and it gives extra weight to large deviations. That makes variance especially sensitive to outliers and to points that sit far from the mean.
Standard deviation is the square root of variance. It has the same units as the data, making it more interpretable. Variance is in squared units.
Use population variance when you have data for every member of the group. Use sample variance when your data is a subset of a larger population.
No, variance is always ≥ 0 because it is a sum of squared values. A variance of zero means all data values are identical.
In portfolio theory, variance measures investment risk. Lower variance means more predictable returns. Covariance and variance are used to optimize portfolio allocation.
Calculate the standard deviation of a data set. Supports both population and sample standard deviation.
Calculate the range of a data set — the difference between the maximum and minimum values.