Skip to content
Combinatorics · Chapter 2

Probability

Count equally likely outcomes, decide whether order matters, multiply independent chances and follow probability trees when one event changes the next.

You'll need
open on YouTube
2.10%

Probability Basics

In this section you will be able to find a probability by counting equally likely outcomes: desired over total.

Roll two dice. What fraction of the 36 outcomes give an even sum?

Every probability in this chapter starts the same way. List the equally likely outcomes, count the ones you want, and divide by the total.

Look:the outcomes must be equally likely. “Sum is 2” and “sum is 7” are two sums, but 7 happens six times as often.

Exploreplay first, formulas later

6 × 6 = 36 rolls; Sum is even: 18/36 = 1/2

Die 1 (6) × Die 2 (6) = 36 equally likely rolls

123456123456234567345678456789567891067891011789101112Die 1 down the side, Die 2 across the top.
1836=12\frac{18}{36} = \frac{1}{2}

Sum is even: 18 of 36 rolls, probability 1/2

Name it

Definition 2.1.1 · Probability

Probability is the chance something occurs.

Theorem 2.1.2 · Probability

When all outcomes are equally likely,

probability=Total number of Desired OutcomesTotal Outcomes.\text{probability} = \frac{\text{Total number of Desired Outcomes}}{\text{Total Outcomes}}.

Watch itpredict, then reveal

Example 2.1

AIME

In the array of 13 squares shown below, 8 squares are colored red, and the remaining 5 squares are colored blue. If one of all possible such colorings is chosen at random, the probability that the chosen colored array appears the same when rotated 90 degrees around the central square is 1n\frac{1}{n}, where nn is a positive integer. Find nn.

  1. 1

    What must happen so that the same coloring appears after a 90∘90^\circ rotation?

    Predict first:
    Click a choice or type its letter (A–E).

Try it

Problem 2.6.1

Two 6-sided dice are rolled. What is the probability that the sum of the two numbers is even?

Contest cornerreal contest problems

Problem 2.6.5

AMC 10

Two different numbers are selected at random from {1,2,3,4,5}\{1, 2, 3, 4, 5\} and multiplied together. What is the probability that the product is even?

Problem 2.6.8

AMC 10/12

The numbers 1,2,…,91, 2, \dots, 9 are randomly placed into the 9 squares of a 3×33 \times 3 grid. Each square gets one number, and each of the numbers is used once. What is the probability that the sum of the numbers in each row and each column is odd?

Problem 2.6.13

AMC 10

A box contains 5 chips, numbered 1, 2, 3, 4, and 5. Chips are drawn randomly one at a time without replacement until the sum of the values drawn exceeds 4. What is the probability that 3 draws are required?

Checkpoint for section 2.1

Get 2 of 3 right to master this section. One try each, no hints.
1

A bag holds 3 red and 5 blue marbles. You draw one at random. What is the probability it is red?

2

Two fair dice are rolled. What is the probability that the sum is 10?

3

A whole number from 1 to 20 is chosen at random. What is the probability that it is a multiple of 3?

2.20%

Distinguishability

In this section you will be able to decide whether to count with order or without, and spot cases that aren't equally likely.

Pick 2 different cards from cards numbered 1 to 10. Is the pair “3 then 7” different from “7 then 3”? For the probability, it doesn’t matter, as long as you’re consistent.

Counting ordered pairs multiplies the top and the bottom of the fraction by the same 2!2!, so it cancels. The trap is listing cases that are not equally likely, like the sums 2+22 + 2 and 1+31 + 3.

Exploreplay first, formulas later

Unordered: product is odd in 10 of 45 = 2/9

