首页 > 其他分享 >MathProblem 52 Two children problem

MathProblem 52 Two children problem

时间:2022-08-28 16:24:03浏览次数:51  
标签:boy frac MathProblem Two 男生 problem children

A woman is chosen at random among all women that have two children. She is asked do you have at least one boy, and she answers 'yes.' What is the probability her other child is a boy? Assume every pregnancy has a 50/50 chance to be a boy or a girl.

Solution

询问得到已知的结果:至少有一个男生。现在问另一个孩子也是男生的概率。

设事件 \(A\): 两个孩子都是男生,\(B\): 两个孩子中至少有一个孩子是男生

\[P(A|B)=\frac{P(AB)}{P(B)}=\frac{1/4}{3/4}=\frac{1}{3} \]

标签:boy,frac,MathProblem,Two,男生,problem,children
From: https://www.cnblogs.com/xinyu04/p/16632964.html

相关文章

  • MathProblem 51 Maximum volume of cone problem
    Youhaveatortillawithradius1andwishtoformacone.Youmaycutoutanywedgeyoulikefromthetortilla.Thepointofthewedgemustbeatthecentero......
  • MathProblem 44 Coin toss problem #1
    Youaregivenaninitialprizeofonedollar.Acoinwillbetossedindefinitelyuntilatailsoccurs.Everytimeaheadsistossedyourprizewillbedoubled.......
  • MathProblem 43 Wall and two houses problem
    Thereisacastlesurroundedbyacircularwall.Thewallhasanorthgateandasouthgate.Ayellowhouselays3milesnorthofthenorthgate.Abluehouse......
  • MathProblem 42 Drunken walk problem #1
    Adrunkisononepointofann-gon,suchthatnisanevennumber.Thedrunkmovesalongtheperimeterofthen-gon.Eachstepstakeshimtoanadjacentpoint......
  • 洛谷P1001 A+B problem最全算法
    为防止大家说我误导新人,先放一个最不正常的代码。#include<iostream>usingnamespacestd;intmain(){inta,b;cin>>a>>b;cout<<a+b;ret......
  • CF1121B Mike and Children 题解
    题意翻译十分简洁,我说几点需要注意的。最多能选几个数?这是错的,要给出最多选出几对数。现在我们就珂以开始了。我的做法理论时间复杂度是 O(n^3)O(n3) 的暴力,但是因......
  • MathProblem 39 Zeros and ones problem
    Whatisthesmallestintegergreaterthan0thatcanbewrittenentirelywithzerosandonesandisevenlydivisibleby225?Solution将其分解:\[225=5\times......
  • MathProblem 38 Meeting at a restaurant problem
    Twopeoplearriveinarestaurantindependently.Eacharrivesarandomtimebetween5pmand6pm,distributeduniformaly(nomomentinthisrangeisanymoreli......
  • MathProblem 37 Common birthday problem
    Whatistheminimumnumberofpeopledoyouneed,chosenatrandom,sothatthereisatleasta50%chancethatatleasttwohavethesamebirthday.Assumetha......
  • CF464E The Classic Problem
    题解:首先要注意到一个数+$2^k$的在二进制中的运算过程是将一段连续都为1的区间都赋0,然后将下一个为0的位置改为1想到可持久化数组然后dij一下就好了有几个值得留下的......