This is “Measures of Central Location”, section 2.2 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. To download a .zip file containing this book to use offline, simply click here.

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.2 Measures of Central Location

Learning Objectives

  1. To learn the concept of the “center” of a data set.
  2. To learn the meaning of each of three measures of the center of a data set—the mean, the median, and the mode—and how to compute each one.

This section could be titled “three kinds of averages of a data set.” Any kind of “average” is meant to be an answer to the question “Where do the data center?” It is thus a measure of the central location of the data set. We will see that the nature of the data set, as indicated by a relative frequency histogram, will determine what constitutes a good answer. Different shapes of the histogram call for different measures of central location.

The Mean

The first measure of central location is the usual “average” that is familiar to everyone. In the formula in the following definition we introduce the standard summation notation Σ, where Σ is the capital Greek letter sigma. In general, the notation Σ followed by a second mathematical symbol means to add up all the values that the second symbol can take in the context of the problem. Here is an example to illustrate this.

Example 1

Find Σx, Σx2, and Σ(x1)2 for the data set

134

Solution:

Σx=1+3+4=8Σx2=12+32+42=1+9+16=26Σ(x1)2=(11)2+(31)2+(41)2=02+22+32=13

In the definition we follow the convention of using lowercase n to denote the number of measurements in a sample, which is called the sample size.

Definition

The sample meanThe familiar average of a sample data set. of a set of n sample data is the number x- defined by the formula

x-=Σxn

Example 2

Find the mean of the sample data

2102

Solution:

x-=Σxn=2+(1)+0+24=34=0.75

Example 3

A random sample of ten students is taken from the student body of a college and their GPAs are recorded as follows.

1.903.002.533.712.121.762.711.394.003.33

Find the sample mean.

Solution:

x-=Σxn=1.90+3.00+2.53+3.71+2.12+1.76+2.71+1.39+4.00+3.3310=26.4510=2.645

Example 4

A random sample of 19 women beyond child-bearing age gave the following data, where x is the number of children and f is the frequency of that value, the number of times it occurred in the data set.

x01234f36631

Find the sample mean.

Solution:

In this example the data are presented by means of a data frequency table, introduced in Chapter 1 "Introduction". Each number in the first line of the table is a number that appears in the data set; the number below it is how many times it occurs. Thus the value 0 is observed three times, that is, three of the measurements in the data set are 0, the value 1 is observed six times, and so on. In the context of the problem this means that three women in the sample have had no children, six have had exactly one child, and so on. The explicit list of all the observations in this data set is therefore

0001111112222223334

The sample size can be read directly from the table, without first listing the entire data set, as the sum of the frequencies: n=3+6+6+3+1=19. The sample mean can be computed directly from the table as well:

x-=Σxn=0×3+1×6+2×6+3×3+4×119=3119=1.6316

In the examples above the data sets were described as samples. Therefore the means were sample means, denoted by x-. If the data come from a census, so that there is a measurement for every element of the population, then the mean is calculated by exactly the same process of summing all the measurements and dividing by how many of them there are, but it is now the population mean and is denoted by μ, the lower case Greek letter mu.

Definition

The population meanThe familiar average of a population data set. of a set of N population data is the number μ defined by the formula

μ=ΣxN

The mean of two numbers is the number that is halfway between them. For example, the average of the numbers 5 and 17 is (5 + 17) ∕ 2 = 11, which is 6 units above 5 and 6 units below 17. In this sense the average 11 is the “center” of the data set {5,17}. For larger data sets the mean can similarly be regarded as the “center” of the data.

The Median

To see why another concept of average is needed, consider the following situation. Suppose we are interested in the average yearly income of employees at a large corporation. We take a random sample of seven employees, obtaining the sample data (rounded to the nearest hundred dollars, and expressed in thousands of dollars).

24.822.824.6192.525.218.523.7

