Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2024/ii/paper-4/13l/d/solution

Fit the intercept-only model with
glm(dis ~ 1, family = binomial, data = disease)
Its deviance is . Since it has one fitted coefficient, its AIC on the same convention is

New to topics? Read the docs here!