Random Vectors and Independence

Week 10

Lecture Notes

Random Vectors

Beginning chapter 7, vectors of random variables. We are concerned with a random vector

𝑋=(𝑋1,…,𝑋𝑁)

The cdf of this vector is

𝐹𝑋(𝑥1,…,𝑥𝑁)=ℙ(𝑋1≤𝑥1,…𝑋𝑁≤𝑥𝑛)

We can also say that if we have a random vector (X, Y) then

If you compute joint cdf, we can get marginal distribution (distribution for a subset, maybe one element) very easily

𝐹𝑋(𝑥)=lim𝑦→∞𝐹(𝑋,𝑌)(𝑥,𝑦)

and equivalently

ℙ(𝑋≤𝑥)=lim𝑦→∞ℙ(𝑋≤𝑥,𝑌≤𝑦)

Remark 7.7 says components of vectors are independent

These results hold for every random vector.

Discrete Random Vectors

Now we will talk about discrete random vectors.

The formal definition 7.8 says that the rv is discrete when the image set 𝑋(Ω) is a finite or countable subset of ℝ𝑛, the product space between n different real number lines.

The pmf for a discrete random vector is given by the basic formula

ℙ(𝑋1=𝑥1,…𝑋𝑁=𝑥𝑁)

The density dictates that the sum must be 1.

∑𝑥∈𝑋(Ω)ℙ(𝑋=𝑥)=1

Then the cdf is

𝐹𝑋(𝑥1,…,𝑥𝑛)=∑𝑢1≤𝑥1…∑𝑢𝑁≤𝑥𝑁ℙ(𝑋1=𝑢1,…,𝑋𝑁=𝑢𝑁)

In order to intuitively understand why the marginal distribution calculation works for joint distribution, imagine a table of values, which has the probability for each event in the sample space. The rows are of the first random variable’s sample space, and the columns are for the second. Then, in order to calculate the probability of an event happening for the second random variable, you need to total all the probabilities from each row in the table.

Independence

Example 7.4

We have (X, Y) random vector. where

𝑋(Ω)=𝑌(Ω)={0,1}

and

ℙ(𝑋=0,𝑌=0)=(1−𝑝)2

ℙ(𝑋=1,𝑌=1)=𝑝2

ℙ(𝑋=0,𝑌=1)=ℙ(𝑋=1,𝑌=0)=𝑝(1−𝑝)

How do we prove independence?

We need to prove

ℙ(𝐴∩𝐵)=ℙ(𝐴)ℙ(𝐵)

or for joint distributions,

ℙ(𝑋=𝑥,𝑌=𝑦)=ℙ(𝑋=𝑥)ℙ(𝑌=𝑦)

We can use the marginal distribution calculation for this.

ℙ(𝑋=0)=ℙ(𝑋=0,𝑌=0)+ℙ(𝑋=0,𝑌=1)=(1−𝑝)2+𝑝(1−𝑝)=1−𝑝

ℙ(𝑋=1)=𝑝2+𝑝(1−𝑝)=𝑝

ℙ(𝑌=0)=1−𝑝

ℙ(𝑌=1)=𝑝

And then now you can verify for each combination of different X and Y that the independence equality holds. Left as exercise for reader 😅

Continuous Random Vectors

We can consider any function 𝑓:ℝ𝑛→ℝ a density if it’s positive and

∫ℝ𝑛𝑓(𝑥)𝑑𝑥=∫ℝ1…∫ℝ𝑁𝑓(𝑥1,…,𝑥𝑛)𝑑𝑥1,…𝑑𝑥𝑛=1

We can say that the random vector has this density given by f if

ℙ((𝑋1,…𝑋𝑛)∈𝐷)=∫𝐷𝑓(𝑥1,…,𝑥𝑛)𝑑𝑥1…𝑑𝑥𝑛

Where D is the product space. And in fact, for the cdf, this D is the Borel set

For the marginal density, instead of a summation of all the others, you actually do the integral of all the others

𝑓𝑥𝑖(𝑥𝑖)=∫ℝ𝑛−1𝑓(𝑥1,…,𝑥𝑛)𝑑𝑥1…𝑑𝑥𝑖−1𝑑𝑥𝑖+1…𝑑𝑥𝑛

Uniformly Distributed Vector

The joint density function is given by

𝑓(𝑥,𝑦)=1(𝑏−𝑎)(𝑑−𝑐)𝕀(𝑎,𝑏](𝑥)𝕀(𝑐,𝑑](𝑦)

Two Dimensional Normal

The mapping which is given by

𝑓(𝑥,𝑦)=12𝜋𝑒−𝑥2+𝑦22

This is for both variables being (N(0, 1)).

If we want to prove that a function is a density, we need to prove only positivity and equivalence to one on the integral over the interval.

Change of Variable

Let’s take a random vector X with density 𝑓𝑋, and 𝑌=𝜑(𝑋) where this function is a multivariate function that transforms X. The density of Y is, in the most general case,

𝑓𝑌(𝑦)=𝑓𝑋(𝜑−1(𝑦))|det(𝐽(𝜑−1(𝑦)))|

J the Jacobian is a matrix of partials, from

𝜕𝜑1𝜕𝑥1…𝜕𝜑1𝜕𝑥𝑛

going left to right

You’re kind of stacking these multivariate functions on top of each other:

𝜑=(𝜑1(𝑥1,…,𝑥𝑛),…,𝜑𝑛(𝑥1,…,𝑥𝑛))

To get the inverse of 𝜑, you treat it as a system

{𝑢=𝑥𝑦𝑣=𝑥𝑦→𝑢𝑣=𝑥2→𝑥=𝑢𝑣,𝑦=𝑢𝑣

𝜑−1(𝑢,𝑣)=(𝑢𝑣,𝑢𝑣)

Then you can get the Jacobian from the vector

𝜕𝜕𝑢𝑢𝑣𝜕𝜕𝑣𝑢𝑣𝜕𝜕𝑥𝑢𝑣𝜕𝜕𝑣𝑢𝑣

Then calculate each partial, then take the determinant with a calculator.

Convolution

The convolution will allow you to find the density of the sum of random variables.

(𝑓∗𝑔)(𝑥)=∫ℝ𝑓(𝑦)𝑔(𝑥−𝑦)𝑑𝑦=∫ℝ𝑔(𝑧)𝑓(𝑥−𝑧)𝑑𝑧

Take the convolution of the two density functions to get the result.

Examples

If you’re determining pairwise independence, you can use the procedure described earlier.

But for mutual independence, you will need to add all them together