Measures of the Spread of Data

Learning Outcomes

  • Recognize, describe, and calculate the measures of the spread of data: variance, standard deviation, and range.


An important characteristic of any set of data is the variation in the data. In some data sets, the data values are concentrated closely near the mean; in other data sets, the data values are more widely spread out from the mean. The most common measure of variation, or spread, is the standard deviation. The standard deviation is a number that measures how far data values are from their mean.

The standard deviation provides a numerical measure of the overall amount of variation in a data set, and can be used to determine whether a particular data value is close to or far from the mean.

The standard deviation provides a measure of the overall variation in a data set.

The standard deviation is always positive or zero. The standard deviation is small when the data are all concentrated close to the mean, exhibiting little variation or spread. The standard deviation is larger when the data values are more spread out from the mean, exhibiting more variation.

Suppose that we are studying the amount of time customers wait in line at the checkout at supermarket
AA
and supermarket
BB
. the average wait time at both supermarkets is five minutes. At supermarket
AA
, the standard deviation for the wait time is two minutes; at supermarket
BB
the standard deviation for the wait time is four minutes.

Because supermarket
BB
has a higher standard deviation, we know that there is more variation in the wait times at supermarket
BB
. Overall, wait times at supermarket
BB
are more spread out from the average; wait times at supermarket
AA
are more concentrated near the average.

The standard deviation can be used to determine whether a data value is close to or far from the mean.

Suppose that Rosa and Binh both shop at supermarket
AA
. Rosa waits at the checkout counter for seven minutes and Binh waits for one minute. At supermarket
AA
, the mean waiting time is five minutes and the standard deviation is two minutes. The standard deviation can be used to determine whether a data value is close to or far from the mean.

Rosa waits for seven minutes:

  • Seven is two minutes longer than the average of five; two minutes is equal to one standard deviation.
  • Rosa's wait time of seven minutes is two minutes longer than the average of five minutes.
  • Rosa's wait time of seven minutes is one standard deviation above the average of five minutes.


Binh waits for one minute.

  • One is four minutes less than the average of five; four minutes is equal to two standard deviations.
  • Binh's wait time of one minute is four minutes less than the average of five minutes.
  • Binh's wait time of one minute is two standard deviations below the average of five minutes.


A data value that is two standard deviations from the average is just on the borderline for what many statisticians would consider to be far from the average. Considering data to be far from the mean if it is more than two standard deviations away is more of an approximate "rule of thumb" than a rigid rule. In general, the shape of the distribution of the data affects how much of the data is further away than two standard deviations. (You will learn more about this in later chapters.)

The number line may help you understand standard deviation. If we were to put five and seven on a number line, seven is to the right of five. We say, then, that seven is

one standard deviation to the right of five because
5+(1)(2)=75 + (1)(2) = 7
.

If one were also part of the data set, then one is two standard deviations to the left of five because
5+(2)(2)=15 + (–2)(2) = 1
.

