Skip to content
Averages and Probability

Averages and Probability

By the end of this section, you will be able to: calculate the mean of a set of numbers, find the median of a set of numbers, identify the mode of a set of numbers, and use the basic definition of probability.

One application of decimals that arises often is finding the average of a set of numbers. What do you think of when you hear the word average? Is it your grade point average, the average rent for an apartment in your city, the batting average of a player on your favorite baseball team? The average is a typical value in a set of numerical data. Calculating an average sometimes involves working with decimal numbers. In this section, we will look at three different ways to calculate an average.

Calculate the mean of a set of numbers

The mean is often called the arithmetic average. It is computed by dividing the sum of the values by the number of values. Students want to know the mean of their test scores. Climatologists report that the mean temperature has, or has not, changed. City planners are interested in the mean household size.

Suppose Ethan’s first three test scores were 85,88,85, 88, and 9494. To find the mean score, he would add them and divide by 33:

85+88+943=2673=89\frac{85 + 88 + 94}{3} = \frac{267}{3} = 89

His mean test score is 8989 points.

The mean. The mean of a set of nn numbers is the arithmetic average of the numbers:

mean=sum of values in data setn\text{mean} = \frac{\text{sum of values in data set}}{n}

Calculate the mean of a set of numbers.

  1. Write the formula for the mean: mean=sum of values in data setn\text{mean} = \tfrac{\text{sum of values in data set}}{n}.
  2. Find the sum of all the values in the set. Write the sum in the numerator.
  3. Count the number, nn, of values in the set. Write this number in the denominator.
  4. Simplify the fraction.
  5. Check to see that the mean is reasonable. It should be greater than the least number and less than the greatest number in the set.

Example. Find the mean of the numbers 8,12,15,9,8, 12, 15, 9, and 66.

Write the formula for the mean, write the sum of the numbers in the numerator, and count how many numbers are in the set — there are 55 numbers, so n=5n = 5:

mean=8+12+15+9+65=505=10\text{mean} = \frac{8+12+15+9+6}{5} = \frac{50}{5} = 10

Check to see that the mean is “typical”: 1010 is neither less than 66 nor greater than 1515. The mean is 1010.

Find the mean of the numbers: 8, 9, 7, 12, 10, 5

Find the mean of the numbers: 9, 13, 11, 7, 5

Example. The ages of the members of a family who got together for a birthday celebration were 16,26,53,56,65,70,93,16, 26, 53, 56, 65, 70, 93, and 9797 years. Find the mean age.

Write the sum of the numbers in the numerator, and count how many numbers are in the set — there are 88, so n=8n = 8:

mean=16+26+53+56+65+70+93+978=4768=59.5\text{mean} = \frac{16+26+53+56+65+70+93+97}{8} = \frac{476}{8} = 59.5

Is 59.559.5 “typical”? Yes, it is neither less than 1616 nor greater than 9797. The mean age is 59.559.5 years.

The ages of the four students in Ben's carpool are 25, 18, 21, and 22. Find the mean age of the students.

Yen counted the number of emails she received last week. The numbers were 4, 9, 15, 12, 10, 12, and 8. Find the mean number of emails.

Did you notice that in the last example, while all the numbers were whole numbers, the mean was 59.559.5, a number with one decimal place? It is customary to report the mean to one more decimal place than the original numbers. In the next example, all the numbers represent money, and it will make sense to report the mean in dollars and cents.

Example. For the past four months, Daisy’s cell phone bills were $42.75\text{\textdollar}42.75, $50.12\text{\textdollar}50.12, $41.54\text{\textdollar}41.54, $48.15\text{\textdollar}48.15. Find the mean cost of Daisy’s cell phone bills.

Count how many numbers are in the set — there are 44 — and write the sum of all the numbers in the numerator:

mean=42.75+50.12+41.54+48.154=182.564=45.64\text{mean} = \frac{42.75+50.12+41.54+48.15}{4} = \frac{182.56}{4} = 45.64

Does $45.64\text{\textdollar}45.64 seem “typical” of this set of numbers? Yes, it is neither less than $41.54\text{\textdollar}41.54 nor greater than $50.12\text{\textdollar}50.12. The mean cost of her cell phone bill was $45.64\text{\textdollar}45.64.

Last week Ray recorded how much he spent for lunch each workday. He spent $6.50, $7.25, $4.90, $5.30, and $12.00. Find the mean of how much he spent each day.

Lisa has kept the receipts from the past four trips to the gas station. The receipts show the following amounts: $34.87, $42.31, $38.04, and $43.26. Find the mean.

Find the median of a set of numbers

