### Introduction

The *center* of a data set is also a way of describing location. The two most widely used measures of the *center* of the data are the mean (average) and the median. To calculate the **mean weight** of 50 people, add the 50 weights together and divide by 50. To find the ** median weight** of the 50 people, order the data and find the number that splits the data into two equal parts. The median is generally a better measure of the center when there are extreme values or outliers because it is not affected by the precise numerical values of the outliers. The mean is the most common measure of the center.

### NOTE

The words *mean* and *average* are often used interchangeably. The substitution of one word for the other is common practice. The technical term is *arithmetic mean* and *average* is technically a center location. However, in practice among non statisticians, *average* is commonly accepted for *arithmetic mean*.

When each value in the data set is not unique, the mean can be calculated by multiplying each distinct value by its frequency and then dividing the sum by the total number of data values. The letter used to represent the **sample mean** is an *x* with a bar over it (pronounced “x bar”): $\overline{x}$. The sample mean is a statistic.

The Greek letter *μ* (pronounced "mew") represents the **population mean**. The population mean is a parameter. One of the requirements for the **sample mean** to be a good estimate of the **population mean** is for the sample taken to be truly random.

To see that both ways of calculating the mean are the same, consider the following sample:

1, 1, 1, 2, 2, 3, 4, 4, 4, 4, 4

In the second example, the frequencies are 3(1) + 2(2) + 1(3) + 5(4).

You can quickly find the location of the median by using the expression $\frac{n+1}{2}$.

The letter *n* is the total number of data values in the sample. As discussed earlier, if *n* is an odd number, the median is the middle value of the ordered data (ordered smallest to largest). If *n* is an even number, the median is equal to the two middle values added together and divided by two after the data have been ordered. For example, if the total number of data values is 97, then $\frac{n+1}{2}$= $\frac{97+1}{2}$ = 49. The median is the 49^{th} value in the ordered data. If the total number of data values is 100, then $\frac{n+1}{2}$= $\frac{100+1}{2}$ = 50.5. The median occurs midway between the 50^{th} and 51^{st} values. The location of the median and the value of the median are **not** the same. The uppercase letter *M* is often used to represent the median. The next example illustrates the location of the median and the value of the median.

### Example 2.27

Data indicating the number of months a patient with a specific disease lives after taking a new antibody drug are as follows (smallest to largest):

The calculation for the mean is as follows:

To find the median, *M*, first use the formula for the location. The location is

^{th}and 21

^{st}values (the two 24s).

3, 4, 8, 8, 10, 11, 12, 13, 14, 15, 15, 16, 16, 17, 17, 18, 21, 22, 22, 24, 24, 25, 26, 26, 27, 27, 29, 29, 31, 32, 33, 33, 34, 34, 35, 37, 40, 44, 44, 47

$M=\frac{24+24}{2}=24$

### Using the TI-83, 83+, 84, 84+ Calculator

To find the mean and the median:

Clear list L1. Pres STAT 4:ClrList. Enter 2^{nd} 1 for list L1. Press ENTER.

Enter data into the list editor. Press STAT 1:EDIT.

Put the data values into list L1.

Press STAT and arrow to CALC. Press 1:1-VarStats. Press 2^{nd} 1 for L1 and then ENTER.

Press the down and up arrow keys to scroll.

$\overline{x}$ = 23.6, *M* = 24

The following data show the number of months patients typically wait on a transplant list before getting surgery; the data are ordered from smallest to largest. Calculate the mean and median:

3, 4, 5, 7, 7, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 11, 12, 12, 13, 14, 14, 15, 15, 17, 17, 18,

19, 19, 19, 21, 21, 22, 22, 23, 24, 24, 24, 24

### Example 2.28

Suppose that in a small town of 50 people, one person earns $5,000,000 per year and the other 49 each earn $30,000. Which is the better measure of the *center*: the mean or the median?

$\overline{x}=\frac{5,000,000+49(30,000)}{50}=\mathrm{129,400}$

*M* = 30,000

There are 49 people who earn $30,000 and one person who earns $5,000,000.

The median is a better measure of the *center* than the mean because 49 of the values are 30,000 and one is 5,000,000. The 5,000,000 is an outlier. The 30,000 gives us a better sense of the middle of the data.

In a sample of 60 households, one house is worth $2,500,000. Half of the rest are worth $280,000, and all the others are worth $315,000. Which is the better measure of the *center*: the mean or the median?

Another measure of the center is the mode. The mode is the most frequent value. There can be more than one mode in a data set as long as those values have the same frequency and that frequency is the highest. A data set with two modes is called bimodal.

### Example 2.29

Statistics exam scores for 20 students are as follows:

50, 53, 59, 59, 63, 63, 72, 72, 72, 72, 72, 76, 78, 81, 83, 84, 84, 84, 90, 93

Find the mode.

The most frequent score is 72, which occurs five times. Mode = 72.

The number of books checked out from the library by 25 students are as follows:

0, 0, 0, 1, 2, 3, 3, 4, 4, 5, 5, 7, 7, 7, 7, 8, 8, 8, 9, 10, 10, 11, 11, 12, 12

### Example 2.30

Five real estate exam scores are 430, 430, 480, 480, 495. The data set is bimodal because the scores 430 and 480 each occur twice.

When is the mode the best measure of the *center*? Consider a weight loss program that advertises a mean weight loss of six pounds the first week of the program. The mode might indicate that most people lose two pounds the first week, making the program less appealing.

### NOTE

The mode can be calculated for qualitative data as well as for quantitative data. For example, if the data set is red, red, red, green, green, yellow, purple, black, blue, the mode is red.

Statistical software will easily calculate the mean, the median, and the mode. Some graphing calculators can also make these calculations. In the real world, people make these calculations using software.

Five credit scores are 680, 680, 700, 720, 720. The data set is bimodal because the scores 680 and 720 each occur twice. Consider the annual earnings of workers at a factory. The mode is $25,000 and occurs 150 times out of 301. The median is $50,000, and the mean is $47,500. What would be the best measure of the *center*?