



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Homework #2 (Covers Modules 6–9) — Solutions
(a) Exactly 2 aces.
Solution:
( 4 2
)( 48 11
)
( 52 13
(b) At least 2 aces. Solution: ∑^4
i=
( 4 i
) ( 48 13 − i
) /
( 52 13
) 2
(c) 8 spades.
Solution:
( 13 8
)( 39 5
)
( 52 13
(d) 8 cards of the same suit.
Solution: 4
( 13 8
)( 39 5
)
( 52 13
(a) Pr(‘6’ comes up at least once). Solution: 1 − Pr(no 6’s appear) = 1 − (5/6)^7 . (b) Pr(each face appears at least once). Solution: Denote the six faces by A,B,C,D,E,F. Thus, we need to find the number of tosses of the form A,A,B,C,D,E,F. We then see that i. The # ways to choose A is 6.
ii. The # ways to place A is
( 7 2
) .
iii. The # ways to permute B,C,D,E,F is 5!.
iv. The # ways to toss the die 7 times is 6^7. Thus, Pr(each face appears at least once) = 6 ·
( 7 2
) · 5!/ 67.
which should help you get around overflow problems. By the way, it turns out that ( 100 50
) = 100891344545564193334812497256. 2
(a) The first two are bad? Solution: 1220 · 1119 = 3395 2 (b) The first two are good? Solution: 208 · 197 = 1495 2 (c) One of each in the first two? Solution: 1 − 3395 − 1495 = 4895 2
Pr(Joe wins) = Pr(Joe wins on 1st roll) + Pr(Joe wins on 3rd roll) + · · · = Pr(Joe hits on 1st roll) + Pr(Joe misses, Fred misses, Joe hits) + · · · = p + (1 − p)(1 − p)p + (1 − p)(1 − p)(1 − p)(1 − p)p + · · ·
= p
∑^ ∞
i=
(1 − p)^2 i
p 1 − (1 − p)^2
=
2 − p
(a) Find Pr(the marble is black). Solution: Let B, W denote black and white respectively, and let I, II denote the selection of Box 1 and Box 2. We use the law of total probability to find
Pr(B) = Pr(B|I)Pr(I) + Pr(B|II)Pr(II)
=
(b) What is the probability that the marble was selected from the first box given that the marble is white? Solution: We use Bayes Theorem to find
Pr(I|W ) =
Pr(W |I)Pr(I) Pr(W |I)Pr(I) + Pr(W |II)Pr(II)
=
1 2 ·^
1 2 1 2 ·^
1 2 +^
1 3 ·^
1 2 = 3 / 5. 2
(a) He selects one at random, and when he flips it, it shows heads. What’s the probability that the coin is fair? Solution: Let F, U denote fair and unfair respectively. We use Bayes to find
Pr(F |H) =
Pr(H|F )Pr(F ) Pr(H|F )Pr(F ) + Pr(H|U )Pr(U )
=
1 2 ·^
1 2 1 2 ·^
1 2 + 1^ ·^
1 2 = 1 / 3. 2
(b) He flips the same coin and it again shows heads. Same question. Solution: As above,
Pr(F |HH) =
Pr(HH|F )Pr(F ) Pr(HH|F )Pr(F ) + Pr(HH|U )Pr(U )
=
1 4 ·^
1 2 1 4 ·^
1 2 + 1^ ·^
1 2 = 1 / 5. 2
(c) He flips it a third time and it shows tails. Same question. Solution: Pr(F |HHT ) = 1 (trivially!) 2
=
Pr(Jailer says “It’s not B”|A dies)Pr(A dies) Pr(NB|A dies)Pr(A dies) + Pr(NB|B dies)Pr(B dies) + Pr(NB|C dies)Pr(C dies)
=
1 2 ·^
1 3 1 2 ·^
1 3 + 0^ ·^
1 3 + 1^ ·^
1 3
Thus, A is correct! 2