ArticleslgStudy

mathematics

Estimation of covariance matrices

Estimation of covariance matrices is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Estimation of covariance matrices rather than just read about it. In short: In statistics, sometimes the covariance matrix of a multivariate random variable is not known but has to be estimated. Estimation of covariance matrices then deals with the question of how to approximate the actual covariance matrix on the basis of a sample from the multivariate distribution.

Key takeaways

  • Estimation of covariance matrices belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Estimation of covariance matrices to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Estimation of covariance matrices from memory before moving on to harder problems.

Reference excerpt

In statistics, sometimes the covariance matrix of a multivariate random variable is not known but has to be estimated. Estimation of covariance matrices then deals with the question of how to approximate the actual covariance matrix on the basis of a sample from the multivariate distribution. Simple cases, where observations are complete, can be dealt with by using the sample covariance matrix. The sample covariance matrix (SCM) is an unbiased and efficient estimator of the covariance matrix if the space of covariance matrices is viewed as an extrinsic convex cone in Rp×p; however, measured using the intrinsic geometry of positive-definite matrices, the SCM is a biased and inefficient estimator. In addition, if the random variable has a normal distribution, the sample covariance matrix has a Wishart distribution and a slightly differently scaled version of it is the maximum likelihood estimate. Cases involving missing data, heteroscedasticity, or autocorrelated residuals require deeper considerations. Another issue is the robustness to outliers, to which sample covariance matrices are highly sensitive. Statistical analyses of multivariate data often involve exploratory studies of the way in which the variables change in relation to one another and this may be followed up by explicit statistical models involving the covariance matrix of the variables. Thus the estimation of covariance matrices directly from observational data plays two roles:

to provide initial estimates that can be used to study the inter-relationships; to provide sample estimates that can be used for model checking. Estimates of covariance matrices are required at the initial stages of principal component analysis and factor analysis, and are also involved in versions of regression analysis that treat the dependent variables in a data-set, jointly with the independent variable as the outcome of a random sample.

Estimation in a general context Given a sample consisting of n independent observations x1,..., xn of a p-dimensional random vector X ∈ Rp×1 (a p×1 column-vector), an unbiased estimator of the (p×p) covariance matrix

Σ⁡=E⁡[(X−E⁡[X])(X−E⁡[X])T] is the sample covariance matrix

𝐐=1n−1∑i=1n(xi−x‾)(xi−x‾)T, where xi is the i-th observation of the p-dimensional random vector, and the vector

