Salta al contenuto
Note per Studenti Gaussian Random Vectors Report

Gaussian Random Vectors

In questa pagina 6

Warm-up: mean and covariance under a linear map

Recall that for a random vector X‾\underline X the mean vector is μ‾X‾\underline\mu_{\underline X}, the covariance matrix is ΣX‾\Sigma_{\underline X} and the correlation matrix is RX‾=E(X‾X‾T)=ΣX‾+μ‾X‾μ‾X‾TR_{\underline X}=E(\underline X\underline X^T)=\Sigma_{\underline X}+\underline\mu_{\underline X}\underline\mu_{\underline X}^T. For a linear map W‾=BX‾\underline W=B\underline X one has μ‾W‾=Bμ‾X‾\underline\mu_{\underline W}=B\underline\mu_{\underline X} and ΣW‾=BΣX‾BT\Sigma_{\underline W}=B\Sigma_{\underline X}B^T.

Exercise. Let X‾=(X1,X2,X3)T\underline X=(X_1,X_2,X_3)^T be a random vector with

μ‾X‾=(101),ΣX‾=(20−1021−112).\underline\mu_{\underline X}=\begin{pmatrix}1\\0\\1\end{pmatrix},\qquad \Sigma_{\underline X}=\begin{pmatrix}2&0&-1\\0&2&1\\-1&1&2\end{pmatrix}.

(a) Compute μ‾W‾\underline\mu_{\underline W} and RW‾R_{\underline W}, where W‾=(X1X3)\underline W=\binom{X_1}{X_3}. (b) Compute the variance of U=X1+X2+X3U=X_1+X_2+X_3. (c) Letting Y1=αX1+X3Y_1=\alpha X_1+X_3, Y2=X1−αX3Y_2=X_1-\alpha X_3, determine (if they exist) the values of α\alpha that make (Y1,Y2)(Y_1,Y_2) uncorrelated and/or independent.

Solution.

(a) W‾=(100001)X‾\underline W=\begin{pmatrix}1&0&0\\0&0&1\end{pmatrix}\underline X, therefore

μ‾W‾=(100001)(101)=(11),\underline\mu_{\underline W}=\begin{pmatrix}1&0&0\\0&0&1\end{pmatrix}\begin{pmatrix}1\\0\\1\end{pmatrix}=\begin{pmatrix}1\\1\end{pmatrix},

RW‾=ΣW‾+μ‾W‾μ‾W‾T=(100001)(20−1021−112)(100001)+(11)(11)=(2−1−12)⏟ΣW‾+(1111)=(3003).R_{\underline W}=\Sigma_{\underline W}+\underline\mu_{\underline W}\underline\mu_{\underline W}^T =\begin{pmatrix}1&0&0\\0&0&1\end{pmatrix}\begin{pmatrix}2&0&-1\\0&2&1\\-1&1&2\end{pmatrix}\begin{pmatrix}1&0\\0&0\\0&1\end{pmatrix}+\begin{pmatrix}1\\1\end{pmatrix}\begin{pmatrix}1&1\end{pmatrix} =\underbrace{\begin{pmatrix}2&-1\\-1&2\end{pmatrix}}_{\Sigma_{\underline W}}+\begin{pmatrix}1&1\\1&1\end{pmatrix}=\begin{pmatrix}3&0\\0&3\end{pmatrix}.

(b) U=(1  1  1)X‾∈RU=(1\;1\;1)\underline X\in\mathbb{R} is a vector of size 11, so

var(U)=ΣU=(1  1  1) ΣX‾(111)=6.\text{var}(U)=\Sigma_U=(1\;1\;1)\,\Sigma_{\underline X}\begin{pmatrix}1\\1\\1\end{pmatrix}=6 .

(c) Y‾=(Y1Y2)=(α11−α)(X1X3)=(α11−α)W‾\underline Y=\binom{Y_1}{Y_2}=\begin{pmatrix}\alpha&1\\1&-\alpha\end{pmatrix}\binom{X_1}{X_3}=\begin{pmatrix}\alpha&1\\1&-\alpha\end{pmatrix}\underline W. The components of Y‾\underline Y are uncorrelated iff ΣY‾\Sigma_{\underline Y} is a diagonal matrix:

