Solved – Variance of compound distribution

The binomial distribution describes the probability of \$k\$ 'success' events given \$N\$ independent trials, each with a probability \$p\$ of being a success. The distribution is described by the formula \$\$B(k;N,p) = {N choose k} p^k(1-p)^{N-k}.\$\$
The process I am particularly interested in is described by a binomial distribution, but where the number of trials itself given by another distribution, let's say \$X\$, instead of just a single number. An example could be that \$X\$ is the Poisson distribution such that \$X = P(k;lambda) = frac{e^{-lambda}lambda^k}{k!}\$ and the resulting compound distribution, \$D\$ (the distribution of my process) is given by (see here for details): \$\$D = sum_{theta}B(k;theta,p)P(theta;lambda)dtheta .\$\$
Now for this particular distribution D, I can calculate the equation for the distribution (which happens to be Poissonian with mean \$lambda p\$ for those interested) and calculate the variance of the distribution (\$Var[D]=lambda p\$).

Now I have a number of questions that I would like to answer regarding this kind of process (which I hope you can help me with!):

1. For the case where \$X\$ can be any arbitrary distribution, is it possible to calculate which distribution \$X\$ would give a minimum for \$Var[D]\$? (and if so – how?)
2. Can I find two distributions \$X_1\$ and \$X_2\$ such that \$Var[X_1]>Var[X_2]\$ and \$Var[D_1]<Var[D_2]\$ (i.e. the application of the binomial distribution results in a non-trivial variation in the variances)?

I'm relatively new to this kind of statistical work, so as much detail in the answers would be great (even if it seems obvious) and apologies if any of my question are common knowledge, but I struggled to find a solution online. Thanks in advance.

Contents