When Ann, Bianca, Dora, Eve, and Francine sing together on stage, they line up in order of their heights: 59,60,65,68,7059, 60, 65, 68, 70 inches. Dora is in the middle of the group. Her height, 6565 inches, is the median of the girls' heights. Half of the heights are less than or equal to Dora’s height, and half are greater than or equal. The median is the middle value.

Median. The median of a set of data values is the middle value.

  • Half the data values are less than or equal to the median.
  • Half the data values are greater than or equal to the median.

What if Carmen, the pianist, joins the singing group on stage? Carmen is 6262 inches tall, so she fits in the height order between Bianca and Dora. Now the data set looks like this:

59,60,62,65,68,7059, 60, 62, 65, 68, 70

There is no single middle value — the heights of the six girls can be divided into two equal parts, 59,60,6259, 60, 62 and 65,68,7065, 68, 70. Statisticians have agreed that in cases like this the median is the mean of the two values closest to the middle. So the median is the mean of 6262 and 6565, 62+652\tfrac{62+65}{2}. The median height is 63.563.5 inches.

Notice that when the number of girls was 55, the median was the third height, but when the number of girls was 66, the median was the mean of the third and fourth heights. In general, when the number of values is odd, the median will be the one value in the middle, but when the number is even, the median is the mean of the two middle values.

Find the median of a set of numbers.

  1. List the numbers from smallest to largest.
  2. Count how many numbers are in the set. Call this nn.
  3. Is nn odd or even?
    • If nn is an odd number, the median is the middle value.
    • If nn is an even number, the median is the mean of the two middle values.

Example. Find the median of 12,13,19,9,11,15,12, 13, 19, 9, 11, 15, and 1818.

List the numbers in order from smallest to largest: 9,11,12,13,15,18,199, 11, 12, 13, 15, 18, 19. Count how many numbers are in the set — n=7n = 7, which is odd, so the median is the middle value. The middle is the number in the 4th position, so the median of the data is 1313.

Find the median of the data set: 43, 38, 51, 40, 46

Find the median of the data set: 15, 35, 20, 45, 50, 25, 30

Example. Kristen received the following scores on her weekly math quizzes: 83,79,85,86,92,100,76,90,88,83, 79, 85, 86, 92, 100, 76, 90, 88, and 6464. Find her median score.

List the numbers in order from smallest to largest: 64,76,79,83,85,86,88,90,92,10064, 76, 79, 83, 85, 86, 88, 90, 92, 100. Count the number of data values — n=10n = 10, which is even, so the median is the mean of the two middle values, the 5th and 6th numbers, 8585 and 8686:

mean=85+862=85.5\text{mean} = \frac{85+86}{2} = 85.5

Kristen’s median score is 85.585.5.

Find the median of the data set: 8, 7, 5, 10, 9, 12

Find the median of the data set: 21, 25, 19, 17, 22, 18, 20, 24

Identify the mode of a set of numbers

The average is one number in a set of numbers that is somehow typical of the whole set of numbers. The mean and median are both often called the average. Yes, it can be confusing when the word average refers to two different numbers, the mean and the median! In fact, there is a third number that is also an average. This average is the mode. The mode of a set of numbers is the number that occurs the most. The frequency is the number of times a number occurs. So the mode of a set of numbers is the number with the highest frequency.

Mode. The mode of a set of numbers is the number with the highest frequency.

Suppose Jolene kept track of the number of miles she ran since the start of the month: 2,15,8,3,8,5,82, 15, 8, 3, 8, 5, 8. If we list the numbers in order it is easier to identify the one with the highest frequency:

2,3,5,8,8,8,152, 3, 5, 8, 8, 8, 15

Jolene ran 88 miles three times, and every other distance is listed only once. So the mode of the data is 88 miles.

Identify the mode of a set of numbers.

  1. List the data values in numerical order.
  2. Count the number of times each value appears.
  3. The mode is the value with the highest frequency.

Example. The ages of students in a college math class are listed below. Identify the mode.

18,18,18,18,19,19,19,20,20,20,20,20,20,20,21,21,22,22,22,22,22,23,24,24,25,29,30,40,44 18, 18, 18, 18, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 21, 21, 22, 22, 22, 22, 22, 23, 24, 24, 25, 29, 30, 40, 44

The ages are already listed in order. Make a table of frequencies to help identify the age with the highest frequency:

Age181819192020212122222323242425252929303040404444
Frequency443377225511221111111111

Now look for the highest frequency. The highest frequency is 77, which corresponds to the age 2020. So the mode of the ages in this class is 2020 years.

The number of sick days employees used last year: 3, 6, 2, 3, 7, 5, 6, 2, 4, 2. Identify the mode.

