This is “Measures of Variability”, section 2.3 from the book Beginning Statistics (v. 1.0). For details on it (including licensing), click here.

For more information on the source of this book, or why it is available for free, please see the project's home page. You can browse or download additional books there.

Has this book helped you? Consider passing it on:
Creative Commons supports free culture from music to education. Their licenses helped make this book available to you.
DonorsChoose.org helps people like you help teachers fund their classroom projects, from art supplies to books to calculators.

2.3 Measures of Variability

Learning Objectives

  1. To learn the concept of the variability of a data set.
  2. To learn how to compute three measures of the variability of a data set: the range, the variance, and the standard deviation.

Look at the two data sets in Table 2.1 "Two Data Sets" and the graphical representation of each, called a dot plot, in Figure 2.10 "Dot Plots of Data Sets".

Table 2.1 Two Data Sets

Data Set I: 40 38 42 40 39 39 43 40 39 40
Data Set II: 46 37 40 33 42 36 40 47 34 45

Figure 2.10 Dot Plots of Data Sets

The two sets of ten measurements each center at the same value: they both have mean, median, and mode 40. Nevertheless a glance at the figure shows that they are markedly different. In Data Set I the measurements vary only slightly from the center, while for Data Set II the measurements vary greatly. Just as we have attached numbers to a data set to locate its center, we now wish to associate to each data set numbers that measure quantitatively how the data either scatter away from the center or cluster close to it. These new quantities are called measures of variability, and we will discuss three of them.

The Range

The first measure of variability that we discuss is the simplest.

Definition

The rangeThe variability of a data set as measured by the number R=xmaxxmin. of a data set is the number R defined by the formula

R=xmaxxmin

where xmax is the largest measurement in the data set and xmin is the smallest.

Example 10

Find the range of each data set in Table 2.1 "Two Data Sets".

Solution:

For Data Set I the maximum is 43 and the minimum is 38, so the range is R=4338=5.

For Data Set II the maximum is 47 and the minimum is 33, so the range is R=4733=14.

The range is a measure of variability because it indicates the size of the interval over which the data points are distributed. A smaller range indicates less variability (less dispersion) among the data, whereas a larger range indicates the opposite.

The Variance and the Standard Deviation

The other two measures of variability that we will consider are more elaborate and also depend on whether the data set is just a sample drawn from a much larger population or is the whole population itself (that is, a census).

Definition

The sample variance of a set of n sample data is the number s2 defined by the formula

s2=Σ(xx-)2n1

which by algebra is equivalent to the formula

s2=Σx21n(Σx)2n1

The sample standard deviationThe variability of sample data as measured by the number Σ(xx-)2n1. of a set of n sample data is the square root of the sample variance, hence is the number s given by the formulas

s=Σ(xx-)2n1=Σx21n(Σx)2n1

Although the first formula in each case looks less complicated than the second, the latter is easier to use in hand computations, and is called a shortcut formula.

Example 11

Find the sample variance and the sample standard deviation of Data Set II in Table 2.1 "Two Data Sets".

Solution:

To use the defining formula (the first formula) in the definition we first compute for each observation x its deviation xx- from the sample mean. Since the mean of the data is x-=40, we obtain the ten numbers displayed in the second line of the supplied table.

x46374033423640473445xx-6307240765

Then

Σ(xx-)2=62+(3)2+02+(7)2+22+(4)2+02+72+(6)2+52=224

so

s2=Σ(xx-)2n1=2249=24.8-

and

s=24.8-4.99

The student is encouraged to compute the ten deviations for Data Set I and verify that their squares add up to 20, so that the sample variance and standard deviation of Data Set I are the much smaller numbers s2=209=2.2- and s=2091.49.

Example 12

Find the sample variance and the sample standard deviation of the ten GPAs in Note 2.12 "Example 3" in Section 2.2 "Measures of Central Location".

1.903.002.533.712.121.762.711.394.003.33

Solution:

Since

Σx=1.90+3.00+2.53+3.71+2.12+1.76+2.71+1.39+4.00+3.33=26.45

and

Σx2=1.902+3.002+2.532+3.712+2.122+1.762+2.712+1.392+4.002+3.332=76.7321

the shortcut formula gives

s2=Σx21n(Σx)2n1=76.7321(26.45)210101=6.771859=.752427-

and

s=.752427-.867

The sample variance has different units from the data. For example, if the units in the data set were inches, the new units would be inches squared, or square inches. It is thus primarily of theoretical importance and will not be considered further in this text, except in passing.

If the data set comprises the whole population, then the population standard deviation, denoted σ (the lower case Greek letter sigma), and its square, the population variance σ2, are defined as follows.

Definition

The population variance and population standard deviationThe variability of population data as measured by the number σ2=Σ(xμ)2N. of a set of N population data are the numbers σ2 and σ defined by the formulas

σ2=Σ(xμ)2Nandσ=Σ(xμ)2N

Note that the denominator in the fraction is the full number of observations, not that number reduced by one, as is the case with the sample standard deviation. Since most data sets are samples, we will always work with the sample standard deviation and variance.

Finally, in many real-life situations the most important statistical issues have to do with comparing the means and standard deviations of two data sets. Figure 2.11 "Difference between Two Data Sets" illustrates how a difference in one or both of the sample mean and the sample standard deviation are reflected in the appearance of the data set as shown by the curves derived from the relative frequency histograms built using the data.

Figure 2.11 Difference between Two Data Sets

Key Takeaway

The range, the standard deviation, and the variance each give a quantitative answer to the question “How variable are the data?”