The mean (rounded to one decimal place) is x-=47.4, but the statement “the average income of employees at this corporation is $47,400” is surely misleading. It is approximately twice what six of the seven employees in the sample make and is nowhere near what any of them makes. It is easy to see what went wrong: the presence of the one executive in the sample, whose salary is so large compared to everyone else’s, caused the numerator in the formula for the sample mean to be far too large, pulling the mean far to the right of where we think that the average “ought” to be, namely around $24,000 or $25,000. The number 192.5 in our data set is called an outlier, a number that is far removed from most or all of the remaining measurements. Many times an outlier is the result of some sort of error, but not always, as is the case here. We would get a better measure of the “center” of the data if we were to arrange the data in numerical order,

18.522.823.724.624.825.2192.5

then select the middle number in the list, in this case 24.6. The result is called the median of the data set, and has the property that roughly half of the measurements are larger than it is, and roughly half are smaller. In this sense it locates the center of the data. If there are an even number of measurements in the data set, then there will be two middle elements when all are lined up in order, so we take the mean of the middle two as the median. Thus we have the following definition.

Definition

The sample medianThe middle value when data are listed in numerical order. x~ of a set of sample data for which there are an odd number of measurements is the middle measurement when the data are arranged in numerical order. The sample median x~ of a set of sample data for which there are an even number of measurements is the mean of the two middle measurements when the data are arranged in numerical order.

The population median is defined in a similar way, but we will not have occasion to refer to it again in this text.

The median is a value that divides the observations in a data set so that 50% of the data are on its left and the other 50% on its right. In accordance with Figure 2.6 "A Very Fine Relative Frequency Histogram", therefore, in the curve that represents the distribution of the data, a vertical line drawn at the median divides the area in two, area 0.5 (50% of the total area 1) to the left and area 0.5 (50% of the total area 1) to the right, as shown in Figure 2.7 "The Median". In our income example the median, $24,600, clearly gave a much better measure of the middle of the data set than did the mean $47,400. This is typical for situations in which the distribution is skewed. (Skewness and symmetry of distributions are discussed at the end of this subsection.)

Figure 2.7 The Median

Example 5

Compute the sample median for the data of Note 2.11 "Example 2".

Solution:

The data in numerical order are −1, 0, 2, 2. The two middle measurements are 0 and 2, so x~=(0+2)2=1.

Example 6

Compute the sample median for the data of Note 2.12 "Example 3".

Solution:

The data in numerical order are

1.391.761.902.122.532.713.003.333.714.00

The number of observations is ten, which is even, so there are two middle measurements, the fifth and sixth, which are 2.53 and 2.71. Therefore the median of these data is x~=(2.53+2.71)2=2.62.

Example 7

Compute the sample median for the data of Note 2.13 "Example 4".

Solution:

The data in numerical order are

0001111112222223334

The number of observations is 19, which is odd, so there is one middle measurement, the tenth. Since the tenth measurement is 2, the median is x~=2.

It is important to note that we could have computed the median without first explicitly listing all the observations in the data set. We already saw in Note 2.13 "Example 4" how to find the number of observations directly from the frequencies listed in the table: n=3+6+6+3+1=19. As just above we figure out that the median is the tenth observation. The second line of the table in Note 2.13 "Example 4" shows that when the data are listed in order there will be three 0s followed by six 1s, so the tenth observation is a 2. The median is therefore 2.

The relationship between the mean and the median for several common shapes of distributions is shown in Figure 2.8 "Skewness of Relative Frequency Histograms". The distributions in panels (a) and (b) are said to be symmetric because of the symmetry that they exhibit. The distributions in the remaining two panels are said to be skewed. In each distribution we have drawn a vertical line that divides the area under the curve in half, which in accordance with Figure 2.7 "The Median" is located at the median. The following facts are true in general:

  1. When the distribution is symmetric, as in panels (a) and (b) of Figure 2.8 "Skewness of Relative Frequency Histograms", the mean and the median are equal.
  2. When the distribution is as shown in panel (c) of Figure 2.8 "Skewness of Relative Frequency Histograms", it is said to be skewed right. The mean has been pulled to the right of the median by the long “right tail” of the distribution, the few relatively large data values.
  3. When the distribution is as shown in panel (d) of Figure 2.8 "Skewness of Relative Frequency Histograms", it is said to be skewed left. The mean has been pulled to the left of the median by the long “left tail” of the distribution, the few relatively small data values.

Figure 2.8 Skewness of Relative Frequency Histograms

The Mode

