Docsity

Bivariate and Marginal Probability Distribution - Notes | STA 4321, Study notes of Probability and Statistics

Toggle sidebar
bg1
Chapter 6
Multivariate Probability Distributions
6.1 Bivariate and Marginal Probability Distributions
Definition 6.1 Let X and Y be two discrete random
variables.
The joint probability distribution of X and Y is given by
pX,Y(x, y) = P(X =x, Y = y)
Here pX,Y(x, y) is defined for all real numbers x and y.
The marginal distribution of X is
X X ,Y
all y
p ( x ) P( X x ) p ( x , y )
.
Similarly, the marginal distribution of Y is
Y X ,Y
all x
p ( y ) P(Y y ) p ( x, y )
.
STA4321 Chap6, Page 1 of 27
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b

Partial preview of the text

Download Bivariate and Marginal Probability Distribution - Notes | STA 4321 and more Study notes Probability and Statistics in PDF only on Docsity!

Chapter 6

Multivariate Probability Distributions

6.1 Bivariate and Marginal Probability Distributions

Definition 6.1 Let X and Y be two discrete random

variables.

The joint probability distribution of X and Y is given by

p X,Y

(x, y) = P(X =x, Y = y)

Here p X,Y

(x, y) is defined for all real numbers x and y.

The marginal distribution of X is

X X ,Y

all y

p ( x )  P( X  x )  p ( x , y )

Similarly, the marginal distribution of Y is

Y X ,Y

all x

p ( y )  P(Y  y )  p ( x , y )

Example 1: (Refer to Tables 6.1 and 6.2 in text)

The joint pmf, p X,Y

( x,y ), of two discrete random variables

X and Y is given as follows:

X

1 2 Total

Y

0 c 0.10?

Total???

a) Find c so that p X,Y

(x,y) is the joint distribution of the

random variables X and Y.

b) Find the marginal distribution of X.

c) Find the marginal distribution of Y.

Solutions:

a) For p(x,y) to be the joint distribution (pmf) of the

random variables X and Y, two conditions must be

satisfied:

i) We must have 0 ≤ p X,Y

(x,y) < 1 for all pairs (x,y).

ii) The sum of p X,Y

(x,y) over all pairs (x,y) must be

equal to 1.

The first condition will be satisfied if we have c > 0 and

p X,Y

(x,y) = 0 for all (x,y) ≠ (1,0), (1,1), (1,2), (2,0), (2,1)

and (2,2). To satisfy this we must have c = 0.30. Then,

Note that these probabilities are given in the lower margin

(last row) of the table; that is why they are called the

marginal probabilities.

c) The marginal distribution of Y is found similarly: for

each value of Y, add up the probabilities, P(x,y) for all

values of X:

Y

... for y

p ( y )... for y

... for y

^ ^ ^ 

and p Y

( y ) = 0 otherwise.

Note: These are the probabilities given in the right margin

(last column) of the table. Observe that the marginal and

the joint probabilities given above satisfy the conditions

of pmfs, i.e., they are all greater than or equal to zero and

add up to one.

Definition 6.2 Let X and Y be two continuous random

variables. The joint probability density function of X and

Y, is given by a non-negative function f(x, y) such that,

a) f(x, y) ≥ 0 for all x, y,

b) f ( x , y )dxdy

 

   

c)

b d

a c

P( a  X  b,c  Y  d )  f ( x , y )dxdy

The marginal probability density function of X is

X

f ( x ) f ( x , y )dy

 

Similarly the marginal pdf of Y is

Y

f ( y ) f ( x , y )dx

 

Example 2:

Let f X,Y

( x,y ) = c when 0 < x < 1 and 0 < y < 2

and f X,Y

( x,y ) = 0 otherwise.

a) Find c so that f X,Y

( x,y ) is the joint distribution (pdf)

of the random variables X and Y.

b) Find the marginal distribution of X. What is the

name of this distribution? What are the values of its

parameters?

c) Find the marginal distribution of Y. Do we have a

name for this distribution?

b) To find the marginal distribution of X, “integrate out”

the random variable Y from the joint distribution, and find

X X ,Y

y

f ( x ) f ( x , y )dy

dy y |

 

2

2

0

0

That is,

f X

( x ) = 1 for 0 < x < 1 and

f X

( x ) = 0 otherwise.

This is the continuous uniform distribution with

parameters 0 and 1.

d) The marginal distribution of Y is

Y X ,Y

x

f ( y ) f ( x , y )dx

dx x |

 

1

1

0

0

So,

f Y

( y ) = ½ for 0 < y < 2 and

f Y

( y ) = 0 otherwise.

This is the continuous uniform distribution with

parameters 0 and 2.

Example 1 (Continued)

Remember in Example 1 we had the following joint pmf

(distribution) of X and Y:

X

1 2 Total

Y

Total 0.50 0.50 1.

d) To find conditional distribution of X, given Y = 1 ,

we use the definition of conditional probability that you

have learned in Chapter 2. We define two events A and B

as A = {X = x }, B = {Y = 1}. Then and use

P( A and B )

P( A| B )
P( B )

That is,

X|Y

P( X x and Y )

p ( x | ) P( X x |Y )

P( Y )

Thus,

X |Y

X |Y

p ( x | ) P( X x | Y )

P( X ,Y ).

for x

P(Y ).

p ( x | )

P( X ,Y ).

for x

P(Y ).

  

 ^ 

  

 

 

 

  

 

1 1

1 1 0 10 1

1

1 0 30 3

1

2 1 0 20 2

2

1 0 30 3

