Two events together · Statistics & Data Science | StemPy Lab
Course 3.1·Lesson 3 of 3
Two events together
To find the chance of two events together, list all the equally likely pairs and count the ones we want. Two dice have 36 pairs, and six of them make a sum of 7. For two coins the pairs are HH, HT, TH and TT. For at least one, find the chance of none and take it from 1. Taking a second marble without putting the first back changes the chances.
about 30 min1 simulation2 practice questions2 Python programs6 questions to check yourself
This lesson is free to read. Enroll free to keep your place and take the tests.
Lesson 3 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
Two dice
Roll two dice and add the numbers. What is the chance of a sum of 7? List all the pairs: the first die can be 1 to 6, and so can the second. That makes 6×6=36 pairs, all equally likely.
A table of the sums of two dice. The rows are the first die, 1 to 6, and the columns are the second die, 1 to 6, so there are 36 equally likely pairs. Each cell shows the sum of its row and column. The six cells where the sum is 7 are highlighted along the diagonal. A note says that six of the 36 pairs make 7, so the probability of a sum of 7 is 6 out of 36, which is 1 out of 6.
Six of the 36 pairs make 7, so P(sum=7)=366=61. A sum of 7 is the most likely. A sum of 2 has only one pair, (1,1).
Try it in Python
Two coins
Toss two coins. The outcomes are HH, HT, TH and TT, all four equally likely. So P(two heads)=41, and P(at least one head)=43.
For events that do not affect each other, there is a short cut: the chance of both is the product of the two chances. For two heads, 0.5×0.5=0.25.
At least one
"At least one six in three rolls" is hard to count directly, because there are many ways. It is easy the other way round: find the chance of no six, and take it from 1.
P(no six in 3 rolls)=(65)3P(at least one six)=1−(65)3≈0.421
You should find that the curve rises fast at first and then flattens, always below 1. With a chance of 0.17 a try, you need about 4 tries for an even chance of at least one success.
The program checks the answer for three rolls with a simulation.
Taking two marbles from the bag
The bag has 3 red marbles among 10. You take two.
If you put the first back, the chances do not change: P(both red)=103×103=0.09.
If you do not put it back, the bag changes. After a red one, 2 red marbles are left among 9: P(both red)=103×92=151≈0.067.
Practise with new numbers
Common mistakes
Listing 11 sums of two dice as equally likely. The 36 pairs are equally likely; the sums are not.
Adding chances for "both". For both of two separate events, multiply.
Counting "at least one" the long way. Take the chance of none from 1.
Forgetting that the bag changes. Without putting back, the second chance is different.
Remember these
List all the equally likely outcomes, then count the ones that you want.
Two dice have 36 pairs. A sum of 7 has the most pairs.
At least one: 1 minus the chance of none.
Without putting back, the second chance changes.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Two coins are tossed. What is the probability of two tails?
What is the probability that two dice add up to 12?
A coin is tossed 3 times. What is the probability of at least one head?
Two cards are drawn from 5 cards numbered 1 to 5, without putting the first back. What is the probability that both are even?
Enroll free in Chance
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.