Docsity

Problem Set 5 Solutions - Probability with Engineering Applications | ECE 313, Assignments of Statistics

Toggle sidebar
bg1
University of Illinois Fall 2009
ECE 313: Problem Set 5: Solutions
Conditional Probability, Law of Total Probability, Bayes’ Formula
1. [Picking a random subset]
(a) There are !n
k"different subsets of size k, and since each is equally likely to be drawn, the
probability of drawing a specific subset is just #!n
k"$−1
=k×(k−1) ×···×2×1
n×(n−1) · · · ×(n−k+ 1) .
(b) There are k“desirable” objects among the set of nobjects and if we draw one at random, the
probability that it is a “desirable” object is k/n, that is, P(A1)=k/n. If the event A1has
occurred, then there are only k−1 “desirable” objects left among the n−1. Thus,
P(A2|A1) = (k−1)/(n−1). If both A1and A2have occurred, there are k−2 “desirable”
objects left among the n−2 and so P(A3|A1A2)=(k−2)/(n−2) and so on. More generally,
P(Ai|A1A2· · · Ai−1)=(k−(i−1))/(n−(i−1)) since i−1 “desirable objects” have been drawn
already. Finally,
P(A1A2· · · Ak)=P(A1)P(A2|A1)· · · P(Ak|A1A2· · · Ak−1)= k×(k−1) ×···×2×1
n×(n−1) · · · ×(n−k+ 1) .
2. [The beginning of spring training]
Since the pitcher can only pitch fast balls, curve balls, and sliders, we have that
P(F)+P(C)+P(S) = 1, and since P(C)=2P(F), we conclude that P(S) = 1 −3P(F). The law of
total probability gives
P(H)=1
4=P(H|F)P(F)+P(H|C)P(C)+P(H|S)P(S)
=P(H|F)P(F)+P(H|C)·2P(F)+P(H|S)(1 −3P(F))
=2
5P(F)+1
4·2P(F)+1
6(1 −3P(F))
from which we get that P(F)= 5
24,P(C)=10
24,and P(S)= 9
24.
3. [Exercises in Conditional Probability]
(a) P(A|Bc)=1−P(Ac|Bc)=0.6.
P(A)=P(A|B)P(B)+P(A|Bc)P(Bc) = 0.3×0.7+0.6×0.3=0.39.
P(B|A)=P(A|B)P(B)/P (A)=0.3×0.7/0.39 = 7/13.
(b) P(E∩F)=P(F|E)P(E)=1
2×1
4=1
8and P(E|F)=P(E∩F)
P(F)=1/8
P(F)=1
3
⇒P(F)=3
8.
(c) P(G∪H)=P(G)+P(H)−P(G∩H)=3
2−P(G∩H)≤1 from which we deduce that
P(G∩H)≥1
2and hence P(G|H)=P(G∩H)
P(H)≥1/2
3/4=2
3.
4. [Polya’s urn model: a classic result in probability theory]
(a) This is sampling with replacement and we have that P(R1)=P(R2)= r
r+g.
pf3

Partial preview of the text

Download Problem Set 5 Solutions - Probability with Engineering Applications | ECE 313 and more Assignments Statistics in PDF only on Docsity!

University of Illinois Fall 2009

ECE 313: Problem Set 5: Solutions

Conditional Probability, Law of Total Probability, Bayes’ Formula

  1. [Picking a random subset]

(a) There are

n k

different subsets of size k, and since each is equally likely to be drawn, the

probability of drawing a specific subset is just

[(

n k

)]− 1

k × (k − 1) × · · · × 2 × 1 n × (n − 1) · · · × (n − k + 1)

(b) There are k “desirable” objects among the set of n objects and if we draw one at random, the probability that it is a “desirable” object is k/n, that is, P (A 1 ) = k/n. If the event A 1 has occurred, then there are only k − 1 “desirable” objects left among the n − 1. Thus, P (A 2 | A 1 ) = (k − 1)/(n − 1). If both A 1 and A 2 have occurred, there are k − 2 “desirable” objects left among the n − 2 and so P (A 3 | A 1 A 2 ) = (k − 2)/(n − 2) and so on. More generally, P (A (^) i | A 1 A 2 · · · A (^) i− 1 ) = (k − (i − 1))/(n − (i − 1)) since i − 1 “desirable objects” have been drawn already. Finally,

P (A 1 A 2 · · · A (^) k ) = P (A 1 )P (A 2 | A 1 ) · · · P (A (^) k | A 1 A 2 · · · A (^) k− 1 ) =

k × (k − 1) × · · · × 2 × 1 n × (n − 1) · · · × (n − k + 1)

  1. [The beginning of spring training] Since the pitcher can only pitch fast balls, curve balls, and sliders, we have that P (F ) + P (C) + P (S) = 1, and since P (C) = 2P (F ), we conclude that P (S) = 1 − 3 P (F ). The law of total probability gives

P (H) =

= P (H | F )P (F ) + P (H | C)P (C) + P (H | S)P (S)

= P (H | F )P (F ) + P (H | C) · 2 P (F ) + P (H | S)(1 − 3 P (F ))

P (F ) +

· 2 P (F ) +

(1 − 3 P (F ))