Pick 2 different cards from 1, 2, 3, 4, 5, 6, 7, 8, 9, 10. Light: the product is odd.

  • {1, 2}
  • {1, 3}
  • {1, 4}
  • {1, 5}
  • {1, 6}
  • {1, 7}
  • {1, 8}
  • {1, 9}
  • {1, 10}
  • {2, 3}
  • {2, 4}
  • {2, 5}
  • {2, 6}
  • {2, 7}
  • {2, 8}
  • {2, 9}
  • {2, 10}
  • {3, 4}
  • {3, 5}
  • {3, 6}
  • {3, 7}
  • {3, 8}
  • {3, 9}
  • {3, 10}
  • {4, 5}
  • {4, 6}
  • {4, 7}
  • {4, 8}
  • {4, 9}
  • {4, 10}
  • {5, 6}
  • {5, 7}
  • {5, 8}
  • {5, 9}
  • {5, 10}
  • {6, 7}
  • {6, 8}
  • {6, 9}
  • {6, 10}
  • {7, 8}
  • {7, 9}
  • {7, 10}
  • {8, 9}
  • {8, 10}
  • {9, 10}
1045=29\frac{10}{45} = \frac{2}{9}

Counting order instead gives 2090=29\frac{20}{90} = \frac{2}{9}. Same answer!

Order ignored: product is odd in 10 of 45 cases, 2/9

Name it

Remark 2.2.1

In probability problems, whether you decide to multiply for order or not is up to you, as both will give the same probability.

Remark 2.2.2

If you decide not to multiply for order, make sure the number of orderings is the same in every case. In Example 2.2, every pair had 22 orderings. The same is true for groups of 55, which always have 5!5! orderings. But in Example 2.3, the two cases had different numbers of orderings, so leaving out order doesn't work there.

Watch itpredict, then reveal

Example 2.2

I have cards numbered from 1 to 10. What is the probability I pick a pair of 2 different cards that have an odd product?

  1. 1

    What must happen for the cards to have an odd product?

    Predict first:
    Click a choice or type its letter (A–E).

Example 2.3

The sum of 2 positive integers is 4. Find the probability that one of the integers is a 2.

  1. 1

    List the cases for the two integers.

Example 2.4

AIME

A deck of forty cards consists of four 1's, four 2's, ..., and four 10's. A matching pair (two cards with the same number) is removed from the deck. Given that these cards are not returned to the deck, let mn\frac{m}{n} be the probability that two randomly selected cards also form a pair, where mm and nn are relatively prime positive integers. Find m+nm + n.

  1. 1

    After the pair is removed, how many cards are left?

    Predict first:
open on YouTube

Example 2.5

AMC 10

Each of the 20 balls is tossed independently and at random into one of the 5 bins. Let pp be the probability that some bin ends up with 3 balls, another with 5 balls, and the other three with 4 balls each. Let qq be the probability that every bin ends up with 4 balls. What is pq\frac{p}{q}?

  1. 1

    All 5205^{20} tosses are equally likely, so pp and qq share a denominator. What do we compare instead?

open on YouTube

Contest cornerreal contest problems

Problem 2.6.4

AMC 10

Ms. Carr asks her students to read any 5 of the 10 books on a reading list. Harold randomly selects 5 books from this list, and Betty does the same. What is the probability that there are exactly 2 books that they both select?

Problem 2.6.9

AMC 10

Two cubical dice each have removable numbers 1 through 6. The twelve numbers on the two dice are removed, put into a bag, then drawn one at a time and randomly reattached to the faces of the cubes, one number to each face. The dice are then rolled and the numbers on the two top faces are added. What is the probability that the sum is 7?

Problem 2.6.12

AMC 12

Let SS be the set of permutations of the sequence 1,2,3,4,51, 2, 3, 4, 5 for which the first term is not 11. A permutation is chosen randomly from SS. The probability that the second term is 22, in lowest terms, is ab\frac{a}{b}. What is a+ba + b?

Problem 2.6.14

AMC 10

Forty slips are placed into a hat, each bearing a number 1, 2, 3, 4, 5, 6, 7, 8, 9, or 10, with each number entered on four slips. Four slips are drawn from the hat at random and without replacement. Let pp be the probability that all four slips bear the same number. Let qq be the probability that two of the slips bear a number aa and the other two bear a number b≠ab \ne a. What is the value of q/pq/p?

Checkpoint for section 2.2

Get 2 of 3 right to master this section. One try each, no hints.
1

Two different numbers are chosen at random from 1,2,3,4,5,61, 2, 3, 4, 5, 6. What is the probability that both are even?

2

Three different cards are drawn from cards numbered 1 to 7. What is the probability that all three are odd?

3

