Lots of problems in probability are really problems in creative counting. This is best seen through examples, so this page contains a variety of examples for you to browse.
I suggest looking through some solutions on your own to get a sense of how to solve these sorts of problems, but also saving some of these for you to attempt independently.
There are often many ways to solve these sorts of problems. By no means do you have to use the same solution strategies as the ones listed here, but you should ultimately get the same final answer regardless of which method you use.
Problem 1
If number is chosen at random from 0–999, what is the probability that the number chosen contains an odd number of odd digits?
Solution 1
First, let’s take note of some key facts.
- For the digits 0–9, there are five even digits (0, 2, 4, 6, and 8) and five odd digits (1, 3, 5, 7, and 9).
- For any given three digit number, an odd number of the three digits will be odd if either
- exactly one of the three digits are odd or
- all of the three digits are odd.
- Important: the numbers 0–999 can be all regarded as three-digit numbers if we allow leading zeroes (this means that we write the numbers as 000, 001, 002, …, 998, 999). From this information, we can explore two cases to determine the number of numbers 000–999 that have an odd number of odd digits.
Case 1: only one of the three digits are odd In this case, the odd digit will appear in
- the first position,
- the second position, or
- the third position.
Let’s first tackle the case where the odd digit appears in the first position. There are five possibilities for this first digit. The remaining digits will be even and hence each also have five possibilities each. Hence, the number of three-digit numbers with an odd digit in the first position only is . Through similar reasoning, we can determine that the number of numbers with only one odd digit in either the second position or the third position are each also . Hence, the number of numbers in case 1 is
Case 2: all three digits are odd In this situation, each digit has give possibilities. So, the number of three-digit numbers wherein all the digits are odd is also . This covers case 2.
The total number of numbers from case 1 and case 2 are . Since there are numbers in the range 0–999, the probability of choosing a number from either case 1 or case 2 is hence
Problem 2
If number is chosen at random from 0–999, what is the probability that the number chosen contains three distinct digits?
Solution 2
Similar to the previous problem, let’s regard all numbers in the range 0–999 as being three digit numbers by allowing leading zeroes (000, 001, 002, …, 998, 999). Going left to right, digit by digit, we have 10 possibilities for the first digit. Once this digit is chosen and since we are restricted to three-digit numbers that don’t feature repetitions of a single digit, we have nine choices for the second digit and then by the same reasoning eight choices for the third digit. This means overall that we can construct such numbers. Hence, the probability is
Problem 3
A 5-letter string is chosen uniformly at random from all strings formed using the 26 letters of the alphabet with no repeated letters. What is the probability that exactly one of the letters is a vowel? (Use the five vowels
a,e,i,o, andufor this problem.)
Solution 3
Let’s begin by first determining the number of 5-letter strings that can be formed with no repeated letters, without regard for the number of vowels that the string has. There are 26 possibilities for the first letter in the string. Since the second letter in the string is not allowed to be the same as the first letter in the string, this second letter is left with 25 possibilities. Continuing in this way, the total number of strings is .
Let’s now focus on strings that have only exactly one vowel. There are five cases:
- Case 1: the vowel appears in the first position
- Case 2: the vowel appears in the second position
- …
- Case 5: the vowel appears in the fifth position
Focusing first only on Case 1, we have five possibilities for the first letter. The second letter cannot be a vowel, so there are 21 possibilities for this second letter. The third letter cannot match the second so there are 20 possibilities. Continuing this way, the total number of strings for Case 1 is .
Using similar reasoning, one can determine that the number of strings in Cases 2–5 are each also . Hence, the number of strings with exactly one vowel is .
The probability is thus
Problem 4
A group of 7 people is randomly divided into one team of 3 and one team of 4. What is the probability that Alice and Bob, two of the people in the original group of seven, end up on different teams?
Solution 4
Let’s first determine the number of ways to divide the teams. Note that once the team of 3 is chosen, the team of 4 is uniquely determined. So, if we determine the number of ways to choose the team of 3, that resulting number is hence also the number of ways to divide the 7 people into one team of 3 and one team of 4.
When choosing the team of 3, there are 7 choices of people for the first person, 6 choices of people for the second person, and 5 choices of people for the last person. However, the people chosen in this team can be reordered without affecting the team itself. Since three people can be arranged into orderings, this means that we are sextuple-counting each of the teams under this strategy. Hence, there are teams of 3 we can construct. This means that is also the number of ways we can divide the 7-person team into a team of 3 and a team of 4.
Note
The value that we just computed is also known as a combination, specifically it’s “7 choose 3,” written in math either as or . Using the formula for combinations, one could have computed
Now, let’s figure out how many ways there are to divide up the teams such that Alice and Bob are on different teams. There are two cases.
- Case 1: Alice is in the group of 3 and Bob is in the group of 4.
- Case 2: Bob is in the group of 3 and Alice is in the group of 4.
Let’s focus first on Case 1. Here, Alice is in the group of 3. Once the other two people in Alice’s group is established, then Bob’s group immediately is determined. The other 2 people in Alice’s group of course can be neither Alice or Bob so there are only 5 choices of people to join Alice’s group of 3. The number of ways for an additional 2 people to join Alice in her group of 3 is hence , where I have used the formula for combinations as described in the box above.
For Case 2, the same logic can be applied but with Alice and Bob swapped, so in this case there are also possible ways to form the groups.
This yields a grand total of ways to form a group of 3 and a group of 4 with Alice and Bob in different groups. From this, the probability can now be computed.
Problem 5
Three balls are randomly drawn without replacement from a bag containing 4 red balls, 3 blue balls, and 2 green balls. What is the probability that the sample contains balls of exactly two different colors?
Solution 5
Let’s begin by determining the number of ways to pull balls from the bag. There are nine balls in total and each combination of three balls removed from the bag occurs with equal probability. The number of ways to do this is “9 choose 3,” which can be computed via the formula for combinations as follows.
Now, we have three cases.
- Case 1: the two matching balls in the chosen set of three balls are red
- Case 2: the two matching balls in the chosen set of three balls are blue
- Case 3: the two matching balls in the chosen set of three balls are green
Let’s focus on the Case 1. The bag has four red balls and five non-red balls. We must count the number of combinations of three balls that fall under case 1. First, let’s count the number of ways to pull out two red balls from our available four. This value is “4 choose 2,” whose value is (details of computation are shown below). Then, let’s count the number of ways to pull out one non-red ball from five non-red balls. This value is “5 choose 1,” whose value is just . Multiplying these two values together provides the number of combinations that fall under case 1.
Moving on to the Case 2, the bag has three blue balls and six non-blue balls. Let’s compute the number of combinations using the same strategy as case 1.
Finally in Case 3, the bag has two green balls and seven non-green balls. Let’s also compute the number of combinations using the same strategy as case 1.
The total number of ways, then, to choose the balls such that exactly two of the balls match is hence From this, the probability can then be computed.
Problem 6
Two dice are rolled. What is the probability that the sum is at least 10 or at least one die shows a 6?
Solution 6
For a problem like this, it may be easiest to visualize all of the die tosses in a table form. Here, each pair represents a possible toss of the dice, with representing the value shown on the first die and representing the value shown on the second die. Each entry in the table has an equal liklihood of being rolled.
I’ve bolded all entries where the sum is at least 10 or at least one die shows a 6.
(1,1) (1,2) (1,3) (1,4) (1,5) (1,6) (2,1) (2,2) (2,3) (2,4) (2,5) (2,6) (3,1) (3,2) (3,3) (3,4) (3,5) (3,6) (4,1) (4,2) (4,3) (4,4) (4,5) (4,6) (5,1) (5,2) (5,3) (5,4) (5,5) (5,6) (6,1) (6,2) (6,3) (6,4) (6,5) (6,6) Based on the table, we can see that out of entries are bolded. Thus, the probability is