Home Statistical Dictionary Quadratic Form
Quadratic Form
A scalar-valued expression built from a vector and a matrix, x'Ax, generalizing a sum of squares to allow cross-terms weighted by the matrix's off-diagonal entries -- the algebraic form underlying sums of squares in ANOVA, the multivariate normal density's exponent, and the Mahalanobis distance.
In Plain English
A quadratic form is what you get when you sandwich a matrix between a vector and its own transpose, and the result is always a single number, not another vector or matrix. It's the natural generalization of a plain sum of squares to situations where the different components aren't independent of each other, which is exactly why the exponent of the multivariate normal density, and Mahalanobis distance, both use quadratic forms built from the inverse covariance matrix rather than a simple sum of squared deviations.
Definition
For an matrix and a vector , the quadratic form is the scalar . When , the quadratic form reduces to the ordinary sum of squares ; more generally, the sign behavior of across all nonzero classifies as positive definite, positive semi-definite, negative definite, or indefinite. Quadratic forms are central to statistics well beyond this classification role, every ANOVA sum of squares is a quadratic form in the observed data, the exponent of the multivariate normal density is the quadratic form , and the Mahalanobis distance is the square root of that same expression.
Formula
Notation
Worked Example
For and , the quadratic form expands to -- note the off-diagonal entry (1) contributes a cross-term , doubled because it appears symmetrically in both and .
Properties
- Every ANOVA sum of squares (treatment, error, total) can be written as a quadratic form in the observed data vector, for an appropriate idempotent matrix -- this quadratic-form representation is what underlies Cochran's theorem, which establishes the independence and chi-squared distributions of the pieces of an ANOVA decomposition.
- The exponent of the multivariate normal probability density is the quadratic form -- because is positive definite, this quadratic form is always non-negative, and its square root is exactly the Mahalanobis distance, a variance-adjusted measure of how far a point sits from the distribution's mean.
- Only the symmetric part of a matrix contributes to its quadratic form -- for any matrix , , which is why quadratic forms in statistics are, by convention, almost always written with a symmetric matrix in the first place.
At a Glance
Used in These Tests