Chap 3 Conditional Probability and .ppt
《Chap 3 Conditional Probability and .ppt》由会员分享,可在线阅读,更多相关《Chap 3 Conditional Probability and .ppt(39页珍藏版)》请在麦多课文档分享上搜索。
1、2018/10/10,1,Chap 3 Conditional Probability and Independence Ghahramani 3rd edition,Outline,3.1 Conditional probability 3.2 Law of multiplication 3.3 Law of total probability 3.4 Bayes formula 3.5 Independence 3.6 Applications of probability to genetics,3.1 Conditional probability,Def If P(B)0, the
2、conditional probability of A given B, denoted by P(A|B), is,Conditional probability,Ex 3.1 In a certain region of Russia, P(one lives at least 80)=0.75, P(one lives at least 90)=0.63.What is the probability that a randomly selected 80-year-old person from this region will survive to become 90?Sol: L
3、et B and A be the events that the person selected survives to become 80 and 90 years old, respectively. P(A|B)=P(AB)/P(B)=P(A)/P(B)=0.63/0.75=0.84,Conditional probability,Ex 3.2 From the set of all families with 2 children, a family is selected at random and is found to have a girl. What is the prob
4、ability that the other child of the family is a girl? Assume that in a 2-child family all sex distributions are equally probable.Sol: Let B and A be the events that the family has a girl (meaning at least a girl) and the family has 2 girls, respectively.possible equally likely outcomes: (b,b),(b,g),
5、(g,b),(g,g)P(A|B)=P(AB)/P(B)=P(A)/P(B)=(1/4)/(3/4),Conditional probability,Ex 3.5 Draw 8 cards from a deck of 52 cards. Given 3 of them are spades, P(the remaining 5 are also spades)=?Sol: B: the event that at least 3 of them are spadesA: the event that all 8 cards selected are spadesP(A|B)=P(AB)/P(
6、B)=P(A)/P(B)P(A)=C(13,8)/C(52,8)P(B)=C(13,3)C(39,5)/C(52,8)+C(13,4)C(39,4)/C(52,8)+ +C(13,8)C(39,0)/C(52,8) P(A|B)=5.44 x 10-6,3.2 Law of multiplication,Law of multiplication,Ex 3.9 Suppose 5 good fuses and 2 defective ones have been mixed up. To find the defective fuses, we test them 1-by-1, at ran
7、dom and without replacement. What is the probability that we are lucky and find both of the defective fuses in the first two tests?Sol: Let D1 and D2 be the events of finding a defective fuse in the 1st and 2nd tests, respectively.P(D1D2)=P(D1)P(D2|D1)=2/7x1/6=1/21,Law of multiplication,Thm 3.2 If P
8、(A1A2A3 An-1)0, thenP(A1A2A3 An-1 An)=P(A1)P(A2|A1)P(A3|A1A2) P(An|A1A2A3 An-1)Proof: For n=3, if P(AB)0,then P(ABC)=P(AB)P(C|AB) and P(A)0then P(AB)=P(A)P(B|A)so P(ABC)= P(A)P(B|A)P(C|AB)Thm can be proved by math induction.,Law of multiplication,Ex 3.11 Suppose 5 good fuses and 2 defective ones hav
9、e been mixed up. To find the defective fuses, we test them 1-by-1, at random and without replacement. What is the probability that we are lucky and find both of the defective fuses in exactly three tests?,Law of multiplication,Sol: Let D1 , D2 and D3 be the events that the 1st, 2nd, and 3rd fuses te
10、sted are defective, respectively.Let G1 , G2 and G3 be the events that the 1st, 2nd, and 3rd fuses tested are good, respectively.P(G1D2D3UD1G2D3)=P(G1D2D3)+P(D1G2D3)=P(G1)P(D2|G1)P(D3|G1D2)+ P(D1)P(G2|D1)P(D3|D1G2)=5/7x2/6x1/5+2/7x5/6x15=0.095,3.3 Law of total probability,Thm 3.3(Law of total probab
11、ility) Let P(B)0, and P(Bc)0, thenP(A)=P(A|B)P(B)+P(A|Bc)P(Bc)Proof: By Thm 1.7,P(A)=P(AB)+P(ABc) and use law of multiplication.,Law of total probability,Ex 3.12 An insurance company rents 35% of the cars for its customers from agency I and 65% from agency II. If 8% of the cars of agency I and 5% of
12、 the cars of agency II break down during the rental periods, what is the probability that a car rented by this insurance company breaks down?Sol: P(A)=P(A|I)P(I)+ P(A|II)P(II)=(0.08)(0.35)+(0.05)(0.65)=0.0605,Law of total probability,Ex 3.14(Gamblers ruin problem)2 gamblers play the game of “heads o
13、r tails,” in which each time a fair coin lands heads up, player A wins $1 from B, and each time it lands tails up, player B wins $1 from A. Suppose that the player A initially has a dollars and player B has b dollars. If they continue to play this game successively, what is the probability that (a)
14、A will be ruined; (b) the game goes forever with nobody winning?,Law of total probability,Sol: (a)Let E be the event that A will be ruined if he starts with i dollars, and let pi=P(E). Our aim is to calculate pa. To do so we define F to be the event that A wins the 1st game. Then P(E)=P(E|F)P(F)+P(E
15、|Fc)P(Fc)= pi = pi+1(1/2)+pi-1(1/2)= pi+1 pi = pi pi-1,Law of total probability,p0=1, pa+b=0, and let p1- p0 = x pi+1 pi = pi pi-1 = = p2- p1 = p1- p0 = x Thus p1 = p0 + xp2 = p0 + 2xpi = p0 + ixand pa+b = p0 + (a+b)x = x = -1/(a+b)So pi = 1 i/(a+b). In particular pa = b/(a+b),Law of total probabili
16、ty,(b)The same method can be used with obvious modifications to calculate qi, the probability that B is ruined if he starts with i dollars. qi = 1 i/(a+b)Since B starts with b dollars, he will be ruined with probability qb = a/(a+b).Thus the probability that the game goes on forever with nobody winn
17、ing is 1-(qb+pa)=0.,Law of total probability,Definition Let B1, B2, , Bn be a set of nonempty subsets of the sample space S of an experiment. If the events B1, B2, , Bn are mutually exclusive and , the set B1, B2, , Bn is called a partition of S.,Law of total probability,Thm 3.4(Law of total probabi
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- CHAP3CONDITIONALPROBABILITYANDPPT
