Past exam of the mathematics course of the University of Cambridge 2007 ib Paper 4 19C iv Solution Created 2026-09-24 Updated 2026-10-14
Under the null hypothesis, the standardized intercept is standard normal, and is independent with chi-squared distribution of degrees of freedom. Consequently the Student t test for a simple-regression intercept usesChoose a significance level before observing the test result. For the two-sided alternative, reject when , where the subscript denotes the indicated quantile of the Student t-distribution. The null rejection probability is exactly , independent of the nuisance slope and variance. Equivalently report the p-value . The test assumes the normal independent-error model and a positive residual variance estimate. In the intercept-only case with , use and instead.
Past exam of the mathematics course of the University of Cambridge 2008 ib Paper 4 19H i Solution Created 2026-09-24 Updated 2026-10-14
Assume the explanatory variables are not all equal, so . In the Gaussian linear model, the log-likelihood isFor fixed , maximum likelihood estimation therefore minimizes the residual sum of squares. Differentiating in gives the least-squares normal equationsThe first gives ; substituting it into the second gives , with . Let . Differentiating the profiled log-likelihood in givesFor the variance estimator this is the interior maximum when , which occurs almost surely under the model when .
The coefficient estimators are linear functions of the independent normal errors. In particular,Their multivariate normal distribution has mean and covariance matrixThe fitted vector is the orthogonal projection onto the two-dimensional span of and . The residual vector is the complementary projection of the spherical normal error vector. Orthogonal normal projections are independent, and in an orthonormal basis of that complementary space its coordinates are independent . Consequentlyindependently of . This also gives the unbiased estimator rather than the variance MLE.
Under the null hypothesis , for the Student t test for a simple-regression intercept usesHere is the prescribed significance level. The normal numerator divided by its true standard deviation is independent of , which proves the stated Student t-distribution. If , the two coefficients are not separately identifiable; if , this residual-variance-based test is unavailable.