Docsity

Deriving a Joint Density Function from a Distribution Function | ECON 500, Study notes of Economics

Partial preview of the text

Download Deriving a Joint Density Function from a Distribution Function | ECON 500 and more Study notes Economics in PDF only on Docsity!

Deriving a Joint Density Function from a Distribution

Function

Example

Consider two random variables X 1 and X 2 whose joint distribution function is given by

F (x 1 , x 2 ) =

( 1 ex^1 ) ( 1 ex^2 ) for x 1 > 0 and x 2 > 0 0 elsewhere Partial di§erentiation yields ∂^2 ∂ x 1 ∂ x 2 F^ (x^1 ,^ x^2 ) =^ e

(x 1 +x 2 )

Thus, the joint probability density of X 1 and X 2 is given by

f (x 1 , x 2 ) =

e(x^1 +x^2 )^ for x 1 > 0 and x 2 > 0 0 elsewhere

Multivariate Distributions for Continuous Random

Variables

DeÖnition

F (x 1 , x 2 ,... , xk ) is said to be a distribution function for the k-dimensional random variable (X 1 , X 2 ,... , Xk ) if there exists a function f (, ,... , )  0 such that

F (x 1 , x 2 ,... , xk ) =

Z (^) xk ∞

Z (^) xk 1 ∞

Z (^) x 1 ∞

f (u 1 , u 2 ,... uk ) du 1... duk (5)

for all (x 1 , x 2 ,... , xk ) where

F (x 1 , x 2 , x 3 ,... ) = P [X 1  x 1 , X 2  x 2 , X 3  x 3 ,... ]

Marginal Distributions

Consider the example of tossing a coin and rolling a die. The probability of any particular pair, (x 1 , x 2 ) is given by:

X 2 1 2 3 4 5 6 7 (^1 121121 0 0 0 0 0 ) (^2 0 121121 0 0 0 0 ) X (^1 3 0 0 121121 0 0 0 ) (^4 0 0 0 121121 0 0 ) (^5 0 0 0 0 121121 0 ) (^6 0 0 0 0 0 ) 1 12

1 6

1 6

1 6

1 6

1 6

1 12

Note that the marginal probabilities are in the margins!

Marginal Distributions for Discrete Random Variables

If X 1 and X 2 are discrete random variables and p(x 1 , x 2 ) is their joint density function, the function given by

g (x 1 ) = ∑

x 2

p(x 1 , x 2 ) for each x 1 within the range of X 1 (8)

is called the marginal distribution of X 1. Correspondingly, the function given by

h(x 2 ) = ∑

x 1

p(x 1 , x 2 ) for each x 2 within the range of X 2 (9)

is called the marginal distribution of X 2.

Marginal Distributions for Continuous Random Variables

Examples

Let the joint density of two random variables X 1 and X 2 be given by

f (x 1 , x 2 ) =

2 x 2 ex^1 x 1  0 , 0  x 2  1 0 otherwise What are the marginal densities of X 1 and X 2? First Önd the marginal density for X 1.

f 1 (x 1 ) =

Z (^1) 0

2 x 2 ex^1 dx 2 = x 22 ex^1

0

= ex^1 0 = ex^1 Now Önd the marginal density for X 2.

f 2 (x 2 ) =

Z (^) ∞ 0

2 x 2 ex^1 dx 1 = 2 x 2 ex^1

0

= 0

2 x 2 e^0

= 2 x 2 e^0 = 2 x 2

Marginal Distributions for Continuous Random Variables

Examples

Let the joint density of two random variables X and Y be given by

f (x, y ) =

1 6 (x^ +^4 y^ )^0 <^ x^ <^2 ,^0 <^ y^ <^1 0 otherwise

What are the marginal densities of X and Y? First Önd the marginal density for X.

fX (x ) =

Z (^1)

0

(x + 4 y ) dy = 1 6

(xy + 2 y 2 )

1 0

= 1 6

(x + 2 ) 1 6

(x + 2 )

Conditional Distributions

Conditional Probability Functions for Discrete Distributions

Recall P (A j B) =

P(A \ B)

P(B) (12)

Now consider two random variables X and Y. We can write the probability that X = x and Y = y as

