Is the middle value of a data set when it is arranged from smallest to largest?

The Mean of a Data Set

The mean of a set of numbers, sometimes simply called the average , is the sum of the data divided by the total number of data.

Example 1 :

Find the mean of the set { 2 , 5 , 5 , 6 , 8 , 8 , 9 , 11 } .

There are 8 numbers in the set. Add them all, and then divide by 8 .

2 + 5 + 5 + 6 + 8 + 8 + 9 + 11 8 = 54 8 = 6.75

So, the mean is 6.75 .

The Median of a Data Set

The median of a set of numbers is the middle number in the set (after the numbers have been arranged from least to greatest) -- or, if there are an even number of data, the median is the average of the middle two numbers.

Example 1 :

Find the median of the set { 2 , 5 , 8 , 11 , 16 , 21 , 30 } .

There are 7 numbers in the set, and they are arranged in ascending order.  The middle number (the 4 th one in the list) is 11 .  So, the median is 11 .

Example 2 :

Find the median of the set { 3 , 10 , 36 , 255 , 79 , 24 , 5 , 8 } .

First, arrange the numbers in ascending order.

{ 3 , 5 , 8 , 10 , 24 , 36 , 79 , 255 }

There are 8 numbers in the set -- an even number. So, find the average of the middle two numbers, 10 and 24 .

10 + 24 2 = 34 2 = 17

So, the median is 17 .

The Mode of a Data Set

The mode of a set of numbers is the number which occurs most often.

Example 1 :

Find the mode of the set { 2 , 3 , 5 , 5 , 7 , 9 , 9 , 9 , 10 , 12 } .

2 , 3 , 7 , 10 and 12 each occur once.

5 occurs twice and 9 occurs three times.

So, 9 is the mode.

Example 2 :

Find the mode of the set { 2 , 5 , 5 , 6 , 8 , 8 , 9 , 11 } .

In this case, there are two modes -- 5 and 8 both occur twice, whereas the other numbers only occur once.

Learning Outcomes

  • Recognize, describe, and calculate the measures of the center of data: mean, median, and mode.

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 [latex]50[/latex] people, add the [latex]50[/latex] weights together and divide by [latex]50[/latex]. To find the median weight of the [latex]50[/latex] 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 [latex]x[/latex] with a bar over it (read “[latex]x[/latex] bar”): [latex]\displaystyle\overline{{x}}[/latex].

The Greek letter [latex]μ[/latex] (pronounced “mew”) represents the population mean. 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 sample:

[latex]1[/latex]; [latex]1[/latex]; [latex]1[/latex]; [latex]2[/latex]; [latex]2[/latex]; [latex]3[/latex]; [latex]4[/latex]; [latex]4[/latex]; [latex]4[/latex]; [latex]4[/latex]; [latex]4[/latex]

[latex]\displaystyle\overline{{x}}=\frac{{{1}+{1}+{1}+{2}+{2}+{3}+{4}+{4}+{4}+{4}+{4}}}{{11}}={2.7}[/latex]

[latex]\displaystyle\overline{{x}}=\frac{{{3}{({1})}+{2}{({2})}+{1}{({3})}+{5}{({4})}}}{{11}}={2.7}[/latex]

In the second example, the frequencies are [latex]3[/latex], [latex]2[/latex], [latex]1[/latex], and [latex]5[/latex].

You can quickly find the location of the median by using the expression [latex]\displaystyle\frac{{{n}+{1}}}{{2}}[/latex].

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

Example

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

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

Calculate the mean and the median.

Finding the Mean and the Median Using the TI-83, 83+, 84, 84+ Calculator

Clear list L1. Pres STAT 4:ClrList. Enter 2nd 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 2nd 1 for L1 and then ENTER.

Press the down and up arrow keys to scroll.

[latex]\displaystyle\overline{{x}}[/latex]= [latex]23.6[/latex], [latex]M[/latex] = [latex]24[/latex]

Try It

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.