Perhaps you have heard a statement like “The average number of automobiles owned by households in the United States is 1.37,” and have been amused at the thought of a fraction of an automobile sitting in a driveway. In such a context the following measure for central location might make more sense.

Definition

The sample modeThe most frequent value in a data set. of a set of sample data is the most frequently occurring value.

The population mode is defined in a similar way, but we will not have occasion to refer to it again in this text.

On a relative frequency histogram, the highest point of the histogram corresponds to the mode of the data set. Figure 2.9 "Mode" illustrates the mode.

Figure 2.9 Mode

For any data set there is always exactly one mean and exactly one median. This need not be true of the mode; several different values could occur with the highest frequency, as we will see. It could even happen that every value occurs with the same frequency, in which case the concept of the mode does not make much sense.

Example 8

Find the mode of the following data set.

1020

Solution:

The value 0 is most frequently observed and therefore the mode is 0.

Example 9

Compute the sample mode for the data of Note 2.13 "Example 4".

Solution:

The two most frequently observed values in the data set are 1 and 2. Therefore mode is a set of two values: {1,2}.

The mode is a measure of central location since most real-life data sets have more observations near the center of the data range and fewer observations on the lower and upper ends. The value with the highest frequency is often in the middle of the data range.

Key Takeaway

The mean, the median, and the mode each answer the question “Where is the center of the data set?” The nature of the data set, as indicated by a relative frequency histogram, determines which one gives the best answer.

