Variance Calculator

Compute the sample or population variance of a data set.

Separate values with commas or spaces.
Variance —
Standard deviation —
Median —
Sum of squared deviations —
Minimum —
Maximum —
Range —
Count —

Results update as you type.

Shin wannan Kalkulator ya ba ka amsa madaidaiciya?

Game da wannan Kalkulator

Variance is the average of the squared deviations from the mean and is the square of the standard deviation. This calculator gives the sample variance (sum of squared deviations divided by n − 1) or the population variance (divided by n), along with the standard deviation, mean, range and sum of squared deviations. Variance is expressed in squared units, which is why the standard deviation — its square root — is usually easier to interpret.

To find it, take the mean, subtract it from every value, square each of those deviations, add them together and divide by n − 1 for a sample or by n for a whole population. Squaring is what makes variance always non-negative and gives extra weight to values that lie far from the mean.

Worked example: for 12, 15, 17, 20, 22, 25 the mean is 18.5. The squared deviations sum to about 118.5, so the sample variance is 118.5 ÷ 5 = 23.7 and the population variance is 118.5 ÷ 6 = 19.75. Variance is the workhorse behind ANOVA, portfolio risk, quality control and many other techniques; the deviation table below lists each value’s distance from the mean and its square.

Tambayoyi da ake yi da yawa

Ta yaya bambanci yake danganta da daidaitacce?

The standard deviation is the square root of the variance. Variance is in squared units (for example, squared dollars), while the standard deviation is back in the original units, so the two always describe the same spread.

Yaushe zan yi amfani da n a kan n − 1?

Divide by n − 1 when your data is a sample used to estimate a larger population; divide by n when your data represents the whole population you care about.

Me yasa ake amfani da bambanci a cikin rundunonin kwance?

Because each deviation is squared before averaging, the result carries the square of the original unit — squared dollars, squared centimetres and so on. That makes variance awkward to interpret directly, which is why its square root, the standard deviation, is reported alongside it.

Can variance be negative?

No. It is an average of squared numbers, so it is always zero or positive. A variance of exactly zero means every value in the set is identical.

What is the difference between variance and standard deviation?

They describe the same spread but on different scales: variance is the average squared deviation, and standard deviation is its square root, back in the original units. If the variance is 25, the standard deviation is 5.

Ta yaya ake amfani da bambanci a cikin nazarin gaskiya?

Yanayin ya dogara ne akan haɗari a cikin kuɗi, ƙarfin alamar a cikin injiniya da kuma F-taswirar a cikin ANOVA, inda ake kwatanta bambanci tsakanin ƙungiyoyi da bambanci a cikinsu don yanke shawara ko matsakaicin ƙungiya ya bambanta da gaskiya.

❤️ Love Calculator.Free? Share

𝕏  X Facebook Reddit
API — amfani da wannan calculator daga code

Ka kira wannan kwalban kamar wata maɓallin ƙarshe JSON mai kyauta - babu maɓalli da ake buƙata. Ka aika kimar fannin ƙasa kamar paramita na tambaya ko JSON. Anything you omit uses the same default this page is pre-filled with; an unknown parameter is a 400, never a silent zero. Read the full API docs →

Endpoint

GET https://calculator.free/api/v1/variance/

curl

curl "https://calculator.free/api/v1/variance/?numbers=12, 15, 17, 20, 22, 25&type=sample"

JavaScript fetch()

const r = await fetch(
  "https://calculator.free/api/v1/variance/?" + new URLSearchParams({
    "numbers": "12, 15, 17, 20, 22, 25",
    "type": "sample"
  }));
const data = await r.json();
console.log(data.results);

Results are estimates for general guidance only, not financial, medical or tax advice.