ΣY‾=(α11−α)(2−1−12)(α11−α)=(2α2−2α+2α2−1α2−12α2+2α+2).\Sigma_{\underline Y}=\begin{pmatrix}\alpha&1\\1&-\alpha\end{pmatrix}\begin{pmatrix}2&-1\\-1&2\end{pmatrix}\begin{pmatrix}\alpha&1\\1&-\alpha\end{pmatrix} =\begin{pmatrix}2\alpha^2-2\alpha+2&\alpha^2-1\\\alpha^2-1&2\alpha^2+2\alpha+2\end{pmatrix}.

ΣY‾\Sigma_{\underline Y} is diagonal for α=±1\alpha=\pm1; for α=±1\alpha=\pm1 the random variables (Y1,Y2)(Y_1,Y_2) are uncorrelated. No conclusion on the independence of (Y1,Y2)(Y_1,Y_2) is possible in general (the vector X‾\underline 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)Y\sim N(\mu,\sigma^2) iff fY(y)=12πσ2exp⁡ ⁣(−12(y−μ)2σ2)f_Y(y)=\frac1{\sqrt{2\pi\sigma^2}}\exp\!\big(-\frac12\frac{(y-\mu)^2}{\sigma^2}\big). 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)Y\sim N(\mu,\sigma^2); (ii) Y=σZ+μY=\sigma Z+\mu for Z∼N(0,1)Z\sim N(0,1).

Proof. (i)⇒\Rightarrow(ii): if Y∼N(μ,σ2)Y\sim N(\mu,\sigma^2), we already proved that affine transformations of YY are still gaussian; in particular Z≜Y−μσ=1σY−μσZ\triangleq\frac{Y-\mu}\sigma=\frac1\sigma Y-\frac\mu\sigma is a gaussian random variable, Z∼N(0,1)Z\sim N(0,1). Rearranging terms, Y=σZ+μY=\sigma Z+\mu as required by (ii).

(ii)⇒\Rightarrow(i): the CF of Z∼N(0,1)Z\sim N(0,1) is φZ(ω)=e−12ω2\varphi_Z(\omega)=e^{-\frac12\omega^2} (see Characteristic Functionsmoments and the moment generating function lead to the characteristic function, the Fourier transform of the density, which always exists, characterizes the distribution, turns sums of independent variables into products and gives moments by differentiation; the multivariate version works the same way for random vectors.Characteristic Functions →). Since Y=σZ+μY=\sigma Z+\mu is an affine transformation, φY(ω)=ejμω−12σ2ω2\varphi_Y(\omega)=e^{j\mu\omega-\frac12\sigma^2\omega^2}, but this is the CF of a gaussian random variable Y∼N(μ,σ2)Y\sim N(\mu,\sigma^2). □\square

