I do not understand how to figure this out:

Calculate variance:

isnt it the sum of the X's squared divided by n or the sample?

I think, but how about this:

calculate range:
-1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0 is it:

1, 0, 1, 0, 1, 0 , 1, 0, 1, 0, 1, 0:

but how do you do the rest if this is right?

I think I confused myself. I do not want to calculate range but variance. In order to get the variance what do I do?

First calculate the mean

Then for each data value, take the difference between that data value and the mean and square it.

Add up all those squared differences and divide by the number of data values

e.g. for 1,2,3,4 the mean is (1+2+3+4)/4 = 2.5
variance = ( (1-2.5)^2 + (2-2.5)^2 + (3-2.5)^2 + (4-2.5)^2 )/4 = 1.25

To calculate the variance, there are a few steps you need to follow:

1. Find the mean of the data set: Add up all the numbers in the data set and divide the sum by the total number of values. Let's call this value "x̄".

2. Find the difference between each data point and the mean: Subtract the mean (x̄) from each data point and write down the differences. Let's call these differences "d".

3. Square each difference: Take each difference (d) and square it (d^2). Write down the squared differences.

4. Calculate the sum of squared differences: Add up all the squared differences from step 3.

5. Divide the sum of squared differences by the total number of values (n): Take the sum of squared differences from step 4 and divide it by the total number of values in the data set.

The formula for variance is as follows:

Variance = Σ(d^2) / n

Where:
Σ represents the sum of all the squared differences (step 4),
d represents the difference between each data point and the mean (step 2), and
n represents the total number of values in the data set.

By following these steps and using the formula, you can calculate the variance of a given data set.