Denote the number of elements in the set by "n" and the value of each individual element by "x_i," where i takes values between "1" and "n."
Calculate the sum of all elements in the sample and denote it as "Sum," as in the following formula:
Sum = x_1 + x_2 + ... + x_n
Calculate the mean of the sample and denote it as "Mean," as in the following formula:
Mean = Sum / n
Calculate the variance of the sample and denote it as "Variance," as in the following formula:
Variance = ((x_1 - Mean)^2 + (x_2 - Mean)^2 + ... (x_n - Mean)^2)/n