Multivariate random variable explained

In probability, and statistics, a multivariate random variable or random vector is a list or vector of mathematical variables each of whose value is unknown, either because the value has not yet occurred or because there is imperfect knowledge of its value. The individual variables in a random vector are grouped together because they are all part of a single mathematical system — often they represent different properties of an individual statistical unit. For example, while a given person has a specific age, height and weight, the representation of these features of an unspecified person from within a group would be a random vector. Normally each element of a random vector is a real number.

Random vectors are often used as the underlying implementation of various types of aggregate random variables, e.g. a random matrix, random tree, random sequence, stochastic process, etc.

X=(X1,...,X

T
n)
(or its transpose, which is a row vector) whose components are random variables on the probability space

(\Omega,l{F},P)

, where

\Omega

is the sample space,

l{F}

is the sigma-algebra (the collection of all events), and

P

is the probability measure (a function returning each event's probability).

Probability distribution

See main article: Multivariate probability distribution. Every random vector gives rise to a probability measure on

Rn

with the Borel algebra as the underlying sigma-algebra. This measure is also known as the joint probability distribution, the joint distribution, or the multivariate distribution of the random vector.

The distributions of each of the component random variables

Xi

are called marginal distributions. The conditional probability distribution of

Xi

given

Xj

is the probability distribution of

Xi

when

Xj

is known to be a particular value.

The cumulative distribution function

FX:\Rn\mapsto[0,1]

of a random vector

X=(X1,...,X

T
n)
is defined as[1]

where

x=(x1,...,

T
x
n)
.

Operations on random vectors

Random vectors can be subjected to the same kinds of algebraic operations as can non-random vectors: addition, subtraction, multiplication by a scalar, and the taking of inner products.

Affine transformations

Similarly, a new random vector

Y

can be defined by applying an affine transformation

g\colonRn\toRn

to a random vector

X

:

Y=AX+b

, where

A

is an

n x n

matrix and

b

is an

n x 1

column vector.

If

A

is an invertible matrix and

styleX

has a probability density function

fX

, then the probability density of

Y

is

fY(y)=

fX(A-1(y-b))
|\detA|
.

Invertible mappings

More generally we can study invertible mappings of random vectors.[2]

Let

g

be a one-to-one mapping from an open subset

l{D}

of

Rn

onto a subset

l{R}

of

Rn

, let

g

have continuous partial derivatives in

l{D}

and let the Jacobian determinant of

g

be zero at no point of

l{D}

. Assume that the real random vector

X

has a probability density function

fX(x)

and satisfies

P(X\inl{D})=1

. Then the random vector

Y=g(X)

is of probability density

\left.fY(y)=

fX(x)
\left
|\det\partialx
\partialy
\right|

\right

|
x=g-1(y)

1(y\inRY)

where

1

denotes the indicator function and set

RY=\{y=g(x):fX(x)>0\}\subseteql{R}

denotes support of

Y

.

Expected value

The expected value or mean of a random vector

X

is a fixed vector

\operatorname{E}[X]

whose elements are the expected values of the respective random variables.[3]

Covariance and cross-covariance

Definitions

The covariance matrix (also called second central moment or variance-covariance matrix) of an

n x 1

random vector is an

n x n

matrix whose (i,j)th element is the covariance between the i th and the j th random variables. The covariance matrix is the expected value, element by element, of the

n x n

matrix computed as

[X-\operatorname{E}[X]][X-\operatorname{E}[X]]T

, where the superscript T refers to the transpose of the indicated vector:[2] [3]

By extension, the cross-covariance matrix between two random vectors

X

and

Y

(

X

having

n

elements and

Y

having

p

elements) is the

n x p

matrix[3]

where again the matrix expectation is taken element-by-element in the matrix. Here the (i,j)th element is the covariance between the i th element of

X

and the j th element of

Y

.

Properties

The covariance matrix is a symmetric matrix, i.e.[2]

T
\operatorname{K}
XX

=\operatorname{K}XX

.

The covariance matrix is a positive semidefinite matrix, i.e.[2]

aT\operatorname{K}XXa\ge0foralla\inRn

.

The cross-covariance matrix

\operatorname{Cov}[Y,X]

is simply the transpose of the matrix

\operatorname{Cov}[X,Y]

, i.e.

\operatorname{K}YX=

T
\operatorname{K}
XY
.

Uncorrelatedness

Two random vectors

X=(X1,...,X

T
m)
and

Y=(Y1,...,Y

T
n)
are called uncorrelated if

\operatorname{E}[XYT]=\operatorname{E}[X]\operatorname{E}[Y]T

.

They are uncorrelated if and only if their cross-covariance matrix

\operatorname{K}XY

is zero.[3]

Correlation and cross-correlation

Definitions

The correlation matrix (also called second moment) of an

n x 1

random vector is an

n x n

matrix whose (i,j)th element is the correlation between the i th and the j th random variables. The correlation matrix is the expected value, element by element, of the

n x n

matrix computed as

XXT

, where the superscript T refers to the transpose of the indicated vector:[4] [3]

By extension, the cross-correlation matrix between two random vectors

X

and

Y

(

X

having

n

elements and

Y

having

p

elements) is the

n x p

matrix

Properties

The correlation matrix is related to the covariance matrix by

\operatorname{R}XX=\operatorname{K}XX+\operatorname{E}[X]\operatorname{E}[X]T

.Similarly for the cross-correlation matrix and the cross-covariance matrix:

\operatorname{R}XY=\operatorname{K}XY+\operatorname{E}[X]\operatorname{E}[Y]T

Orthogonality

Two random vectors of the same size

X=(X1,...,X

T
n)
and

Y=(Y1,...,Y

T
n)
are called orthogonal if

\operatorname{E}[XTY]=0

.

Independence

See main article: Independence (probability theory). Two random vectors

X

and

Y

are called independent if for all

x

and

y

FX,Y(x,y)=FX(x)FY(y)

where

FX(x)

and

FY(y)

denote the cumulative distribution functions of

X

and

Y

and

FX,Y(x,y)

denotes their joint cumulative distribution function. Independence of

X

and

Y

is often denoted by

X\perp\perpY

.Written component-wise,

X

and

Y

are called independent if for all

x1,\ldots,xm,y1,\ldots,yn

F
X1,\ldots,Xm,Y1,\ldots,Yn

(x1,\ldots,xm,y1,\ldots,yn)=

F
X1,\ldots,Xm

(x1,\ldots,xm)

F
Y1,\ldots,Yn

(y1,\ldots,yn)

.

Characteristic function

The characteristic function of a random vector

X

with

n

components is a function

Rn\toC

that maps every vector

\omega=(\omega1,\ldots,\omega

T
n)
to a complex number. It is defined by[2]

\varphiX(\omega)=\operatorname{E}\left[

i(\omegaTX)
e

\right]=\operatorname{E}\left[

i(\omega1X1+\ldots+\omeganXn)
e

\right]

.

Further properties

Expectation of a quadratic form

One can take the expectation of a quadratic form in the random vector

X

as follows:[5]

\operatorname{E}[XTAX]=\operatorname{E}[X]TA\operatorname{E}[X]+\operatorname{tr}(AKXX),

where

KXX

is the covariance matrix of

X

and

\operatorname{tr}

refers to the trace of a matrix — that is, to the sum of the elements on its main diagonal (from upper left to lower right). Since the quadratic form is a scalar, so is its expectation.

Proof: Let

z

be an

m x 1

random vector with

\operatorname{E}[z]=\mu

and

\operatorname{Cov}[z]=V

and let

A

be an

m x m

non-stochastic matrix.

Then based on the formula for the covariance, if we denote

zT=X

and

zTAT=Y

, we see that:

\operatorname{Cov}[X,Y]=\operatorname{E}[XYT]-\operatorname{E}[X]\operatorname{E}[Y]T

Hence

\begin{align} \operatorname{E}[XYT]&=\operatorname{Cov}[X,Y]+\operatorname{E}[X]\operatorname{E}[Y]T\\ \operatorname{E}[zTAz]&=\operatorname{Cov}[zT,zTAT]+\operatorname{E}[zT]\operatorname{E}[zTAT]T\\ &=\operatorname{Cov}[zT,zTAT]+\muT(\muTAT)T\\ &=\operatorname{Cov}[zT,zTAT]+\muTA\mu, \end{align}

which leaves us to show that

\operatorname{Cov}[zT,zTAT]=\operatorname{tr}(AV).

This is true based on the fact that one can cyclically permute matrices when taking a trace without changing the end result (e.g.:

\operatorname{tr}(AB)=\operatorname{tr}(BA)

).

We see that

\begin{align} \operatorname{Cov}[zT,zTAT]&=\operatorname{E}\left[\left(zT-E(zT)\right)\left(zTAT-E\left(zTAT\right)\right)T\right]\\ &=\operatorname{E}\left[(zT-\muT)(zTAT-\muTAT)T\right]\\ &=\operatorname{E}\left[(z-\mu)T(Az-A\mu)\right]. \end{align}

And since

\left({z-\mu}\right)T\left({Az-A\mu}\right)

is a scalar, then

(z-\mu)T(Az-A\mu)=\operatorname{tr}\left({(z-\mu)T(Az-A\mu)}\right)=\operatorname{tr}\left((z-\mu)TA(z-\mu)\right)

trivially. Using the permutation we get:

\operatorname{tr}\left({(z-\mu)TA(z-\mu)}\right)=\operatorname{tr}\left({A(z-\mu)(z-\mu)T}\right),

and by plugging this into the original formula we get:

\begin{align} \operatorname{Cov}\left[{zT,zTAT}\right]&=E\left[{\left({z-\mu}\right)T(Az-A\mu)}\right]\\ &=E\left[\operatorname{tr}\left(A(z-\mu)(z-\mu)T\right)\right]\\ &=\operatorname{tr}\left({A\operatorname{E}\left((z-\mu)(z-\mu)T\right)}\right)\\ &=\operatorname{tr}(AV). \end{align}

Expectation of the product of two different quadratic forms

One can take the expectation of the product of two different quadratic forms in a zero-mean Gaussian random vector

X

as follows:[5]

\operatorname{E}\left[(XTAX)(XTBX)\right]=2\operatorname{tr}(AKXXBKXX)+\operatorname{tr}(AKXX)\operatorname{tr}(BKXX)

where again

KXX

is the covariance matrix of

X

. Again, since both quadratic forms are scalars and hence their product is a scalar, the expectation of their product is also a scalar.

Applications

Portfolio theory

In portfolio theory in finance, an objective often is to choose a portfolio of risky assets such that the distribution of the random portfolio return has desirable properties. For example, one might want to choose the portfolio return having the lowest variance for a given expected value. Here the random vector is the vector

r

of random returns on the individual assets, and the portfolio return p (a random scalar) is the inner product of the vector of random returns with a vector w of portfolio weights — the fractions of the portfolio placed in the respective assets. Since p = wT

r

, the expected value of the portfolio return is wTE(

r

) and the variance of the portfolio return can be shown to be wTCw, where C is the covariance matrix of

r

.

Regression theory

In linear regression theory, we have data on n observations on a dependent variable y and n observations on each of k independent variables xj. The observations on the dependent variable are stacked into a column vector y; the observations on each independent variable are also stacked into column vectors, and these latter column vectors are combined into a design matrix X (not denoting a random vector in this context) of observations on the independent variables. Then the following regression equation is postulated as a description of the process that generated the data:

y=X\beta+e,

where β is a postulated fixed but unknown vector of k response coefficients, and e is an unknown random vector reflecting random influences on the dependent variable. By some chosen technique such as ordinary least squares, a vector

\hat\beta

is chosen as an estimate of β, and the estimate of the vector e, denoted

\hate

, is computed as

\hate=y-X\hat\beta.

Then the statistician must analyze the properties of

\hat\beta

and

\hate

, which are viewed as random vectors since a randomly different selection of n cases to observe would have resulted in different values for them.

Vector time series

The evolution of a k×1 random vector

X

through time can be modelled as a vector autoregression (VAR) as follows:

Xt=c+A1Xt-1+A2Xt-2++ApXt-p+et,

where the i-periods-back vector observation

Xt-i

is called the i-th lag of

X

, c is a k × 1 vector of constants (intercepts), Ai is a time-invariant k × k matrix and

et

is a k × 1 random vector of error terms.

Further reading

Notes and References

  1. Book: Gallager, Robert G. . 2013 . Stochastic Processes Theory for Applications . Cambridge University Press . 978-1-107-03975-9.
  2. Book: Lapidoth, Amos . A Foundation in Digital Communication . Cambridge University Press . 2009 . 978-0-521-19395-5 .
  3. Book: Gubner, John A. . 2006 . Probability and Random Processes for Electrical and Computer Engineers . Cambridge University Press . 978-0-521-86470-1.
  4. Book: Papoulis, Athanasius . Probability, Random Variables and Stochastic Processes . McGraw-Hill . Third . 1991 . 0-07-048477-5 .
  5. Book: Kendrick, David . Stochastic Control for Economic Models . McGraw-Hill . 1981 . 0-07-033962-7 .