Take two independent statistical samples from beta distributions with parameters and , of positive sizes . Put , , and . To test the null hypothesis , divide the maximized common-rate likelihood function by the unrestricted maximum to obtain the displayed likelihood ratio. Indeed the unrestricted fitted rates are , and the common fitted rate is ; substitution cancels the exponential factors.
Under the null hypothesis, and have independent gamma distributions with a common rate. Beta-gamma independence gives . The derivative of changes sign at , so the exact critical region of size is or , with . Its cutoffs satisfy
Here is the beta distribution cumulative distribution function. Equal likelihood ratios at the cutoffs do not generally mean equal tail probabilities. Increasing the ratio threshold continuously adds positive null distribution mass on both sides, proving uniqueness for .
Set and . Their inverse change of variables is , , with domain , . The absolute Jacobian determinant of this inverse transformation is
Use the independence of random variables to multiply the two original Gamma distribution densities. The change of variables formula then gives the joint probability density
Factor this into two normalized densities:
The support is a product domain, and the factors are precisely a Beta distribution density and a Gamma distribution density. Therefore
This beta-gamma independence uses the common rate ; it is a rate parameter, not the scale parameter .