Ignoring the multinomial coefficient, the likelihood is . Maximize with . A Lagrange multiplier gives ; summing the resulting gives . Thus
Because every count is positive, the log-likelihood is strictly concave on the interior simplex and this solution is its unique maximum.
Under the product constraint the log-likelihood separates:
Maximizing the two simplex problems independently gives and . Hence
The fitted expected cell counts under independence are consequently .
The generalized likelihood ratio compares the constrained maximum from part (b) with the unrestricted maximum from part (a). Taking minus twice its logarithm gives
The unrestricted model has free parameters; the independence model has . Thus the asymptotic null distribution is , with four degrees of freedom. The supplied value gives
Therefore reject independence at the 5% level, but not at the 1% level. There is evidence of an association between the two classifications. The fitted expected counts are all about nine or larger, so the usual chi-squared approximation has no very small expected cells here.

Articles by others on the same topic (0)

There are currently no matching articles.