Remark. The lemma suggests an alternative definition of gaussian random variables in two steps: (1) define Z∼N(0,1)Z\sim N(0,1) as the absolutely continuous random variable with density fZ(z)=12πexp⁡(−12z2)f_Z(z)=\frac1{\sqrt{2\pi}}\exp(-\frac12z^2); (2) define Y∼N(μ,σ2)Y\sim N(\mu,\sigma^2) as the random variable obtained as the affine transformation Y=σZ+μY=\sigma Z+\mu, with Z∼N(0,1)Z\sim N(0,1). Notice that with this definition it is not necessary to specify fY(y)f_Y(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≥1k\ge1 the standard gaussian vector Z‾=(Z1,…,Zk)T\underline Z=(Z_1,\dots,Z_k)^T is defined as the vector with i.i.d. components Zi∼N(0,1)Z_i\sim N(0,1), i=1,…,ki=1,\dots,k. The joint density of Z‾\underline Z is (by independence)

fZ‾(z1,…,zk)=∏i=1k12πexp⁡ ⁣(−12zi2)=(12π)kexp⁡ ⁣(−12z‾Tz‾),f_{\underline Z}(z_1,\dots,z_k)=\prod_{i=1}^k\frac1{\sqrt{2\pi}}\exp\!\Big(-\frac12z_i^2\Big)=\Big(\frac1{\sqrt{2\pi}}\Big)^k\exp\!\Big(-\frac12\underline z^T\underline z\Big),

and the multivariate CF is (again by independence) φZ‾(ω1,…,ωk)=exp⁡(−12ω‾Tω‾)\varphi_{\underline Z}(\omega_1,\dots,\omega_k)=\exp(-\frac12\underline\omega^T\underline\omega). The mean vector is μ‾Z‾=E(Z‾)=0‾\underline\mu_{\underline Z}=E(\underline Z)=\underline0; the correlation/covariance matrix is RZ‾=ΣZ‾=E(Z‾Z‾T)=IkR_{\underline Z}=\Sigma_{\underline Z}=E(\underline Z\underline Z^T)=I_k. The standard gaussian vector is denoted Z‾∼N(0‾,Ik)\underline Z\sim N(\underline0,I_k).

Check of the CF:

φZ‾(ω‾)=E(ejω‾TZ‾)=E(ejω1Z1ejω2Z2⋯ejωkZk)=∏i=1kE(ejωiZi)=e−12ω12⋯e−12ωk2=e−12ω‾Tω‾.\varphi_{\underline Z}(\underline\omega)=E\big(e^{j\underline\omega^T\underline Z}\big)=E\big(e^{j\omega_1Z_1}e^{j\omega_2Z_2}\cdots e^{j\omega_kZ_k}\big)=\prod_{i=1}^kE\big(e^{j\omega_iZ_i}\big)=e^{-\frac12\omega_1^2}\cdots e^{-\frac12\omega_k^2}=e^{-\frac12\underline\omega^T\underline\omega}.

General gaussian vectors

Definition. A random vector Y‾\underline Y of size nn is said gaussian if it is an affine transformation of a standard gaussian vector Z‾\underline Z of size kk for some kk (where kk can be ≥n\ge n), i.e. if there exist A∈Rn×kA\in\mathbb{R}^{n\times k} and μ‾∈Rn\underline\mu\in\mathbb{R}^n such that

Y‾=AZ‾+μ‾where Z‾∼N(0‾,Ik).\underline Y=A\underline Z+\underline\mu\qquad\text{where }\underline Z\sim N(\underline0,I_k).

Parameters of Y‾\underline Y. By the known properties,

μ‾Y‾=E(AZ‾+μ‾)=μ‾,ΣY‾=E((Y‾−E(Y‾))(Y‾−E(Y‾))T)=E(AZ‾Z‾TAT)=AAT≜Σ.\underline\mu_{\underline Y}=E(A\underline Z+\underline\mu)=\underline\mu,\qquad \Sigma_{\underline Y}=E\big((\underline Y-E(\underline Y))(\underline Y-E(\underline Y))^T\big)=E(A\underline Z\underline Z^TA^T)=AA^T\triangleq\Sigma .

CF of Y‾\underline Y.

φY‾(ω‾)=E(ejω‾T(AZ‾+μ‾))=ejω‾Tμ‾E(ejω‾TAZ‾)=ejω‾Tμ‾φZ‾(ATω‾)=e jω‾Tμ‾−12ω‾TAAT⏟Σω‾.\varphi_{\underline Y}(\underline\omega)=E\big(e^{j\underline\omega^T(A\underline Z+\underline\mu)}\big)=e^{j\underline\omega^T\underline\mu}E\big(e^{j\underline\omega^TA\underline Z}\big)=e^{j\underline\omega^T\underline\mu}\varphi_{\underline Z}(A^T\underline\omega)=e^{\,j\underline\omega^T\underline\mu-\frac12\underline\omega^T\underbrace{AA^T}_{\Sigma}\underline\omega}.

Remark. The multivariate CF of Y‾\underline Y completely characterizes the random vector Y‾\underline Y from the probabilistic point of view, and the CF is in turn completely characterized by the mean vector μ‾\underline\mu and the covariance matrix Σ=AAT\Sigma=AA^T. The parameters that identify the random vector are (μ‾,Σ)(\underline\mu,\Sigma), not (μ‾,A)(\underline\mu,A). This justifies the notation

Y‾∼N(μ‾,Σ)\underline Y\sim N(\underline\mu,\Sigma)

to represent a gaussian vector with mean vector μ‾\underline\mu and variance matrix Σ\Sigma.

Existence and computation of the density

In the scalar case the density of the affine transformation Y=aZ+μY=aZ+\mu is fY(y)=1∣a∣fZ(y−μa)=12π∣a∣exp⁡ ⁣(−12(y−μa)2)f_Y(y)=\frac1{\lvert a\rvert}f_Z\big(\frac{y-\mu}a\big)=\frac1{\sqrt{2\pi}\lvert a\rvert}\exp\!\big(-\frac12(\frac{y-\mu}a)^2\big). The analog in the vector case is (what follows is a heuristic argument) Y‾=AZ‾+μ‾\underline Y=A\underline Z+\underline\mu with fZ‾(z‾)=(12π)kexp⁡(−12z‾Tz‾)f_{\underline Z}(\underline z)=(\frac1{\sqrt{2\pi}})^k\exp(-\frac12\underline z^T\underline z):

fY‾(y‾)=1∣A∣fZ‾(A−1(y‾−μ‾))=1(2π)k ∣A∣exp⁡ ⁣(−12(y‾−μ‾)TA−TA−1(y‾−μ‾))=1(2π)k∣Σ∣exp⁡ ⁣(−12(y‾−μ‾)TΣ−1(y‾−μ‾))(⊛)\begin{aligned} f_{\underline Y}(\underline y)&=\frac1{\lvert A\rvert}f_{\underline Z}\big(A^{-1}(\underline y-\underline\mu)\big)\\ &=\frac1{\sqrt{(2\pi)^k}\,\lvert A\rvert}\exp\!\Big(-\frac12(\underline y-\underline\mu)^TA^{-T}A^{-1}(\underline y-\underline\mu)\Big)\\ &=\frac1{\sqrt{(2\pi)^k\lvert\Sigma\rvert}}\exp\!\Big(-\frac12(\underline y-\underline\mu)^T\Sigma^{-1}(\underline y-\underline\mu)\Big)\qquad(\circledast) \end{aligned}

where ∣A∣\lvert A\rvert is the determinant of AA (this requires n=kn=k and AA invertible), Σ=AAT\Sigma=AA^T, ∣Σ∣=∣A∣∣AT∣=∣A∣2\lvert\Sigma\rvert=\lvert A\rvert\lvert A^T\rvert=\lvert A\rvert^2 and Σ−1=A−TA−1\Sigma^{-1}=A^{-T}A^{-1}. (On the page the last line is written with ∣Σ∣\lvert\Sigma\rvert inside the square root; this is consistent with ∣A∣=∣Σ∣\lvert A\rvert=\sqrt{\lvert\Sigma\rvert}.)

Therefore a gaussian vector Y‾∼N(μ‾,Σ)\underline Y\sim N(\underline\mu,\Sigma) admits a density only if Σ>0\Sigma>0 (invertible), in which case the density given in (⊛)(\circledast) depends on μ‾\underline\mu and Σ−1\Sigma^{-1}.

Affine transformations of gaussian vectors

Lemma. Let Y‾∼N(μ‾,Σ)\underline Y\sim N(\underline\mu,\Sigma) and W‾=BY‾+ν‾\underline W=B\underline Y+\underline\nu. Then

W‾∼N(Bμ‾+ν‾, BΣBT).\underline W\sim N\big(B\underline\mu+\underline\nu,\ B\Sigma B^T\big).

Proof. By definition Y‾∼N(μ‾,Σ)\underline Y\sim N(\underline\mu,\Sigma) iff for some Z‾∼N(0‾,Ik)\underline Z\sim N(\underline0,I_k), for some kk, there exists AA such that AAT=ΣAA^T=\Sigma (∗)(*) and Y‾=AZ‾+μ‾\underline Y=A\underline Z+\underline\mu. It follows that W‾=BY‾+ν‾=BAZ‾+Bμ‾+ν‾\underline W=B\underline Y+\underline\nu=BA\underline Z+B\underline\mu+\underline\nu. This proves that W‾\underline W too is an affine transformation of Z‾\underline Z and therefore W‾\underline W is a gaussian vector. Clearly E(W‾)=Bμ‾+ν‾E(\underline W)=B\underline\mu+\underline\nu and moreover

cov(W‾)=E((W‾−Bμ‾−ν‾)(W‾−Bμ‾−ν‾)T)=E(BAZ‾Z‾TATBT)=BAIkATBT=BΣBT.□\text{cov}(\underline W)=E\big((\underline W-B\underline\mu-\underline\nu)(\underline W-B\underline\mu-\underline\nu)^T\big)=E(BA\underline Z\underline Z^TA^TB^T)=BAI_kA^TB^T=B\Sigma B^T. \qquad\square

(∗)(*) It is a standard result in linear algebra that any Σ≥0\Sigma\ge0 can be factorized as Σ=AAT\Sigma=AA^T. For example Σ\Sigma can be written Σ=UΛUT\Sigma=U\Lambda U^T with Λ\Lambda diagonal (≥0\ge0); then Σ=UΛ1/2Λ1/2UT=AAT\Sigma=U\Lambda^{1/2}\Lambda^{1/2}U^T=AA^T with A=UΛ1/2A=U\Lambda^{1/2}.

Example (marginals are gaussian). Let Y‾=(Y1,…,Yn)T∼N(μ‾,Σ)\underline Y=(Y_1,\dots,Y_n)^T\sim N(\underline\mu,\Sigma). Then Yi∼N(μi,Σii)Y_i\sim N(\mu_i,\Sigma_{ii}), i=1,…,ni=1,\dots,n.

Proof. Yi=(0⋯010⋯0)Y‾=e‾iTY‾Y_i=(0\cdots010\cdots0)\underline Y=\underline e_i^T\underline Y (11 in the ii-th coordinate). Being a linear transformation of Y‾\underline Y, YiY_i is gaussian, with parameters E(Yi)=e‾iTμ‾=μiE(Y_i)=\underline e_i^T\underline\mu=\mu_i and var(Yi)=E(e‾iTY‾Y‾Te‾i)=e‾iTΣe‾i=Σii\text{var}(Y_i)=E(\underline e_i^T\underline Y\underline Y^T\underline e_i)=\underline e_i^T\Sigma\underline e_i=\Sigma_{ii} (writing Y‾\underline Y centered).

Independence and uncorrelation

Lemma. The following facts are equivalent: (i) the components of Y‾∼N(μ‾,Σ)\underline Y\sim N(\underline\mu,\Sigma) are independent; (ii) the components of Y‾∼N(μ‾,Σ)\underline Y\sim N(\underline\mu,\Sigma) are uncorrelated; (iii) the covariance matrix Σ\Sigma of Y‾∼N(μ‾,Σ)\underline Y\sim N(\underline\mu,\Sigma) is diagonal.

Proof. The implications (i)⇒\Rightarrow(ii)⇔\Leftrightarrow(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)⇒\Rightarrow(i), or (iii)⇒\Rightarrow(i).

We prove (iii)⇒\Rightarrow(i). The multivariate CF of Y‾∼N(μ‾,Σ)\underline Y\sim N(\underline\mu,\Sigma) is φY‾(ω‾)=ejμ‾Tω‾−12ω‾TΣω‾\varphi_{\underline Y}(\underline\omega)=e^{j\underline\mu^T\underline\omega-\frac12\underline\omega^T\Sigma\underline\omega}. By assumption Σ\Sigma is diagonal (equivalently the components are uncorrelated), therefore ω‾TΣω‾=∑i=1nΣiiωi2\underline\omega^T\Sigma\underline\omega=\sum_{i=1}^n\Sigma_{ii}\omega_i^2 and the CF reduces to

φY1…Yn(ω1,…,ωn)=ej∑iμiωi−12∑iΣiiωi2=∏i=1nejμiωi−12Σiiωi2=∏i=1nφYi(ωi),\varphi_{Y_1\dots Y_n}(\omega_1,\dots,\omega_n)=e^{j\sum_i\mu_i\omega_i-\frac12\sum_i\Sigma_{ii}\omega_i^2}=\prod_{i=1}^ne^{j\mu_i\omega_i-\frac12\Sigma_{ii}\omega_i^2}=\prod_{i=1}^n\varphi_{Y_i}(\omega_i),

which is equivalent to the independence of the random variables (Y1,…,Yn)(Y_1,\dots,Y_n) (CF and independence lemma in Characteristic Functionsmoments and the moment generating function lead to the characteristic function, the Fourier transform of the density, which always exists, characterizes the distribution, turns sums of independent variables into products and gives moments by differentiation; the multivariate version works the same way for random vectors.Characteristic Functions →). □\square

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((12),(3−1−11))\underline Y\sim N\Big(\binom12,\begin{pmatrix}3&-1\\-1&1\end{pmatrix}\Big). (a) Compute var(Y1+Y2)\text{var}(Y_1+Y_2). (b) Write the CF of Y‾\underline Y. (c) Write the density of Y‾\underline Y if it exists.

(a) var(Y1+Y2)=var(Y1)+var(Y2)+2 cov(Y1,Y2)=3+1+2⋅(−1)=2\text{var}(Y_1+Y_2)=\text{var}(Y_1)+\text{var}(Y_2)+2\,\text{cov}(Y_1,Y_2)=3+1+2\cdot(-1)=2. Alternatively, W=Y1+Y2=(1  1)Y‾W=Y_1+Y_2=(1\;1)\underline Y and var(W)=(1  1)ΣY‾(11)=(1  1)(3−1−11)(11)=2\text{var}(W)=(1\;1)\Sigma_{\underline Y}\binom11=(1\;1)\begin{pmatrix}3&-1\\-1&1\end{pmatrix}\binom11=2.

(b) φY1Y2(ω1,ω2)=ej(1,2)(ω1ω2)−12(ω1 ω2)(3−1−11)(ω1ω2)=ej(ω1+2ω2)−12(3ω12−2ω1ω2+ω22).\varphi_{Y_1Y_2}(\omega_1,\omega_2)=e^{j(1,2)\binom{\omega_1}{\omega_2}-\frac12(\omega_1\ \omega_2)\begin{pmatrix}3&-1\\-1&1\end{pmatrix}\binom{\omega_1}{\omega_2}}=e^{j(\omega_1+2\omega_2)-\frac12(3\omega_1^2-2\omega_1\omega_2+\omega_2^2)}.

(c) The density exists iff Σ\Sigma is invertible (det⁡Σ=2>0⇒Σ\det\Sigma=2>0\Rightarrow\Sigma invertible; one should also check that Σ>0\Sigma>0). The density exists and can be written as

fY1Y2(y1,y2)=1(2π)2∣ΣY‾∣exp⁡ ⁣(−12(y‾−μ‾)TΣY‾−1(y‾−μ‾)),ΣY‾−1=12(1113)=(12121232),f_{Y_1Y_2}(y_1,y_2)=\frac1{\sqrt{(2\pi)^2\lvert\Sigma_{\underline Y}\rvert}}\exp\!\Big(-\frac12(\underline y-\underline\mu)^T\Sigma_{\underline Y}^{-1}(\underline y-\underline\mu)\Big),\qquad \Sigma_{\underline Y}^{-1}=\frac12\begin{pmatrix}1&1\\1&3\end{pmatrix}=\begin{pmatrix}\frac12&\frac12\\\frac12&\frac32\end{pmatrix},

therefore

fY1Y2(y1,y2)=122 πexp⁡ ⁣(−14(y1−1, y2−2)(1113)(y1−1y2−2))=24πexp⁡ ⁣(−14((y1−1)2+2(y1−1)(y2−2)+3(y2−2)2)).f_{Y_1Y_2}(y_1,y_2)=\frac1{2\sqrt2\,\pi}\exp\!\Big(-\frac14(y_1-1,\ y_2-2)\begin{pmatrix}1&1\\1&3\end{pmatrix}\binom{y_1-1}{y_2-2}\Big) =\frac{\sqrt2}{4\pi}\exp\!\Big(-\frac14\big((y_1-1)^2+2(y_1-1)(y_2-2)+3(y_2-2)^2\big)\Big).

Exercise 2. Z1,Z2Z_1,Z_2 are i.i.d. N(0,1)N(0,1) random variables. Let Y1=Z1−Z2Y_1=Z_1-Z_2, Y2=Z1+Z2Y_2=Z_1+Z_2. Determine if Y‾=(Y1Y2)\underline Y=\binom{Y_1}{Y_2} is a gaussian vector.

Solution. The vector Z‾=(Z1Z2)∼N(0‾,I2)\underline Z=\binom{Z_1}{Z_2}\sim N(\underline0,I_2) is a 22-dimensional standard gaussian vector; moreover Y‾=(1−111)Z‾\underline Y=\begin{pmatrix}1&-1\\1&1\end{pmatrix}\underline Z is a linear transformation of Z‾\underline Z, therefore Y‾\underline Y is a gaussian vector. Parameters: E(Y‾)=0‾E(\underline Y)=\underline0 and

ΣY‾=(1−111)(11−11)=(2002),i.e. Y‾∼N(0‾,2I2).\Sigma_{\underline Y}=\begin{pmatrix}1&-1\\1&1\end{pmatrix}\begin{pmatrix}1&1\\-1&1\end{pmatrix}=\begin{pmatrix}2&0\\0&2\end{pmatrix},\qquad\text{i.e. }\underline Y\sim N(\underline0,2I_2).

(The page stops here. By the independence lemma above, since ΣY‾\Sigma_{\underline Y} is diagonal and Y‾\underline Y is gaussian, Y1Y_1 and Y2Y_2 are independent.)

Versione ripasso

Second-order facts. RX‾=ΣX‾+μ‾μ‾TR_{\underline X}=\Sigma_{\underline X}+\underline\mu\underline\mu^T; W‾=BX‾⇒μ‾W‾=Bμ‾\underline W=B\underline X\Rightarrow\underline\mu_{\underline W}=B\underline\mu, ΣW‾=BΣBT\Sigma_{\underline W}=B\Sigma B^T. Components of a random vector are uncorrelated iff Σ\Sigma is diagonal. Example: ΣX‾=(20−1021−112)\Sigma_{\underline X}=\begin{pmatrix}2&0&-1\\0&2&1\\-1&1&2\end{pmatrix}, W‾=(X1,X3)\underline W=(X_1,X_3) gives ΣW‾=(2−1−12)\Sigma_{\underline W}=\begin{pmatrix}2&-1\\-1&2\end{pmatrix}, RW‾=3I2R_{\underline W}=3I_2; var(X1+X2+X3)=1‾TΣ1‾=6\text{var}(X_1+X_2+X_3)=\underline1^T\Sigma\underline1=6; ΣY‾\Sigma_{\underline Y} for (αX1+X3, X1−αX3)(\alpha X_1+X_3,\ X_1-\alpha X_3) is diagonal iff α=±1\alpha=\pm1 (uncorrelated only, independence not implied unless gaussian).

Scalar case revisited. Y∼N(μ,σ2)  ⟺  Y=σZ+μY\sim N(\mu,\sigma^2)\iff Y=\sigma Z+\mu with Z∼N(0,1)Z\sim N(0,1) (proof: affine maps keep gaussianity; CF of σZ+μ\sigma Z+\mu is ejμω−12σ2ω2e^{j\mu\omega-\frac12\sigma^2\omega^2}).

Standard gaussian vector Z‾∼N(0‾,Ik)\underline Z\sim N(\underline0,I_k): i.i.d. N(0,1)N(0,1) components, fZ‾=(2π)−k/2e−12z‾Tz‾f_{\underline Z}=(2\pi)^{-k/2}e^{-\frac12\underline z^T\underline z}, φZ‾(ω‾)=e−12ω‾Tω‾\varphi_{\underline Z}(\underline\omega)=e^{-\frac12\underline\omega^T\underline\omega}.

Gaussian vector (definition). Y‾=AZ‾+μ‾\underline Y=A\underline Z+\underline\mu, A∈Rn×kA\in\mathbb{R}^{n\times k} (k≥nk\ge n allowed), Z‾∼N(0‾,Ik)\underline Z\sim N(\underline0,I_k). Then μ‾Y‾=μ‾\underline\mu_{\underline Y}=\underline\mu, ΣY‾=AAT=Σ\Sigma_{\underline Y}=AA^T=\Sigma,

φY‾(ω‾)=ejω‾Tμ‾−12ω‾TΣω‾.\varphi_{\underline Y}(\underline\omega)=e^{j\underline\omega^T\underline\mu-\frac12\underline\omega^T\Sigma\underline\omega}.

The law is identified by (μ‾,Σ)(\underline\mu,\Sigma) (not AA): Y‾∼N(μ‾,Σ)\underline Y\sim N(\underline\mu,\Sigma). Any Σ≥0\Sigma\ge0 factorizes as AATAA^T (e.g. A=UΛ1/2A=U\Lambda^{1/2} from Σ=UΛUT\Sigma=U\Lambda U^T).

Density. Exists only if Σ>0\Sigma>0 (invertible); then (heuristic derivation through 1∣A∣fZ‾(A−1(y‾−μ‾))\frac1{\lvert A\rvert}f_{\underline Z}(A^{-1}(\underline y-\underline\mu)), ∣Σ∣=∣A∣2\lvert\Sigma\rvert=\lvert A\rvert^2, Σ−1=A−TA−1\Sigma^{-1}=A^{-T}A^{-1})

fY‾(y‾)=1(2π)k∣Σ∣exp⁡ ⁣(−12(y‾−μ‾)TΣ−1(y‾−μ‾)).f_{\underline Y}(\underline y)=\frac1{\sqrt{(2\pi)^k\lvert\Sigma\rvert}}\exp\!\Big(-\frac12(\underline y-\underline\mu)^T\Sigma^{-1}(\underline y-\underline\mu)\Big).

Affine maps. Y‾∼N(μ‾,Σ)\underline Y\sim N(\underline\mu,\Sigma), W‾=BY‾+ν‾⇒W‾∼N(Bμ‾+ν‾, BΣBT)\underline W=B\underline Y+\underline\nu\Rightarrow\underline W\sim N(B\underline\mu+\underline\nu,\ B\Sigma B^T) (still affine in Z‾\underline Z). In particular each component Yi∼N(μi,Σii)Y_i\sim N(\mu_i,\Sigma_{ii}) (take B=e‾iTB=\underline e_i^T).

Independence. For gaussian vectors: independent   ⟺  \iff uncorrelated   ⟺  \iff Σ\Sigma diagonal (proof: diagonal Σ\Sigma makes the CF factorize as ∏iφYi(ωi)\prod_i\varphi_{Y_i}(\omega_i)). Uncorrelated gaussians that are not jointly gaussian need not be independent.

Worked results. Y‾∼N((12),(3−1−11))\underline Y\sim N\Big(\binom12,\begin{pmatrix}3&-1\\-1&1\end{pmatrix}\Big): var(Y1+Y2)=3+1−2=2\text{var}(Y_1+Y_2)=3+1-2=2; CF ej(ω1+2ω2)−12(3ω12−2ω1ω2+ω22)e^{j(\omega_1+2\omega_2)-\frac12(3\omega_1^2-2\omega_1\omega_2+\omega_2^2)}; det⁡Σ=2\det\Sigma=2, Σ−1=12(1113)\Sigma^{-1}=\frac12\begin{pmatrix}1&1\\1&3\end{pmatrix}, density 24πexp⁡ ⁣(−14((y1−1)2+2(y1−1)(y2−2)+3(y2−2)2))\frac{\sqrt2}{4\pi}\exp\!\big(-\frac14((y_1-1)^2+2(y_1-1)(y_2-2)+3(y_2-2)^2)\big). Y1=Z1−Z2Y_1=Z_1-Z_2, Y2=Z1+Z2Y_2=Z_1+Z_2: gaussian with Σ=2I2\Sigma=2I_2.

Typical mistakes. Describing Y‾\underline Y by (μ‾,A)(\underline\mu,A); writing a density when Σ\Sigma is singular; concluding independence from uncorrelation without joint gaussianity; forgetting BΣBTB\Sigma B^T (not B2ΣB^2\Sigma or ΣB\Sigma B); using ∣Σ∣\lvert\Sigma\rvert instead of ∣Σ∣\sqrt{\lvert\Sigma\rvert} in the normalizing constant.

Teoria collegata