anındahesapla

Variance calculator

Get variance, standard deviation, median and range for any list of numbers in one step.

· Updated:

WhatsApp X Facebook

For the list 4, 8, 15, 16, 23, 42, the result shown is a sample variance of 182. Those six values average out to 18, and variance condenses how far each one strays from that mean into a single squared measure. Matching standard deviations follow: 13.4907 for a sample and 12.3153 for a whole population.

One text box drives the tool. Once you type your values, it lists the variance alongside the mean, median, mode, minimum, maximum, range and count. Seeing the centre and the spread side by side makes it clear which values are stretching the distribution and how much.

Result

182

Variance (sample): 182

What variance measures

Variance is a measure of spread. It tells you how widely the values in a data set are scattered around their mean. Each value is compared with the mean, the differences are squared, the squares are added up and that total is divided by a suitable number. Squaring stops positive and negative deviations from cancelling each other out, and it gives extra weight to values that sit far from the centre. Tightly clustered data produces a small variance, while scattered data produces a large one.

There are two versions. Population variance divides the sum of squares by the number of values. Sample variance divides by one less than that number, a correction that offsets the tendency of a sample to understate the spread of the larger group it was drawn from. This calculator reports sample variance as its main result and shows the standard deviation in both forms. Because of the squaring, variance carries the square of the data's unit: heights in centimetres give a variance in square centimetres. Taking the square root brings you back to the original unit, and that value is the standard deviation.

In practice, variance turns up wherever consistency is being judged. A teacher can check how evenly exam scores are spread, a production line can monitor whether part dimensions stay consistent, and an investor can gauge how much returns swing from period to period. It also underpins regression, analysis of variance and many hypothesis tests. Two groups with the same mean can look identical until their spread is compared.

How to calculate variance

Only one field appears on the form. You supply the values, and the tool finds the mean, adds up the squared deviations and reports the result as sample variance. Take the default data, 4, 8, 15, 16, 23, 42. Six values give a mean of 18, and the median of 15.5 sits halfway between the two middle values, 15 and 16. Since no value repeats, the mode field stays empty. With a minimum of 4 and a maximum of 42, the range is 38. Squaring each distance from 18, adding those squares and dividing by one less than the count gives a sample variance of 182. Its square root, the sample standard deviation, is 13.4907, while dividing by the full count instead yields a population standard deviation of 12.3153. A mean sitting above the median signals that the value 42 is pulling the distribution to the right. Here is the process in order.

  1. Type your values in the numbers field, putting a comma or a space between them.
  2. Enter any decimal values in a consistent format and leave out units or extra symbols.
  3. The tool works out the mean and measures how far each value sits from it.
  4. Those deviations are squared and summed, then divided by one less than the count to give the sample variance.
  5. Review the variance together with both standard deviations and the other summary figures.
StatisticValue
Count6
Mean18
Median15.5
Modenone
Minimum4
Maximum42
Range38
Variance (sample)182
Std deviation (sample)13.4907
Std deviation (population)12.3153

Decimal commas cause a frequent slip. Because commas also split entries, a figure typed with a comma as its decimal mark may be read as two separate entries, which changes the count and shifts every figure that depends on it. Separating entries with spaces only avoids that clash. Stray letters, empty entries and percent signs should be removed before the calculation runs.

Frequently Asked Questions

What is the difference between variance and standard deviation?
Standard deviation is the square root of variance. Variance is expressed in squared units, while standard deviation uses the same unit as the data. That makes standard deviation easier to interpret directly.
Why are sample and population variance different?
Population variance divides the sum of squared deviations by the count, and sample variance divides by one less than the count. The smaller divisor makes the sample figure slightly larger. Use the sample version when your data is a subset of a bigger group.
Can variance be negative?
No. Squared deviations are always zero or positive, so their sum cannot drop below zero. If every value in the set is identical, the variance is exactly zero.
What does a high variance tell you?
High variance means the values are spread far from the mean. In the example data, 42 lies well away from the mean of 18 and pushes the variance up. Judge the size of the result against the unit and context of your data.
How do I enter numbers in a variance calculator?
Put entries on one line with a comma or a space between them. Leave out letters and unit symbols so only digits are read. Mixing percentages with plain figures skews the output, so convert everything to one unit first.