Explain the relationship between the Beta distribution and the Gamma distribution.
Quick Overview
Asks how the Beta and Gamma distributions are related and why the link holds. Tests change-of-variables reasoning, normalizing constants, independence arguments, and where the relationship shows up in sampling and Bayesian priors.
Explain the relationship between the Beta distribution and the Gamma distribution.
Role: Data Scientist
Category: Statistics & Math
Difficulty: medium
Interview Round: Other
Explain the relationship between the Beta distribution and the Gamma distribution.
Take the Gamma distribution in its shape and rate form, $\text{Gamma}(a, \lambda)$, with density proportional to $x^{a-1} e^{-\lambda x}$ on $x > 0$.
```hint Build one from the other
Take two independent Gamma variables with the same rate and look at the share of their sum that one of them contributes.
```
```hint Change of variables
Transform $(X, Y)$ into $(X/(X+Y),\ X+Y)$ and check whether the joint density factors into a function of each new variable.
```
### What a Strong Answer Covers
- How a Beta variable can be constructed from independent Gamma variables, and the conditions the construction needs
- A derivation or justification, and what it says about the sum of the two Gamma variables
- How the Beta function's normalizing constant is expressed through the Gamma function
- Where the relationship is used, such as sampling, the Dirichlet distribution and related test statistics
- A correct reason why the Beta is the conjugate prior for the Binomial
### Follow-up Questions
- What is the distribution of $X/Y$ instead of $X/(X+Y)$?
- How would you sample from a Dirichlet distribution if you only had a Gamma sampler?
- Does the result survive if the two Gamma variables have different rates? What breaks?
- Use the independence of the ratio and the sum to derive the mean of a $\text{Beta}(a, b)$ variable.
Overview: Asks how the Beta and Gamma distributions are related and why the link holds. Tests change-of-variables reasoning, normalizing constants, independence arguments, and where the relationship shows up in sampling and Bayesian priors.