Solution
ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2015/ii/paper-3/4j/solution
Past exam of the mathematics course of the University of Cambridge 2015 ii Paper 3 4J Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-06
The command fits the simple linear regressionusing ordinary least squares. The fitted conditional mean is a straight line in time. The regression residuals are mainly positive at the beginning and end and negative in the middle, so the mean function needs curvature.
A direct improvement is polynomial regression of degree two:The nested-model F-test tests against a nonzero quadratic coefficient. If measurements were used, its statistic isA small reported -value supports the quadratic term. The new regression residuals should then be checked for remaining systematic structure, changing variance and temporal dependence, because the F-test assumes independent errors of common variance. Radioactive decay also motivates an exponential mean, but the displayed curvature already justifies this simple nested comparison.
fit2 <- lm(Counts ~ Time + I(Time^2), data = geiger)
anova(fit1, fit2) New to topics? Read the docs here!