Sunday, 27 December 2015

probability - Calculating expected value for a Binomial random variable



How do you calculate E(X2) given the the number of trials and the probability of success?



E(X)=np, then E(X2)=?




Do we have to draw up a table for n=0,1,2,,n and then use the probability of success for each.



E(X)=x P(X=x)

this would take forever, is there a shortcut?


Answer



Well, var(X)=np(1p) and var(X)=E(X²)(E(X))2, so: E(X²)=var(X)+(E(X))²=np(1p)+n2p2=np(1p+np)


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find limh0sin(ha)h without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...