What is the variance for the following data, 2 4 5 7 ? Please show working.[steps].

1 Answer
Apr 3, 2018

#color(red)(sigma^2=3.25)#

Explanation:

To find the variance, we first need to calculate the mean.

To calculate the mean, simply add all the data points, then divide by the number of data points.

The formula for the mean #mu# is

#mu=(sum_(k=1)^nx_k)/n=(x_1+x_2+x_3+cdots+x_n)/n#

Where #x_k# is the #k#th data point, and #n# is the number of data points.

For our data set, we have:

#n=4#

#{x_1,x_2,x_3,x_4}={2, 4, 5, 7}#

So the mean is

#mu=(2+4+5+7)/4=18/4=9/2=4.5#

Now to calculate the variance, we find out how far away each data point is from the mean, then square each of those values, add them up, and divide by the number of data points.

The variance is given the symbol #sigma^2#

The formula for the variance is:

#sigma^2=(sum_(k=1)^n(x_k-mu)^2)/n=((x_1-mu)^2+(x_2-mu)^2+...+(x_n-mu)^2)/n#

So for our data:

#sigma^2=((2-4.5)^2+(4-4.5)^2+(5-4.5)^2+(7-4.5)^2)/4#

#sigma^2=((-2.5)^2+(-0.5)^2+(0.5)^2+(2.5)^2)/4#

#sigma^2=(6.25+0.25+0.25+6.25)/4=13/4=color(red)3.25#