This shows a number line in intervals of 1 from 0 to 7.
  • In general, a value = mean + (#ofSTDEV)(standard deviation)
  • where #ofSTDEVs = the number of standard deviations
  • #ofSTDEV does not need to be an integer
  • One is two standard deviations less than the mean of five because:
    1=5+(2)(2)1 = 5 + (–2)(2)
    .


The equation value = mean + (#ofSTDEVs)(standard deviation) can be expressed for a sample and for a population.

  • Sample:
    x=x+\displaystyle{x}=\overline{{x}}+
    (# of STDEV)
    (s){({s})}
  • Population:
    x=μ+\displaystyle{x}=\mu+
    (# of STDEV)
    (σ){(\sigma)}


The lower case letter
ss
represents the sample standard deviation and the Greek letter
σσ
(sigma, lower case) represents the population standard deviation.

The symbol
x\displaystyle\overline{{x}}
is the sample mean and the Greek symbol
μμ
is the population mean.

Calculating the Standard Deviation

If
xx
is a number, then the difference "
xx
– mean" is called its deviation. In a data set, there are as many deviations as there are items in the data set. The deviations are used to calculate the standard deviation. If the numbers belong to a population, in symbols a deviation is
xμx – μ
. For sample data, in symbols a deviation is
xx\displaystyle{x}-\overline{{x}}
.

The procedure to calculate the standard deviation depends on whether the numbers are the entire population or are data from a sample. The calculations are similar, but not identical. Therefore the symbol used to represent the standard deviation depends on whether it is calculated from a population or a sample. The lower case letter
ss
represents the sample standard deviation and the Greek letter
σσ
(sigma, lower case) represents the population standard deviation. If the sample has the same characteristics as the population, then
ss
should be a good estimate of
σσ
.

To calculate the standard deviation, we need to calculate the variance first. The

variance is the average of the squares of the deviations (the
xx
x\displaystyle\overline{{x}}
values for a sample, or the
xμx – μ
values for a population). The symbol
σ2σ^2
represents the population variance; the population standard deviation
σσ
is the square root of the population variance. The symbol
s2s^2
represents the sample variance; the sample standard deviation
ss
is the square root of the sample variance. You can think of the standard deviation as a special average of the deviations.

If the numbers come from a census of the entire population and not a sample, when we calculate the average of the squared deviations to find the variance, we divide by
NN
, the number of items in the population. If the data are from a sample rather than a population, when we calculate the average of the squared deviations, we divide by
n1n – 1
, one less than the number of items in the sample.

In the following video an example of calculating the variance and standard deviation of a set of data is presented.



Formulas for the Sample Standard Deviation

s=(xx)2n1ors=f(xx)2n1\displaystyle{s}=\sqrt{{\frac{{\sum{({x}-\overline{{x}})}^{{2}}}}{{{n}-{1}}}}}{\quad\text{or}\quad}{s}=\sqrt{{\frac{{\sum{f{{({x}-\overline{{x}})}}}^{{2}}}}{{{n}-{1}}}}}


For the sample standard deviation, the denominator is

n1n – 1
, that is the sample size MINUS
11
.

Formulas for the Population Standard Deviation

σ=(xμ)2Norσ=f(xμ)2N\displaystyle\sigma=\sqrt{{\frac{{\sum{({x}-\mu)}^{{2}}}}{{{N}}}}}{\quad\text{or}\quad}\sigma=\sqrt{{\frac{{\sum{f{{({x}-\mu)}}}^{{2}}}}{{{N}}}}}


For the population standard deviation, the denominator is
NN
, the number of items in the population.

In these formulas,
ff
represents the frequency with which a value appears. For example, if a value appears once,
ff
is one. If a value appears three times in the data set or population,
ff
is three.

Sampling Variability of a Statistic

How much the statistic varies from one sample to another is known as the sampling variability of a statistic. You typically measure the sampling variability of a statistic by its standard error. The standard error of the mean is an example of a standard error. It is a special standard deviation and is known as the standard deviation of the sampling distribution of the mean. You will cover the standard error of the mean when you learn about The Central Limit Theorem (not now). The notation for the standard error of the mean is
σn\displaystyle\frac{{\sigma}}{{\sqrt{n}}}
where
σσ
is the standard deviation of the population and
nn
is the size of the sample.

Note

In practice, use a calculator or computer software to calculate the standard deviation. If you are using a TI-83, 83+, 84+ calculator, you need to select the appropriate standard deviation
σxσ_x
or
sxs_x
from the summary statistics.
We will concentrate on using and interpreting the information that the standard deviation gives us. However you should study the following step-by-step example to help you understand how the standard deviation measures variation from the mean. (The calculator instructions appear at the end of this example.)

Example

In a fifth grade class, the teacher was interested in the average age and the sample standard deviation of the ages of her students. The following data are the ages for a sample of
n=20n = 20
fifth grade students. The ages are rounded to the nearest half year:

9;9.5;9.5;10;10;10;10;10.5;10.5;10.5;10.5;11;11;11;11;11;11;11.5;11.5;11.5;\displaystyle {9; 9.5; 9.5; 10; 10; 10; 10; 10.5; 10.5; 10.5; 10.5; 11; 11; 11; 11; 11; 11; 11.5; 11.5; 11.5;}


Solution:

x=9+9.5(2)+10(4)+10.5(4)+11(6)+11.5(3)20=10.525\displaystyle\overline{x} = {9+9.5(2)+10(4)+10.5(4)+11(6)+11.5(3)20}={10.525}


The average age is
10.5310.53
years, rounded to two places.

The variance may be calculated by using a table. Then the standard deviation is calculated by taking the square root of the variance. We will explain the parts of the table after calculating
ss
.

Data Freq. Deviations
Deviations2Deviations^2
(Freq.)(
Deviations2Deviations^2
)
xx
ff
(
xx
x\displaystyle\overline{x}
)
(
xx
x\displaystyle\overline{x}
)2
(
ff
)(
xx
x\displaystyle\overline{x}
)2
99
11
910.525=1.5259 – 10.525 = –1.525
(1.525)2=2.325625(–1.525)^2 = 2.325625
1×2.325625=2.3256251 × 2.325625 = 2.325625
9.59.5
22
9.510.525=1.0259.5 – 10.525 = –1.025
(1.025)2=1.050625(–1.025)^2 = 1.050625
2×1.050625=2.1012502 × 1.050625 = 2.101250
1010
44
1010.525=0.52510 – 10.525 = –0.525
(0.525)2=0.275625(–0.525)^2 = 0.275625
4×0.275625=1.10254 × 0.275625 = 1.1025
10.510.5
44
10.510.525=0.02510.5 – 10.525 = –0.025
(0.025)2=0.000625(–0.025)^2 = 0.000625
4×0.000625=0.00254 × 0.000625 = 0.0025
1111
66
1110.525=0.47511 – 10.525 = 0.475
(0.475)2=0.225625(0.475)^2 = 0.225625
6×0.225625=1.353756 × 0.225625 = 1.35375
11.511.5
33
11.510.525=0.97511.5 – 10.525 = 0.975
(0.975)2=0.950625(0.975)^2 = 0.950625
3×0.950625=2.8518753 × 0.950625 = 2.851875
The total is
9.73759.7375
The sample variance,
s2\displaystyle{s}^{2}
, is equal to the sum of the last column
(9.7375)(9.7375)
divided by the total number of data values minus one
(201)(20 – 1)
:

s2=9.7375201=0.5125s^2 =\frac{9.7375}{20-1} =0.5125


The sample standard deviation
ss
is equal to the square root of the sample variance:
s=0.5125=0.715891s = \sqrt{0.5125} = 0.715891
which is rounded to two decimal places,
ss
= 0.72.

Typically, you do the calculation for the standard deviation on your calculator or computer. The intermediate results are not rounded. This is done for accuracy.

  • For the following problems, recall that value = mean + (#ofSTDEVs)(standard deviation). Verify the mean and standard deviation or a calculator or computer.
  • For a sample:
    xx
    =
    x\displaystyle\overline{x}
     + (#ofSTDEVs)(
    ss
    )
  • For a population:
    xx
    =
    μμ
    + (#ofSTDEVs)(
    σσ
    )
  • For this example, use
    xx
    =
    x\displaystyle\overline{x}
     + (#ofSTDEVs)(
    ss
    ) because the data is from a sample


  1. Verify the mean and standard deviation on your calculator or computer.
  2. Find the value that is one standard deviation above the mean. Find (
    x\displaystyle\overline{x}
    +
    1s1s
    ).
  3. Find the value that is two standard deviations below the mean. Find (
    x\displaystyle\overline{x}
     –
    2s2s
    ).
  4. Find the values that are
    1.51.5
    standard deviations from (below and above) the mean.






Try It

On a baseball team, the ages of each of the players are as follows:

21;21;22;23;24;24;25;25;28;29;29;31;32;33;33;34;35;36;36;36;36;38;38;38;40\displaystyle {21; 21; 22; 23; 24; 24; 25; 25; 28; 29; 29; 31; 32; 33; 33; 34; 35; 36; 36; 36; 36; 38; 38; 38; 40}


Use your calculator or computer to find the mean and standard deviation. Then find the value that is two standard deviations above the mean.





Explanation of the standard deviation calculation shown in the table

The deviations show how spread out the data are about the mean. The data value
11.511.5
is farther from the mean than is the data value
1111
which is indicated by the deviations
0.970.97
and
0.470.47
. A positive deviation occurs when the data value is greater than the mean, whereas a negative deviation occurs when the data value is less than the mean. The deviation is
1.525–1.525
for the data value nine. If you add the deviations, the sum is always zero. (For Example 1, there are
n=20n = 20
deviations.) So you cannot simply add the deviations to get the spread of the data. By squaring the deviations, you make them positive numbers, and the sum will also be positive. The variance, then, is the average squared deviation.

The variance is a squared measure and does not have the same units as the data. Taking the square root solves the problem. The standard deviation measures the spread in the same units as the data.

Notice that instead of dividing by
n=20n= 20
, the calculation divided by
n1=201=19n – 1 = 20 – 1 = 19
because the data is a sample. For the sample variance, we divide by the sample size minus one (
n1n – 1
). Why not divide by
nn
? The answer has to do with the population variance. The sample variance is an estimate of the population variance. Based on the theoretical mathematics that lies behind these calculations, dividing by (
n1n – 1
) gives a better estimate of the population variance.

Note

Your concentration should be on what the standard deviation tells us about the data. The standard deviation is a number which measures how far the data are spread from the mean. Let a calculator or computer do the arithmetic.

The standard deviation,
ss
or
σσ
, is either zero or larger than zero. When the standard deviation is zero, there is no spread; that is, the all the data values are equal to each other. The standard deviation is small when the data are all concentrated close to the mean, and is larger when the data values show more variation from the mean. When the standard deviation is a lot larger than zero, the data values are very spread out about the mean; outliers can make
ss
or
σσ
very large.

The standard deviation, when first presented, can seem unclear. By graphing your data, you can get a better "feel" for the deviations and the standard deviation. You will find that in symmetrical distributions, the standard deviation can be very helpful but in skewed distributions, the standard deviation may not be much help. The reason is that the two sides of a skewed distribution have different spreads. In a skewed distribution, it is better to look at the first quartile, the median, the third quartile, the smallest value, and the largest value. Because numbers can be confusing, always graph your data. Display your data in a histogram or a box plot.

Example

Use the following data (first exam scores) from Susan Dean's spring pre-calculus class:

33;42;49;49;53;55;55;61;63;67;68;68;69;69;72;73;74;78;80;83;88;88;88;90;92;94;94;94;94;96;100\displaystyle {33; 42; 49; 49; 53; 55; 55; 61; 63; 67; 68; 68; 69; 69; 72; 73; 74; 78; 80; 83; 88; 88; 88; 90; 92; 94; 94; 94; 94; 96; 100}


  1. Create a chart containing the data, frequencies, relative frequencies, and cumulative relative frequencies to three decimal places.
  2. Calculate the following to one decimal place using a TI-83+ or TI-84 calculator:

    1. The sample mean
    2. The sample standard deviation
    3. The median
    4. The first quartile
    5. The third quartile
    6. IQRIQR


  3. Construct a box plot and a histogram on the same set of axes. Make comments about the box plot, the histogram, and the chart.






The long left whisker in the box plot is reflected in the left side of the histogram. The spread of the exam scores in the lower
5050
% is greater (
7333=4073 – 33 = 40
) than the spread in the upper
5050
% (
10073=27100 – 73 = 27
). The histogram, box plot, and chart all reflect this. There are a substantial number of A and B grades (
8080
s,
9090
s, and
100100
). The histogram clearly shows this. The box plot shows us that the middle
5050
% of the exam scores (
IQRIQR
=
2929
) are Ds, Cs, and Bs. The box plot also shows us that the lower
2525
% of the exam scores are Ds and Fs.

Try It

The following data show the different types of pet food stores in the area carry.

6;6;6;6;7;7;7;7;7;8;9;9;9;9;10;10;10;10;10;11;11;11;11;12;12;12;12;12;12;\displaystyle {6; 6; 6; 6; 7; 7; 7; 7; 7; 8; 9; 9; 9; 9; 10; 10; 10; 10; 10; 11; 11; 11; 11; 12; 12; 12; 12; 12; 12;}


Calculate the sample mean and the sample standard deviation to one decimal place using a TI-83+ or TI-84 calculator.





Standard Deviation of Grouped Frequency Tables

Recall that for grouped data we do not know individual data values, so we cannot describe the typical value of the data with precision. In other words, we cannot find the exact mean, median, or mode. We can, however, determine the best estimate of the measures of center by finding the mean of the grouped data with the formula:

Mean of Frequency Table =
(fm)(f)\displaystyle\frac{{\sum(fm)}}{{\sum(f)}}


where
ff
= interval frequencies and
mm
= interval midpoints.

Just as we could not find the exact mean, neither can we find the exact standard deviation. Remember that standard deviation describes numerically the expected deviation a data value has from the mean. In simple English, the standard deviation allows us to compare how "unusual" individual data is compared to the mean.

Example

Find the standard deviation for the data in the table below.

Class Frequency,
ff
Midpoint,
mm
m2m^2
x2\displaystyle\overline{x}^2
fm2fm^2
Standard Deviation
020–2
11
11
11
7.587.58
11
3.53.5
353–5
66
44
1616
7.587.58
9696
3.53.5
686–8
1010
77
4949
7.587.58
490490
3.53.5
9119–11
77
1010
100100
7.587.58
700700
3.53.5
121412–14
00
1313
169169
7.587.58
00
3.53.5
151715–17
22
1616
256256
7.587.58
512512
3.53.5
For this data set, we have the mean,
x\displaystyle\overline{x}
  =
7.587.58
and the standard deviation,
sx=3.5\displaystyle{s}_{x} = 3.5
. This means that a randomly selected data value would be expected to be
3.53.5
units from the mean. If we look at the first class, we see that the class midpoint is equal to one. This is almost two full standard deviations from the mean since
7.583.53.5=0.587.58 – 3.5 – 3.5 = 0.58
. While the formula for calculating the standard deviation is not complicated,
sx=f(mx)2n1\displaystyle{s}_{x}=\sqrt{{\frac{{f{(m-\overline{x})}^{2}}}{{n-1}}}}
where
sx=\displaystyle{s}_{x} =
sample standard deviation,
x\displaystyle\overline{x}
  = sample mean, the calculations are tedious. It is usually best to use technology when performing the calculations.

Try It

Find the standard deviation for the data from the previous example

Class Frequency,
ff
020–2
11
353–5
66
686–8
1010
9119–11
77
121412–14
00
151715–17
22
First, press the STAT key and select 1:Edit

Screen Shot 2015-06-07 at 6.08.28 PM Input the midpoint values into L1 and the frequencies into L2

Screen Shot 2015-06-07 at 6.09.59 PM Select STAT, CALC, and 1: 1-Var Stats

Screen Shot 2015-06-07 at 6.10.46 PM Select 2nd then 1 then , 2nd then 2Enter

Screen Shot 2015-06-07 at 6.11.19 PM You will see displayed both a population standard deviation, σ_x, and the sample standard deviation,
sxs_x
.

Comparing Values from Different Data Sets

The standard deviation is useful when comparing data values that come from different data sets. If the data sets have different means and standard deviations, then comparing the data values directly can be misleading.

  • For each data value, calculate how many standard deviations away from its mean the value is.
  • Use the formula: value = mean + (#ofSTDEVs)(standard deviation); solve for #ofSTDEVs.
  • #ofSTDEVs =
    valuemeanstandarddeviation\frac{value - mean}{standard deviation}
  • Compare the results of this calculation.


#ofSTDEVs is often called a "
zz
-score"; we can use the symbol
zz
. In symbols, the formulas become:

Sample
x=x+zsx=\overline{x}+zs
z=xxsz = \frac{x - \overline{x}}{s}
Population
x=μ+zσx = μ + zσ
z=xμσz = \frac{x - μ}{σ}

Example

Two students, John and Ali, from different high schools, wanted to find out who had the highest GPA when compared to his school. Which student had the highest GPA when compared to his school?

Student GPA School Mean GPA School Standard Deviation
John
2.852.85
3.03.0
0.70.7
Ali
7777
8080
1010




Try It

Two swimmers, Angie and Beth, from different teams, wanted to find out who had the fastest time for the 50 meter freestyle when compared to her team. Which swimmer had the fastest time when compared to her team?

Swimmer Time (seconds) Team Mean Time Team Standard Deviation
Angie
26.226.2
27.227.2
0.80.8
Beth
27.327.3
30.130.1
1.41.4




The following lists give a few facts that provide a little more insight into what the standard deviation tells us about the distribution of the data.

For ANY data set, no matter what the distribution of the data is:

  • At least
    7575
    % of the data is within two standard deviations of the mean.
  • At least
    8989
    % of the data is within three standard deviations of the mean.
  • At least
    9595
    % of the data is within
    4.54.5
    standard deviations of the mean.
  • This is known as Chebyshev's Rule.


For data having a distribution that is BELL-SHAPED and SYMMETRIC:

  • Approximately
    6868
    % of the data is within one standard deviation of the mean.
  • Approximately
    9595
    % of the data is within two standard deviations of the mean.
  • More than
    9999
    % of the data is within three standard deviations of the mean.
  • This is known as the Empirical Rule.
  • It is important to note that this rule only applies when the shape of the distribution of the data is bell-shaped and symmetric. We will learn more about this when studying the "Normal" or "Gaussian" probability distribution in later chapters.


Concept Review

The standard deviation can help you calculate the spread of data. There are different equations to use if are calculating the standard deviation of a sample or of a population.

  • The Standard Deviation allows us to compare individual data or classes to the data set mean numerically.
  • sx=f(mx)2n1\displaystyle{s}_{x}=\sqrt{{\frac{{f{(m-\overline{x})}^{2}}}{{n-1}}}}
     is the formula for calculating the standard deviation of a sample.
  • To calculate the standard deviation of a population, we would use the population mean, μ, and the formula
    σ=f(xμ)2N\displaystyle{\sigma}=\sqrt{{\frac{{f{(x-\mu)}^{2}}}{{N}}}}


Formula Review

sx=fm2nx2\displaystyle{s}_{x}=\sqrt{{\frac{{\sum{fm}^{2}}}{{n}} - {x}^{2}}}


where
sx\displaystyle{s}_{x}
= sample standard deviation,  
x\displaystyle\overline{x}
 = sample mean

References

Data from Microsoft Bookshelf.

King, Bill."Graphically Speaking." Institutional Research, Lake Tahoe Community College. Available online at http://www.ltcc.edu/web/about/institutional-research (accessed April 3, 2013).

Licenses and Attributions

More Study Resources for You

Show More