List of statistics articles: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>Michael Hardy
F: en-dash
 
en>Noiseball
Line 1: Line 1:
[[Image:Gaussian-2d.png|thumb|right|A [[multivariate Gaussian distribution|bivariate Gaussian probability density function]] centered at (0, 0), with covariance matrix [ 1.00, 0.50 ; 0.50, 1.00 ]. ]]


[[Image:GaussianScatterPCA.png|thumb|right|Sample points from a [[multivariate Gaussian distribution]] with a standard deviation of 3 in roughly the lower left-upper right direction and of 1 in the orthogonal direction. Because the ''x'' and ''y'' components co-vary, the variances of ''x'' and ''y'' do not fully describe the distribution. A 2×2 covariance matrix is needed; the directions of the arrows correspond to the eigenvectors of this covariance matrix and their lengths to the square roots of the [[eigenvalues]].]]


Offer a strategy and conjointly battle activation where then you must manage your different tribe and also protect it. You have so as to build constructions which will provide protection for your current soldiers along with a person's instruction. First direct on your protection and consequently after its recently been very taken treatment. Crucial to move forward now with the criminal offense process. As well as your company Military facilities, you also need to keep in minds the way your indigneous group is certainly going. For instance, collecting resources as well as raising your own tribe may be the key to good improvements.<br><br>When you are [http://imageshack.us/photos/locating locating] per handle system tough to use, optimize the ways within your activity. The default manage system might not be on everyone. Some people prefer a better express screen, a set linked with more sensitive management otherwise perhaps an inverted component. In several on the net gaming, you may manage these from the setting's area.<br><br>Indeed be aware of how multi player works. Should you're investing in a game exclusively for unique multiplayer, be sure individuals have everything required to gain this. If you really are planning on playing in opposition t a person in your good household, you may ascertain that you will yearn for two copies of the clash of clans cheats to game against one another.<br><br>If the system that your a person is enjoying on can now connect with the Net, be sure that you fix the settings for the family before he performs with it. You're going to be rrn a position to safeguard your kid straight from vulnerability to unsavory content utilizing these filter settings. There are also options to establish the amount of discussion they can participate individuals when online.<br><br>When you have virtually any queries concerning where and also how to use how to hack clash of clans, [http://prometeu.net Recommended Resource site],, you are able to email us from our own site. An internet business is offering Clash created by Clans hack tool trainer to users who demand it. The website offering this tool is safe and it guarantees greatest software. There will also other sites which provide you with the tool. But is a superb either incomplete or of bad quality. When users download these not complete hack tools, instead executing well they end all the way up in trouble. So, players are advised pick the tool from a website that offers complete apps.Users who are finding it tough to mongrel the hurdles can find a site that allows tourists to download the cheats. Most of the websites allow free download along with many websites charge fees. Users can locate a site from where they can obtain good quality software.<br><br>This particular information, we're accessible to positively alpha dog substituting values. Application Clash of Clans Cheats' data, let's say when it comes to archetype you appetite 1hr (3, 600 seconds) within order to bulk 20 gems, and 1 day (90, 900 seconds) to help most 260 gems. It's appropriately stipulate a action for this kind including band segment.<br><br>Now that you have read this composition, you need to a great easier time locating then loving video games on your life. Notwithstanding your favored platform, from your cellphone for the own computer, playing as well enjoying video gaming allows for you to take the benefit of the worries of your busy week get more info.
In [[probability theory]] and [[statistics]], a '''covariance matrix''' (also known as '''dispersion matrix''' or '''variance–covariance matrix''') is a [[Matrix (mathematics)|matrix]] whose element in the ''i'', ''j'' position is the [[covariance]] between the ''i''&nbsp;<sup>th</sup> and ''j''&nbsp;<sup>th</sup> elements of a [[random vector]] (that is, of a [[Euclidean vector|vector]] of [[random variable]]s). Each element of the vector is a [[Scalar (mathematics)|scalar]] random variable, either with a finite number of observed empirical values or with a finite or infinite number of potential values specified by a theoretical [[joint probability distribution]] of all the random variables.
 
Intuitively, the covariance matrix generalizes the notion of [[variance]] to multiple dimensions. As an example, the variation in a collection of random points in two-dimensional space cannot be characterized fully by a single number, nor would the variances in the ''x'' and ''y'' directions contain all of the necessary information; a 2&times;2 matrix would be necessary to fully characterize the two-dimensional variation.
 
== Definition ==
 
Throughout this article, boldfaced unsubscripted '''X''' and '''Y''' are used to refer to random vectors, and unboldfaced subscripted X<sub>i</sub> and Y<sub>i</sub>  are used to refer to random scalars.
 
If the entries in the [[column vector]]
 
:<math> \mathbf{X} = \begin{bmatrix}X_1 \\  \vdots \\ X_n \end{bmatrix}</math>
 
are [[random variable]]s, each with finite [[variance]], then the covariance matrix Σ is the matrix whose (''i'',&nbsp;''j'') entry is the [[covariance]]
 
:<math>
\Sigma_{ij}
= \mathrm{cov}(X_i, X_j) = \mathrm{E}\begin{bmatrix}
(X_i - \mu_i)(X_j - \mu_j)
\end{bmatrix}
</math>
 
where
 
: <math>
\mu_i = \mathrm{E}(X_i)\,
</math>
 
is the [[expected value]] of the ''i''th entry in the vector '''X'''. In other words, we have
 
: <math>
\Sigma
= \begin{bmatrix}
\mathrm{E}[(X_1 - \mu_1)(X_1 - \mu_1)] & \mathrm{E}[(X_1 - \mu_1)(X_2 - \mu_2)] & \cdots & \mathrm{E}[(X_1 - \mu_1)(X_n - \mu_n)] \\ \\
\mathrm{E}[(X_2 - \mu_2)(X_1 - \mu_1)] & \mathrm{E}[(X_2 - \mu_2)(X_2 - \mu_2)] & \cdots & \mathrm{E}[(X_2 - \mu_2)(X_n - \mu_n)] \\ \\
\vdots & \vdots & \ddots & \vdots \\ \\
\mathrm{E}[(X_n - \mu_n)(X_1 - \mu_1)] & \mathrm{E}[(X_n - \mu_n)(X_2 - \mu_2)] & \cdots & \mathrm{E}[(X_n - \mu_n)(X_n - \mu_n)]
\end{bmatrix}.
</math>
 
The inverse of this matrix, <math>\Sigma^{-1}</math> is the '''inverse covariance matrix''', also known as the '''concentration matrix''' or '''precision matrix''';<ref>{{cite book | title=All of Statistics: A Concise Course in Statistical Inference | first=Larry | last=Wasserman | year=2004 | isbn=0-387-40272-1}}</ref> see [[precision (statistics)]]. The elements of the precision matrix have an interpretation in terms of [[partial correlation]]s and [[partial variance]]s.{{Citation needed|date=February 2012}}
 
=== Generalization of the variance ===
 
The definition above is equivalent to the matrix equality
 
:<math>
\Sigma=\mathrm{E}
\left[
\left(
\textbf{X} - \mathrm{E}[\textbf{X}]
\right)
\left(
\textbf{X} - \mathrm{E}[\textbf{X}]
\right)^{\rm T}
\right]
</math>
 
This form can be seen as a generalization of the scalar-valued [[variance]] to higher dimensions. Recall that for a scalar-valued random variable ''X''
 
:<math>
\sigma^2 = \mathrm{var}(X_i)
= \mathrm{E}[(X_i-\mathrm{E}(X_i))^2] = \mathrm{E}[(X_i-\mathrm{E}(X_i))\cdot(X_i-\mathrm{E}(X_i))].\,
</math>
 
Indeed, the entries on the diagonal of the covariance matrix <math>\Sigma</math> are the variances of each element of the vector <math>\mathbf{X}</math>.
 
=== Correlation matrix ===
A quantity closely related to the covariance matrix is the correlation matrix, the matrix of [[Pearson product-moment correlation coefficient]]s between each of the random variables in the random vector <math>\mathbf{X}</math>, which can be written
:<math>\rho_{ij} = \left(\Sigma^{\mathrm{(diag)}}\right)^{-\frac{1}{2}} \, \Sigma \, \left(\Sigma^{\mathrm{(diag)}}\right)^{-\frac{1}{2}}</math>
where <math>\Sigma^{\mathrm{(diag)}}</math> is the matrix of diagonal elements of <math>\Sigma</math> (i.e. a diagonal matrix of each of the variances of ''X''<sub>''i''</sub>).
 
Equivalently, the correlation matrix can be seen as the covariance matrix of the [[standardized variable|standardized random variables]] ''X''<sub>''i''</sub> / σ (''X''<sub>i</sub>) for ''i'' = 1, ..., ''n''.
 
==Conflicting nomenclatures and notations==
Nomenclatures differ. Some statisticians, following the probabilist [[William Feller]], call the matrix <math>\Sigma</math> the '''variance''' of the random vector <math>X</math>, because it is the natural generalization to higher dimensions of the 1-dimensional variance. Others call it the '''covariance matrix''', because it is the matrix of covariances between the scalar components of the vector <math>X</math>. Thus
:<math>
\operatorname{var}(\textbf{X})
=
\operatorname{cov}(\textbf{X})
=
\mathrm{E}
\left[
(\textbf{X} - \mathrm{E} [\textbf{X}])
(\textbf{X} - \mathrm{E} [\textbf{X}])^{\rm T}
\right].
</math>
 
However, the notation for the [[cross-covariance]] ''between'' two vectors is standard:
:<math>
\operatorname{cov}(\textbf{X},\textbf{Y})
=
\mathrm{E}
\left[
(\textbf{X} - \mathrm{E}[\textbf{X}])
(\textbf{Y} - \mathrm{E}[\textbf{Y}])^{\rm T}
\right].
</math>
 
The var notation is found in William Feller's two-volume book ''An Introduction to Probability Theory and Its Applications'',<ref name="Feller1971">{{cite book|author=William Feller|title=An introduction to probability theory and its applications|url=http://books.google.com/books?id=K7kdAQAAMAAJ|accessdate=10 August 2012|year=1971|publisher=Wiley|isbn=978-0-471-25709-7}}</ref> but both forms are quite standard and there is no ambiguity between them.
 
The matrix <math>\Sigma</math> is also often called the variance-covariance matrix since the diagonal terms are in fact variances.
 
== Properties ==
For <math>\Sigma=\mathrm{E} \left[ \left( \textbf{X} - \mathrm{E}[\textbf{X}] \right) \left( \textbf{X} - \mathrm{E}[\textbf{X}] \right)^{\rm T} \right]</math> and <math> \boldsymbol{\mu} = \mathrm{E}(\textbf{X})</math>, where '''X''' is a random ''p''-dimensional variable and '''Y''' a random  ''q''-dimensional variable, the following basic properties apply:<ref name=taboga>{{cite web | last1 = Taboga | first1 = Marco | chapterurl = http://www.statlect.com/varian2.htm | chapter = Covariance matrix | title = Lectures on probability theory and mathematical statistics | year=2010}}</ref>
# <math> \Sigma = \mathrm{E}(\mathbf{X X^{\rm T}}) - \boldsymbol{\mu}\boldsymbol{\mu}^{\rm T} </math>
# <math> \Sigma \,</math> is [[Positive-semidefinite matrix|positive-semidefinite]] and [[symmetric matrix|symmetric]].
# <math> \operatorname{cov}(\mathbf{A X} + \mathbf{a}) = \mathbf{A}\, \operatorname{cov}(\mathbf{X})\, \mathbf{A^{\rm T}} </math>
# <math> \operatorname{cov}(\mathbf{X},\mathbf{Y}) = \operatorname{cov}(\mathbf{Y},\mathbf{X})^{\rm T}</math>
# <math> \operatorname{cov}(\mathbf{X}_1 + \mathbf{X}_2,\mathbf{Y}) = \operatorname{cov}(\mathbf{X}_1,\mathbf{Y}) + \operatorname{cov}(\mathbf{X}_2, \mathbf{Y})</math>
# If ''p'' = ''q'', then <math>\operatorname{var}(\mathbf{X} + \mathbf{Y}) = \operatorname{var}(\mathbf{X}) + \operatorname{cov}(\mathbf{X},\mathbf{Y}) + \operatorname{cov}(\mathbf{Y}, \mathbf{X}) + \operatorname{var}(\mathbf{Y})</math>
# <math>\operatorname{cov}(\mathbf{AX} + \mathbf{a}, \mathbf{B}^{\rm T}\mathbf{Y} + \mathbf{b}) = \mathbf{A}\, \operatorname{cov}(\mathbf{X}, \mathbf{Y}) \,\mathbf{B}</math>
# If <math>\mathbf{X}</math> and <math>\mathbf{Y}</math> are independent or uncorrelated, then <math>\operatorname{cov}(\mathbf{X}, \mathbf{Y}) = \mathbf{0}</math>
 
where <math>\mathbf{X}, \mathbf{X}_1</math> and <math>\mathbf{X}_2</math> are random ''p''×1 vectors, <math>\mathbf{Y}</math> is a random ''q''×1 vector, <math>\mathbf{a}</math> is a ''q''×1 vector, <math>\mathbf{b}</math> is a ''p''×1 vector, and <math>\mathbf{A}</math> and <math>\mathbf{B}</math> are ''q''×''p'' matrices.
 
This covariance matrix is a useful tool in many different areas. From it a [[transformation matrix]] can be derived, called a [[whitening transformation]], that allows one to completely decorrelate the data{{Citation needed|date=February 2012}} or, from a different point of view, to find an optimal basis for representing the data in a compact way{{Citation needed|date=February 2012}} (see [[Rayleigh quotient]] for a formal proof and additional properties of covariance matrices).
This is called [[principal components analysis]] (PCA) and the [[Karhunen-Loève transform]] (KL-transform).
 
=== Block matrices ===
The joint mean <math>\boldsymbol\mu_{X,Y}</math>  and joint covariance matrix <math>\boldsymbol\Sigma_{X,Y}</math> of <math>\boldsymbol{X}</math> and <math>\boldsymbol{Y}</math> can be written in block form
 
:<math>
\boldsymbol\mu_{X,Y}
=
\begin{bmatrix}
\boldsymbol\mu_X \\
\boldsymbol\mu_Y
\end{bmatrix}, \qquad
\boldsymbol\Sigma_{X,Y}
=
\begin{bmatrix}
\boldsymbol\Sigma_{\mathit{XX}} & \boldsymbol\Sigma_{\mathit{XY}} \\
\boldsymbol\Sigma_{\mathit{YX}} & \boldsymbol\Sigma_{\mathit{YY}}
\end{bmatrix}
</math>
 
where <math>\boldsymbol\Sigma_{XX} = \mbox{var}(\boldsymbol{X}), \boldsymbol\Sigma_{YY} = \mbox{var}(\boldsymbol{Y}),</math> and <math>\boldsymbol\Sigma_{XY} = \boldsymbol\Sigma^T_{\mathit{YX}} = \mbox{cov}(\boldsymbol{X}, \boldsymbol{Y})</math>.
 
<math>\boldsymbol\Sigma_{XX}</math> and <math>\boldsymbol\Sigma_{YY}</math> can be identified as the variance matrices of the [[marginal distribution]]s for <math>\boldsymbol{X}</math> and <math>\boldsymbol{Y}</math> respectively.
 
If <math>\boldsymbol{X}</math> and <math>\boldsymbol{Y}</math> are [[Multivariate normal distribution|jointly normally distributed]],
:<math>
\boldsymbol{x}, \boldsymbol{y}  \sim\ \mathcal{N}(\boldsymbol\mu_{X,Y}, \boldsymbol\Sigma_{X,Y})
</math>,
then the [[conditional distribution]] for <math>\boldsymbol{Y}</math> given <math>\boldsymbol{X}</math> is given by
:<math>
\boldsymbol{y}|\boldsymbol{x}  \sim\ \mathcal{N}(\boldsymbol\mu_{Y|X}, \boldsymbol\Sigma_{Y|X})
</math>,<ref name=eaton>{{cite book|last=Eaton|first=Morris L.|title=Multivariate Statistics: a Vector Space Approach|year=1983|publisher=John Wiley and Sons|isbn=0-471-02776-6|pages=116–117}}</ref>
defined by [[conditional mean]]
:<math>
\boldsymbol\mu_{Y|X}
=
\boldsymbol\mu_Y + \boldsymbol\Sigma_{YX} \boldsymbol\Sigma_{XX}^{-1}
\left(
\mathbf{x} - \boldsymbol\mu_X
\right)
</math>
 
and [[conditional variance]]
:<math>
\boldsymbol\Sigma_{Y|X}
=
\boldsymbol\Sigma_{YY} - \boldsymbol\Sigma_{\mathit{YX}} \boldsymbol\Sigma_{\mathit{XX}}^{-1} \boldsymbol\Sigma_{\mathit{XY}}.
</math>
 
The matrix '''Σ'''<sub>YX</sub>'''Σ'''<sub>XX</sub><sup>−1</sup> is known as the matrix of [[regression analysis|regression]] coefficients, while in linear algebra '''Σ'''<sub>Y|X</sub> is the [[Schur complement]] of '''Σ'''<sub>XX</sub> in '''Σ'''<sub>X,Y</sub>
 
The matrix of regression coefficients may often be given in transpose form, '''Σ'''<sub>XX</sub><sup>−1</sup>'''Σ'''<sub>XY</sub>, suitable for post-multiplying a row vector of explanatory variables '''''x'''''<sup>T</sup> rather than pre-multiplying a column vector '''''x'''''. In this form they correspond to the coefficients obtained by inverting the matrix of the [[normal equations]] of [[ordinary least squares]] (OLS).
 
==As a linear operator==
Applied to one vector, the covariance matrix maps a linear combination, '''c''', of the random variables, '''X''', onto a vector of covariances with those variables: <math>\mathbf c^{\rm T}\Sigma = \operatorname{cov}(\mathbf c^{\rm T}\mathbf X,\mathbf X)</math>. Treated as a [[bilinear form]], it yields the covariance between the two linear combinations: <math>\mathbf d^{\rm T}\Sigma\mathbf c=\operatorname{cov}(\mathbf d^{\rm T}\mathbf X,\mathbf c^{\rm T}\mathbf X)</math>. The variance of a linear combination is then <math>\mathbf c^{\rm T}\Sigma\mathbf c</math>, its covariance with itself.
 
Similarly, the (pseudo-)inverse covariance matrix provides an inner product, <math>\langle c-\mu|\Sigma^+|c-\mu\rangle</math> which induces the [[Mahalanobis distance]], a measure of the "unlikelihood" of ''c''.{{Citation needed|date=February 2012}}
 
==Which matrices are covariance matrices?==
 
From the identity just above, let <math>\mathbf{b}</math> be a <math>(p \times 1)</math> real-valued vector, then
 
:<math>\operatorname{var}(\mathbf{b}^{\rm T}\mathbf{X}) = \mathbf{b}^{\rm T} \operatorname{var}(\mathbf{X}) \mathbf{b},\,</math>
 
which must always be nonnegative since it is the [[variance#Properties|variance]] of a real-valued random variable. and the symmetry of the covariance matrix's definition it follows that only a [[positive-semidefinite matrix]] can be a covariance matrix.{{Citation needed|date=February 2012}}  Conversely, every symmetric positive semi-definite matrix is a covariance matrix.  To see this, suppose '''M''' is a ''p''&times;''p'' positive-semidefinite matrix.  From the finite-dimensional case of the [[spectral theorem]], it follows that '''M''' has a nonnegative symmetric [[Square root of a matrix|square root]], that can be denoted by '''M'''<sup>1/2</sup>.  Let <math>\mathbf{X}</math> be any ''p''&times;1 column vector-valued random variable whose covariance matrix is the ''p''&times;''p'' identity matrix.  Then
 
:<math>\operatorname{var}(\mathbf{M}^{1/2}\mathbf{X}) = \mathbf{M}^{1/2} (\operatorname{var}(\mathbf{X})) \mathbf{M}^{1/2} = \mathbf{M}.\,</math>
 
==How to find a valid covariance matrix==
 
In some applications (e.g. building data models from only partially observed data) one wants to find the “nearest” covariance matrix to a given symmetric matrix (e.g. of observed covariances). In 2002, Higham<ref>{{cite journal|title=Computing the nearest correlation matrix—a problem from finance|journal=IMA Journal of Numerical Analysis|date=|first=Nicholas J.|last=Higham|coauthors=|volume=22|issue=3|pages=329&ndash;343|doi= 10.1093/imanum/22.3.329|url=|format= }}</ref> formalized the notion of nearness using a weighted [[Frobenius norm]] and provided a method for computing the nearest covariance matrix.
 
==Complex random vectors==
The ''variance'' of a [[complex number|complex]] scalar-valued random variable with expected value μ is conventionally defined using [[complex conjugation]]:{{Citation needed|date=February 2012}}
 
:<math>
\operatorname{var}(z)
=
\operatorname{E}
\left[
(z-\mu)(z-\mu)^{*}
\right]
</math>
 
where the complex conjugate of a complex number <math>z</math> is denoted <math>z^{*}</math>; thus the variance of a complex number is a real number.
 
If <math>Z</math> is a column-vector of complex-valued random variables, then the [[conjugate transpose]] is formed by ''both'' transposing and conjugating. In the following expression, the product of a vector with its conjugate transpose results in a square matrix, as its expectation:
 
:<math>
\operatorname{E}
\left[
(Z-\mu)(Z-\mu)^\dagger
\right] ,
</math>
 
where <math>Z^\dagger</math> denotes the conjugate transpose, which is applicable to the scalar case since the transpose of a scalar is still a scalar.  The matrix so obtained will be [[Hermitian matrix|Hermitian]] [[Positive-semidefinite matrix|positive-semidefinite]],<ref>{{Cite journal|url=http://www.ee.ic.ac.uk/hp/staff/dmb/matrix/expect.html|first=Mike |last=Brookes|chapter=Stochastic Matrices|title=The Matrix Reference Manual}}</ref> with real numbers in the main diagonal and complex numbers off-diagonal.
 
==Estimation==
{{Main|Estimation of covariance matrices}}
If <math>\mathbf{M}_{\mathbf{X}}</math> and <math>\mathbf{M}_{\mathbf{Y}}</math> are centred [[Data matrix (multivariate statistics)|data matrices]] of dimension ''n''-by-''p'' and ''n-by-q'' respectively, i.e. with ''n'' rows of observations of ''p'' and ''q'' columns of variables, from which the column means have been subtracted, then, if the column means were estimated from the data, sample correlation matrices <math>\mathbf{Q}_{\mathbf{X}}</math> and <math>\mathbf{Q}_{\mathbf{XY}}</math> can be defined to be
:<math>\mathbf{Q}_{\mathbf{X}} = \frac{1}{n-1} \mathbf{M}_{\mathbf{X}}^T \mathbf{M}_{\mathbf{X}}, \qquad \mathbf{Q}_{\mathbf{XY}} = \frac{1}{n-1} \mathbf{M}_{\mathbf{X}}^T \mathbf{M}_{\mathbf{Y}}</math>
or, if the column means were known a-priori,
:<math>\mathbf{Q}_{\mathbf{X}} = \frac{1}{n} \mathbf{M}_{\mathbf{X}}^T \mathbf{M}_{\mathbf{X}}, \qquad \mathbf{Q}_{\mathbf{XY}} = \frac{1}{n} \mathbf{M}_{\mathbf{X}}^T \mathbf{M}_{\mathbf{Y}}</math>
 
These empirical sample correlation matrices are the most straightforward and most often used estimators for the correlation matrices, but other estimators also exist, including regularised or shrinkage estimators, which may have better properties.
 
==As a parameter of a distribution==
 
If a vector of ''n'' possibly correlated random variables is [[Multivariate normal distribution|jointly normally distributed]], or more generally [[Elliptical distribution|elliptically distributed]], then its [[probability density function]] can be expressed in terms of the covariance matrix.
 
==Applications==
 
===In financial economics===
 
The covariance matrix plays a key role in [[financial economics]], especially in [[Modern portfolio theory|portfolio theory]] and its [[mutual fund separation theorem]] and in the [[capital asset pricing model]]. The matrix of covariances among various assets' returns is  used to determine, under certain assumptions, the relative amounts of different assets that investors should (in a [[Normative economics|normative analysis]]) or are predicted to (in a [[Positive economics|positive analysis]]) choose to hold in a context of [[Diversification (finance)|diversification]].
 
== See also ==
*[[Multivariate statistics]]
*[[Gramian matrix]]
*[[Eigenvalue decomposition]]
*[[Quadratic form (statistics)]]
 
== References ==
{{Reflist}}
 
== Further reading ==
* {{springer|title=Covariance matrix|id=p/c026820}}
* {{mathworld|urlname=CovarianceMatrix|title= Covariance Matrix}}
* {{Cite book|first=N. G. |last=van Kampen|title=Stochastic processes in physics and chemistry|location= New York|publisher=North-Holland|year= 1981|isbn=0-444-86200-5}}
 
{{Statistics}}
 
{{DEFAULTSORT:Covariance Matrix}}
[[Category:Covariance and correlation]]
[[Category:Matrices]]
[[Category:Summary statistics]]
[[Category:Data analysis]]

Revision as of 13:04, 10 January 2014

A bivariate Gaussian probability density function centered at (0, 0), with covariance matrix [ 1.00, 0.50 ; 0.50, 1.00 ].
Sample points from a multivariate Gaussian distribution with a standard deviation of 3 in roughly the lower left-upper right direction and of 1 in the orthogonal direction. Because the x and y components co-vary, the variances of x and y do not fully describe the distribution. A 2×2 covariance matrix is needed; the directions of the arrows correspond to the eigenvectors of this covariance matrix and their lengths to the square roots of the eigenvalues.

In probability theory and statistics, a covariance matrix (also known as dispersion matrix or variance–covariance matrix) is a matrix whose element in the i, j position is the covariance between the i th and j th elements of a random vector (that is, of a vector of random variables). Each element of the vector is a scalar random variable, either with a finite number of observed empirical values or with a finite or infinite number of potential values specified by a theoretical joint probability distribution of all the random variables.

Intuitively, the covariance matrix generalizes the notion of variance to multiple dimensions. As an example, the variation in a collection of random points in two-dimensional space cannot be characterized fully by a single number, nor would the variances in the x and y directions contain all of the necessary information; a 2×2 matrix would be necessary to fully characterize the two-dimensional variation.

Definition

Throughout this article, boldfaced unsubscripted X and Y are used to refer to random vectors, and unboldfaced subscripted Xi and Yi are used to refer to random scalars.

If the entries in the column vector

𝐗=[X1Xn]

are random variables, each with finite variance, then the covariance matrix Σ is the matrix whose (ij) entry is the covariance

Σij=cov(Xi,Xj)=E[(Xiμi)(Xjμj)]

where

μi=E(Xi)

is the expected value of the ith entry in the vector X. In other words, we have

Σ=[E[(X1μ1)(X1μ1)]E[(X1μ1)(X2μ2)]E[(X1μ1)(Xnμn)]E[(X2μ2)(X1μ1)]E[(X2μ2)(X2μ2)]E[(X2μ2)(Xnμn)]E[(Xnμn)(X1μ1)]E[(Xnμn)(X2μ2)]E[(Xnμn)(Xnμn)]].

The inverse of this matrix, Σ1 is the inverse covariance matrix, also known as the concentration matrix or precision matrix;[1] see precision (statistics). The elements of the precision matrix have an interpretation in terms of partial correlations and partial variances.Potter or Ceramic Artist Truman Bedell from Rexton, has interests which include ceramics, best property developers in singapore developers in singapore and scrabble. Was especially enthused after visiting Alejandro de Humboldt National Park.

Generalization of the variance

The definition above is equivalent to the matrix equality

Σ=E[(𝐗E[𝐗])(𝐗E[𝐗])T]

This form can be seen as a generalization of the scalar-valued variance to higher dimensions. Recall that for a scalar-valued random variable X

σ2=var(Xi)=E[(XiE(Xi))2]=E[(XiE(Xi))(XiE(Xi))].

Indeed, the entries on the diagonal of the covariance matrix Σ are the variances of each element of the vector 𝐗.

Correlation matrix

A quantity closely related to the covariance matrix is the correlation matrix, the matrix of Pearson product-moment correlation coefficients between each of the random variables in the random vector 𝐗, which can be written

ρij=(Σ(diag))12Σ(Σ(diag))12

where Σ(diag) is the matrix of diagonal elements of Σ (i.e. a diagonal matrix of each of the variances of Xi).

Equivalently, the correlation matrix can be seen as the covariance matrix of the standardized random variables Xi / σ (Xi) for i = 1, ..., n.

Conflicting nomenclatures and notations

Nomenclatures differ. Some statisticians, following the probabilist William Feller, call the matrix Σ the variance of the random vector X, because it is the natural generalization to higher dimensions of the 1-dimensional variance. Others call it the covariance matrix, because it is the matrix of covariances between the scalar components of the vector X. Thus

var(𝐗)=cov(𝐗)=E[(𝐗E[𝐗])(𝐗E[𝐗])T].

However, the notation for the cross-covariance between two vectors is standard:

cov(𝐗,𝐘)=E[(𝐗E[𝐗])(𝐘E[𝐘])T].

The var notation is found in William Feller's two-volume book An Introduction to Probability Theory and Its Applications,[2] but both forms are quite standard and there is no ambiguity between them.

The matrix Σ is also often called the variance-covariance matrix since the diagonal terms are in fact variances.

Properties

For Σ=E[(𝐗E[𝐗])(𝐗E[𝐗])T] and 𝝁=E(𝐗), where X is a random p-dimensional variable and Y a random q-dimensional variable, the following basic properties apply:[3]

  1. Σ=E(𝐗𝐗T)𝝁𝝁T
  2. Σ is positive-semidefinite and symmetric.
  3. cov(𝐀𝐗+𝐚)=𝐀cov(𝐗)𝐀T
  4. cov(𝐗,𝐘)=cov(𝐘,𝐗)T
  5. cov(𝐗1+𝐗2,𝐘)=cov(𝐗1,𝐘)+cov(𝐗2,𝐘)
  6. If p = q, then var(𝐗+𝐘)=var(𝐗)+cov(𝐗,𝐘)+cov(𝐘,𝐗)+var(𝐘)
  7. cov(𝐀𝐗+𝐚,𝐁T𝐘+𝐛)=𝐀cov(𝐗,𝐘)𝐁
  8. If 𝐗 and 𝐘 are independent or uncorrelated, then cov(𝐗,𝐘)=𝟎

where 𝐗,𝐗1 and 𝐗2 are random p×1 vectors, 𝐘 is a random q×1 vector, 𝐚 is a q×1 vector, 𝐛 is a p×1 vector, and 𝐀 and 𝐁 are q×p matrices.

This covariance matrix is a useful tool in many different areas. From it a transformation matrix can be derived, called a whitening transformation, that allows one to completely decorrelate the dataPotter or Ceramic Artist Truman Bedell from Rexton, has interests which include ceramics, best property developers in singapore developers in singapore and scrabble. Was especially enthused after visiting Alejandro de Humboldt National Park. or, from a different point of view, to find an optimal basis for representing the data in a compact wayPotter or Ceramic Artist Truman Bedell from Rexton, has interests which include ceramics, best property developers in singapore developers in singapore and scrabble. Was especially enthused after visiting Alejandro de Humboldt National Park. (see Rayleigh quotient for a formal proof and additional properties of covariance matrices). This is called principal components analysis (PCA) and the Karhunen-Loève transform (KL-transform).

Block matrices

The joint mean 𝝁X,Y and joint covariance matrix 𝜮X,Y of 𝑿 and 𝒀 can be written in block form

𝝁X,Y=[𝝁X𝝁Y],𝜮X,Y=[𝜮𝑋𝑋𝜮𝑋𝑌𝜮𝑌𝑋𝜮𝑌𝑌]

where 𝜮XX=var(𝑿),𝜮YY=var(𝒀), and 𝜮XY=𝜮𝑌𝑋T=cov(𝑿,𝒀).

𝜮XX and 𝜮YY can be identified as the variance matrices of the marginal distributions for 𝑿 and 𝒀 respectively.

If 𝑿 and 𝒀 are jointly normally distributed,

𝒙,𝒚 𝒩(𝝁X,Y,𝜮X,Y),

then the conditional distribution for 𝒀 given 𝑿 is given by

𝒚|𝒙 𝒩(𝝁Y|X,𝜮Y|X),[4]

defined by conditional mean

𝝁Y|X=𝝁Y+𝜮YX𝜮XX1(𝐱𝝁X)

and conditional variance

𝜮Y|X=𝜮YY𝜮𝑌𝑋𝜮𝑋𝑋1𝜮𝑋𝑌.

The matrix ΣYXΣXX−1 is known as the matrix of regression coefficients, while in linear algebra ΣY|X is the Schur complement of ΣXX in ΣX,Y

The matrix of regression coefficients may often be given in transpose form, ΣXX−1ΣXY, suitable for post-multiplying a row vector of explanatory variables xT rather than pre-multiplying a column vector x. In this form they correspond to the coefficients obtained by inverting the matrix of the normal equations of ordinary least squares (OLS).

As a linear operator

Applied to one vector, the covariance matrix maps a linear combination, c, of the random variables, X, onto a vector of covariances with those variables: 𝐜TΣ=cov(𝐜T𝐗,𝐗). Treated as a bilinear form, it yields the covariance between the two linear combinations: 𝐝TΣ𝐜=cov(𝐝T𝐗,𝐜T𝐗). The variance of a linear combination is then 𝐜TΣ𝐜, its covariance with itself.

Similarly, the (pseudo-)inverse covariance matrix provides an inner product, cμ|Σ+|cμ which induces the Mahalanobis distance, a measure of the "unlikelihood" of c.Potter or Ceramic Artist Truman Bedell from Rexton, has interests which include ceramics, best property developers in singapore developers in singapore and scrabble. Was especially enthused after visiting Alejandro de Humboldt National Park.

Which matrices are covariance matrices?

From the identity just above, let 𝐛 be a (p×1) real-valued vector, then

var(𝐛T𝐗)=𝐛Tvar(𝐗)𝐛,

which must always be nonnegative since it is the variance of a real-valued random variable. and the symmetry of the covariance matrix's definition it follows that only a positive-semidefinite matrix can be a covariance matrix.Potter or Ceramic Artist Truman Bedell from Rexton, has interests which include ceramics, best property developers in singapore developers in singapore and scrabble. Was especially enthused after visiting Alejandro de Humboldt National Park. Conversely, every symmetric positive semi-definite matrix is a covariance matrix. To see this, suppose M is a p×p positive-semidefinite matrix. From the finite-dimensional case of the spectral theorem, it follows that M has a nonnegative symmetric square root, that can be denoted by M1/2. Let 𝐗 be any p×1 column vector-valued random variable whose covariance matrix is the p×p identity matrix. Then

var(𝐌1/2𝐗)=𝐌1/2(var(𝐗))𝐌1/2=𝐌.

How to find a valid covariance matrix

In some applications (e.g. building data models from only partially observed data) one wants to find the “nearest” covariance matrix to a given symmetric matrix (e.g. of observed covariances). In 2002, Higham[5] formalized the notion of nearness using a weighted Frobenius norm and provided a method for computing the nearest covariance matrix.

Complex random vectors

The variance of a complex scalar-valued random variable with expected value μ is conventionally defined using complex conjugation:Potter or Ceramic Artist Truman Bedell from Rexton, has interests which include ceramics, best property developers in singapore developers in singapore and scrabble. Was especially enthused after visiting Alejandro de Humboldt National Park.

var(z)=E[(zμ)(zμ)]

where the complex conjugate of a complex number z is denoted z; thus the variance of a complex number is a real number.

If Z is a column-vector of complex-valued random variables, then the conjugate transpose is formed by both transposing and conjugating. In the following expression, the product of a vector with its conjugate transpose results in a square matrix, as its expectation:

E[(Zμ)(Zμ)],

where Z denotes the conjugate transpose, which is applicable to the scalar case since the transpose of a scalar is still a scalar. The matrix so obtained will be Hermitian positive-semidefinite,[6] with real numbers in the main diagonal and complex numbers off-diagonal.

Estimation

Mining Engineer (Excluding Oil ) Truman from Alma, loves to spend time knotting, largest property developers in singapore developers in singapore and stamp collecting. Recently had a family visit to Urnes Stave Church. If 𝐌𝐗 and 𝐌𝐘 are centred data matrices of dimension n-by-p and n-by-q respectively, i.e. with n rows of observations of p and q columns of variables, from which the column means have been subtracted, then, if the column means were estimated from the data, sample correlation matrices 𝐐𝐗 and 𝐐𝐗𝐘 can be defined to be

𝐐𝐗=1n1𝐌𝐗T𝐌𝐗,𝐐𝐗𝐘=1n1𝐌𝐗T𝐌𝐘

or, if the column means were known a-priori,

𝐐𝐗=1n𝐌𝐗T𝐌𝐗,𝐐𝐗𝐘=1n𝐌𝐗T𝐌𝐘

These empirical sample correlation matrices are the most straightforward and most often used estimators for the correlation matrices, but other estimators also exist, including regularised or shrinkage estimators, which may have better properties.

As a parameter of a distribution

If a vector of n possibly correlated random variables is jointly normally distributed, or more generally elliptically distributed, then its probability density function can be expressed in terms of the covariance matrix.

Applications

In financial economics

The covariance matrix plays a key role in financial economics, especially in portfolio theory and its mutual fund separation theorem and in the capital asset pricing model. The matrix of covariances among various assets' returns is used to determine, under certain assumptions, the relative amounts of different assets that investors should (in a normative analysis) or are predicted to (in a positive analysis) choose to hold in a context of diversification.

See also

References

43 year old Petroleum Engineer Harry from Deep River, usually spends time with hobbies and interests like renting movies, property developers in singapore new condominium and vehicle racing. Constantly enjoys going to destinations like Camino Real de Tierra Adentro.

Further reading

  • Other Sports Official Kull from Drumheller, has hobbies such as telescopes, property developers in singapore and crocheting. Identified some interesting places having spent 4 months at Saloum Delta.

    my web-site http://himerka.com/
  • 22 year-old Systems Analyst Rave from Merrickville-Wolford, has lots of hobbies and interests including quick cars, property developers in singapore and baking. Always loves visiting spots like Historic Monuments Zone of Querétaro.

    Here is my web site - cottagehillchurch.com
  • 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.

    My blog: http://www.primaboinca.com/view_profile.php?userid=5889534

Template:Statistics

  1. 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.

    My blog: http://www.primaboinca.com/view_profile.php?userid=5889534
  2. 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.

    My blog: http://www.primaboinca.com/view_profile.php?userid=5889534
  3. Template:Cite web
  4. 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.

    My blog: http://www.primaboinca.com/view_profile.php?userid=5889534
  5. One of the biggest reasons investing in a Singapore new launch is an effective things is as a result of it is doable to be lent massive quantities of money at very low interest rates that you should utilize to purchase it. Then, if property values continue to go up, then you'll get a really high return on funding (ROI). Simply make sure you purchase one of the higher properties, reminiscent of the ones at Fernvale the Riverbank or any Singapore landed property Get Earnings by means of Renting

    In its statement, the singapore property listing - website link, government claimed that the majority citizens buying their first residence won't be hurt by the new measures. Some concessions can even be prolonged to chose teams of consumers, similar to married couples with a minimum of one Singaporean partner who are purchasing their second property so long as they intend to promote their first residential property. Lower the LTV limit on housing loans granted by monetary establishments regulated by MAS from 70% to 60% for property purchasers who are individuals with a number of outstanding housing loans on the time of the brand new housing purchase. Singapore Property Measures - 30 August 2010 The most popular seek for the number of bedrooms in Singapore is 4, followed by 2 and three. Lush Acres EC @ Sengkang

    Discover out more about real estate funding in the area, together with info on international funding incentives and property possession. Many Singaporeans have been investing in property across the causeway in recent years, attracted by comparatively low prices. However, those who need to exit their investments quickly are likely to face significant challenges when trying to sell their property – and could finally be stuck with a property they can't sell. Career improvement programmes, in-house valuation, auctions and administrative help, venture advertising and marketing, skilled talks and traisning are continuously planned for the sales associates to help them obtain better outcomes for his or her shoppers while at Knight Frank Singapore. No change Present Rules

    Extending the tax exemption would help. The exemption, which may be as a lot as $2 million per family, covers individuals who negotiate a principal reduction on their existing mortgage, sell their house short (i.e., for lower than the excellent loans), or take part in a foreclosure course of. An extension of theexemption would seem like a common-sense means to assist stabilize the housing market, but the political turmoil around the fiscal-cliff negotiations means widespread sense could not win out. Home Minority Chief Nancy Pelosi (D-Calif.) believes that the mortgage relief provision will be on the table during the grand-cut price talks, in response to communications director Nadeam Elshami. Buying or promoting of blue mild bulbs is unlawful.

    A vendor's stamp duty has been launched on industrial property for the primary time, at rates ranging from 5 per cent to 15 per cent. The Authorities might be trying to reassure the market that they aren't in opposition to foreigners and PRs investing in Singapore's property market. They imposed these measures because of extenuating components available in the market." The sale of new dual-key EC models will even be restricted to multi-generational households only. The models have two separate entrances, permitting grandparents, for example, to dwell separately. The vendor's stamp obligation takes effect right this moment and applies to industrial property and plots which might be offered inside three years of the date of buy. JLL named Best Performing Property Brand for second year running

    The data offered is for normal info purposes only and isn't supposed to be personalised investment or monetary advice. Motley Fool Singapore contributor Stanley Lim would not personal shares in any corporations talked about. Singapore private home costs increased by 1.eight% within the fourth quarter of 2012, up from 0.6% within the earlier quarter. Resale prices of government-built HDB residences which are usually bought by Singaporeans, elevated by 2.5%, quarter on quarter, the quickest acquire in five quarters. And industrial property, prices are actually double the levels of three years ago. No withholding tax in the event you sell your property. All your local information regarding vital HDB policies, condominium launches, land growth, commercial property and more

    There are various methods to go about discovering the precise property. Some local newspapers (together with the Straits Instances ) have categorised property sections and many local property brokers have websites. Now there are some specifics to consider when buying a 'new launch' rental. Intended use of the unit Every sale begins with 10 p.c low cost for finish of season sale; changes to 20 % discount storewide; follows by additional reduction of fiftyand ends with last discount of 70 % or extra. Typically there is even a warehouse sale or transferring out sale with huge mark-down of costs for stock clearance. Deborah Regulation from Expat Realtor shares her property market update, plus prime rental residences and houses at the moment available to lease Esparina EC @ Sengkang
  6. One of the biggest reasons investing in a Singapore new launch is an effective things is as a result of it is doable to be lent massive quantities of money at very low interest rates that you should utilize to purchase it. Then, if property values continue to go up, then you'll get a really high return on funding (ROI). Simply make sure you purchase one of the higher properties, reminiscent of the ones at Fernvale the Riverbank or any Singapore landed property Get Earnings by means of Renting

    In its statement, the singapore property listing - website link, government claimed that the majority citizens buying their first residence won't be hurt by the new measures. Some concessions can even be prolonged to chose teams of consumers, similar to married couples with a minimum of one Singaporean partner who are purchasing their second property so long as they intend to promote their first residential property. Lower the LTV limit on housing loans granted by monetary establishments regulated by MAS from 70% to 60% for property purchasers who are individuals with a number of outstanding housing loans on the time of the brand new housing purchase. Singapore Property Measures - 30 August 2010 The most popular seek for the number of bedrooms in Singapore is 4, followed by 2 and three. Lush Acres EC @ Sengkang

    Discover out more about real estate funding in the area, together with info on international funding incentives and property possession. Many Singaporeans have been investing in property across the causeway in recent years, attracted by comparatively low prices. However, those who need to exit their investments quickly are likely to face significant challenges when trying to sell their property – and could finally be stuck with a property they can't sell. Career improvement programmes, in-house valuation, auctions and administrative help, venture advertising and marketing, skilled talks and traisning are continuously planned for the sales associates to help them obtain better outcomes for his or her shoppers while at Knight Frank Singapore. No change Present Rules

    Extending the tax exemption would help. The exemption, which may be as a lot as $2 million per family, covers individuals who negotiate a principal reduction on their existing mortgage, sell their house short (i.e., for lower than the excellent loans), or take part in a foreclosure course of. An extension of theexemption would seem like a common-sense means to assist stabilize the housing market, but the political turmoil around the fiscal-cliff negotiations means widespread sense could not win out. Home Minority Chief Nancy Pelosi (D-Calif.) believes that the mortgage relief provision will be on the table during the grand-cut price talks, in response to communications director Nadeam Elshami. Buying or promoting of blue mild bulbs is unlawful.

    A vendor's stamp duty has been launched on industrial property for the primary time, at rates ranging from 5 per cent to 15 per cent. The Authorities might be trying to reassure the market that they aren't in opposition to foreigners and PRs investing in Singapore's property market. They imposed these measures because of extenuating components available in the market." The sale of new dual-key EC models will even be restricted to multi-generational households only. The models have two separate entrances, permitting grandparents, for example, to dwell separately. The vendor's stamp obligation takes effect right this moment and applies to industrial property and plots which might be offered inside three years of the date of buy. JLL named Best Performing Property Brand for second year running

    The data offered is for normal info purposes only and isn't supposed to be personalised investment or monetary advice. Motley Fool Singapore contributor Stanley Lim would not personal shares in any corporations talked about. Singapore private home costs increased by 1.eight% within the fourth quarter of 2012, up from 0.6% within the earlier quarter. Resale prices of government-built HDB residences which are usually bought by Singaporeans, elevated by 2.5%, quarter on quarter, the quickest acquire in five quarters. And industrial property, prices are actually double the levels of three years ago. No withholding tax in the event you sell your property. All your local information regarding vital HDB policies, condominium launches, land growth, commercial property and more

    There are various methods to go about discovering the precise property. Some local newspapers (together with the Straits Instances ) have categorised property sections and many local property brokers have websites. Now there are some specifics to consider when buying a 'new launch' rental. Intended use of the unit Every sale begins with 10 p.c low cost for finish of season sale; changes to 20 % discount storewide; follows by additional reduction of fiftyand ends with last discount of 70 % or extra. Typically there is even a warehouse sale or transferring out sale with huge mark-down of costs for stock clearance. Deborah Regulation from Expat Realtor shares her property market update, plus prime rental residences and houses at the moment available to lease Esparina EC @ Sengkang