x‾=1n∑i=1nxi is the sample mean. This is true regardless of the distribution of the random variable X, provided of course that the theoretical means and covariances exist. The reason for the factor n − 1 rather than n is essentially the same as the reason for the same factor appearing in unbiased estimates of sample variances and sample covariances, which relates to the fact that the mean is not known and is replaced by the sample mean (see Bessel's correction). In cases where the distribution of the random variable X is known to be within a certain family of distributions, other estimates may be derived on the basis of that assumption. A well-known instance is when the random variable X is normally distributed: in this case the maximum likelihood estimator of the covariance matrix is slightly different from the unbiased estimate, and is given by

𝐐𝐧=1n∑i=1n(xi−x‾)(xi−x‾)T. A derivation of this result is given below. Clearly, the difference between the unbiased estimator and the maximum likelihood estimator diminishes for large n. In the general case, the unbiased estimate of the covariance matrix provides an acceptable estimate when the data vectors in the observed data set are all complete: that is they contain no missing elements. One approach to estimating the covariance matrix is to treat the estimation of each variance or pairwise covariance separately, and to use all the observations for which both variables have valid values. Assuming the missing data are missing at random this results in an estimate for the covariance matrix which is unbiased. However, for many applications this estimate may not be acceptable because the estimated covariance matrix is not guaranteed to be positive semi-definite. This could lead to estimated correlations having absolute values which are greater than one, and/or a non-invertible covariance matrix. When estimating the cross-covariance of a pair of signals that are wide-sense stationary, missing samples do not need be random (e.g., sub-sampling by an arbitrary factor is valid).

Maximum-likelihood estimation for the multivariate normal distribution

A random vector X ∈ Rp (a p×1 "column vector") has a multivariate normal distribution with a nonsingular covariance matrix Σ precisely if Σ ∈ Rp × p is a positive-definite matrix and the probability density function of X is

f(x)=(2π)−p2det⁡(Σ)−12exp⁡(−12(x−μ)TΣ−1(x−μ)) where μ ∈ Rp×1 is the expected value of X. The covariance matrix Σ is the multidimensional analog of what in one dimension would be the variance, and

(2π)−p2det⁡(Σ)−12 normalizes the density f(x) so that it integrates to 1. Suppose now that X1, ..., Xn are independent and identically distributed samples from the distribution above. Based on the observed values x1, ..., xn of this sample, we wish to estimate Σ.

First steps The likelihood function is:

ℒ(μ,Σ)=(2π)−np2∏i=1ndet⁡(Σ)−12exp⁡(−12(xi−μ)TΣ−1(xi−μ)) It is fairly readily shown that the maximum-likelihood estimate of the mean vector μ is the "sample mean" vector:

x‾=x1+⋯+xnn. See the section on estimation in the article on the normal distribution for details; the process here is similar. Since the estimate x¯ does not depend on Σ, we can just substitute it for μ in the likelihood function, getting

ℒ(x‾,Σ)∝det⁡(Σ)−n2exp⁡(−12∑i=1n(xi−x‾)TΣ−1(xi−x‾)), and then seek the value of Σ that maximizes the likelihood of the data (in practice it is easier to work with log ℒ).

The trace of a 1 × 1 matrix Now we come to the first surprising step: regard the scalar (xi−x‾)TΣ−1(xi−x‾) as the trace of a 1×1 matrix. This makes it possible to use the identity tr(AB) = tr(BA) whenever A and B are matrices so shaped that both products exist. We get

ℒ(x‾,Σ)∝det⁡(Σ)−n2exp⁡(−12∑i=1n((xi−x‾)TΣ−1(xi−x‾)))=det⁡(Σ)−n2exp⁡(−12∑i=1ntr⁡((xi−x‾)(xi−x‾)TΣ−1))=det⁡(Σ)−n2exp⁡(−12tr⁡(∑i=1n(xi−x‾)(xi−x‾)TΣ−1))=det⁡(Σ)−n2exp⁡(−12tr⁡(SΣ−1)) where

S=∑i=1n(xi−x‾)(xi−x‾)T∈𝐑p×p. S is sometimes called the scatter matrix, and is positive definite if there exists a subset of the data consisting of p affinely independent observations (which we will assume).

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Estimation of covariance matrices

Start with the simplest possible case. Write down what Estimation of covariance matrices claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Estimation of covariance matrices before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Estimation of covariance matrices ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Estimation of covariance matrices

In research
Estimation of covariance matrices appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Estimation of covariance matrices in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Estimation of covariance matrices is common in secondary-school and first-year university syllabi. It links to neighbouring topics Estimation methods, Statistical deviation and dispersion, so understanding it makes those chapters shorter.
In everyday life
Look for Estimation of covariance matrices outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Estimation of covariance matrices” →

How to study Estimation of covariance matrices in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Estimation of covariance matrices means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Estimation of covariance matrices out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Estimation of covariance matrices in simple terms?

In statistics, sometimes the covariance matrix of a multivariate random variable is not known but has to be estimated. Estimation of covariance matrices then deals with the question of how to approximate the actual covariance matrix on the basis of a sample from the multivariate distribution.

Why does Estimation of covariance matrices matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Estimation of covariance matrices?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Estimation of covariance matrices.

Tags

  • Estimation methods
  • Statistical deviation and dispersion

Keep exploring