Correlation matrix 2026-10-14
For a random vector with covariance and positive coordinate variances, let . Its correlation matrix is the covariance of , so it is positive semidefinite with unit diagonal. Each entry is the correlation of the corresponding pair of variables. In particular , explaining why an eigenvalue in correlation-based principal component analysis represents that eigenvalue divided by of the total variance. The empirical version is the sample correlation matrix.
For independent observations from a nonsingular multivariate normal distribution with unknown mean, let . The unrestricted maximum-likelihood estimator of covariance is , while the diagonal restriction gives . The fitted trace terms both equal , so twice the log-likelihood difference is , where is the sample correlation matrix. Under the diagonal null hypothesis and fixed dimension, the Wilks theorem gives .
For independent multivariate normal observations with unrestricted mean and positive-definite sample covariance matrix , the unrestricted maximum-likelihood estimates are . Requiring a diagonal population covariance matrix gives the same mean and covariance estimate . Both fitted quadratic terms equal , so their likelihood quotient is , where is the sample correlation matrix. Small determinants give evidence against diagonality. For two variables this is a two-sided test of their sample correlation.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 30 1 ii Solution Created 2026-10-03 Updated 2026-10-14
Under the diagonal covariance restriction, the profile log-likelihood separates into terms,Differentiating each term gives the restricted maximum-likelihood estimator . Both fitted trace terms equal , so the likelihood-ratio test statistic iswhere is the sample correlation matrix. The statistic is nonnegative by the Hadamard inequality; large values indicate dependence. Equivalently, the likelihood ratio is and rejection is for small values of this ratio.
For fixed and a positive-definite true covariance, the Wilks theorem says that twice the maximized log-likelihood difference for nested regular models converges under the null to a chi-squared distribution with degrees of freedom equal to the dimension difference. The unrestricted covariance has parameters and the restricted covariance has ; the unknown mean has the same parameters in both. Therefore the Gaussian covariance diagonality likelihood-ratio test of asymptotic level isWithin the multivariate normal distribution, diagonal covariance also means independent coordinates.
Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 46 3 b iv Solution Created 2026-10-03 Updated 2026-10-14
If the change is purely a rescaling of the physics mark, write , where . The sample covariance matrix transforms asThe physics variance is multiplied by , becoming approximately . Each covariance between physics and another subject is multiplied by , and all other entries stay unchanged. Principal component analysis on this new sample covariance matrix maximizes variance in the new numerical units, so its eigenvectors and explained variance of a principal component generally change. Physics receives disproportionately greater influence simply because its unit has changed.
One solution is to convert the physics marks back to the original scale before doing principal component analysis. Alternatively, use principal component analysis on a correlation matrix: standardize every subject byA positive change of units multiplies both a centered variable and its standard deviation by the same factor. Thus it leaves and the sample correlation matrix unchanged.
Correlation-based principal component analysis is invariant under positive changes of units; covariance-based principal component analysis is not. Standardizing gives each subject unit variance, which is a different weighting choice and can emphasize relatively low-variance subjects. If the revised assessment changes the scores themselves rather than just their units, its sample correlation matrix may also change, and mere standardization cannot recover the original analysis.
Past exam of the mathematics course of the University of Cambridge 2009 iii Paper 102 3 a Solution Created 2026-10-03 Updated 2026-10-14
Only four of the twenty provider records are printed, and the full emailed file has not been recovered. The four observed passenger averages have mean , median , sample standard deviation and range --. Their bus-mile mean is , with range --; the highest passenger average belongs to the provider with the lowest bus miles and zero fare. That is a useful diagnostic of differing service patterns, not evidence of a population-wide negative mileage effect.
For the complete dataset, use scatter plots of passenger average against bus miles, fare and population, and inspect population-scaled demographic counts as well as their raw counts. Compare marginal distributions and the sample correlation matrix, especially among population, older residents, low-income households and poverty households: these measure overlapping aspects of area size and composition and can create multicollinearity. Inspect the zero fare directly; a logarithm of fare is undefined there, so do not silently drop it. All four displayed rows belong to the fixed-route group, so they cannot support a between-service comparison.
The figure labels its bus panel as a four-row excerpt. Twenty-provider summaries and exploratory conclusions cannot be determined from these four rows. In particular a full eight-parameter regression has more parameters than observed rows; reporting a fitted full-data model from this excerpt would be unjustified.
Sample correlation matrix 2026-10-14
A sample correlation matrix rescales a sample covariance matrix to unit diagonal, for variables with positive sample variance. Its off-diagonal entries are sample correlation coefficients. Strong correlations between predictors can indicate multicollinearity, but pairwise correlations alone do not exclude higher-order linear dependence.