Docsity

Probability Theory Homework: Finding Intersections and Conditional Probabilities, Assignments of Computer Science

Toggle sidebar
bg1
CSE21 HW #5 Solution
1. (5 Points) P(A) = 0.5, P(B) = 0.6, P(B|A) = 0.8. Find P(A|B) =?
Solution P(A|B) = P(A∩B)
P(B)=P(B|A)P(A)
P(B)=0.8·0.5
0.6=2
3.
2. (10 Points)
(a) P(A) = 1
4,P(B|A) = 1
3,P(A|B) = 1
2.P(A∪B) =?.
Solution(4 pts) P(A∩B) = P(B|A)P(A) = 1
3·1
4=1
12 .
P(B) = P(A∩B)
P(A|B)=
1
12
1
2
=1
6.
P(A∪B) = P(A) + P(B)−P(A∩B) = 1
4+1
6−1
12 =1
3.
(b) Given that P(A) = p,P(B) = 1 −ε. Prove
p−ε
1−ε≤P(A|B)≤p
1−ε.
Solution(6 pts)
Proof P(A|B) = P(A∩B)
P(B)≤(P(A)
(P(B)=p
1−ε.
P(A|B) = P(A∩B)
P(B)=P(A)+P(B)−P(A∪B)
P(B)=p+1−ε−P(A∩B)
1−ε≥p+1−ε−1
1−ε=p−ε
1−ε.
3. (10 Points) Let Adenote the event that the marble selected is yellow, and let Bdenote the
event that the marble is not black. We want to find P(A|B). By definition P(A|B) = P(A∪B)
P(B).
A∪Bis the event that the marble selected is yellow and not black, therefore A∪B=A.
P(A|B) = P(A∪B)
P(B)=P(A)
P(B).P(A) = 10
15+10+15 =1
4.P(B) = 15+10
15+10+15 =5
8.P(A|B) = 2
5.
4. (10 Points) A fair die is thrown twice, independently. Let xbe the first score and ybe the
second score. Let A={x+y= 10}and B={x > y}. Find: P(A|B) and P(B|A).
Solution P(A) = 3
6×6=1
12 . [There are 3 combinations of xand ywhich satisfy x+y= 10:
(x, y) = (4,6) or (5,5) or (6,4).]
P(B) = 15
36 =5
12 . [There are 15 combinations of xand ywhich satisfy x > y:(x, y) = (6,1) or
(6,2), or (6,3) or (6,4) or (6,5) or (5,1) or (5,2) or (5,3) or (5,4) or (4,1) or (4,2) or (4,3)
or (3,1) or (3,2) or (2,1).]
P(A∩B) = 1
36 . [(x, y) = (6,4).]
P(A|B) = P(A∩B)
P(B)=1
15 .
P(B|A) = P(A∩B)
P(A)=1
3.
5. (15 Points) Two boxes are given as follows:
Box Acontains 8 red balls, 2 white balls, and 2 blue balls.
Box Bcontains 2 red balls and 6 white balls.
A fair die is tossed: if a 3 or 6 appears, a ball is randomly chosen from A; otherwise a ball is
randomly chosen from B.
(a) Find the probability that the ball is:
(i) red, (ii) white, (iii) blue.
Solution(9 pts) Construct the corresponding stochastic tree diagram as in Fig 1. We
seek P(R) (the probability that the ball is red), P(W) (the probability that the ball is
white), P(B) (the probability that the ball is blue).
1
pf2

Partial preview of the text

Download Probability Theory Homework: Finding Intersections and Conditional Probabilities and more Assignments Computer Science in PDF only on Docsity!

CSE21 HW #5 Solution

  1. (5 Points) P (A) = 0.5, P (B) = 0.6, P (B|A) = 0.8. Find P (A|B) =? Solution P (A|B) = P^ P(A (∩BB) )= P^ (B P|A (B)P)^ (A)= 0.^80 ·.^06. 5 = 23.
  2. (10 Points)

(a) P (A) = 14 , P (B|A) = 13 , P (A|B) = 12. P (A ∪ B) =?. Solution(4 pts) P (A ∩ B) = P (B|A)P (A) = 13 · 14 = 121. P (B) = P P^ ( (AA∩|BB)) = 121 1 2

P (A ∪ B) = P (A) + P (B) − P (A ∩ B) = 14 + 16 − 121 = 13.

(b) Given that P (A) = p, P (B) = 1 − ε. Prove p − ε 1 − ε

≤ P (A|B) ≤

p 1 − ε

Solution(6 pts) Proof P (A|B) = P^ P(A (B∩B) )≤ ((PP^ ((BA)) = (^1) −pε. P (A|B) = P^ P(A (∩BB) )= P^ (A)+P^ ( PB (B)−)P (A∪B)= p+1−ε 1 −−Pε^ ( A∩B)≥ p+1 1 −−εε− 1 = p 1 −−εε.

  1. (10 Points) Let A denote the event that the marble selected is yellow, and let B denote the event that the marble is not black. We want to find P (A|B). By definition P (A|B) = P^ P(A (∪BB) ). A ∪ B is the event that the marble selected is yellow and not black, therefore A ∪ B = A. P (A|B) = P^ P(A (∪BB) )= P P^ ((AB)). P (A) = (^) 15+10+15^10 = 14. P (B) = (^) 15+10+1515+10 = 58. P (A|B) = 25.
  2. (10 Points) A fair die is thrown twice, independently. Let x be the first score and y be the second score. Let A = {x + y = 10} and B = {x > y}. Find: P (A|B) and P (B|A). Solution P (A) = (^6) ×^36 = 121. [There are 3 combinations of x and y which satisfy x + y = 10: (x, y) = (4, 6) or (5, 5) or (6, 4).] P (B) = 1536 = 125. [There are 15 combinations of x and y which satisfy x > y: (x, y) = (6, 1) or (6, 2), or (6, 3) or (6, 4) or (6, 5) or (5, 1) or (5, 2) or (5, 3) or (5, 4) or (4, 1) or (4, 2) or (4, 3) or (3, 1) or (3, 2) or (2, 1).] P (A ∩ B) = 361. [(x, y) = (6, 4).] P (A|B) = P^ P(A (∩BB) )= 151.

P (B|A) = P^ P(A (∩AB) )= 13.

  1. (15 Points) Two boxes are given as follows: Box A contains 8 red balls, 2 white balls, and 2 blue balls. Box B contains 2 red balls and 6 white balls. A fair die is tossed: if a 3 or 6 appears, a ball is randomly chosen from A; otherwise a ball is randomly chosen from B.

(a) Find the probability that the ball is: (i) red, (ii) white, (iii) blue. Solution(9 pts) Construct the corresponding stochastic tree diagram as in Fig 1. We seek P (R) (the probability that the ball is red), P (W ) (the probability that the ball is white), P (B) (the probability that the ball is blue).

2/

4/

A

B

8/ 2/

2/

2/ 6/ 0

R W B R W B

Figure 1: Problem 5 Tree Diagram

i. P (R) = 26 · 128 + 46 · 28 = 187. ii. P (W ) = 26 · 122 + 46 · 68 = 59. iii. P (B) = 26 · 122 = 181. (b) Find the probability that box A was selected if the ball is red. Solution(6 pts) We seek P (A|R), the probability that A was selected, given that the ball is red. Thus, it is necessary to find P (A ∩ R) and P (R). P (A ∩ R) = 26 · 128 = 29. P (R) = 187. P (A|R) = P^ ( PA (R∩R) )= 47.

  1. (10 pts) There are five coins in your pocket. One has both sides painted red and one has both sides painted yellow. Each of the other three coins has one side painted red and the other side painted yellow. Now you randomly take one coin out of your pocket and toss it on a table. You see that the face that is up is red. Given this observation, what is the probability that this coin is yellow on the other side? Solution Let Y = {The face that is down is yellow}. Let R ={the face that is up is red}. P (Y ∩ R) = 35 · 12 = 103. P (R) = 35 · 12 + 15 = 12. P (Y |R) = P^ (Y R^ ∩ R)= 35.