Recall that for a random vector X the mean vector is μX, the covariance matrix is ΣX and the correlation matrix is RX=E(XXT)=ΣX+μXμXT. For a linear map W=BX one has μW=BμX and ΣW=BΣXBT.
Exercise. Let X=(X1,X2,X3)T be a random vector with
μX=101,ΣX=20−1021−112.
(a) Compute μW and RW, where W=(X3X1). (b) Compute the variance of U=X1+X2+X3. (c) Letting Y1=αX1+X3, Y2=X1−αX3, determine (if they exist) the values of α that make (Y1,Y2) uncorrelated and/or independent.
ΣY is diagonal for α=±1; for α=±1 the random variables (Y1,Y2) are uncorrelated. No conclusion on the independence of (Y1,Y2) is possible in general (the vector X is not assumed gaussian: see the independence lemma below).
Why a new definition is needed
Gaussian random variables were defined as absolutely continuous random variables with assigned density: Y∼N(μ,σ2) iff fY(y)=2πσ21exp(−21σ2(y−μ)2). It is not possible to define gaussian random vectors following the same approach, that is as absolutely continuous random vectors with assigned joint density. This is due to the fact that, as will be apparent later, not all gaussian vectors admit a joint density. Before giving the definition, the definition of gaussian random variables is revisited, with a point of view that generalizes more easily from variables to vectors.
Gaussian random variables revisited
Lemma. The following facts are equivalent: (i) Y∼N(μ,σ2); (ii) Y=σZ+μ for Z∼N(0,1).
Proof. (i)⇒(ii): if Y∼N(μ,σ2), we already proved that affine transformations of Y are still gaussian; in particular Z≜σY−μ=σ1Y−σμ is a gaussian random variable, Z∼N(0,1). Rearranging terms, Y=σZ+μ as required by (ii).
Remark. The lemma suggests an alternative definition of gaussian random variables in two steps: (1) define Z∼N(0,1) as the absolutely continuous random variable with density fZ(z)=2π1exp(−21z2); (2) define Y∼N(μ,σ2) as the random variable obtained as the affine transformation Y=σZ+μ, with Z∼N(0,1). Notice that with this definition it is not necessary to specify fY(y).
Definition of gaussian random vectors
The definition proceeds in two steps: (1) define standard gaussian vectors; (2) define general gaussian vectors as affine transformations of standard gaussian vectors.
Standard gaussian vectors
For any given k≥1 the standard gaussian vector Z=(Z1,…,Zk)T is defined as the vector with i.i.d. components Zi∼N(0,1), i=1,…,k. The joint density of Z is (by independence)
and the multivariate CF is (again by independence) φZ(ω1,…,ωk)=exp(−21ωTω). The mean vector is μZ=E(Z)=0; the correlation/covariance matrix is RZ=ΣZ=E(ZZT)=Ik. The standard gaussian vector is denoted Z∼N(0,Ik).
Definition. A random vector Y of size n is said gaussian if it is an affine transformation of a standard gaussian vector Z of size k for some k (where k can be ≥n), i.e. if there exist A∈Rn×k and μ∈Rn such that
Remark. The multivariate CF of Y completely characterizes the random vector Y from the probabilistic point of view, and the CF is in turn completely characterized by the mean vector μ and the covariance matrix Σ=AAT. The parameters that identify the random vector are (μ,Σ), not (μ,A). This justifies the notation
Y∼N(μ,Σ)
to represent a gaussian vector with mean vector μ and variance matrix Σ.
Existence and computation of the density
In the scalar case the density of the affine transformation Y=aZ+μ is fY(y)=∣a∣1fZ(ay−μ)=2π∣a∣1exp(−21(ay−μ)2). The analog in the vector case is (what follows is a heuristic argument) Y=AZ+μ with fZ(z)=(2π1)kexp(−21zTz):
where ∣A∣ is the determinant of A (this requires n=k and A invertible), Σ=AAT, ∣Σ∣=∣A∣∣AT∣=∣A∣2 and Σ−1=A−TA−1. (On the page the last line is written with ∣Σ∣ inside the square root; this is consistent with ∣A∣=∣Σ∣.)
Therefore a gaussian vector Y∼N(μ,Σ) admits a density only if Σ>0 (invertible), in which case the density given in (⊛) depends on μ and Σ−1.
Affine transformations of gaussian vectors
Lemma. Let Y∼N(μ,Σ) and W=BY+ν. Then
W∼N(Bμ+ν,BΣBT).
Proof. By definition Y∼N(μ,Σ) iff for some Z∼N(0,Ik), for some k, there exists A such that AAT=Σ(∗) and Y=AZ+μ. It follows that W=BY+ν=BAZ+Bμ+ν. This proves that W too is an affine transformation of Z and therefore W is a gaussian vector. Clearly E(W)=Bμ+ν and moreover
(∗) It is a standard result in linear algebra that any Σ≥0 can be factorized as Σ=AAT. For example Σ can be written Σ=UΛUT with Λ diagonal (≥0); then Σ=UΛ1/2Λ1/2UT=AAT with A=UΛ1/2.
Example (marginals are gaussian). Let Y=(Y1,…,Yn)T∼N(μ,Σ). Then Yi∼N(μi,Σii), i=1,…,n.
Proof.Yi=(0⋯010⋯0)Y=eiTY (1 in the i-th coordinate). Being a linear transformation of Y, Yi is gaussian, with parameters E(Yi)=eiTμ=μi and var(Yi)=E(eiTYYTei)=eiTΣei=Σii (writing Y centered).
Independence and uncorrelation
Lemma. The following facts are equivalent:
(i) the components of Y∼N(μ,Σ) are independent;
(ii) the components of Y∼N(μ,Σ) are uncorrelated;
(iii) the covariance matrix Σ of Y∼N(μ,Σ) is diagonal.
Proof. The implications (i)⇒(ii)⇔(iii) are well known properties of random vectors. The only non trivial implication, not valid in general but valid for jointly gaussian vectors, is (ii)⇒(i), or (iii)⇒(i).
We prove (iii)⇒(i). The multivariate CF of Y∼N(μ,Σ) is φY(ω)=ejμTω−21ωTΣω. By assumption Σ is diagonal (equivalently the components are uncorrelated), therefore ωTΣω=∑i=1nΣiiωi2 and the CF reduces to
WARNING. It is not true in general that uncorrelated gaussian random variables are independent. The variables must be jointly gaussian (i.e. components of a gaussian vector) and uncorrelated in order to be independent.
Exercises
Exercise 1.Y∼N((21),(3−1−11)). (a) Compute var(Y1+Y2). (b) Write the CF of Y. (c) Write the density of Y if it exists.
(a) var(Y1+Y2)=var(Y1)+var(Y2)+2cov(Y1,Y2)=3+1+2⋅(−1)=2. Alternatively, W=Y1+Y2=(11)Y and var(W)=(11)ΣY(11)=(11)(3−1−11)(11)=2.
Exercise 2.Z1,Z2 are i.i.d. N(0,1) random variables. Let Y1=Z1−Z2, Y2=Z1+Z2. Determine if Y=(Y2Y1) is a gaussian vector.
Solution. The vector Z=(Z2Z1)∼N(0,I2) is a 2-dimensional standard gaussian vector; moreover Y=(11−11)Z is a linear transformation of Z, therefore Y is a gaussian vector. Parameters: E(Y)=0 and
(The page stops here. By the independence lemma above, since ΣY is diagonal and Y is gaussian, Y1 and Y2 are independent.)
Versione ripasso
Second-order facts.RX=ΣX+μμT; W=BX⇒μW=Bμ, ΣW=BΣBT. Components of a random vector are uncorrelated iff Σ is diagonal. Example: ΣX=20−1021−112, W=(X1,X3) gives ΣW=(2−1−12), RW=3I2; var(X1+X2+X3)=1TΣ1=6; ΣY for (αX1+X3,X1−αX3) is diagonal iff α=±1 (uncorrelated only, independence not implied unless gaussian).
Scalar case revisited.Y∼N(μ,σ2)⟺Y=σZ+μ with Z∼N(0,1) (proof: affine maps keep gaussianity; CF of σZ+μ is ejμω−21σ2ω2).
Standard gaussian vectorZ∼N(0,Ik): i.i.d. N(0,1) components, fZ=(2π)−k/2e−21zTz, φZ(ω)=e−21ωTω.
Gaussian vector (definition).Y=AZ+μ, A∈Rn×k (k≥n allowed), Z∼N(0,Ik). Then μY=μ, ΣY=AAT=Σ,
φY(ω)=ejωTμ−21ωTΣω.
The law is identified by (μ,Σ) (not A): Y∼N(μ,Σ). Any Σ≥0 factorizes as AAT (e.g. A=UΛ1/2 from Σ=UΛUT).
Density. Exists only if Σ>0 (invertible); then (heuristic derivation through ∣A∣1fZ(A−1(y−μ)), ∣Σ∣=∣A∣2, Σ−1=A−TA−1)
fY(y)=(2π)k∣Σ∣1exp(−21(y−μ)TΣ−1(y−μ)).
Affine maps.Y∼N(μ,Σ), W=BY+ν⇒W∼N(Bμ+ν,BΣBT) (still affine in Z). In particular each component Yi∼N(μi,Σii) (take B=eiT).
Independence. For gaussian vectors: independent ⟺ uncorrelated ⟺Σ diagonal (proof: diagonal Σ makes the CF factorize as ∏iφYi(ωi)). Uncorrelated gaussians that are not jointly gaussian need not be independent.
Worked results.Y∼N((21),(3−1−11)): var(Y1+Y2)=3+1−2=2; CF ej(ω1+2ω2)−21(3ω12−2ω1ω2+ω22); detΣ=2, Σ−1=21(1113), density 4π2exp(−41((y1−1)2+2(y1−1)(y2−2)+3(y2−2)2)). Y1=Z1−Z2, Y2=Z1+Z2: gaussian with Σ=2I2.
Typical mistakes. Describing Y by (μ,A); writing a density when Σ is singular; concluding independence from uncorrelation without joint gaussianity; forgetting BΣBT (not B2Σ or ΣB); using ∣Σ∣ instead of ∣Σ∣ in the normalizing constant.