P (^) (X = x j Y = y (^) ) = P^ (X P^ =(Y^ x ,=^ Y y^ =) y^ )= p^ h(x(y,^ )y ) (13)

provided P(Y = y ) 6 = 0. Note that: p(x, y ) is the value of joint probability distribution of X and Y at (x, y ) h(y ) is the value of the marginal distribution of Y at y.

Conditional Distributions

Conditional Probability Functions for Discrete Distributions

We can now deÖne a conditional distribution of X given Y = y as follows:

DeÖnition

If p(x, y ) is the value of the joint probability distribution of the discrete random variables X and Y at (x, y ) and h(y ) is the value for the marginal distribution of Y at y , then the function given by

p (x j y ) = p^ h(x(,y^ )y ) h(y ) 6 = 0 (14)

for each x within the range of X , is called the conditional distribution of X given Y = y.

Conditional Distributions

Examples of Conditional Probability Functions for Discrete Distributions

We compute this as follows:

p (x 1 j x 2 ) = p( 3 j 4 ) =

p (x 1 , x 2 ) h(x 2 ) =^

p( 3 , 4 ) h( 4 )

=

1 12 1 6

In this manner, we can make a table for the conditional probability function for X 1 given X 2.

Conditional Distributions

Conditional Distribution Functions for Continuous Distributions

Note that if X 1 and X 2 are both continuous, P(X 1 = x 1 j X 2 = x 2 ) is not deÖned. We can deÖne P(X 1  x 1 j X 2 = x 2 ) because the value of X 2 is known when we compute the probability that X 1 is less than some speciÖc value.

DeÖnition

If X 1 and X 2 are jointly continuous random variables with joint density function f (x 1 , x 2 ), then the conditional distribution function of X 1 given X 2 = x 2 is F (x 1 j x 2 ) = P(X 1  x 1 j X 2 = x 2 ) (15)

Conditional Distributions

Conditional Distribution Functions for Continuous Distributions

We see that

F (x 1 j x 2 )fX 2 (x 2 ) =

Z (^) x 1 ∞

fX 1 X 2 (t 1 , x 2 ) dt 1 , (20)

F (x 1 j x 2 ) =

Z (^) x 1 ∞

fX 1 X 2 (t 1 , x 2 ) fX 2 (x 2 )

dt 1

We call the integrand in the second line of (20) the conditional density function of X 1 given X 2 = x 2. We denote it by f (x 1 j x 2 ) orfX 1 jX 2 (x 1 j x 2 ). SpeciÖcally:

Conditional Distributions

Conditional Distribution Functions for Continuous Distributions

DeÖnition

Let X 1 and X 2 be jointly continuous random variables with joint probability density fX 1 X 2 (x 1 , x 2 ) and marginal densities fX 1 (x 1 ) and fX 2 (x 2 ), respectively. For any x 2 such that fX 2 (x 2 ) > 0, the conditional probability density function of X 1 given X 2 = x 2 , is deÖned to be

fX 1 jX 2 (x 1 j x 2 ) = fX^1 X^2 (x^1 ,^ x^2 ) fX 2 (x 2 )

= f^ (x^1 ,^ x^2 ) f (x 2 )

And similarly

fX 2 jX 1 (x 2 j x 1 ) = fX^1 X^2 (x^1 ,^ x^2 ) fX 1 (x 1 )

= f^ (x^1 ,^ x^2 ) f (x 1 )

Conditional Distributions

Examples of Conditional Distribution Functions for Continuous Distributions

First determine the density function when y = 12 as follows

f (x, y ) f (y ) =

(x + 4 y ) ( 8 y + 2 ) =

x + 4

2

2

(x + 2 ) ( 4 + 2 ) =

(x + 2 ) 6 Then

P

X  1 j Y = (^12)

Z (^1)

0

6 (x^ +^2 )^ dx^ =^

x^2 2 +^2 x

1

0

= 1 6

Independent Random Variables

We have previously shown that two events A and B are independent if: P (A \ B) = P(A)P(B) (23) In terms of random variables, X and Y , consistency with this deÖnition would imply that

P (a  X  b, c  Y  d ) = P (a  X  b) P (c  Y  d ) (24)

That is, if X and Y are independent, the joint probability can be written as the product of the marginal probabilities. We then have the following deÖnition.