Variance is a statistical concept that is used to assess the spread of values in a set of data in relation to the dataβs mean. We utilize variance to determine whether a distribution is pinched or stretched.

The variance is a measure of variability. It is calculated by taking the average of squared deviations from the mean.

Variance tells you the degree of spread in your data set. The more spread the data, the larger the variance is in relation to the mean.

The variance determines the dispersion of data observations from the mean. The greater the variance, the greater the scatter from the mean. While a low variance number indicates that the data is less skewed from the mean.

**Contents**show

## What is a variance?

According to Wikipedia, a variance is the expectation of the squared deviation of a random variable for its population mean or sample. Variance is taken for two kinds of data, population data, and sample data.

If the variance is used in population data, then it is known as population variance. While if the variance is used for sample data, then it is known as sample variance. Variance can also be stated as the expected value of the squared differences of the number of observations and from the mean.

The main work of the variance is to measure the distance for each observation from the mean. The distance decides whether the number is closer to the mean or far. It is usually denoted by sigma square for the population variance written as Ο2. For sample variance, it is denoted by s2. We can also write variance such as var(x).

## Formulas of the variance

Overview- Formula
- Calculators
- Examples
- Videos

# Main results

Formula

= | sample variance | |

= | the value of the one observation | |

= | the mean value of all observations | |

= | the number of observations |

From the web for a population, the variance is calculated as **ΟΒ² = ( Ξ£ (x-ΞΌ)Β² ) / N**. Another equivalent formula is ΟΒ² = ( (Ξ£ xΒ²) / N ) β ΞΌΒ². If we need to calculate variance by hand, this alternate formula is easier to work with.

## How to Calculate Variance

By using formulas, we can easily find the variance for the population data or sample data.

- Find the mean of the data set. Add all data values and divide by the sample size
*n*.π₯β―β―β―=βππ=1π₯ππxΒ―=βi=1nxin - Find the squared difference from the mean for each data value. Subtract the mean from each data value and square the result.(π₯πβπ₯β―β―β―)2(xiβxΒ―)^2
- Find the sum of all the squared differences. The sum of squares is all the squared differences added together.ππ=βππ=1(π₯πβπ₯β―β―β―)2S S=βi=1n(xiβxΒ―)^2
- Calculate the variance. Variance is the sum of squares divided by the number of data points.The formula for variance for a population is:Variance = π2=Ξ£(π₯πβπ)2/π Ο2=Ξ£(xiβΞΌ)^2/n The formula for variance for a sample set of data is:Variance = π 2=Ξ£(π₯πβπ₯β―β―β―)^2/πβ1