Hello, I am studying Variance for a binomial distribution and I am hoping if someone can help me understand where n^2 comes from.
E(Y|P) =np V(Y|P)=npq
V(Y) = E[V(Y|P)] + V[E(Y|P)]
=E(npq) +V(np) = nE[p(1-P)] + n^2V(P)
Hello, I am studying Variance for a binomial distribution and I am hoping if someone can help me understand where n^2 comes from.
E(Y|P) =np V(Y|P)=npq
V(Y) = E[V(Y|P)] + V[E(Y|P)]
=E(npq) +V(np) = nE[p(1-P)] + n^2V(P)