Exercises

    Basic

  1. For the sample data set {1,2,6} find

    1. Σx
    2. Σx2
    3. Σ(x3)
    4. Σ(x3)2
  2. For the sample data set {1,0,1,4} find

    1. Σx
    2. Σx2
    3. Σ(x1)
    4. Σ(x1)2
  3. Find the mean, the median, and the mode for the sample

    1234
  4. Find the mean, the median, and the mode for the sample

    3344
  5. Find the mean, the median, and the mode for the sample

    2127
  6. Find the mean, the median, and the mode for the sample

    101411
  7. Find the mean, the median, and the mode for the sample data represented by the table

    x127f121
  8. Find the mean, the median, and the mode for the sample data represented by the table

    x1014f1131
  9. Create a sample data set of size n = 3 for which the mean x- is greater than the median x~.

  10. Create a sample data set of size n = 3 for which the mean x- is less than the median x~.

  11. Create a sample data set of size n = 4 for which the mean x-, the median x~, and the mode are all identical.

  12. Create a data set of size n = 4 for which the median x~ and the mode are identical but the mean x- is different.

    Applications

  1. Find the mean and the median for the LDL cholesterol level in a sample of ten heart patients.

    132162133145148139147160150153
  2. Find the mean and the median, for the LDL cholesterol level in a sample of ten heart patients on a special diet.

    127152138110152113131148135158
  3. Find the mean, the median, and the mode for the number of vehicles owned in a survey of 52 households.

    x01234567f21215116312
  4. The number of passengers in each of 120 randomly observed vehicles during morning rush hour was recorded, with the following results.

    x12345f8429331

    Find the mean, the median, and the mode of this data set.

  5. Twenty-five 1-lb boxes of 16d nails were randomly selected and the number of nails in each box was counted, with the following results.

    x4748495051f131821

    Find the mean, the median, and the mode of this data set.

    Additional Exercises

  1. Five laboratory mice with thymus leukemia are observed for a predetermined period of 500 days. After 500 days, four mice have died but the fifth one survives. The recorded survival times for the five mice are

    493421222378500*

    where 500* indicates that the fifth mouse survived for at least 500 days but the survival time (i.e., the exact value of the observation) is unknown.

    1. Can you find the sample mean for the data set? If so, find it. If not, why not?
    2. Can you find the sample median for the data set? If so, find it. If not, why not?
  2. Five laboratory mice with thymus leukemia are observed for a predetermined period of 500 days. After 450 days, three mice have died, and one of the remaining mice is sacrificed for analysis. By the end of the observational period, the last remaining mouse still survives. The recorded survival times for the five mice are

    222421378450*500*

    where * indicates that the mouse survived for at least the given number of days but the exact value of the observation is unknown.

    1. Can you find the sample mean for the data set? If so, find it. If not, explain why not.
    2. Can you find the sample median for the data set? If so, find it. If not, explain why not.
  3. A player keeps track of all the rolls of a pair of dice when playing a board game and obtains the following data.

    x234567f102940566877 x89101112f6755392811

    Find the mean, the median, and the mode.

  4. Cordelia records her daily commute time to work each day, to the nearest minute, for two months, and obtains the following data.

    x26272829303132f341612621
    1. Based on the frequencies, do you expect the mean and the median to be about the same or markedly different, and why?
    2. Compute the mean, the median, and the mode.
  5. An ordered stem and leaf diagram gives the scores of 71 students on an exam.

    10009111123801122345788970001124456667778896012223445777788502334467789425688399
    1. Based on the shape of the display, do you expect the mean and the median to be about the same or markedly different, and why?
    2. Compute the mean, the median, and the mode.
  6. A man tosses a coin repeatedly until it lands heads and records the number of tosses required. (For example, if it lands heads on the first toss he records a 1; if it lands tails on the first two tosses and heads on the third he records a 3.) The data are shown.

    x12345678910f384208985628128231
    1. Find the mean of the data.
    2. Find the median of the data.
    1. Construct a data set consisting of ten numbers, all but one of which is above average, where the average is the mean.
    2. Is it possible to construct a data set as in part (a) when the average is the median? Explain.
  7. Show that no matter what kind of average is used (mean, median, or mode) it is impossible for all members of a data set to be above average.

    1. Twenty sacks of grain weigh a total of 1,003 lb. What is the mean weight per sack?
    2. Can the median weight per sack be calculated based on the information given? If not, construct two data sets with the same total but different medians.
  8. Begin with the following set of data, call it Data Set I.

    526143014325
    1. Compute the mean, median, and mode.
    2. Form a new data set, Data Set II, by adding 3 to each number in Data Set I. Calculate the mean, median, and mode 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 mean, median, and mode 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 mean and median of the 1,000 SAT scores.
    2. Compute the mean and median 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 mean μ.
    2. Regard the first 25 observations as a random sample drawn from this population. Compute the sample mean x- and compare it to μ.
    3. Regard the next 25 observations as a random sample drawn from this population. Compute the sample mean x- and compare it to μ.
  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 mean μ.
    2. Regard the first 25 observations as a random sample drawn from this population. Compute the sample mean x- and compare it to μ.
    3. Regard the next 25 observations as a random sample drawn from this population. Compute the sample mean x- and compare it to μ.
  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 mean and median survival time for all mice, without regard to gender.
    2. Compute the mean and median survival time for the 65 male mice (separately recorded in Large Data Set 7A).
    3. Compute the mean and median survival time for the 75 female mice (separately recorded in Large Data Set 7B).

Answers

    1. 9.
    2. 41.
    3. 0.
    4. 14.
  1. x-=2.5, x~=2.5, mode={1,2,3,4}.

  2. x-=3, x~=2, mode=2.

  3. x-=3, x~=2, mode=2.

  4. {0,0,3}.

  5. {0,1,1,2}.

  1. x-=146.9, x~=147.5

  2. x-=2.6, x~=2, mode=2

  3. x-=48.96, x~=49, mode=49

    1. No, the survival times of the fourth and fifth mice are unknown.
    2. Yes, x~=421.
  1. x-=28.55, x~=28, mode=28

  2. x-=2.05, x~=2, mode=1

  3. Mean: nxminΣx so dividing by n yields xminx-, so the minimum value is not above average. Median: the middle measurement, or average of the two middle measurements, x~, is at least as large as xmin, so the minimum value is not above average. Mode: the mode is one of the measurements, and is not greater than itself.

    1. x-=3.18-, x~=3, mode=5.
    2. x-=6.18-, x~=6, mode=8.
    3. x-=2.81-, x~=3, mode=1.
    4. If a number is added to every measurement in a data set, then the mean, median, and mode all change by that number.
    1. μ = 1528.74
    2. x-=1502.8
    3. x-=1535.2
    1. x-=553.4286 and x~=552.5
    2. x-=665.9692 and x~=667
    3. x-=455.8933 and x~=448