Question: how to calculate the variance of the sample data?
Answer: Find the mean of the data set. Add all data values and divide by the sample size n. Find the squared difference from the mean for each data value. Subtract the mean from each data value and square the result. Find the sum of all the squared differences. ...  Calculate the variance.