Rosen, Discrete Mathematics and Its Applications, 6th edition
Extra Examples
Section 6.1—An Introduction to Discrete Probability (Part - 1)
p.394, icon at Example 1
#1. A computer password consists of five lower case letters, with repeated letters allowed. Find p(E) where E is the event that the password begins with c.
Solution:
The sample space S has 26^5 elements, corresponding to the number of ways to fill in the following five blanks with lower case letters: . The event E has 26^4 elements, corresponding to the number of ways to fill in the four blanks in c . Thereforep(E) = p(password begins with c) =|E|/|S| = (26^4)/(26^5) = 1 / 26 ≈ 0.038.
Extra Examples
Section 6.1—An Introduction to Discrete Probability (Part - 1)
p.394, icon at Example 1
#1. A computer password consists of five lower case letters, with repeated letters allowed. Find p(E) where E is the event that the password begins with c.
Solution:
The sample space S has 26^5 elements, corresponding to the number of ways to fill in the following five blanks with lower case letters: . The event E has 26^4 elements, corresponding to the number of ways to fill in the four blanks in c . Thereforep(E) = p(password begins with c) =|E|/|S| = (26^4)/(26^5) = 1 / 26 ≈ 0.038.
Note: In place of writing p(E), we often replace E with the English description of E.
p.394, icon at Example 1
#2. A computer password consists of five lower case letters, with repeated letters allowed.
(a) Find p(F1), where F1 is the event that the password contains no vowels.
(b) Find p(F2), where F2 is the event that the password contains only vowels.
Solution:
(a) The set F1 has 21^5
elements because each of the five blanks must be filled in with one of 21 consonants.
Therefore
p(F1) = p(password contains no vowels) = |F1| / |S| = (21^5) / (26^5 ) ≈ 0.344.
(b) The set F2 has 5^5 elements because each of the five blanks must be filled in with one of five vowels. Therefore
p(F2) = p(password contains only vowels) = |F2| / |S| = (5^5) / (26^5) ≈ 0.00026
p.394, icon at Example 1
#3. A professor teaches two sections of a calculus course and gave a quiz to the students in each section.
In Section 1, 8 students out of 35 got a score of 90 or higher. In Section 2, 11 students out of 28 got a score of 90 of higher.
Find the probability that the student:
(a) is in Section 1, if the student is chosen at random from among all 63 students.
(b) is not in Section 1, if the student is chosen at random from among all 63 students.
(c) scored at least 90 on the quiz, if the student is chosen at random from those in Section 1.
(d) is in Section 1 and scored at least 90 on the quiz, if the student is chosen at random.
(e) is in Section 1, if the student is chosen at random from those who scored at least 90 on the quiz.
Solution:
The given information can be displayed in the following table:
| Section 1 | Section 2 |
Score ≥ 90 | 8 | 11 |
score < 90 | 27 | 17 |
(a) Of the 63 students, 35 are in Section 1. Therefore, the probability that the student is in Section 1 is 35/63.
(b) The probability that a randomly chosen student is not in Section 1 is equal to the probability that the student is in Section 2, which is 28/63.
(c) There are 35 students in Section 1. The probability that the student scored at least 90 is 8/35.
(d) Eight students are in Section 1 and scored at least 90 on the quiz. Therefore, the probability that the student is in Section 1 and scored at least 90 on the quiz is 8/63.
(e) The number of students who scored at least 90 on the quiz is 19, and, of these, 8 come from Section 1.
Therefore, the probability that a randomly chosen student comes from Section 1 is 8/19.
p.394, icon at Example 1
#4. You flip a coin twice. Find the following:
(a) p(E) where E is the event of getting heads on the first flip and tails on the second flip.
(b) p(F) where F is the event of getting one head and one tail in the two flips.
Solution:
The sample space for this experiment is S = {H H, H T , T H, T T } where H stands for heads, T for tails, the first letter in each pair is the result of the first flip, and the second letter is the result of the second flip.
(a) The event E = {H T }. Thus p(E) = |E|/|S| = 1/4.
(b) The event F = {H T , T H}. Thus p(F) = |E|/|F| = 2/4 = 1/2.
p.394, icon at Example 1
#5. A tetrahedral die is a regular polyhedron consisting of 4 equilateral triangles, with the four faces
numbered 1, 2, 3, 4. You roll the pair of tetrahedral dice. Find the probability that the sum is: (a) 2, (b) 3,
(c) 4, (d) 5, (e) 6, (f) 7, (g) 8.
Solution:
The sample space consists of the 16 elements:
(1, 1),(1, 2),(1, 3),(1, 4),(2, 1),(2, 2),(2, 3),(2, 4),(3, 1),(3, 2),(3, 3),(3, 4),(4, 1),(4, 2),(4, 3),(4, 4).
Thus, the probabilities are: (a) 1/16, (b) 2/16, (c) 3/16, (d) 4/16, (e) 3/16, (f) 2/16, (g) 1/16.