calculator.onl
Categories50

Variance, Standard Deviation & MAD Calculator

Calculate sample or population variance, standard deviation and mean absolute deviation from data values or integer frequency counts.

A worked example

Spread three beads farther apart while keeping their mean at four. How does the variance change?

Variance2.6667Mean4Standard deviation1.633Mean absolute deviation1.3333Observation count3
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.

Variance denominator: Population / Sample.

Observation weighting: One occurrence each / Integer frequencies.

Updates as you type

Use a dot or comma for decimals. No thousands separators.

YOUR RESULT

Variance

2.6667

Calculated from your inputs

Mean4
Standard deviation1.633
Mean absolute deviation1.3333
Observation count3
The numbers, at a glance

Calculations run in your browser.
UNDERSTAND THE RESULT

A little context. A clearer answer.

↑ Back to calculator

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

InputWhat it meansExample value
Data valuesData 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 denominatorVariance denominator: Population / Sample.Population
Observation weightingObservation weighting: One occurrence each / Integer frequencies.One occurrence each
Integer frequenciesInteger 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

  1. Enter observations separated by semicolons. If using frequencies, enter a matching positive integer count for every value.
  2. 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.
  3. 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.
The formulaμ = Σfᵢxᵢ/N; σ² = Σfᵢ(xᵢ−μ)²/N; s² = Σfᵢ(xᵢ−μ)²/(N−1); MAD = Σfᵢ|xᵢ−μ|/N

A 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 enter
Result for this example · Variance2.6667

This 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.

Reference ·

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.