Calculate the variance of a dataset for either a sample or a population. Variance measures how far each number in the set is from the mean and thus from every other number in the set.