A little context. A clearer answer.
When this calculator is useful
Use the same data list to calculate variance, standard deviation, the arithmetic mean and mean absolute deviation (MAD). Choose population variance when the list represents the whole population, or sample variance to use the N − 1 denominator. Optional frequencies represent how many times each value occurs; they are whole observation counts, not arbitrary fractional weights. Here MAD means mean absolute deviation about the mean, which differs from median absolute deviation. For a related calculation, try Z-Score Calculator: Standard Score & Normal Probability.
What to enter
| Input | What it means | Example value |
|---|---|---|
| Data values | Data values: 2; 4; 6. Separate observations with semicolons, up to 80 values. Frequencies are positive integer counts, not arbitrary weights. Sample variance requires at least two observations. MAD here means mean absolute deviation about the mean, not median absolute deviation. The chart shows the first 24 distinct entries, without repeating frequencies. | 2;4;6 |
| Variance denominator | Variance denominator: Population / Sample. | Population |
| Observation weighting | Observation weighting: One occurrence each / Integer frequencies. | One occurrence each |
| Integer frequencies | Integer frequencies: 2; 4; 6. Separate observations with semicolons, up to 80 values. Frequencies are positive integer counts, not arbitrary weights. Sample variance requires at least two observations. MAD here means mean absolute deviation about the mean, not median absolute deviation. The chart shows the first 24 distinct entries, without repeating frequencies. | — |
How the calculation works
- Enter observations separated by semicolons. If using frequencies, enter a matching positive integer count for every value.
- Calculate the mean, then the squared deviations from that mean. Divide their sum by N for population variance or by N − 1 for sample variance.
- Take the square root of the variance for standard deviation. Average the absolute deviations about the mean for MAD, and compare these measures of spread.
μ = Σfᵢxᵢ/N; σ² = Σfᵢ(xᵢ−μ)²/N; s² = Σfᵢ(xᵢ−μ)²/(N−1); MAD = Σfᵢ|xᵢ−μ|/NA worked example
Variance and mean absolute deviation calculator: (2;4;6) → μ = 4; σ² = 8/3; s² = 4; MAD = 4/3.
Example you can load
What to enterThis is a fixed example; changing the form above does not change these numbers.
Assumptions & limits
Separate observations with semicolons, up to 80 values. Frequencies are positive integer counts, not arbitrary weights. Sample variance requires at least two observations. MAD here means mean absolute deviation about the mean, not median absolute deviation. The chart shows the first 24 distinct entries, without repeating frequencies.
Frequently asked questions
Should I choose sample or population variance?
Population variance uses N in the denominator. Sample variance uses N − 1 and requires at least two observations. Choose the interpretation that matches your data; changing the setting does not change the data mean.
Is this also a standard deviation calculator?
Yes. The tool reports the square root of the chosen variance as standard deviation. For 2, 4 and 6, the mean is 4; population variance is 8/3, while sample variance is 4 and sample standard deviation is 2.
Does MAD here mean median absolute deviation?
No. This page calculates the mean of the absolute distances from the arithmetic mean. Median absolute deviation uses medians and is a different statistic. Frequency inputs here must be positive integer counts.