Two fair coins are tossed. What is the probability of one head and one tail?

2.30%

Probability of Independent Events

In this section you will be able to multiply the probabilities of independent events.

Two people roll two strange dice. One die has faces 1, 1, 2, 6, 15, 30 and the other 1, 2, 4, 18, 28, 44. How often is the product a multiple of 24?

Two events are independent when the result of one doesn’t change the chances of the other. Then you don’t need the whole grid: find each probability on its own and multiply.

Exploreplay first, formulas later

6 × 6 = 36 equally likely rolls

Person A (6) × Person B (6) = 36 equally likely rolls

12418284411261530Person A down the side, Person B across the top.
Pick a condition to light up the cells.

6 × 6 = 36 equally likely rolls. Pick a condition.

Name it

Remark 2.3.1

To find the probability that two independent events both happen (the result of one doesn't depend on the other), find the probability of each event on its own and multiply them.

3 dice: P(at least one 6) = 1 − (5/6)^3 = 1 − 125/216 = 91/216 ≈ 42.1%

number of dice3
?
?
?
P(no 6) = (56)3\left(\tfrac{5}{6}\right)^{3}
P(at least one 6) ≈ 42.1%
0%50%100%123456789101112

3 dice: P(no 6) = 125/216; P(at least one 6) = 91/216 ≈ 42.1%

Independent dice: the chance that none of them shows a 6 is (5/6) × (5/6) × (5/6).

Watch itpredict, then reveal

Example 2.6

Omega Learn

Person A rolls a die with the numbers 1, 1, 2, 6, 15, 30 and Person B rolls a die with the numbers 1, 2, 4, 18, 28, 44. What is the probability that the product of the 2 numbers is a multiple of 24?

Sample-space grid (its total is revealed at the end of the example)

Person A (6) × Person B (6) = 36 equally likely rolls

12418284411261530Person A down the side, Person B across the top.
Pick a condition to light up the cells.

6 × 6 = 36 equally likely rolls. Pick a condition.

  1. 1

    Factor 2424. What does the product need?

open on YouTube

Example 2.7

What is the probability that the product of 4 dice rolls is a multiple of 648?

  1. 1

    Factor 648648.

open on YouTube

Contest cornerreal contest problems

Problem 2.6.6

AMC 10

A fair 6-sided die is repeatedly rolled until an odd number appears. What is the probability that every even number appears at least once before the first occurrence of an odd number?

Problem 2.6.7

AMC 12

Two fair dice, each with at least 6 faces, are rolled. On each face of each die is printed a distinct integer from 1 to the number of faces on that die, inclusive. The probability of rolling a sum of 7 is 34\frac{3}{4} of the probability of rolling a sum of 10, and the probability of rolling a sum of 12 is 112\frac{1}{12}. What is the least possible number of faces on the two dice combined?

Problem 2.6.11

AMC 12

Tina randomly selects two distinct numbers from the set {1,2,3,4,5}\{1, 2, 3, 4, 5\}, and Sergio randomly selects a number from the set {1,2,…,10}\{1, 2, \dots, 10\}. What is the probability that Sergio's number is larger than the sum of the two numbers chosen by Tina?

Problem 2.6.15

AMC 10/12

A red ball and a green ball are randomly and independently tossed into bins numbered with the positive integers so that for each ball, the probability that it is tossed into bin kk is 2−k2^{-k} for k=1,2,3,…k = 1, 2, 3, \dots. What is the probability that the red ball is tossed into a higher-numbered bin than the green ball?

Problem 2.6.18

AMC 12

Flora the frog starts at 0 on the number line and makes a sequence of jumps to the right. In any one jump, independent of previous jumps, Flora leaps a positive integer distance mm with probability 12m\frac{1}{2^m}. What is the probability that Flora will eventually land at 10?

Checkpoint for section 2.3

Get 2 of 3 right to master this section. One try each, no hints.
1

You flip a fair coin and roll a fair die. What is the probability of heads and a 6?

2

Three fair dice are rolled. What is the probability that none of them shows a 6?

3

Two fair dice are rolled. What is the probability that their product is a multiple of 3?

2.40%

Probability of Dependent Events

In this section you will be able to use a probability tree when the first event changes the chances of the second.

There is a 40% chance of rain on Saturday and a 30% chance on Sunday. But rain on Saturday makes rain on Sunday twice as likely. So the days are not independent.

When events are dependent, multiply along a path of a tree: the first chance, times the second chance given the first happened. Then add the paths you want.

Look:the leaves of a tree always add up to 1. That makes complementary probability easy.

Exploreplay first, formulas later

Leaves 0, 2/5, 0, 3/5; no leaves highlighted

P(rain Sat)4/10
x = P(rain Sun | no rain Sat)0/14

P(rain Sun | rain Sat) = 2x = 0 · P(rain Sun) = 0. We need 3/10.

SaturdaySunday2/5Rain0Rain1No rain3/5No rain0Rain1No rain
Click leaves to add them up

Independent? P(rain Sun | rain Sat) = 0, and P(rain Sun) = 0. Equal, so yes: independent.

Highlighted: none. Total 0. Independent.

Name it

Remark 2.4.1

When events are dependent, the probability that both AA and BB happen is

P(A and B)=P(A)×P(B given that A happened).P(A \text{ and } B) = P(A) \times P(B \text{ given that } A \text{ happened}).

Watch itpredict, then reveal

Example 2.8

AIME

There is a 40%40\% chance of rain on Saturday and a 30%30\% chance of rain on Sunday. However, it is twice as likely to rain on Sunday if it rains on Saturday than if it does not rain on Saturday. The probability that it rains at least one day this weekend is ab\frac{a}{b}, where aa and bb are relatively prime positive integers. Find a+ba + b.

Probability tree (its total is revealed at the end of the example)

P(rain Sat)4/10
x = P(rain Sun | no rain Sat)0/14

P(rain Sun | rain Sat) = 2x = 0 · P(rain Sun) = 0. We need 3/10.

SaturdaySunday2/5Rain0Rain1No rain3/5No rain0Rain1No rain
Add the leaves you need (total hidden for now).

Independent? P(rain Sun | rain Sat) = 0, and P(rain Sun) = 0. Equal, so yes: independent.

Highlighted: none. Total ?. Independent.

  1. 1

    Let xx be the chance of rain on Sunday if it does not rain on Saturday. What is the chance if it does?

open on YouTube

Contest cornerreal contest problems

Problem 2.6.2

AMC 12

A deck of cards has only red cards and black cards. The probability of a randomly chosen card being red is 13\frac{1}{3}. When 4 black cards are added to the deck, the probability of choosing red becomes 14\frac{1}{4}. How many cards were in the deck originally?

Problem 2.6.3

AMC 10

Bob and Alice each have a bag that contains one ball of each of the colors blue, green, orange, red, and violet. Alice randomly selects one ball from her bag and puts it into Bob's bag. Bob then randomly selects one ball from his bag and puts it into Alice's bag. What is the probability that after this process the contents of the two bags are the same?

Problem 2.6.20(additional)

AIME

Jen enters a lottery by picking 4 distinct numbers from S={1,2,3,…,9,10}S = \{1, 2, 3, \dots, 9, 10\}. 4 numbers are randomly chosen from SS. She wins a prize if at least two of her numbers were 2 of the randomly chosen numbers, and wins the grand prize if all four of her numbers were the randomly chosen numbers. The probability of her winning the grand prize given that she won a prize is mn\frac{m}{n} where mm and nn are relatively prime positive integers. Find m+nm + n.

Problem 2.6.21(additional)

AMC 10/12

An urn contains one red ball and one blue ball. A box of extra red and blue balls lies nearby. George performs the following operation four times: he draws a ball from the urn at random and then takes a ball of the same color from the box and returns those two matching balls to the urn. After the four iterations the urn contains six balls. What is the probability that the urn contains three balls of each color?

Checkpoint for section 2.4

Get 2 of 3 right to master this section. One try each, no hints.
1

A bag has 3 red and 2 blue balls. Two balls are drawn without replacement. What is the probability that both are red?

2

Two cards are drawn without replacement from a standard 52-card deck. What is the probability that both are aces?

3

An urn contains one red ball and one blue ball. A box of extra red and blue balls lies nearby. George performs the following operation four times: he draws a ball from the urn at random and then takes a ball of the same color from the box and returns those two matching balls to the urn. After the four iterations the urn contains six balls. What is the probability that the urn contains three balls of each color?

2.50%

Dependent or Independent Events?

In this section you will be able to decide whether one random choice changes the next, and count accordingly.

Mark gets a random seat in a 5 × 5 classroom, then Steve gets another. What is the chance Steve avoids Mark’s row and column?

Steve’s seat depends on Mark’s: Mark’s seat is no longer free. But here the number of bad seats is the same wherever Mark sits, so you can seat Mark first and just count Steve’s options.

Exploreplay first, formulas later

5 × 5 chairs: Steve has 24 seats, 16 not in Mark's row or column, probability 2/3

rows5
columns5

Click a chair to seat Mark. Shaded chairs share his row or column.

1624=23\frac{16}{24} = \frac{2}{3}

Steve has 24 open chairs: 8 in Mark's row or column, 16 safe. Move Mark around: does the answer change?

Mark sits in row 3, column 3. Steve has 24 seats; 8 share Mark's row or column, 16 do not. Probability 2/3.

Watch itpredict, then reveal

Example 2.9

Omega Learn

Mark must choose a seat from a 5×55 \times 5 grid of chairs in the classroom. His enemy Steve does not like Mark, so he wants to choose a seat that is not in the same row or column as Mark. However, to his dismay, the teacher randomly assigns seats. What is the probability that Steve is not sitting in the same row or column as Mark?

Seat grid (its total is revealed at the end of the example)

Click a chair to seat Mark. Shaded chairs share his row or column.

Probability: count, then divide!

Steve has 24 open chairs: 8 in Mark's row or column, 16 safe. Move Mark around: does the answer change?

Mark sits in row 3, column 3. Steve has 24 seats; 8 share Mark's row or column, 16 do not.

  1. 1

    Seat Mark first. How many seats are left for Steve?

    Predict first:
open on YouTube

Checkpoint for section 2.5

Get 2 of 3 right to master this section. One try each, no hints.
1

Mark and Steve are randomly seated in a 3×33 \times 3 grid of chairs. What is the probability that Steve is not in Mark's row or column?

2

Two fair dice are rolled. Are the events "the first die shows 6" and "the sum is 7" independent?

Click a choice or type its letter (A–E).
3

Two cards are drawn one after the other, without replacement, from cards numbered 1 to 5. What is the probability that the second card is a 5?

2.6

Practice Problems

In this section you will be able to mix every tool from this chapter on contest problems.

Time to mix it all up: parity, symmetry, repeated rolls and infinite sums. Each problem has three hints if you get stuck.

Want every problem from this chapter on one page? Open the problem set.

Contest cornerreal contest problems

Problem 2.6.10

AMC 10/12

Each of 2023 balls is randomly placed into one of 3 bins. Which of the following is closest to the probability that each of the bins will contain an odd number of balls?

Click a choice or type its letter (A–E).

Problem 2.6.16

AMC 12

This problem also appears in the book as 2.6.7.

Two fair dice, each with at least 6 faces, are rolled. On each face of each die is printed a distinct integer from 1 to the number of faces on that die, inclusive. The probability of rolling a sum of 7 is 34\frac{3}{4} of the probability of rolling a sum of 10, and the probability of rolling a sum of 12 is 112\frac{1}{12}. What is the least possible number of faces on the two dice combined?

Problem 2.6.17

AMC 10

This problem also appears in the book as 2.6.6.

A fair 6-sided die is repeatedly rolled until an odd number appears. What is the probability that every even number appears at least once before the first occurrence of an odd number?

Problem 2.6.19

AMC 12Challenge

Three balls are randomly and independently tossed into bins numbered with the positive integers so that for each ball, the probability that it is tossed into bin ii is 2−i2^{-i} for i=1,2,3,…i = 1, 2, 3, \dots. More than one ball is allowed in each bin. The probability that the balls end up evenly spaced in distinct bins is pq\frac{p}{q}, where pp and qq are relatively prime positive integers. (For example, the balls are evenly spaced if they are tossed into bins 3, 17, and 10.) What is p+qp + q?