Solution

ID: past-exam-of-the-options-ii-course-of-the-university-of-oxford/2007/o/o4/solution

Apart from its multinomial coefficient, the likelihood is . Maximizing its logarithm subject to gives equal to a common multiplier, which is . Hence .
Under independence the log likelihood separates as . The two normalization constraints give and , so the fitted probabilities are . Therefore twice the difference of the maximized log likelihoods is
The unrestricted model has free parameters and the independence model has , leaving degrees of freedom for the table. Under the null, the likelihood-ratio statistic is asymptotically chi-squared with four degrees of freedom. Since , reject independence at the 0.1% significance level. This is evidence of association in the sampled variables; it does not by itself identify a causal direction.

New to topics? Read the docs here!