5.0.4: Counting
( \newcommand{\kernel}{\mathrm{null}\,}\)
Probability using Permutations and Combinations
We can use permutations and combinations to help us answer more complex probability questions
Example 34
A 4 digit PIN number is selected. What is the probability that there are no repeated digits?
Solution
There are
To have no repeated digits, all four digits would have to be different, which is selecting without replacement. We could either compute
The probability of no repeated digits is the number of 4 digit PIN numbers with no repeated digits divided by the total number of 4 digit PIN numbers. This probability is
Example 35
In a certain state's lottery, 48 balls numbered 1 through 48 are placed in a machine and six of them are drawn at random. If the six numbers drawn match the numbers that a player had chosen, the player wins $1,000,000. In this lottery, the order the numbers are drawn in doesn’t matter. Compute the probability that you win the million-dollar prize if you purchase a single lottery ticket.
Solution
In order to compute the probability, we need to count the total number of ways six numbers can be drawn, and the number of ways the six numbers on the player’s ticket could match the six numbers drawn from the machine. Since there is no stipulation that the numbers be in any particular order, the number of possible outcomes of the lottery drawing is
Example 36
In the state lottery from the previous example, if five of the six numbers drawn match the numbers that a player has chosen, the player wins a second prize of $1,000. Compute the probability that you win the second prize if you purchase a single lottery ticket.
Solution
As above, the number of possible outcomes of the lottery drawing is
Try it Now 9
A multiple-choice question on an economics quiz contains 10 questions with five possible answers each. Compute the probability of randomly guessing the answers and getting 9 questions correct.
- Answer
-
There are
different ways the exam can be answered. There are 10 possible locations for the one missed question, and in each of those locations there are 4 wrong answers, so there are 40 ways the test could be answered with one wrong answer. chance
Example 37
Compute the probability of randomly drawing five cards from a deck and getting exactly one Ace.
Solution
In many card games (such as poker) the order in which the cards are drawn is not important (since the player may rearrange the cards in his hand any way he chooses); in the problems that follow, we will assume that this is the case unless otherwise stated. Thus we use combinations to compute the possible number of 5-card hands,
For the numerator, we need the number of ways to draw one Ace and four other cards (none of them Aces) from the deck. Since there are four Aces and we want exactly one of them, there will be
Putting this all together, we have
Example 38
Compute the probability of randomly drawing five cards from a deck and getting exactly two Aces.
Solution
The solution is similar to the previous example, except now we are choosing 2 Aces out of 4 and 3 non-Aces out of 48; the denominator remains the same:
It is useful to note that these card problems are remarkably similar to the lottery problems discussed earlier.
Try it Now 10
Compute the probability of randomly drawing five cards from a deck of cards and getting three Aces and two Kings.
- Answer
-
P(\text {three Aces and two Kings})=\frac{\left(_{4} C_{3}\right)\left(_{4} C_{2}\right)}{_{52} C_{5}}=\frac{24}{2598960} \approx 0.0000092
Birthday Problem
Let's take a pause to consider a famous problem in probability theory:
Suppose you have a room full of 30 people. What is the probability that there is at least one shared birthday?
Take a guess at the answer to the above problem. Was your guess fairly low, like around 10%? That seems to be the intuitive answer (
Example 39
Suppose three people are in a room. What is the probability that there is at least one shared birthday among these three people?
Solution
There are a lot of ways there could be at least one shared birthday. Fortunately there is an easier way. We ask ourselves “What is the alternative to having at least one shared birthday?” In this case, the alternative is that there are no shared birthdays. In other words, the alternative to “at least one” is having none. In other words, since this is a complementary event,
We will start, then, by computing the probability that there is no shared birthday. Let's imagine that you are one of these three people. Your birthday can be anything without conflict, so there are 365 choices out of 365 for your birthday. What is the probability that the second person does not share your birthday? There are 365 days in the year (let's ignore leap years) and removing your birthday from contention, there are 364 choices that will guarantee that you do not share a birthday with this person, so the probability that the second person does not share your birthday is
We want the second person not to share a birthday with you and the third person not to share a birthday with the first two people, so we use the multiplication rule:
and then subtract from 1 to get
This is a pretty small number, so maybe it makes sense that the answer to our original problem will be small. Let's make our group a bit bigger.
Example 40
Suppose five people are in a room. What is the probability that there is at least one shared birthday among these five people?
Solution
Continuing the pattern of the previous example, the answer should be
Note that we could rewrite this more compactly as
which makes it a bit easier to type into a calculator or computer, and which suggests a nice formula as we continue to expand the population of our group.
Example 41
Suppose 30 people are in a room. What is the probability that there is at least one shared birthday among these 30 people?
Solution
Here we can calculate
which gives us the surprising result that when you are in a room with 30 people there is a 70% chance that there will be at least one shared birthday!
If you like to bet, and if you can convince 30 people to reveal their birthdays, you might be able to win some money by betting a friend that there will be at least two people with the same birthday in the room anytime you are in a room of 30 or more people. (Of course, you would need to make sure your friend hasn't studied probability!) You wouldn't be guaranteed to win, but you should win more than half the time.
This is one of many results in probability theory that is counterintuitive; that is, it goes against our gut instincts. If you still don't believe the math, you can carry out a simulation. Just so you won't have to go around rounding up groups of 30 people, someone has kindly developed a Java applet so that you can conduct a computer simulation. Go to this web page: http://statweb.stanford.edu/~susan/surprise/Birthday.html, and once the applet has loaded, select 30 birthdays and then keep clicking Start and Reset. If you keep track of the number of times that there is a repeated birthday, you should get a repeated birthday about 7 out of every 10 times you run the simulation.
Try it Now 11
Suppose 10 people are in a room. What is the probability that there is at least one shared birthday among these 10 people?
- Answer
-


