On Probability Rules
Exercise 1: A Product Identification Code
Question: A company creates a product identification code using 3 distinct English letters, followed by 4 distinct nonzero digits.
For example, a code could look like KLM5832.
Assume that every valid code is equally likely to be selected.
Find the probability that a randomly selected code:
begins with a vowel; and
ends with an even digit.
Solution:
We use
The main work is therefore a counting problem.
Step 1: Count all possible codes
The code has 3 distinct letters.
For the first letter, there are 26 choices. For the second letter, there are 25 choices, and for the third letter, there are 24 choices.
Therefore, the number of possible letter parts is
The code also has 4 distinct nonzero digits. The possible digits are
There are 9 choices for the first digit, then 8, then 7, then 6.
Therefore, the number of possible digit parts is
Using the counting principle, the total number of valid codes is
Step 2: Count the favorable codes
The first letter must be a vowel. Using
there are 5 choices for the first letter.
After choosing the first letter, the remaining two letters must still be different. Therefore, there are 25 choices for the second letter and 24 choices for the third letter.
So the number of favorable letter parts is
The last digit must be even. Among the nonzero digits, the even digits are
Therefore, there are 4 choices for the last digit.
Once the last digit is chosen, 8 nonzero digits remain. The first three digit positions can then be filled in
ways.
Thus, the number of favorable digit parts is
The total number of favorable codes is
Step 3: Form the probability
Therefore,
Cancel the common factors:
Therefore,
Why This Method Works
The code is formed in stages, so the counting principle is appropriate.
The restrictions affect specific positions:
begins with a vowelaffects the first letter;ends with an even digitaffects the last digit.
Because letters and digits cannot repeat within their respective parts, the number of choices decreases after each selection.
Note
A common mistake is to use \(26^3\) or \(9^4\).
Those counts allow repeated letters or digits, but the problem requires distinct letters and distinct digits.
Exercise 2: Two Review Workshops
Question: A group of 100 students is preparing for final examinations.
54 students attend a Statistics review workshop.
69 students attend a Programming review workshop.
35 students attend both workshops.
One student is selected at random.
Let \(S\) be the event that the student attends Statistics, and let \(P\) be the event that the student attends Programming.
Find the probability that the selected student:
attends Statistics or Programming, or both;
attends neither workshop; and
attends Programming but not Statistics.
Solution:
Part 1: Statistics or Programming, or both
The word or indicates a union:
We know
The events overlap, so use the general addition rule:
Thus,
Therefore,
Why subtract 35? If we add 54 and 69 directly, the 35 students who attend both workshops are counted twice. Subtracting the intersection once corrects the double counting.
Part 2: Neither workshop
Neither Statistics nor Programming is the complement of
\(S\cup P\).
Therefore,
Therefore,
A count check gives the same result:
so
Part 3: Programming but not Statistics
Programming but not Statistics means
There are 69 students in Programming, but 35 of them also attend Statistics.
Therefore,
students attend Programming only.
Hence,
Therefore,
Reasoning Summary
Words |
Event notation |
Main idea |
|---|---|---|
Statistics or Programming |
\(S\cup P\) |
Add and subtract the overlap |
Neither workshop |
\((S\cup P)^c\) |
Use the complement |
Programming but not Statistics |
\(P\cap S^c\) |
Remove the overlap from \(P\) |
Note
OR does not mean the events must be mutually exclusive.
Here, students can attend both workshops, so the overlap must be handled explicitly.
Exercise 3: Participation in Three Campus Activities
Question: A university surveys 500 students about participation in three campus activities:
\(A\): academic club;
\(S\): sports club;
\(V\): volunteer program.
The survey gives the following information:
Group |
Number of students |
|---|---|
Academic club |
210 |
Sports club |
258 |
Volunteer program |
216 |
Academic and Sports |
122 |
Sports and Volunteer |
83 |
Academic and Volunteer |
97 |
All three activities |
52 |
One student is selected at random.
Find the probability that the student:
participates in Academic but not Sports;
participates in Sports and Volunteer, but not Academic;
participates in at least one of the three activities; and
participates in none of the three activities.
Solution:
Part 1: Academic but not Sports
We want
There are 210 students in \(A\), and 122 of them are also in \(S\).
Therefore,
Hence,
Therefore,
Students who are in Academic and Volunteer but not Sports are still included. The question only excludes Sports.
Part 2: Sports and Volunteer, but not Academic
We want
There are 83 students in \(S\cap V\). Of these, 52 are also in Academic.
Therefore,
Thus,
Therefore,
Part 3: At least one activity
At least one means
Because the three events overlap, use the three-event addition rule:
Using counts first,
Now,
and
Therefore,
Hence,
Therefore,
Why add the three-way intersection back?
Students in all three groups are first counted three times when the individual groups are added. They are then subtracted three times through the pairwise intersections. At that point, they have been counted zero times, so the triple intersection must be added back once.
Part 4: None of the three activities
None is the complement of at least one.
Therefore,
Therefore,
Using counts gives the same result:
so
Reasoning Summary
Words |
Event notation |
Main idea |
|---|---|---|
Academic but not Sports |
\(A\cap S^c\) |
Remove the overlap with Sports |
Sports and Volunteer but not Academic |
\(S\cap V\cap A^c\) |
Remove the triple overlap |
At least one |
\(A\cup S\cup V\) |
Use the three-event addition rule |
None |
\((A\cup S\cup V)^c\) |
Use the complement |