and P(X = x | Y = 1) = 0 otherwise.

e) Similarly, we can find the conditional distribution of Y,

given X = 2 as,

Y |X

Y |X

p ( y | ) P(Y y | X )

P( X ,Y ).

for y

P( X ).
P( X ,Y ).

p ( y | ) for y

P( X ).
P( X ,Y ).

for y

P( X ).

and P(Y = y | X = 2) = 0 otherwise.

In example 2, we found that the joint distribution of the

random variables X and Y is

f X,Y

( x,y ) = ½ when 0 < x < 1 and 0 < y < 2 and

f X,Y

( x,y ) = 0 otherwise.

The marginal distributions of X is

f X

( x ) = 1 when 0 < x < 1 and f X

( x ) = 0 otherwise.

The marginal distribution of Y is

f Y

( y ) = ½ when 0 < y < 2 and f Y

( y ) = 0 otherwise.

Using these and the definition of conditional distribution,

we have,

X ,Y

X |Y Y

f ( x , )

x

f ( x | Y ) f ( ) /

otherwise

i.e., f X|Y

( x |Y=1) = 1 when 0 < x < 1

and f X|Y

( x |Y=1) = 0 otherwise.

e) We see that f X|Y

( x |Y=1) as given above is in fact a pdf

because it satisfies both requirements of pdfs, i.e., f X|Y

( x |

Y=1) ≥ 0 for all x and

X|Y

f ( x |Y )dx

 

6.3 Independent Random Variables

Definition 6.4.a

Independence of two discrete random variables:

Given two discrete random variables X and Y with joint

pmf p X,Y

(x,y), marginal pmfs p X

(x) and p Y

(y) and

conditional pmfs p X|Y

(x|y) and p Y|X

(y|x), respectively.

If any one of the following is true, then all of them are

true:

a) X and Y are independent

b) p X,Y

(x, y) = p X

(x)  p

Y

(y) for all x, y.

c) p X|Y

(x|y) = p X

(x) for all x when p Y

(y) > 0.

d) p Y|X

(y|x) = p Y

(y) for all y when p X

(x) > 0.

Example-1 (Continued) Are X and Y independent

variables when p X,Y

( x,y ) is as given in the following table:

X

1 2 Total

Y

Total 0.50 0.50 1.

and f X,Y

( x,y ) = 0 otherwise?

We have already found that

f X

( x ) = 1 when O < x < 1 and f X

( x ) = 0 otherwise and

f Y

( y ) = ½ when O < y < 2 and f Y

( y ) = 0 otherwise.

Putting these together, we have

f X,Y

( x,y ) = f X

( x )f Y

( y )

for all pairs ( x,y ), - ∞ < x < ∞ and - ∞ < y < ∞.

Thus, X and Y are independent random variables.

The above definitions of independence may be extended

to more than two variables For example, X 1

, X

2

, …, X

n

are independent random variables if their joint

distribution is equal to the product of their marginal

distributions,

i.e., f(x 1

, x 2

, …,x n

) = f 1

(x 1

)  f

2

(x 2

)  …  f

n

(x n

Observe that ALL of the above definitions are exactly the

same as the definitions of the independence of two events

seen in Chapter 2.

Expected Values of Functions of Random Variables

The definitions are very similar to the definition of

expected values seen in Chapters 3 and 4, except we have

Bivariate (or multivariate) pmfs or pdfs:

Definition 6.5 Given two discrete random variables X, Y

with joint probability mass function p(x, y) or two

continuous random variables X, Y with joint probability

density function f(x, y), the expected value any function of

X, Y, say g(X,Y), is

if X and Y are discrete

if X and Y are continuous

all x all y

g( x , y ) p( x , y )

E [ g( X ,Y )]

g( x , y ) f ( x , y )dxdy

 

   

 

 

 

 

A Special Case:

If X and Y are two independent random variables,

Then E[g(X)h(Y)] = E[g(X)]E[h(Y)]

Two important special expected values:

COVARIANCE and CORRELATION

Theorem 6.?

If two random variables X and Y are independent, then

Cov(X, Y) = 0 and hence the correlation between them is

zero, i.e., ρ = 0.

[ Note that the opposite is not necessarily true.]

See Example 6.10 for an interesting application that will

be used again and again in this course and in the future

courses you will take. This is given in the following

theorem.

Theorem 6.?

Let Y 1

, Y

2

, …, Y

n

be independent random variables with

mean E(Y i

) = μ and V(Y i

) = σ

2

. Define

n

i

i

Y Y

n 

1

. Then,

Y Y

E(Y )   and V (Y )  / n

2

The following theorem is needed to prove this one.

[We will see an alternative (and easier) proof later.]

Theorem 6.2 (Simplified): Given two random variables X

and Y with means μ X

and μ Y

and standard deviations σ X

and σ Y

, respectively.

Then, for any constants a, b the following are true:

a) E(aX+ b) = aE(X) + b = a.μ X

+ b

b) Var(aX + b) = a

2

Var(x) = a

2

σ Y

2

c) Cov(aX, bY) = a  b  Cov(x,y)

d) Var(aX + bY) = a

2

Var(X) + b

2

Var(Y) + 2abCov(X, Y)

Proof:

a)Very trivial. Just use the definition of expected values

and do the required summation or integration.

b)Again easy! Expand (aX + b)

2

and then find its expected

value. From the E(aX + b)

2

subtract the square of the

E(aX + b), as found in part (a). This gives Var(aX + b).

c) To find the Cov(aX, bY), we will use the basic definition

of the covariance of two random variables, say U and

C (say U = aX and V =bY here):