Skip to content
Tutorials Center
My learning

Topics

Lesson 16 of 37 ยท Probability Basics

Sample Spaces and Counting Outcomes

List every possible outcome with sample space diagrams, two-way tables and tree diagrams, then use them to find probabilities for coins, dice and spinners.

Before you can find a probability, you need to know all the possible outcomes. The complete list is called the sample space. A careful listing prevents the most common probability mistake: missing outcomes or counting some twice.

Listing the sample space

For one coin toss the sample space is {H, T}. For two coin tosses it is {HH, HT, TH, TT}. Four outcomes, not three. "One head and one tail" can happen in two ways, HT or TH, and both must be listed.

For three tosses there are 2 ร— 2 ร— 2 = 8 outcomes. In general, if one stage has a outcomes and another has b, together there are a ร— b outcomes (the multiplication principle).

Python List and count outcomes of coin tosses

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Two-way tables for two dice

When two experiments are combined, such as two dice, a two-way table (sample space diagram) shows all 36 equally likely pairs. Rows are the first die, columns the second, and each cell holds the sum.

+ 1 2 3 4 5 6
1 2 3 4 5 6 7
2 3 4 5 6 7 8
3 4 5 6 7 8 9
4 5 6 7 8 9 10
5 6 7 8 9 10 11
6 7 8 9 10 11 12

Counting cells: the sum 7 appears 6 times, so P(sum = 7) = 6/36 = 1/6. The sum 2 appears once, P = 1/36. The sum 12 also appears once.

Python Distribution of the sum of two dice

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Notice the sums are not equally likely, even though the 36 pairs are. That is why you must list the pairs first, then count.

Tree diagrams

A tree diagram shows outcomes stage by stage, with branches for each choice. They become essential in the next chapter, but they also list sample spaces. Here is a tree for two tosses of a coin.

flowchart LR
  S["Start"] --> H1["H"]
  S --> T1["T"]
  H1 --> HH["HH"]
  H1 --> HT["HT"]
  T1 --> TH["TH"]
  T1 --> TT["TT"]

Each path from left to right is one outcome. Four paths give four outcomes.

Outcomes with different structures

  • Choosing a meal: 3 starters and 4 mains give 3 ร— 4 = 12 possible meals.
  • Picking a PIN: a 4-digit code with digits 0 to 9 allowed to repeat has 10 ร— 10 ร— 10 ร— 10 = 10,000 possibilities, so a random guess has probability 1/10,000.
  • A spinner followed by a coin: if the spinner has 5 sectors, 5 ร— 2 = 10 outcomes.
Python Multiplication principle

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Be systematic. List outcomes in a fixed order (all that start with H, then all that start with T) so you do not forget any. Check that the count matches the multiplication principle.

Common mistakes

  • Treating "HT" and "TH" as the same outcome. They are different, because the two coins are different.
  • Assuming that all events are equally likely. Equal likelihood applies to the basic outcomes, not necessarily to events such as "sum = 7".
  • Forgetting the denominator is the total number of outcomes, not the number of different results.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. How many outcomes are there when a coin is tossed three times?

    2 ร— 2 ร— 2 = 8.
  2. 2. Two dice are rolled. What is the probability that the sum is 5?

    The pairs (1,4), (2,3), (3,2), (4,1) give 4 outcomes, and 4/36 = 1/9.
  3. 3. A menu has 5 desserts and 3 drinks. How many dessert-and-drink combinations are there?

    By the multiplication principle, 5 ร— 3 = 15.
  4. 4. Which sum has the greatest probability with two fair dice?

    Seven can be made in six ways, more than any other sum.

Summary

  • The sample space is the complete list of possible outcomes; list it systematically.
  • Two-way tables suit two stages (such as two dice); tree diagrams show stage-by-stage paths.
  • The multiplication principle: stages with a and b outcomes give a ร— b combined outcomes.
  • Equal likelihood belongs to basic outcomes; events such as "sum = 7" can have different probabilities.

Next: Relative Frequency and Experiments