Docsity

Understanding Mean, Median, Range, and Interquartile Range for Quantitative Variables, Lecture notes of Statistics

Toggle sidebar
bg1
26
Unit 4
Numerical Summaries
Objectives:
ļ‚· To obtain and interpret the mean and median for quantitative data
ļ‚· To obtain and interpret the range and the interquartile range
The three major characteristics of the distribution for a quantitative variable that are of primary interest
are the center of the distribution, the amount of dispersion in the distribution, and the shape of the distribution.
Our study of these three characteristics thus far has been mainly through the use of graphical displays.
However, we shall find it useful and necessary to be able to describe these characteristics with numerical
summaries. A numerical summary is a number used to describe a specific characteristic about a data set.
What numerical summaries could we use to describe the center of a distribution? One natural choice is
Q2 , the second quartile in the five-number summary, since this is a value which divides the ordered array for the
data in half. Since we think of Q2 as a measure of the center of a distribution, we give it a special name in
statistical terminology; we call Q2 the median.
Another possible choice for a numerical summary to describe the center of a distribution would be the
average of the observations. The average for a list of numbers is most likely not a new concept to you. To
obtain the average of observations of a quantitative variable, we simply add the observations, and divide this
sum by the number of observations. We give this arithmetic average a special name in statistical terminology;
we call the average the mean. The mean is so important and widely used in classical statistics, that it has been
given its own special symbol; the special symbol x (read as "x-bar") is used to denote the mean.
Recall how letters are often used in mathematical notation to represent numerical values. We shall find
it convenient to let the letter n represent the number of observations in a data set. In statistics, we frequently use
subscripted letters to represent a list of n numerical values. In other words, a data set consisting of n quantitative
observations can be represented by x1 , x2 , … , xn . It is common practice in mathematics to use the upper case
Greek letter sigma  to denote summation. To understand how  is used, consider the variable "Number of
Children" in the SURVEY DATA, displayed as Data Set 1-1 at the end of Unit 1. Focusing only on the n = 10
individuals with an urban residence, we can let
x1 = 2 , x2 = 3 , x3 = 3 , x4 = 1 , x5 = 0 , x6 = 2 , x7 = 2 , x8 = 4 , x9 = 3 , x10 = 1 .
The sum of the xis is denoted as xi or more simply just as x (that is, for the sake of brevity, we will often
delete the subscript i with the sigma notation). You can easily check that
x = x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8 + x9 + x10 = 2 + 3 + 3 + 1 + 0 + 2 + 2 + 4 + 3 + 1 = 21 .
The mean x of n quantitative observations x1 , x2 , … , xn is simply the sum x divided by the number
of observations n. Using the summation notation, we can write
x = n
x

.
Since we found that x = 21 for the variable "Number of Children" in the SURVEY DATA when focusing only
on the n = 10 individuals with an urban residence, we can say that the mean "Number of Children" for these
urban residents is
pf3
pf4
pf5

Partial preview of the text

Download Understanding Mean, Median, Range, and Interquartile Range for Quantitative Variables and more Lecture notes Statistics in PDF only on Docsity!

Unit 4

Numerical Summaries

Objectives: ļ‚· To obtain and interpret the mean and median for quantitative data ļ‚· To obtain and interpret the range and the interquartile range

The three major characteristics of the distribution for a quantitative variable that are of primary interest are the center of the distribution, the amount of dispersion in the distribution, and the shape of the distribution. Our study of these three characteristics thus far has been mainly through the use of graphical displays. However, we shall find it useful and necessary to be able to describe these characteristics with numerical summaries. A numerical summary is a number used to describe a specific characteristic about a data set. What numerical summaries could we use to describe the center of a distribution? One natural choice is Q 2 , the second quartile in the five-number summary, since this is a value which divides the ordered array for the data in half. Since we think of Q 2 as a measure of the center of a distribution, we give it a special name in statistical terminology; we call Q 2 the median. Another possible choice for a numerical summary to describe the center of a distribution would be the average of the observations. The average for a list of numbers is most likely not a new concept to you. To obtain the average of observations of a quantitative variable, we simply add the observations, and divide this sum by the number of observations. We give this arithmetic average a special name in statistical terminology; we call the average the mean. The mean is so important and widely used in classical statistics, that it has been

given its own special symbol; the special symbol x (read as "x-bar") is used to denote the mean.

Recall how letters are often used in mathematical notation to represent numerical values. We shall find it convenient to let the letter n represent the number of observations in a data set. In statistics, we frequently use subscripted letters to represent a list of n numerical values. In other words, a data set consisting of n quantitative observations can be represented by x 1 , x 2 , … , xn. It is common practice in mathematics to use the upper case Greek letter sigma  to denote summation. To understand how  is used, consider the variable "Number of Children" in the SURVEY DATA, displayed as Data Set 1-1 at the end of Unit 1. Focusing only on the n = 10 individuals with an urban residence, we can let

