Solution

ID: past-exam-of-the-statistics-course-of-the-university-of-oxford/2015/2/b/i/solution

The count vector has a multinomial distribution, with likelihood function
Maximize its log-likelihood using a Lagrange multiplier for the sum constraint. The equations and give and . Since all counts are positive and the log-likelihood is strictly concave on the interior of the probability simplex, this is the global maximum-likelihood estimate.
Under the uniform null hypothesis, each category has expected count
The common multinomial coefficient cancels from the likelihood ratio:
Taking minus twice its logarithm gives exactly
There are free category probabilities, because their sum is one, and the null fixes all of them. Thus its regular asymptotic chi-squared distribution has statistical degrees of freedom.

New to topics? Read the docs here!