Since the probability of having a boy is not given, we assume it to be p=21
P(X=0)=(21)4=0.0625P(X=1)=C41(21)4=0.25P(X=2)=C42(21)4=0.375P(X=3)=C43(21)4=0.25P(X=4)=(21)4=0.0625
EX=1⋅0.25+2⋅0.375+3⋅0.25+4⋅0.0625=2EX2=12⋅0.25+22⋅0.375+32⋅0.25+42⋅0.0625=5Var(X)=EX2−(EX)2=5−22=1
Comments