x 1 = 2 , x 2 = 3 , x 3 = 3 , x 4 = 1 , x 5 = 0 , x 6 = 2 , x 7 = 2 , x 8 = 4 , x 9 = 3 , x 10 = 1.

The sum of the xi s is denoted as  xi or more simply just as  x (that is, for the sake of brevity, we will often delete the subscript i with the sigma notation). You can easily check that

 x = x 1 + x 2 + x 3 + x 4 + x 5 + x 6 + x 7 + x 8 + x 9 + x 10 = 2 + 3 + 3 + 1 + 0 + 2 + 2 + 4 + 3 + 1 = 21.

The mean x of n quantitative observations x 1 , x 2 , … , xn is simply the sum  x divided by the number

of observations n. Using the summation notation, we can write

x =

n

 x

Since we found that  x = 21 for the variable "Number of Children" in the SURVEY DATA when focusing only on the n = 10 individuals with an urban residence, we can say that the mean "Number of Children" for these urban residents is

x U =

= 2.1 children.

The subscript " U " on the x U indicates that the mean is calculated for urban residents.

To find the median ( Q 2 ) for urban residents, we need to average the two middle observations in the following ordered array for the n = 10 individuals:

0 1 1 2 2 2 3 3 3 4.

We find the median number of children for the urban area to be (2 + 2)/2 = 2 children. Now, you find the mean and median number of children for each of the other two areas of residence (rural and suburban) from the SURVEY DATA. You should find that the mean and median for the rural area are respectively 4.6 and 3.5, and that the mean and median for the suburban area are respectively 3.0 and 3.0. Since the mean and the median are each measures of the center of a distribution, it is reasonable to wonder whether or not they will always be close to each other in value. Compare the mean and the median number of children for each of the three areas of residence. In the rural area the mean and median appear to be quite different (4.6 and 3.5), whereas in the suburban area the mean and median are equal to one another (3. and 3.0), and in the urban area the mean and median appear to be quite close (2.1 and 2.0). To see what characteristic about a distribution can affect whether or not the mean and median will be close in value, return to the figure displaying the dot plots for Self Test Problem 3-1 in the section titled SURVEY DATA Summaries for Data Set 1-1 at the end of Unit 2. Remember that a positively skewed distribution is one where the observations in the upper half of the distribution show considerably more dispersion than the observations in the lower half of the distribution, and a negatively skewed distribution is one where the observations in the lower half of the distribution show considerably more dispersion than the observations in the upper half of the distribution. We see that the distribution of "Number of Children" is positively skewed in the rural area, is symmetric in the suburban area, and is slightly negatively skewed in the urban area. This suggests to us that the difference between mean and median observed for each area might have been influenced by symmetry and skewness in the distribution. The fact that there are a few unusually large observations of "Number of Children" in the rural area explains why the mean is so much larger than the median. Since the mean depends on the sum of the observations, it is influenced by a few unusually large or unusually small observations. To illustrate this point further, let us return to the ordered array for "Number of Children" for urban residents: 0 1 1 2 2 2 3 3 3 4.

Earlier, we found the mean to be x U = 2.1 children, and we found the median to be Q 2 = (2 + 2)/2 = 2 children.

The two middle observations of the ordered array, from which the median is obtained, are boldfaced. Suppose, however, that one of the 3s in the ordered array was replaced by a 23; that is, suppose there was one urban resident in the SURVEY DATA with 23 children. (Okay, perhaps this is a bit far fetched, but just imagine it is true for a minute for the sake of the point we are trying to make.) The ordered array would then be as follows:

0 1 1 2 2 2 3 3 4 23.

It is easy to see that the median would still be equal to 2 children, but the sum of the observations would now be 41, making the mean 41/10 = 4.1 children. The mean would actually be larger than every observation except one! This illustrates how the mean can give us a misleading impression about the center of a distribution when there is one unusually large or small observation. The fact that the mean, not the median, can be sensitive to a few unusually large or unusually small, observations, leads us to two noteworthy facts. First, with a positively or negatively skewed distribution, the median is often a more reasonable measure of center than the mean. Second, the values of the mean and median together not only give us information about the center of a distribution, but can also give us some information about the shape of a distribution. When a distribution is nearly symmetric, the mean and median will be close in

continued from previous page (e) Do the ranges and interquartile ranges found in part (d) suggest that the distribution of "Yearly Income" shows a different amount of dispersion for Republicans and Democrats? If yes, for which party does the amount of dispersion appear to be greater? (f) Do In part (a), the mean income for the 10 Republicans was found to be 44.5 thousand dollars, and the mean income for the 8 Democrats was found to be 49.375 thousand dollars. You now are told that the mean income is 42.5 thousand dollars for 4 Independents, and that the mean income is 44 thousand dollars for 8 Others. Use this information to easily find the mean income for all 30 individuals.