Exercises

    Basic

  1. Find the range, the variance, and the standard deviation for the following sample.

    1234
  2. Find the range, the variance, and the standard deviation for the following sample.

    236031
  3. Find the range, the variance, and the standard deviation for the following sample.

    2127
  4. Find the range, the variance, and the standard deviation for the following sample.

    101411
  5. Find the range, the variance, and the standard deviation for the sample represented by the data frequency table.

    x127f121
  6. Find the range, the variance, and the standard deviation for the sample represented by the data frequency table.

    x1014f1131

    Applications

  1. Find the range, the variance, and the standard deviation for the sample of ten IQ scores randomly selected from a school for academically gifted students.

    132162133145148139147160150153
  2. Find the range, the variance and the standard deviation for the sample of ten IQ scores randomly selected from a school for academically gifted students.

    142152138145148139147155150153

    Additional Exercises

  1. Consider the data set represented by the table

    x26272829303132f341612621
    1. Use the frequency table to find that Σx=1256 and Σx2=35,926.
    2. Use the information in part (a) to compute the sample mean and the sample standard deviation.
  2. Find the sample standard deviation for the data

    x12345f384208985628 x678910f128231
  3. A random sample of 49 invoices for repairs at an automotive body shop is taken. The data are arrayed in the stem and leaf diagram shown. (Stems are thousands of dollars, leaves are hundreds, so that for example the largest observation is 3,800.)

    356830011242566778899200001224155566777889100134440568804

    For these data, Σx=101,100, Σx2=244,830,000.

    1. Compute the mean, median, and mode.
    2. Compute the range.
    3. Compute the sample standard deviation.
  4. What must be true of a data set if its standard deviation is 0?

  5. A data set consisting of 25 measurements has standard deviation 0. One of the measurements has value 17. What are the other 24 measurements?

  6. Create a sample data set of size n = 3 for which the range is 0 and the sample mean is 2.

  7. Create a sample data set of size n = 3 for which the sample variance is 0 and the sample mean is 1.

  8. The sample {1,0,1} has mean x-=0 and standard deviation s = 1. Create a sample data set of size n = 3 for which x-=0 and s is greater than 1.

  9. The sample {1,0,1} has mean x-=0 and standard deviation s = 1. Create a sample data set of size n = 3 for which x-=0 and the standard deviation s is less than 1.

  10. Begin with the following set of data, call it Data Set I.

    526143014325
    1. Compute the sample standard deviation of Data Set I.
    2. Form a new data set, Data Set II, by adding 3 to each number in Data Set I. Calculate the sample standard deviation of Data Set II.
    3. Form a new data set, Data Set III, by subtracting 6 from each number in Data Set I. Calculate the sample standard deviation of Data Set III.
    4. Comparing the answers to parts (a), (b), and (c), can you guess the pattern? State the general principle that you expect to be true.

    Large Data Set Exercises

  1. Large Data Set 1 lists the SAT scores and GPAs of 1,000 students.

    http://www.flatworldknowledge.com/sites/all/files/data1.xls

    1. Compute the range and sample standard deviation of the 1,000 SAT scores.
    2. Compute the range and sample standard deviation of the 1,000 GPAs.
  2. Large Data Set 1 lists the SAT scores of 1,000 students.

    http://www.flatworldknowledge.com/sites/all/files/data1.xls

    1. Regard the data as arising from a census of all students at a high school, in which the SAT score of every student was measured. Compute the population range and population standard deviation σ.
    2. Regard the first 25 observations as a random sample drawn from this population. Compute the sample range and sample standard deviation s and compare them to the population range and σ.
    3. Regard the next 25 observations as a random sample drawn from this population. Compute the sample range and sample standard deviation s and compare them to the population range and σ.
  3. Large Data Set 1 lists the GPAs of 1,000 students.

    http://www.flatworldknowledge.com/sites/all/files/data1.xls

    1. Regard the data as arising from a census of all freshman at a small college at the end of their first academic year of college study, in which the GPA of every such person was measured. Compute the population range and population standard deviation σ.
    2. Regard the first 25 observations as a random sample drawn from this population. Compute the sample range and sample standard deviation s and compare them to the population range and σ.
    3. Regard the next 25 observations as a random sample drawn from this population. Compute the sample range and sample standard deviation s and compare them to the population range and σ.
  4. Large Data Sets 7, 7A, and 7B list the survival times in days of 140 laboratory mice with thymic leukemia from onset to death.

    http://www.flatworldknowledge.com/sites/all/files/data7.xls

    http://www.flatworldknowledge.com/sites/all/files/data7A.xls

    http://www.flatworldknowledge.com/sites/all/files/data7B.xls

    1. Compute the range and sample standard deviation of survival time for all mice, without regard to gender.
    2. Compute the range and sample standard deviation of survival time for the 65 male mice (separately recorded in Large Data Set 7A).
    3. Compute the range and sample standard deviation of survival time for the 75 female mice (separately recorded in Large Data Set 7B). Do you see a difference in the results for male and female mice? Does it appear to be significant?

Answers

  1. R = 3, s2 = 1.7, s = 1.3.

  2. R = 6, s2=7.3-, s = 2.7.

  3. R = 6, s2 = 7.3, s = 2.7.

  1. R = 30, s2 = 103.2, s = 10.2.

  1. x-=28.55, s = 1.3.

    1. x-=2063, x~=2000, mode=2000.
    2. R = 3400.
    3. s = 869.
  2. All are 17.

  3. {1,1,1}

  4. One example is {.5,0,.5}.

    1. R = 1350 and s = 212.5455
    2. R = 4.00 and s = 0.7407
    1. R = 4.00 and σ = 0.740375
    2. R = 3.04 and s = 0.808045
    3. R = 2.49 and s = 0.657843