The number of handbags owned by women in a book club: 5, 6, 3, 1, 5, 8, 1, 5, 8, 5. Identify the mode.

Example. The data lists the heights, in inches, of 3131 students in a statistics class. Identify the mode.

Height56566060616162626363646465656666676770707474
Frequency1122221155443355661111

Now look for the highest frequency. The highest frequency is 66, which corresponds to the height 6767 inches. So the mode of this set of heights is 6767 inches.

Some data sets do not have a mode because no value appears more than any other. And some data sets have more than one mode. In a given set, if two or more data values have the same highest frequency, we say they are all modes.

The ages of the students in a statistics class are: 19, 20, 23, 23, 38, 21, 19, 21, 19, 21, 20, 43, 20, 23, 17, 21, 21, 20, 29, 18, 28. What is the mode?

Students listed the number of members in their household: 6, 2, 5, 6, 3, 7, 5, 6, 5, 3, 4, 4, 5, 7, 6, 4, 5, 2, 1, 5. What is the mode?

Use the basic definition of probability

The probability of an event tells us how likely that event is to occur. We usually write probabilities as fractions or decimals.

For example, picture a fruit bowl that contains five pieces of fruit — three bananas and two apples. If you want to choose one piece of fruit to eat for a snack and don’t care what it is, there is a 35\tfrac{3}{5} probability you will choose a banana, because there are three bananas out of the total of five pieces of fruit. The probability of an event is the number of favorable outcomes divided by the total number of outcomes:

Probability of an event=number of favorable outcomestotal number of outcomes\text{Probability of an event} = \frac{\text{number of favorable outcomes}}{\text{total number of outcomes}}Probability of choosing a banana=35\text{Probability of choosing a banana} = \frac{3}{5}

Probability. The probability of an event is the number of favorable outcomes divided by the total number of outcomes possible:

Probability=number of favorable outcomestotal number of outcomes\text{Probability} = \frac{\text{number of favorable outcomes}}{\text{total number of outcomes}}

Converting the fraction 35\tfrac{3}{5} to a decimal, we would say there is a 0.60.6 probability of choosing a banana. This basic definition of probability assumes that all the outcomes are equally likely to occur.

Example. The ski club is holding a raffle to raise money. They sold 100100 tickets. All of the tickets are placed in a jar. One ticket will be pulled out of the jar at random, and the winner will receive a prize. Cherie bought one raffle ticket. (a) Find the probability she will win the prize. (b) Convert the fraction to a decimal.

(a) There is 11 favorable outcome (Cherie has 11 ticket) out of 100100 total outcomes:

Probability Cherie wins=1100\text{Probability Cherie wins} = \frac{1}{100}

(b) Convert the fraction to a decimal: Probability=0.01\text{Probability} = 0.01.

Ignaly is attending a fashion show where the guests are seated at tables of ten. One guest from each table will be selected at random to receive a door prize. Find the probability Ignaly will win the door prize for her table. Enter as a fraction.

Hoang is among 20 people available to sit on a jury. One person will be chosen at random from the 20. Convert the probability that Hoang will be chosen to a decimal.

Example. Three women and five men interviewed for a job. One of the candidates will be offered the job. (a) Find the probability the job is offered to a woman. (b) Convert the fraction to a decimal.

(a) The number of favorable outcomes is 33 (three women), and the total number of outcomes is 88 (eight people interviewed):

Probability=38\text{Probability} = \frac{3}{8}

(b) Convert the fraction to a decimal: Probability=0.375\text{Probability} = 0.375.

A bowl of Halloween candy contains 5 chocolate candies and 3 lemon candies. Tanya will choose one piece of candy at random. Find the probability Tanya will choose a chocolate candy. Enter as a fraction.

Dan has 2 pairs of black socks and 6 pairs of blue socks. He will choose one pair at random to wear tomorrow. Convert the probability Dan will choose a pair of black socks to a decimal.

Key terms

mean — the arithmetic average of a set of nn numbers, found by dividing the sum of the values by nn. median — the middle value of a set of data (or the mean of the two middle values, when there is an even number of values). mode — the value in a set of numbers with the highest frequency. frequency — the number of times a value occurs in a data set. probability — the number of favorable outcomes divided by the total number of possible outcomes.


This section is adapted from Prealgebra 2e, Section 5.5: Averages and Probability by Lynn Marecek, MaryAnne Anthony-Smith, and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: recreated the calendar figure as a plain list of running distances and the frequency tables as markdown tables; omitted the Be Prepared quiz, Media links, and end-of-section exercises; and converted the practice problems (“Try Its”) into interactive exercises with instant feedback.