We have considered obtaining the mean and median only from raw data. If quantitative observations have been summarized into a frequency distribution with the raw data unavailable, we can still obtain, or at least approximate, the mean and median. Table 4-1 is a frequency distribution constructed from the number of absences in the last year for each of 40 employees in a particular office. To find the mean, we need to divide the sum  x by the number of observations n = 40. From Table 4-1, you should realize that the data contain ten 0s, thirteen 1s, seven 2s, five 3s, three 4s, and two 5s. If we wished, we could actually write down a list of the 40 observations, but this would not be particularly useful. Instead, we realize that we could obtain the sum of the 40 observations simply by multiplying 0 by 10, multiplying 1 by 13, multiplying 2 by 7, multiplying 3 by 5, multiplying 4 by 3, multiplying 5 by 2, and summing these results. This is because multiplying 0 by 10 is the same as summing ten 0s, multiplying 1 by 13 is the same as summing thirteen 1s, multiplying 2 by 7 is the same as summing seven 2s, etc. Complete this calculation to find the mean. (You should find the mean

days of absence to be x = 1.6.)

To find the median, we need the two middle observations in the ordered array of 40 observations; these are the 20th and 21st observations. From Table 4-1, you should realize that the first ten observations in the ordered array are 0s, and the next 13 observations are 1s. Consequently, the 20th and 21st observations in the ordered array must each be 1, which implies that the median is (1 + 1)/2 = 1 day. Notice that the mean appears to be a bit larger than the median. This, of course, reflects the fact that the distribution of days absent is positively skewed, which you can see just by looking at the raw frequencies and picturing the shape of a histogram for this frequency distribution. To find the interquartile range, we must first find Q 1 and Q 3. We obtain Q 1 by averaging the two middle observations among the lower 20 observations in the ordered array; these are the 10th and 11th observations. We obtain Q 3 by averaging the two middle observations among the upper 20 observations in the ordered array; these are the 30th and 31st observations. Find Q 1 and Q 3 from Table 4-1. You should find that Q 1 = (0 + 1)/2 = 0.5 days and Q 3 = (2 + 3)/2 = 2.5 days. We then have IQR = 2.5 – 0.5 = 2 days. Table 4-2 is a frequency distribution constructed from overtime in the last week for each of 175 employees in a particular office. Unlike Table 4-1, Table 4-2 does not display the actual individual values of the observations. Earlier, when we were working from Table 4-1, we could actually write down a list of the observations. In Table 4-2, however, classes have been defined. You should realize from Table 4-2 that the

data contain 21 observations which are greater than 0 up to and including 3 hours, but we cannot say precisely what any of these observations are equal to. Similar comments can be made about each of the other classes. In other words, we could not actually write down a list of the 175 observations. To find the median, we need the middle observation in the ordered array of 175 observations; this is the 88th observation. We can tell from Table 4-2 that 21 observations in the ordered array are less than or equal to 3 hours, 21 + 35 = 56 observations in the ordered array are less than or equal to 6 hours, and 21 + 35 + 49 = 105 observations in the ordered array are less than or equal to 9 hours. Consequently, the 88th observation in the ordered array, which is the median, must each be somewhere between 6 and 9 hours. By looking at the raw frequencies and picturing the shape of a histogram for this frequency distribution, we can tell that the distribution of overtime in the last week is close to symmetric (or perhaps just slightly negatively skewed). Consequently we might make a guess that the mean is also somewhere between 6 and 9 hours. If we were interested in a more accurate approximation of the mean and median, we could work with the midpoints of the classes and make use of interpolation; we shall not do this here, however.

Self-Test Problem 4-3. Fifty households in a certain area are surveyed, and the number of cars owned in each is recorded. Three households have no cars, four have 1 car, six have 2 cars, twelve have 3 cars, eighteen have 4 cars, five have 5 cars, and two have 6 cars. (a) In the construction of a frequency distribution for this data, why would it not be necessary to define classes? (b) Find the mean number of cars per household and the median number of cars per household. (c) What does the difference between the mean and median say about the shape of the distribution? (d) Find the range and the interquartile range for the number of cars per household.

Self-Test Problem 4-4. Potato yield in pounds per acre is recorded for each of 150 different plots. The results are organized into the frequency distribution displayed as Table 4-3. (a) Why was it necessary to define classes in the construction of the frequency distribution for this data? (b) What does the shape of the distribution suggest about the difference between the mean and median potato yield? (c) In which class does the median potato yield lie? (d) What should you tell someone who tries to obtain the mean potato yield by dividing 17 + 20 + 24 + 24 + 22 + 21 + 22 by 7? (e) In which class does Q 1 lie, and in which class does Q 3 lie, for these potato yields? (f) Explain why it is not possible for the mean of the observations used to create Table 4-3 to be equal to

The range is Max – Min , the difference between the largest and smallest observations. The interquartile range , abbreviated IQR , is Q 3 – Q 1 , the difference between the third and first quartiles. The range is sensitive to one unusually large, or one unusually small, observation.