Lesson 10.4 · Data and Probability
Counting outcomes
To find a probability, you need to know how many outcomes there are. Listing them works when there are only a few, but a -digit phone passcode has thousands of possibilities. In this lesson you'll learn to count outcomes without listing every one, using tree diagrams and a single multiplication rule.
Tree diagrams
A tree diagram shows every outcome of a process that happens in stages. Each stage branches into all of its possible choices, and each complete path is one outcome.
Worked example: Building a sandwich
A deli offers breads (white, wheat, rye) and fillings (turkey, ham, tuna, veggie). How many different sandwiches with one bread and one filling are possible?
Branch on the bread first, then on the filling.
- White: turkey, ham, tuna, veggie
- Wheat: turkey, ham, tuna, veggie
- Rye: turkey, ham, tuna, veggie
Each of the breads has branches, so there are sandwiches.
The tree shows why multiplying works: every choice at the first stage gets the same number of branches at the next stage.
The Fundamental Counting Principle
Fundamental Counting Principle
If one choice can be made in ways and a second choice can then be made in ways, the two choices together can be made in ways. For more stages, keep multiplying:
This saves a lot of drawing. A lunch special with breads, fillings and drinks has possible meals, and you don't need to draw branches.
Worked example: Locker codes
A locker code uses digits, each from to .
- How many codes are possible if digits can repeat?
- How many codes are possible if no digit can be used twice?
Solutions.
- Each of the three positions has choices: codes.
- The first digit has choices. Once it's used, the second has only , and the third has : codes.
Common mistake
Read carefully to see whether choices can repeat. If they can, every stage has the same number of choices. If they can't, the number of choices drops by one at each stage.
Arrangements
An arrangement puts items in order. Because each item can be used only once, the choices shrink at each step.
Worked example: Books on a shelf and a race
- In how many ways can you arrange different books on a shelf?
- Eight runners are in a race. In how many ways can first, second and third place be awarded?
Solutions.
- There are choices for the first spot, then , then , then , then : ways.
- There are choices for first place, for second and for third: ways.
A product like is written and read " factorial." In general, is the number of ways to arrange different items in a row.
Definition
Factorial
For a whole number , . For example, .
Counting to find probability
Once you can count outcomes, probability follows: favorable outcomes over total outcomes.
Worked example: A random arrangement
The letters A, B, C and D are placed in a random order. What is the probability that they end up in alphabetical order?
There are possible orders, and only one of them is ABCD. The probability is .
What is the probability that the arrangement starts with A? If A is fixed in the first spot, the other letters can be arranged in ways. So the probability is , which makes sense: each of the letters is equally likely to come first.
Tip
When a stage has a restriction (like "the code must be odd" or "the first digit can't be "), fill in that stage first, then count the others.
Practice
Jordan has shirts and pairs of pants. How many different outfits of one shirt and one pair of pants can he make?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A pizza shop offers crusts, sauces and toppings. How many different pizzas can you order with one crust, one sauce and one topping?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A coin is flipped times, and the sequence of heads and tails is recorded. How many different sequences are possible?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
In how many ways can the letters of the word MATH be arranged? (The arrangements don't have to be real words.)
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A code is made of digits chosen from , and no digit can be used twice. How many codes are possible?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A club has members. In how many ways can it choose a president, a vice president and a secretary, if no one can hold two offices?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A bike lock has dials, each with the digits to . If you guess a combination at random, what is the probability that you open the lock on your first try?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
How many three-digit numbers (from to ) are odd and have no repeated digits?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.