Homework 3.2. A marginal distribution (20 pts)
You may submit this problem as a PDF, either with clearly typed mathematics or with neat handwriting, if you like.
Say we are doing an experiment measuring the sex of the progeny of fruit flies. We randomly select one male fruit fly and one female fruit fly. We then mate them, select \(N\) of their progeny, and count the number \(n\) of males. We do this experiment many times to get an idea about the distribution describing \(n\).
a) We initially choose a Binomial distribution for \(n\). That is,
\begin{align} n \sim \text{Binom}(N, \theta). \end{align}
Here, \(\theta\) is the probability that offspring from flies is male. Explain why this is a reasonable model.
b) Upon analyzing the data using some of the techniques we will learn later in the class, we decide we need to update the model. We suspect that each male-female pair of flies may not have the same propensity for male offspring. Therefore, we decide not to take \(\theta\) as a fixed parameter for all pairs of flies, but rather to model \(\theta\) as coming from its own Beta distribution. Our new model is
\begin{align} &\theta \sim \text{Beta}(\alpha, \beta),\\[1em] &n \sim \text{Binom}(N, \theta). \end{align}
Write down the joint probability density/mass function, \(f(n, \theta ; N, \alpha, \beta)\).
c) Both \(n\) and \(\theta\) are random variables (they vary meaningfully from experiment to experiment), but we can only observe \(n\). We therefore we want to know the probability mass function for \(n\). Show that
\begin{align} f(n ; N,\alpha, \beta) = \binom{N}{n}\,\frac{B(n+\alpha, N-n+\beta)}{B(\alpha, \beta)}. \end{align}
where \(B(x, y)\) denotes a Beta function.
d) As you may note in the Distribution Explorer, the Beta distribution may also be parametrized with \(\phi = \alpha / (\alpha + \beta)\) and \(\kappa = \alpha + \beta\). Show that in the limit of \(\kappa \to \infty\),
\begin{align} f(n ; N, \phi) = \binom{N}{n}\,\phi^n\,(1-\phi)^{N-n}, \end{align}
which is again a Binomial PMF. You do not need to explictly take any limits or perform any integrals. You can use stories.