Variance of binomial distribution with binomial distribution of $n$

243 Views Asked by At

Accoring to Wikipedia, the variance of a binomial distribution $B(n,p)$ is given by:

$Var(B(n,p)) = np(1-p)$

Now what is the variance of a bionomial distribution $B(n,p)$ where $n$ itself is defined by another binomial distribution $B(m,q)$?

In other words, what is $Var(B(B(m,q),p))$?

1

There are 1 best solutions below

1
On

Try using the law of total variance:

$$ \text{Var}(X) = \mathbb E[\text{Var}(X \mid Y)] + \text{Var}[\mathbb E(X \mid Y)]$$