Multivariate statistics
Intermediate
What you need first. Nothing else on this path comes first. This page is part of Statistical inference.
In multivariate data, multivariate statistics is the analysis of observations that are vectors of measurements, jointly rather than one coordinate at a time. An observation in a medical record, a survey, or an image is rarely one number. It is a vector: several symptoms, several test scores, the intensities of many pixels. Multivariate statistics is the set of methods that keep those numbers together. Means become vectors, variances become matrices, and the scientific question is often whether the vector, not any single coordinate, differs between groups or can be compressed into fewer directions. Analysing each coordinate by itself and then listing the significant ones answers a different question. The joint question is why the vector was recorded.[1][2]
Multivariate statistics
| Fact | Value |
|---|---|
| Topic | Statistical inference |
| Listed on | Statistical inference |
| Worked example | 1 |
Motivating example
Three patients each have a systolic blood pressure and a resting heart rate. The pairs are , , and , written in units that have already been centred for the arithmetic below so that the story is about association rather than about the clinical scale. The blood-pressure mean is and the heart-rate mean is . Each margin, looked at alone, is a short list of numbers with a mean and a spread. The pair is a different object: when blood pressure sits above its mean, heart rate in this tiny file tends to sit below its mean. A covariance records that tendency. Two separate variances do not. A clinician who reports only the two means has described the margins and has not described the joint pattern the two measurements were taken to capture.[2][3]
The same structure appears whenever one unit contributes many numbers. A psychological scale is several items. A census tract is several indicators. An image patch is many pixels. Multivariate statistics is the decision to treat the unit as the observation and the numbers as coordinates of one vector.
Intuition
One coordinate has a centre and a spread. Two coordinates have a centre, two spreads, and a statement about whether they move together. The statement is a sum of products of deviations. A product is positive when the two deviations have the same sign and negative when they have opposite signs. Adding the products and scaling by the spreads produces a correlation between and . The correlation is a property of the pair. It cannot be recovered from the two spreads, because the spreads throw away the sign of each product.
With more than two coordinates the same idea becomes a matrix. The diagonal holds the spreads. The off-diagonal holds the products. A linear combination of the coordinates, such as a weighted sum of test scores, has a variance that depends on the whole matrix, not on the diagonal alone. That is why a method that keeps only the separate standard deviations is not yet a multivariate method. The joint second-moment structure is the part that changes the answer.
When the scientific target is a class rather than a mean, the same matrix becomes a description of how the features scatter inside each class. A classifier that ignores the off-diagonal treats the features as unrelated. A classifier that uses it can tilt the boundary. Both are multivariate as soon as the observation is a vector. They differ in whether the response is a label or is absent.[1][2]
Definition
Multivariate statistics treats data in which each observation is a collection of measurements. In the language of statistical learning the measurements are inputs, predictors, or features, and there may also be a response. When a response is present the analysis is supervised: the fit relates the response to the vector. When there is no response the analysis is unsupervised: for each observation one sees a vector and nothing to predict, and the structure has to be found in the vectors themselves. Classification is the supervised case in which the response is a class label and the rule partitions the space of vectors into regions. The field includes both, and it includes the probability models, such as the multivariate normal distribution, that give those vectors a joint distribution.[1][2]
Write the th observation as a column . The sample mean vector is the coordinate-wise average
The sample covariance matrix, with divisor , has entries
The diagonal entries are ordinary sample variances. The off-diagonal entries are sample covariances. A correlation is the covariance divided by the product of the two standard deviations. These are the descriptive summaries that replace the mean and variance of a one-variable course. Inferential procedures then treat and the matrix as estimators of a population mean vector and a population covariance, under a joint model.
Multivariate analysis is one of the standard tools of biostatistics, next to regression and resampling, because a patient or an organism is measured in several ways at once. The same methods appear when several scores define a scale and when several indicators describe one area. The field is not a licence to run a separate one-variable test on every coordinate and ignore the rest.[3][2]
Properties
The covariance matrix is symmetric, because . It is positive semidefinite: for every vector of weights , the variance of the linear combination is , which cannot be negative. A correlation matrix is the covariance matrix of the standardised coordinates, so its diagonal is one. Standardising a coordinate changes the variances and the covariances by the same scale factors and leaves the correlations unchanged. Adding a constant to a coordinate leaves both the covariance and the correlation unchanged, because deviations from the mean do not see the constant.
A joint shift of the mean can be invisible in every margin and obvious in the pair, or visible in a margin and unimportant jointly. The second-moment matrix is what makes those two situations different. Hotelling’s test compares mean vectors using the covariance, so that a difference aligned with a direction of small variance counts for more than the same Euclidean difference aligned with a direction of large variance. Two separate tests do not make that comparison. They also do not control the joint error rate of the two decisions.
Principal component directions replace the original coordinates with orthogonal linear combinations ordered by variance. The first component maximises subject to . Later components maximise the same quantity subject to being orthogonal to the earlier ones. The sum of the component variances equals the trace of , the sum of the original variances, so the decomposition does not invent variation. It reorganises it. Factor analysis explains the coordinates by a smaller set of latent factors plus coordinate-specific noise, which is a model for , not only a rotation of it.
Classification uses the same matrix as a within-class scatter. Linear discriminant analysis separates classes by a linear function of the features. If class scores are linear in the features, the boundary where two scores are equal is a hyperplane. The Bayes classifier, which assigns the class with the highest posterior probability, has the lowest possible error rate when the class-conditional distributions are correct. Estimated discriminants approximate that rule. They do not inherit the optimum merely by being called Bayes.[1][2]
Unsupervised methods are harder to check than supervised ones. There is no held-out response that the fitted summary must predict. A component plot or a clustering can be useful and still not be a unique description of the sample. With censored or binary coordinates the models become multivariate regressions rather than a single normal sample, but the object is still the vector.[2]
Worked example
Three observations on two coordinates are , , and . The coordinate means are
The deviations are , , and . The sums of squared deviations are for the first coordinate and for the second. The sum of products is
With divisor , the sample variances are and , and the sample covariance is . The correlation is
The negative sign matches the products: the third observation is high on the first coordinate and low on the second, and nothing in the other two observations cancels that product. The two variances are equal and positive, and they do not determine the sign. A report that listed and and omitted would have described two margins and missed the association.[2]
Your turn. Four observations are , , , and . Find the mean vector, the sum of products of deviations, and the correlation.
The mean vector is . The centred points are , , , and . The products are , , , and , which sum to . The correlation is .
Assumptions and limits
The sample covariance estimates a population covariance when the vectors are independent draws from a distribution that has second moments. A multivariate normal model adds the assumption that the mean vector and the covariance determine the whole distribution. Many procedures, including Hotelling’s test and linear discriminant analysis with shared covariance, use that model for their exact null distributions. The descriptive matrix can still be computed when the vectors are not normal. The -value that treats as Wishart, or the linear boundary that treats each class as normal with covariance , cannot.
The divisor requires . A covariance matrix of coordinates has free entries. When is large relative to , those entries are estimated from too little information, is singular or unstable, and a method that inverts has to be replaced by a reduced-rank summary, a penalised covariance, or a method that never forms explicitly. Principal components remain defined, but the leading components can track noise.
Dependence among the units is a different failure. Repeated measures on the same patient are not independent vectors. Treating them as independent understates the variance of . A multilevel or longitudinal model is the remedy when the dependence has a grouping. A multivariate method that assumes independent vectors does not become valid because the coordinates inside each vector were modelled jointly.
Marginal tests are a limit of interpretation rather than of algebra. A coordinate can differ between groups in a one-variable test and not in the joint test, or the reverse, because the joint test uses the covariance. Reporting every marginal -value as if it were a joint finding multiplies the error rate and ignores the reason the coordinates were collected together.[1][3]
Connections
Multivariate statistics supplies the joint models used in medical statistics, psychological statistics, and pattern recognition. Structural equation modelling is the branch that puts latent variables and directed relations on top of the covariance matrix. Partial correlation describes the association of two coordinates after others are held fixed. Supervised learning is the case with a response, and unsupervised learning is the case without one. A significant marginal test on one coordinate can vanish, or reverse, once the other coordinates are in the model. That is a property of the joint distribution. It is the reason the vector was recorded.[2][3][1]
Check yourself
Try these questions before opening an answer.
Variances and a correlation
Why can two marginal variances be equal and positive while the correlation of the same two coordinates is negative?
The variances are sums of squares of deviations. The correlation also uses the products of paired deviations, and those products can be negative.
Total variation
Why does a principal-component decomposition not increase the total variation of the coordinates?
The component variances sum to the trace of the covariance matrix, which is the sum of the original variances.
Checking a summary
Why is an unsupervised summary harder to check than a classifier?
A classifier has a response that can be scored on cases the rule did not use. An unsupervised summary has no response to get wrong.
See also
Line chart · Apriori algorithm · Asymptotic analysis · Average treatment effect · Base rate · Bayesian inference · Bayesian model · Bayesian probability
References
- ^ a b c d e f a. (p. 9, §2.2) b. (pp. 9 and 101) c. (p. 9, §2.2; p. 101, §4.1) d. (p. 101, §4.1) e. (p. 101, §4.1) f. (pp. 9 and 101) Hastie, T., Tibshirani, R. & Friedman, J. (2009). The Elements of Statistical Learning. Springer. https://doi.org/10.1007/978-0-387-84858-7
- ^ a b c d e f g h i a. (p. 26, §2.1.4) b. (p. 26, §2.1.4) c. (p. 26, §2.1.4) d. (p. 26, §2.1.4) e. (p. 26, §2.1.4) f. (p. 142, §4.4) g. (p. 26, §2.1.4) h. (p. 26, §2.1.4) i. (pp. 26 and 142) James, G., Witten, D., Hastie, T. & Tibshirani, R. (2021). An Introduction to Statistical Learning: with Applications in R (2nd ed.). Springer, New York. https://doi.org/10.1007/978-1-0716-1418-1
- ^ a b c d a. (p. 49, Biostatistics) b. (p. 49, Biostatistics) c. (p. 49, Biostatistics) d. (p. 49) Dodge, Yadolah (2008). The Concise Encyclopedia of Statistics. Springer. https://doi.org/10.1007/978-0-387-32833-1
Cite this page
StatWiki (2026). "Multivariate statistics." StatWiki. Last updated 2 December 2026. https://www.statwiki.io/articles/multivariate-statistics.html
@misc{statwiki_multivariate_statistics,
author = {{StatWiki}},
title = {{Multivariate statistics}},
year = {2026},
url = {https://www.statwiki.io/articles/multivariate-statistics.html},
urldate = {2026-12-02},
note = {StatWiki, last updated 2 December 2026}
}