[latex]3[/latex]; [latex]4[/latex]; [latex]5[/latex]; [latex]7[/latex]; [latex]7[/latex]; [latex]7[/latex]; [latex]7[/latex]; [latex]8[/latex]; [latex]8[/latex]; [latex]9[/latex]; [latex]9[/latex]; [latex]10[/latex]; [latex]10[/latex]; [latex]10[/latex]; [latex]10[/latex]; [latex]10[/latex]; [latex]11[/latex]; [latex]12[/latex]; [latex]12[/latex]; [latex]13[/latex]; [latex]14[/latex]; [latex]14[/latex]; [latex]15[/latex]; [latex]15[/latex]; [latex]17[/latex]; [latex]17[/latex]; [latex]18[/latex]; [latex]19[/latex]; [latex]19[/latex]; [latex]19[/latex]; [latex]21[/latex]; [latex]21[/latex]; [latex]22[/latex]; [latex]22[/latex]; [latex]23[/latex]; [latex]24[/latex]; [latex]24[/latex]; [latex]24[/latex]; [latex]24[/latex]

example

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

Try It

In a sample of [latex]60[/latex] households, one house is worth $[latex]2,500,000[/latex]. Half of the rest are worth $[latex]280,000[/latex], and all the others are worth $[latex]315,000[/latex]. 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

Statistics exam scores for [latex]20[/latex] students are as follows:

[latex]50[/latex], [latex]53[/latex], [latex]59[/latex], [latex]59[/latex], [latex]63[/latex], [latex]63[/latex], [latex]72[/latex], [latex]72[/latex], [latex]72[/latex], [latex]72[/latex], [latex]72[/latex], [latex]76[/latex], [latex]78[/latex], [latex]81[/latex], [latex]83[/latex], [latex]84[/latex], [latex]84[/latex], [latex]84[/latex], [latex]90[/latex], [latex]93[/latex]

Find the mode.

Try It

The number of books checked out from the library from [latex]25[/latex] students are as follows:

[latex]0[/latex], [latex]0[/latex], [latex]0[/latex], [latex]1[/latex], [latex]2[/latex], [latex]3[/latex], [latex]3[/latex], [latex]4[/latex], [latex]4[/latex], [latex]5[/latex], [latex]5[/latex], [latex]7[/latex], [latex]7[/latex], [latex]7[/latex], [latex]7[/latex], [latex]8[/latex], [latex]8[/latex], [latex]8[/latex], [latex]9[/latex], [latex]10[/latex], [latex]10[/latex], [latex]11[/latex], [latex]11[/latex], [latex]12[/latex], [latex]12[/latex]

Find the mode.

Example

Five real estate exam scores are [latex]430[/latex], [latex]430[/latex], [latex]480[/latex], [latex]480[/latex], [latex]495[/latex]. The data set is bimodal because the scores [latex]430[/latex] and [latex]480[/latex] 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.

Try It

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

Watch the following video from Khan Academy on finding the mean, median and mode of a set of data.

The Law of Large Numbers and the Mean

The Law of Large Numbers says that if you take samples of larger and larger size from any population, then the mean [latex]\displaystyle\overline{{x}}[/latex] of the sample is very likely to get closer and closer to [latex]µ[/latex]. This is discussed in more detail later in the text.

Sampling Distributions and Statistic of a Sampling Distribution

You can think of a sampling distribution as a relative frequency distribution with a great many samples. Suppose thirty randomly selected students were asked the number of movies they watched the previous week. The results are in the relative frequency table shown below.

# of movies Relative Frequency
[latex]0[/latex] [latex]\displaystyle\frac{{5}}{{30}}[/latex]
[latex]1[/latex] [latex]\displaystyle\frac{{15}}{{30}}[/latex]
[latex]2[/latex] [latex]\displaystyle\frac{{6}}{{30}}[/latex]
[latex]3[/latex] [latex]\displaystyle\frac{{3}}{{30}}[/latex]
[latex]4[/latex] [latex]\displaystyle\frac{{1}}{{30}}[/latex]

If you let the number of samples get very large (say, 300 million or more), the relative frequency table becomes a relative frequency distribution.

A statistic is a number calculated from a sample. Statistic examples include the mean, the median and the mode as well as others. The sample mean [latex]\displaystyle\overline{{x}}[/latex] is an example of a statistic which estimates the population mean [latex]μ[/latex].

Calculating the Mean of Grouped Frequency Tables