from which we get that P (F ) =

, P (C) =

, and P (S) =

  1. [Exercises in Conditional Probability]

(a) P (A | B c^ ) = 1 − P (A c^ | B c^ ) = 0.6. P (A) = P (A | B)P (B) + P (A | B c^ )P (B c^ ) = 0. 3 × 0 .7 + 0. 6 × 0 .3 = 0.39. P (B | A) = P (A | B)P (B)/P (A) = 0. 3 × 0. 7 / 0 .39 = 7/13.

(b) P (E ∩ F ) = P (F | E)P (E) =

×

and P (E | F ) =

P (E ∩ F )

P (F )

P (F )

⇒ P (F ) = 38.

(c) P (G ∪ H) = P (G) + P (H) − P (G ∩ H) =

− P (G ∩ H) ≤ 1 from which we deduce that

P (G ∩ H) ≥

and hence P (G | H) =

P (G ∩ H)

P (H)

  1. [Polya’s urn model: a classic result in probability theory]

(a) This is sampling with replacement and we have that P (R 1 ) = P (R 2 ) =

r r + g

(b) P (R 2 ) = P (R 2 | R 1 )P (R 1 ) + P (R 2 | R c 1 )P (R c 1 ) =

r + c r + c + g

×

r r + g

r r + c + g

×

g r + g

r r + g just as before, and independent of the value of c!! Note that if the trials are repeated and c > 0, then the urn will contain r + g + cn balls after n trials and yet the probability of drawing a red ball on the (n + 1)-th trial will still be the same (^) r+rg as before

(c) P {r + c red balls| R 2 } =

P (R 1 ∩ R 2 )

P (R 2 )

P (R 2 |R 1 )P (R 1 )

P (R 2 )

= P (R 2 | R 1 ) =

r + c r + c + g

  1. [Fred and Wilma learn the Law of Total Probability and escape from Guantanamo Bay]

(a) Fred wins the game if he tosses a Head on his first attempt (without Wilma even getting to touch the coin) and so obviously P (F | H) = 1 and P (W | H) = 0. (b) If Fred tosses a Tail on his first attempt, we have in essence a brand new game in which Wilma gets to toss first and wins if she tosses a Head. So her win probability at this point is exactly the same as that of the first tosser in the game, namely Fred. In other words, P (W | H c^ ) = P (W | T ) = P (F ). Similarly, having tossed a Tail on his first try, Fred must now wait for Wilma to toss before he can toss again. If Wilma tosses a Head, she wins and he won’t even get to toss the coin again. That is, having tossed a Tail, Fred now has the role of the second tosser in a brand-new game and his win probability is thus P (F | H c^ ) = P (F | T ) = P (W ). (c) We have that

P (F ) = P (F | H)P (H) + P (F | H c^ )P (H c^ ) = 1 · p + P (W ) · q = p + qP (W ), P (W ) = P (W | H)P (H) + P (W | H c^ )P (H c^ ) = 0 · p + P (F ) · q = qP (F ).

It follows that P (F ) = p + q 2 P (F ) and hence P (F ) = p 1 − q 2

1 + q

since p = 1 − q. Also,

P (W ) = qP (F ) =

q 1 + q

just as before. Look Ma! No summing of series needed!

(d) Yes, Fred and Wilma always alternate in tossing. This is obvious in the middle of any game because they are taking turns tossing the coin. But, if one of them wins a game by tossing a Head, then the other person, being the loser, tosses to start a new game. Hence, Fred and Wilma always alternate in tossing the coin. As we found above, P (F 1 ) = P (F ) =

1 + q

and P (W 1 ) = P (W ) = q 1 + q

(e) Remember that F (^) n and W (^) n are complementary events. If Fred wins the n-th game, i.e. the event F (^) n occurs, then Wilma goes first in the (n + 1)-th game, and so Fred’s chance of winning the (n + 1)-th game is smaller than Wilma’s chance of winning the (n + 1)-th game. That is, by the rules of the new game, we have that P (F (^) n+1 | F (^) n ) = q 1 + q

and P (F (^) n+1 | W (^) n ) =

1 + q

and similarly P (W (^) n+1 | F (^) n ) =

1 + q

and P (W (^) n+1 | W (^) n ) = q 1 + q

. Hence, by the law of total probability,

P (F (^) n+1 ) =

q 1 + q P (F (^) n ) +

1 + q P (W (^) n ) =

1 + q

1 − q 1 + q P (F (^) n ).

P (W (^) n+1 ) =

1 + q

P (F (^) n ) + q 1 + q

P (W (^) n ) =

1 + q

1 − q 1 + q

P (W (^) n ).

(f) Suppose that P (F (^) n ) = a + bα n^ for n ≥ 1. Then we have that

a + bα n+1^ =

1 + q

1 − q 1 + q

a + bα n

⇒ bα n

α +

1 − q 1 + q

1 − 2 a 1 + q

for all n ≥ 1.

In order for this to hold for all n > 1, it must be that both sides of the equation equal 0, that is, α = −

1 − q 1 + q and a =

. Hence, P (F (^) n ) =

  • b

1 − q 1 + q

) (^) n and since P (F 1 ) =

1 + q , we 2