Ignoring the multinomial coefficient, the likelihood is . Maximize with . A Lagrange multiplier gives ; summing the resulting gives . ThusBecause 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 . HenceThe 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 givesThe unrestricted model has free parameters; the independence model has . Thus the asymptotic null distribution is , with four degrees of freedom. The supplied value givesTherefore 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
There are currently no matching articles.