Skip to main content
Statistics LibreTexts

3.2: Measures of Spread

  • Page ID
    24029
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Variability is an important idea in statistics. If you were to measure the height of everyone in your classroom, every student gives you a different value. That means not every student has the same height. Thus, there is variability in people’s heights. If you were to take a sample of the income level of people in a town, every sample gives you different information. There is variability between samples too. Variability describes how the data are spread out. If the data are very close to each other, then there is low variability. If the data are very spread out, then there is high variability. How do you measure variability? It would be good to have a number that measures it. This section will describe some of the different measures of variability, also known as variation.

    Numerical statistics for variation can show how spread out data is. The variation of data is relative, and is usually used when comparing two sets of similar data. When we are making inferences about an average, we can make better estimates when there is less variation in the data. The four most common measures of the “spread” of data are called the range, variance, standard deviation, and coefficient of variation.

    A sample of house prices (in $1,000): 325, 375, 385, 395, 420, and 825, found the mean house price of $454,167. How much does this tell you about the price of all houses? Can you tell if most of the prices were close to the mean or were the prices really spread out? What is the highest price and the lowest price? All you know is that the center of the price is $454,167. What if you were approved for only $400,000 for a home loan, could you buy a home in this area? You need more information.

    3.2.1 Range

    The range of a set of data is the difference between the highest and the lowest data values (or maximum and minimum values). Note in statistics we only report a single number which represents the spread from the lowest to highest value.

    Range = Max – Min.

    Look at the following three sets of data. Find the mean, median and range of each of data set.

    1. 10, 20, 30, 40, 50

    2. 10, 29, 30, 31, 50

    3. 28, 29, 30, 31, 32

    Solution

    1. clipboard_e5a12b131d95d8e9d035309afb6f71f52.png mean = 30, median = 30, range = 50 – 10 = 40

    2. clipboard_e375224665f27057281b7ea7e97e92e84.pngmean = 30, median = 30, range = 50 – 10 = 40

    3. clipboard_e0ca6f397b9353184c0b0d93c796abeb4.pngmean = 30, median = 30, range = 32 – 28 = 4

    Based on the mean, median, and range, the first two distributions are the same, but you can see from the graphs that they are distributed differently. In part 1, the data are spread out equally. In part 2, the data has a clump in the middle and a single value at each end. The mean and median are the same for part 3, but the range is much smaller. All the data is clumped together in the middle.

    3.2.2 Variance & Standard Deviation

    The range does not really provide a very detailed picture of the variability. A better way to describe how the data is spread out is needed. Instead of looking at the distance as the highest value from the lowest, how about looking at the distance each value is from the mean? This spread is called the deviation.

    Suppose a vet wants to analyze the weights of cats. The weights (in pounds) of five cats are 6.8, 8.2, 7.5, 9.4, and 8.2. Compute the deviation for each of the data values. The deviation is how far each data point is from the mean. To be consistent always subtract the data point minus the mean.

    Solution

    Variable: X = weight of a cat. First, find the mean for the data set. The mean is \(\overline{ x }\) = \(\frac{\Sigma(x)}{\text { n }}\) = \(\frac{\text { (6.8+8.2+7.5+9.4+8.2) }}{\text { 5 }}\) = 8.02 pounds. Subtract the mean from each data point to get the deviations.

    clipboard_ead05d0a979ed8ae9fba01358b2a9457a.png

    Figure 3-11

    Now average the deviations. Add the deviations together.

    clipboard_e7d56bd1b15edf02a3a527e27a57e4e60.png

    Figure 3-12

    The average distance from the mean cannot be zero. The reason the deviations add to 0 is that there are some positive and negative values. The sum of the deviations from the mean will always be zero.

    To get rid of the negative signs square each deviation.

    clipboard_edf229023c19fe8b99981a4ebecab42e4.png

    Figure 3-13

    Then average the total of the squared deviations. The only thing is that in statistics there is a strange average here. Instead of dividing by the number of data values, you divide by the number of data values minus one. This n – 1 is called the degrees of freedom and will be discussed more later in the text. When we divide by the degrees of freedom, this gives an unbiased statistic. In this case, you would have the following:

    s2 = \(\frac{(x-\bar{x})^{2}}{n-1}\) = \(\frac{\text { 3.728 }}{\text { 5 − 1 }}\) = \(\frac{\text { 3.728 }}{\text { 4 }}\) = 0.932 pounds2

    Notice that this statistic is denoted as s2 . This statistic is called the sample variance and it is a measure of the average squared distance from the mean. If you now take the square root, you will get the average distance from the mean. The square root of the variance is called the sample standard deviation, and is denoted with the letter s.

    s= \(\sqrt{0.932}\) = 0.9654 pounds

    The standard deviation is the average (mean) distance from a data point to the mean. It can be thought of as how much a typical data point differs from the mean.

    The sample variance formula: s2 = \(\frac{∑(x-\bar{x})^{2}}{n-1}\).

    Where \(\overline{ x }\) is the sample mean, n is the sample size, and Σ means to find the sum.

    The sample standard deviation formula: s = \(\sqrt{s^{2}}=\sqrt{\frac{\sum(x-x)^{2}}{n-1}}\).

    The n – 1 in the denominator has to do with a concept called degrees of freedom (df). Dividing by the df makes the sample standard deviation a better approximation of the population standard deviation than dividing by n.

    We rarely will find a population variance or standard deviation, but you will need to know the symbols.

    The population variance formula: \(\sigma^{2}=\frac{\sum(x-\mu)^{2}}{N}\).

    The population standard deviation formula: \(\sigma=\sqrt{\frac{\sum(x-\mu)^{2}}{N}}\).

    The lower-case Greek letter σ pronounced “sigma” and σ2 represents the population variance, μ is the population mean, and N is the size of the population.

    Note: the sum of the deviations should always be zero. Try not to round too much in the calculations for standard deviation since each rounding causes a slight error.

    Suppose that a manager wants to test two new training programs. They randomly select 5 people for each training type and measures the time it takes to complete a task after the training. The times for both trainings are in table below. Which training method is more consistent?

    clipboard_e9d9151e18dc5d0fe38f65bc38b78c1fe.png

    Solution

    It is important that you define what each variable is since there are two of them.

    Variable 1: X1 = productivity from training 1

    Variable 2: X2 = productivity from training 2

    The units and scale are the same for both groups. To answer which training method better, first you need some descriptive statistics. Start with the mean for each sample.

    \(\overline{ x }\)1 = \(\frac{\text { 56 + 75 + 48 + 63 + 59 }}{\text { 5 }}\) = 60.2 minutes
    \(\overline{ x }\)2 = \(\frac{\text { 60 + 58 + 66 + 59 + 58 }}{\text { 5 }}\) = 60.2 minutes

    Since both means are the same values, you cannot answer the question about which is better.

    Now calculate the standard deviation for each sample.

    clipboard_e04c8c4cdf3d8e5ba517bb4ae2b040a33.png

    Figure 3-14

    clipboard_e0dc130d97c51121027966e2e5996bcad.png

    Figure 3-15

    The variance for each sample is: \begin{aligned}
    &s_{1}^{2}=\frac{394.8}{4}=98.7 \text { minutes }^{2} \\
    &s_{2}^{2}=\frac{44.8}{4}=11.2 \text { minutes }^{2}
    \end{aligned}

    The standard deviations are: s1 = \(\sqrt{ 98.7 }\) = 9.9348 minutes

    s2 = \(\sqrt{ 11.2 }\) = 3.3466 minutes.

    Comparing the standard deviations, the second training method seemed to be the better training since the data is less spread out. This means it is more consistent. It would be better for the managers in this case to have a training program that produces more consistent results so they know what to expect for the time it takes to complete the task.

    Descriptive statistics can be time-consuming to calculate by hand so use technology.

    One Variable Statistics on the TI Calculator

    The procedure for calculating the sample mean ( \(\overline{ x }\) ) and the sample standard deviation (sx) for the TI calculator are shown below. Note, the TI calculator also gives you the population standard deviation (σx) because it does not know whether the data you input is a population or a sample. You need to decide which value you need to use, based on whether you have a population or sample. In almost all cases you have a sample and will be using sx. In addition, the calculator uses the notation of sx instead of just s. It is just a way for it to denote the information.

    TI-84: Enter the data in a list and then press [STAT]. Use cursor keys to highlight CALC. Press 1 or [ENTER] to select 1:1-Var Stats. Press [2nd], then press the number key corresponding to your data list. Press [Enter] to calculate the statistics. Note: the calculator always defaults to L1 if you do not specify a data list.

    clipboard_ed9015bbc863e65c98f0269b00530fc34.png

    sx is the sample standard deviation. You can arrow down and find more statistics. Use the min and max to calculate the range by hand. To find the variance simply square the standard deviation.

    TI-89: Press [APPS], select FlashApps then press [ENTER]. Highlight Stats/List Editor then press [ENTER]. Press [ENTER] again to select the main folder. To clear a previously stored list of data values, arrow up to the list name you want to clear, press [CLEAR], then press enter.

    clipboard_eb146acdb3b5d1c68b8e932f1cfadd926.png

    Press [F4], select 1: 1-Var Stats. To get the list name to the List box, press [2nd] [VarLink], arrow down to list1 and press [Enter]. This will bring list1 to the List box. Press [Enter] to enter the list name and then enter again to calculate.

    Use the down arrow key to see all the statistics.

    clipboard_ec7bd9c47df759149e26deef57e4d02f7.png

    clipboard_eb0bb6a828f00fa5be311f09e09388ca7.png

    Sx is the sample standard deviation. You can arrow down and find more statistics. Use the min and max to calculate the range by hand. To find the variance simply square the standard deviation or take the last sum of squares divided by n – 1.

    Excel: Type in the data into one column, select the Data tab, and choose Data Analysis. Select Descriptive Statistics, and then select OK.

    clipboard_e4f784fa3437e2f094fde301ef627f028.png

    Highlight the data for the Input Range, if you highlighted a label; check the Labels in first row box. Select the circle to the left of Output Range, then click into the box to the right of the Output Range and select one cell where you want the top left-hand corner of your summary table to start. Select the box next to Summary statistics, then select OK, see below.

    clipboard_e624992d22a455a5466a27ec80ecae5cd.png

    We get the following summary statistics:

    clipboard_e709559d86086e21b531c1c6fad7becd1.png

    In general, a “small” standard deviation means the data are close together (more consistent) and a “large” standard deviation means the data is spread out (less consistent). Sometimes you want consistent data and sometimes you do not. As an example, if you are making bolts, you want the lengths to be very consistent so you want a small standard deviation. If you are administering a test to see who can be a pilot, you want a large standard deviation so you can tell whom the good and bad pilots are.

    What do “small” and “large” mean? To a bicyclist whose average speed is 20 mph, s = 20 mph is huge. To an airplane whose average speed is 500 mph, s = 20 mph is nothing. The “size” of the variation depends on the size of the numbers in the problem and the mean. Another situation where you can determine whether a standard deviation is small or large is when you are comparing two different samples. A sample with a smaller standard deviation is more consistent than a sample with a larger standard deviation.

    If we were to compare the variability between two histograms. The standard deviation and variance measure the average spread from left to right. Take a moment and see if you can order the following histograms from the smallest to the largest standard deviation.

    clipboard_e3ca034be9f9291b6d4974010cb5113a0.png

    Figure 3-16

    clipboard_e777d04c576dce5cca37b7ef0ab337315.png

    Figure 3-17

    clipboard_eaef6aa5fb4d3e01d6ef7e33403f2c2ff.png

    FIgure 3-18

    clipboard_ea16f26b3b7a3c188b9c464391ee98636.png

    Figure 3-19

    The histogram that has more of the data close to the mean will have the smallest standard deviation. The histogram that has more of the data towards the end points will have a larger standard deviation. Figure 3-16 will have the largest standard deviation since more of the data is grouped in the first and last class. Figure 3-17 will have the smallest standard deviation since more of the data is grouped in the center class which will be close to the mean in a symmetric distribution. Figures 3-18 and 3-19 are harder to compare without also having access to the mean and median to indicate skewness. However, Figure 3-19 does have smaller frequencies in the first and last three classes compared to Figure 3-18.

    The correct order from smallest to largest standard deviation would be Figure 3-17, Figure 3-19, Figure 3-18, and then Figure 3-16.

    One should not compare the range, standard deviation or variance of different data sets that have different units or scale.

    3.2.3 Coefficient of Variation

    The coefficient of variation, denoted by CVar or CV, is the standard deviation divided by the mean. The units on the numerator and denominator cancel with one another and the result is usually expressed as a percentage. The coefficient of variation allows you to compare variability among data sets when the units or scale is different.

    Coefficient of Variation = CVar = ( \(\frac{\text { s }}{\text { \(\overline{ x }\) }}\)
    ∙ 100) %

    The following is a sample of the alcohol content and calories for 12 oz. beers. Is the alcohol content (alcohol by volume ABV) or calories more variable?

    Name Brewery ABV Calories in 12 oz. Big Sky Scape Goat Pale Ale Big Sky Brewing 4.70% 163 Sierra Nevada Harvest Ale Sierra Nevada 6.70% 215 Steel Reserve Miller Coors 8.10% 222 O'Doul's Anheuser Busch 0.40% 70 Coors Light Miller Coors 4.15% 104 Genesee Cream Ale High Falls Brewing 5.10% 162 Breakside Pilsner Breakside 5.00% 158 Dark Ale Alberta Brewing Company 5.00% 155 Flying Dog Doggie Style Flying Dog Brewery 4.70% 158 Big Sky I.P.A. Big Sky Brewing 6.20% 195
    Solution

    Type in the data to Excel and run descriptive statistics on both data sets to get the following:

    clipboard_ea0609a921e779c6cae796791529ab6a0.png

    clipboard_e5ceaddddf0c41b1c0217176152154979.png

    Next, compute the coefficient of variation using the mean and standard deviation for both data sets.

    Alcohol Content CVar = ( \(\frac{\text { 0.02003 }}{\text { 0.05005}}\) ∙ 100) % = 39.97%

    Calories CVar = ( \(\frac{\text { 46.39875 }}{\text { 160.2 }}\) ∙ 100) % = 28.96%

    The alcohol content varies more than the number of calories.

    There is no shortcut on the calculator or Excel for CVar, but you can find s and \(\overline{ x }\) then simply divide.


    This page titled 3.2: Measures of Spread is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Rachel Webb via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.