Canonical discriminant directions 2026-10-14
For positive-definite within-group scatter and between-group scatter , directions maximizing solve the displayed generalized eigenvalue problem. Put ; the quotient becomes the Rayleigh quotient of . Its ordered orthonormal eigenvectors give directions orthogonal in the inner product. There are at most nonzero directions, where is the number of groups. These directions summarize separation for linear discriminant analysis.
Gaussian Bayes classifier Created 2026-09-24 Updated 2026-10-14
For two multivariate normal densities, the Bayes log posterior odds are a quadratic polynomial. Equal covariance matrices cancel the quadratic term and give linear discriminant analysis; unequal covariance matrices give quadratic discriminant analysis.
Kernel linear discriminant analysis Created 2026-10-03 Updated 2026-10-14
Kernel linear discriminant analysis performs regularized linear discriminant analysis in a Reproducing kernel Hilbert space, using kernel evaluations to obtain nonlinear decision boundaries in the original input space.
Past exam of the mathematics course of the University of Cambridge 2004 iii Paper 43 2 iii Solution Created 2026-10-03 Updated 2026-10-14
The within-group and between-group scatter decomposition separates noise from group separation: measures variation about each group sample mean, and measures separation of those means about the overall sample mean. In linear discriminant analysis, seek a projection maximizing between-group relative to within-group variation,Normalize by ; a Lagrange multiplier calculation gives the generalized eigenvalue problem . The leading canonical discriminant directions have the largest eigenvalues, and subsequent directions are orthogonal in the inner product. There are at most nonzero separating directions. Projecting observations onto these directions gives a low-dimensional display of group separation.
For classification, estimate the common covariance matrix by and use the linear discriminant analysis scoreswhere are class prior probabilities. Assign to the largest score. The same within-group scatter sets the noise scale, while between-group scatter selects the directions in which the group means separate most strongly.
Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 46 2 b ii Solution Created 2026-10-03 Updated 2026-10-14
Evaluating the fitted linear discriminant analysis score givesThe fifth individual lies exactly on the discriminant boundary. Its two fitted posterior probabilities are equal, so the equal-prior Bayes classifier cannot prefer either species. A specified tie convention could assign it to one species, but such an assignment would not be evidence favoring that species.
In the sketch the solid line is the equal-prior boundary. The dashed line is the prior-dependent Gaussian discriminant boundary for the altered priors in (iii).
Beetle classifications and the parallel boundary shift when fattus has twice the prior probability
. Details. Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 46 2 b i Solution Created 2026-10-03 Updated 2026-10-14
Use a multivariate normal distribution within each species, a common positive-definite covariance matrix, equal prior odds and equal misclassification costs. Assume the training observations are independent and representative of the populations. Substituting the sample means and pooled sample covariance matrix gives a fitted linear discriminant analysis rule, rather than a rule with known population parameters.
The determinant of the pooled covariance is , soThe midpoint of the sample means is , whose scalar product with is . Hence the fitted log likelihood ratio isAssign fattus when and apathus when ; either assignment is optimal on under equal priors. The separating line is , with fattus below it. As a sign check, the scores at the two sample means are and , respectively. This uses the corrected Gaussian Bayes classifier from (a).
Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 47 2 c Solution Created 2026-10-03 Updated 2026-10-14
For common positive-definite covariance, subtracting the two Gaussian log densities cancels the quadratic term. Equal priors leave the linear discriminant analysis scoreHereThusAssign class two if the expression is negative; a tie has zero probability under either continuous Gaussian law.
To compute the error rather than just specify the boundary, put . Within class one the score has mean , and within class two mean . In both classes its variance is . Hence both conditional error probabilities are , where is the standard normal distribution function. Equal priors give the equal-covariance Gaussian classification errorFor the specified observation, the score is , so assign it to class one.
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 3 28K a Solution Created 2026-09-24 Updated 2026-09-25
Let be the multivariate normal density of . Under zero-one loss, the Bayes classifier chooses the class with the larger posterior probability. ThusEquivalently, it chooses class one when the log posterior oddsis nonnegative. The decision boundary is .
If , the terms cancel, leavingan affine function. This is the linear boundary of linear discriminant analysis. If , the quadratic part iswhich is nonzero, so the boundary is a possibly degenerate quadratic hypersurface, as in quadratic discriminant analysis. This is the Gaussian Bayes classifier.