When only grouped data is available, you do not know the individual data values (we only know intervals and interval frequencies); therefore, you cannot compute an exact mean for the data set. What we must do is estimate the actual mean by calculating the mean of a frequency table. A frequency table is a data representation in which grouped data is displayed along with the corresponding frequencies. To calculate the mean from a grouped frequency table we can apply the basic definition of mean:
[latex]\displaystyle\text{mean}=\frac{{\text{data sum}}}{{\text{number of data values}}}[/latex]. We simply need to modify the definition to fit within the restrictions of a frequency table.

Since we do not know the individual data values we can instead find the midpoint of each interval. The midpoint is [latex]\displaystyle\frac{{\text{lower boundary } + \text{ upper boundary}}}{{2}}[/latex] We can now modify the mean definition to be [latex]\displaystyle\text{Mean of Frequency Table} = \frac{\sum\nolimits{fm}}{\sum\nolimits{f}}[/latex] where [latex]f[/latex] = the frequency of the interval and [latex]m[/latex] = the midpoint of the interval.

example

A frequency table displaying professor Blount’s last statistic test is shown. Find the best estimate of the class mean.

Grade Interval Number of Students
[latex]50–56.5[/latex] [latex]1[/latex]
[latex]56.5–62.5[/latex] [latex]0[/latex]
[latex]62.5–68.5[/latex] [latex]4[/latex]
[latex]68.5–74.5[/latex] [latex]4[/latex]
[latex]74.5–80.5[/latex] [latex]2[/latex]
[latex]80.5–86.5[/latex] [latex]3[/latex]
[latex]86.5–92.5[/latex] [latex]4[/latex]
[latex]92.5–98.5[/latex] [latex]1[/latex]

Try It

Maris conducted a study on the effect that playing video games has on memory recall. As part of her study, she compiled the following data:

Hours Teenagers Spend on Video Games Number of Teenagers
[latex]0–3.5[/latex] [latex]3[/latex]
[latex]3.5–7.5[/latex] [latex]7[/latex]
[latex]7.5–11.5[/latex]  [latex]12[/latex]
[latex]11.5–15.5[/latex] [latex]7[/latex]
[latex]15.5–19.5[/latex] [latex]9[/latex]

What is the best estimate for the mean number of hours spent playing video games?

Review

The mean and the median can be calculated to help you find the “center” of a data set. The mean is the best estimate for the actual data set, but the median is the best measurement when a data set contains several outliers or extreme values. The mode will tell you the most frequently occurring datum (or data) in your data set. The mean, median, and mode are extremely helpful when you need to analyze your data, but if your data set consists of ranges which lack specific values, the mean may seem impossible to calculate. However, the mean can be approximated if you add the lower boundary with the upper boundary and divide by two to find the midpoint of each interval. Multiply each midpoint by the number of values found in the corresponding range. Divide the sum of these values by the total number of data values in the set.

Formula Review

[latex]\displaystyle\mu=\frac{{\sum{f}{m}}}{{\sum{f}}}[/latex]

Where [latex]f[/latex] = interval frequencies and [latex]m[/latex] = interval midpoints.

References

Data from The World Bank, available online at http://www.worldbank.org (accessed April 3, 2013).

“Demographics: Obesity – adult prevalence rate.” Indexmundi. Available online at http://www.indexmundi.com/g/r.aspx?t=50&v=2228&l=en (accessed April 3, 2013).

Is the middle value of the dataset when it is arranged from smallest to largest?

The median is the middle point in a dataset—half of the data points are smaller than the median and half of the data points are larger. To find the median: Arrange the data points from smallest to largest. If the number of data points is odd, the median is the middle data point in the list.

What is the middle value of a data set?

from least to greatest or greatest to least; the median is the data value in the middle; if there is an even number of data values in the set, the median is the mean of the two middle values.

Is the item of data that appears most frequently in a set of data?

The mode is the value that appears most frequently in a data set. A set of data may have one mode, more than one mode, or no mode at all. Other popular measures of central tendency include the mean, or the average of a set, and the median, the middle value in a set.

What is the middle number of the set of data when the data is arranged in numerical order?

The median of a data set is the middle value when the values are written in numerical order. If a data set has an even number of values, the median is the mean of the two middle values.