You learned this in the 10th grade KVbster,
The variance (σ2), is defined as the sum of the squared distances of each term in the distribution from the mean (μ), divided by the number of terms in the distribution (N). You take the sum of the squares of the terms in the distribution, and divide by the number of terms in the distribution (N).