Noncentral t-distribution Created 2026-10-05 Updated 2026-10-18
If and are independent, then has the noncentral t-distribution with statistical degrees of freedom and noncentrality . It describes the test statistic of a Student's t-test under a shifted alternative hypothesis. At it reduces to the Student's t-distribution. This is different from adding a constant to a central Student t-distribution: here the shift is inside the random denominator. For a normal distribution sample tested against null hypothesis , the noncentrality is .
Past exam of the mathematics course of the University of Cambridge 2004 ib Paper 1 10H Solution Created 2026-09-24 Updated 2026-10-14
Assume independent samples and , each consisting of independent normal random variables, with respective means and a common unknown variance . Take . Normality, independence and equal variances are the assumptions giving the exact pooled Student's t-test; unequal variances would require a different test. We test against an unrestricted difference.
Put andThe normal likelihood is proportional to , where is the residual sum of squares. Under the unrestricted model, the maximizing means are and . Under , the maximizing common mean is and decomposition about the sample means gives . For either model, maximizing over variance gives . Thus the generalized likelihood-ratio test statistic isSmall is therefore equivalent to large .
Under the null, is standard normal. In each sample an orthogonal change of Gaussian coordinates separates the sample-mean coordinate from the centered residual coordinates; those coordinates are independent. Consequently has a chi-squared distribution with degrees of freedom and is independent of . Therefore has the Student's t-distribution with degrees of freedom. At significance level , reject exactly when , the two-sample pooled t-test.
Past exam of the mathematics course of the University of Cambridge 2004 iii Paper 37 3 Solution Created 2026-10-03 Updated 2026-10-14
The first output uses the equal-variance, pooled Student's t-test, as shown by its seven statistical degrees of freedom. Its exact model assumes two independent samples from normal distributions, with means and a common unknown variance . The hypotheses are against . The sample means are and , and the unbiased within-sample sample variances areThe pooled sample variance and its resulting standard error areHenceTo justify its reference distribution, under the null is standard normal, while is , independently of the two sample means. Dividing the first variable by the square root of the second divided by seven gives the exact pooled two-sample t statistic, with Student t-distribution . Its one-sided p-value is the lower tailThe associated one-sided 95% confidence interval for isThe printed missing lower bound means that this is a one-sided upper confidence limit, not that a finite lower endpoint should be estimated. With such small samples the normality and common-variance assumptions matter; a Welch analysis would use a different variance estimate and generally different degrees of freedom.
The second output is the Wilcoxon rank sum test for two independent continuous samples. Under a common-distribution null hypothesis, labels are exchangeable conditional on the pooled values, so the four ranks assigned to the first sample form a uniformly chosen four-element subset of . The first sample receives ranks , giving raw rank sumEquivalently the Mann–Whitney U test statistic is , the number of cross-sample pairs with an observation larger than a observation. This output reports the raw rank sum, rather than the shifted statistic used by some software.
A first sample tending to be smaller has a small rank sum. Under the null, all rank allocations have equal probability. Only and have rank sum at most 11. By the exact rank-sum tail one above the minimum, the exact lower-tail p-value isNo large-sample normal approximation or continuity correction is involved; the absence of ties makes this simple enumeration valid. For a common-shape location-shift family, the test's alternative is a negative location shift of relative to . Without that model, the null is equality of distributions and the rank comparison is not simply a test of equality of means or medians.
Both tests reject at the 5% level in the direction of smaller observations; only the pooled t-test rejects at 1%. The t-test uses the numerical spacing and targets a mean difference under its normal model. The rank-sum test uses ordering and an exact exchangeability calculation, avoiding the normality and common-normal-variance assumptions. Their different p-values therefore reflect both different statistics and different modelling assumptions, not a numerical contradiction.
Past exam of the mathematics course of the University of Cambridge 2005 ib Paper 3 8D Solution Created 2026-09-24 Updated 2026-10-14
Write and . The normal-sample likelihood isWithout the mean restriction, its maximum has and . Under the null, the maximizing variance is . Substituting them gives the generalized likelihood-ratio test statisticwhere and . Assume ; almost surely for positive population variance.
The ratio decreases strictly as increases, so rejecting for small is equivalent to rejecting for large . Under , has Student's t-distribution with degrees of freedom. Therefore the exact size- rule isThis is the two-sided Student's t-test. Equivalently reject when . No large-sample chi-squared approximation is needed for this normal-mean likelihood ratio with unknown variance.
Past exam of the mathematics course of the University of Cambridge 2015 ii Paper 4 10J Solution Created 2026-09-24 Updated 2026-10-06
Write . Minimizing the residual sum of squares first over the coefficients of reduces the problem to minimizing . Full column rank ensures . Thus the partial regression formula and its variance areThis uses and the isotropic error covariance matrix .
Since the span of is contained in the column space of , orthogonal projection onto the latter removes at least as much squared norm. Consequentlyand inversion proves the requested lower bound. Full rank makes the denominator positive.
Adding to column leaves the column space unchanged. Every old fitted vector is reproduced by keeping all slopes unchanged and replacing the regression intercept by . Uniqueness of the ordinary least squares estimators then proves that slope is unchanged. In particular all columns can be centered by such changes. Applying the previous projection argument to the centered design proves the bound with and ; the normalized inner product is now the usual sample correlation.
Each reported coefficient test is the two-sided Student's t-test of against , conditional on the other predictors. Under the null, has a Student's t-distribution with degrees of freedom. At five percent the intercept is significant, but neither individual test slope is. The final F-test compares the full model against an intercept-only model: . It has degrees of freedom and rejects at five percent, since its -value is . Thus the predictors jointly explain variation, without strong evidence separating their individual conditional effects.
The two test predictors have sample correlation , although each has only moderate correlation with the final exam response. The variance inflation factor is . Their nearly shared direction produces substantial multicollinearity, inflating the individual slope standard errors. The joint F-test can detect this common predictive direction even though either coefficient, given the other, has a large -value.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 206 2 d Solution Created 2026-10-03 Updated 2026-10-05
The quasibinomial regression retains the logit link and mean function but uses the working variance function . Its quasi-score equation isso multiplying by the common dispersion parameter does not change the coefficient estimates. Iteratively reweighted least squares therefore gives the same fitted means and coefficients as the binomial model. The usual Pearson dispersion estimator isThe estimated coefficient covariance matrix is , with . From the intercept standard errors, ; the rounded slope errors give approximately the same factor. The display uses approximate Student's t-tests with 118 residual degrees of freedom instead of fixed-dispersion normal tests.
For a genuinely individual binary response, the Bernoulli distribution identity forces . Thus is a working quasi-likelihood specification, not a different independent binary distribution with that mean. The mild estimated underdispersion does not establish an improved model, and the mean predictions are unchanged. In particular, a scalar rescaling does not model correlation among users, and usual likelihood-based Akaike information criterion comparisons are unavailable for a family without a specified probability likelihood. The output gives no convincing reason to prefer model3 to model2.
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 2 5J a Solution Created 2026-09-24 Updated 2026-10-05
Use the usual normal linear model , with fixed full-column-rank design , , and . These Gaussian distribution and constant-variance hypotheses are necessary for an exact finite-sample Student's t-test. Put and . The vector of ordinary least squares estimators satisfiesWith , the test statistic isUnder the null hypothesis, has Student's t-distribution with degrees of freedom. A two-sided level- Student's t-test rejects when . If the intended test is one-sided against , it rejects when ; the statistical power conclusion below holds for either convention.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 218 6 c Solution Created 2026-10-03 Updated 2026-10-05
The command performs a nested-model F-test for against , retaining the intercept and coefficient in both models. Write and for the residual sum of squares in the reduced and full fits. Under and the independent normal-error assumptions,By Cochran's theorem, the numerator and denominator are independent scaled chi-squares with one and degrees of freedom. Equivalently, for this single-coefficient restriction, , so its p-value equals that of the two-sided coefficient Student's t-test in model3.
Using the printed value gives and . The printed estimate and standard error instead giveThis discrepancy is present in the PDF and is too large to be explained by rounding at the shown precision; the underlying ANOVA output is omitted, so an exact unique statistic cannot be recovered. The univariate correlation and value imply , consistent with after rounding. With denominator degrees of freedom 97, the two versions give p-values approximately and , respectively. Either way the partial effect is not significant at 5%.
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 4 5J a i Solution Created 2026-09-24 Updated 2026-09-29
The individual t-tests only test each regression coefficient after adjusting for the other covariate. Here neither covariate is individually significant at conventional levels, but from the abbreviated coefficient table alone one cannot conclude that neither explains the response: strong multicollinearity can make both standard errors large even when the covariates are jointly useful.
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 4 5J b Solution Created 2026-09-24 Updated 2026-09-29
The intercept-only model has residual degrees of freedom, so the sample size is . The one-covariate model and full model therefore have respectively and residual degrees of freedom. The completed sequential analysis of variance table hasThus the missing sums of squares are and , and the corresponding F-statistics are approximately and . The first p-value is below ; the second is approximately . The tiny second increment is consistent with the reported t-test because, for one added coefficient, the partial F-statistic equals the squared t-statistic up to displayed rounding.
Regression coefficient test power ignores nuisance coefficients Created 2026-10-05 Updated 2026-10-14
In a fixed full-rank normal linear model, the studentized estimator of one coefficient has a noncentral t-distribution with noncentrality equal to that coefficient divided by its standard deviation. The fitted and residual orthogonal projections of the Gaussian noise are independent. Therefore the statistical power of its exact Student's t-test does not depend on the other regression coefficients, with design and variance fixed.