Docsity

Multivariate Probability Distributions - Lecture Notes | ECON 671, Study notes of Introduction to Econometrics

Toggle sidebar
bg1
MULTIVARIATE PROBABILITY DISTRIBUTIONS
1. PRELIMINARIES
1.1. Example. Consider an experiment that consists of tossing a die and a coin at the same
time. We can consider a number of random variables defined on this sample space. We
will assign an indicator random variable to the result of tossing the coin. If it comes up
heads we will assign a value of one, and if it comes up zero we will assign a value of zero.
Consider the following random variables.
X1:The number of dots appearing on the die.
X2:The sum of the number of dots on the die and the indicator for the coin.
X3:The value of the indicator for tossing the coin.
X4:The product of the number of dots on the die and the indicator for the coin.
There are twelve sample points associated with this experiment.
E1: 1H E2: 2H E3: 3H E4: 4H E5: 5H E6: 6H
E7: 1T E8: 2T E9: 3T E10 : 4T E11 : 5T E12 : 6T
Random variable X1has six possible outcomes, each with probability 1
6. Random vari-
able X3has two possible outcomes, each with probability 1
2. Consider the values of X2
for each of the sample points. The possible outcomes and the probabilities for X2are as
follows.
TABL E 1. Probability of X2
Value of Random Variable Probability
1 1/12
2 1/6
3 1/6
4 1/6
5 1/6
6 1/6
7 1/12
Date: August 9, 2004.
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37

Partial preview of the text

Download Multivariate Probability Distributions - Lecture Notes | ECON 671 and more Study notes Introduction to Econometrics in PDF only on Docsity!

1. PRELIMINARIES

1.1. Example. Consider an experiment that consists of tossing a die and a coin at the same time. We can consider a number of random variables defined on this sample space. We will assign an indicator random variable to the result of tossing the coin. If it comes up heads we will assign a value of one, and if it comes up zero we will assign a value of zero. Consider the following random variables.

X 1 : The number of dots appearing on the die. X 2 : The sum of the number of dots on the die and the indicator for the coin. X 3 : The value of the indicator for tossing the coin. X 4 : The product of the number of dots on the die and the indicator for the coin. There are twelve sample points associated with this experiment.

E 1 : 1H E 2 : 2H E 3 : 3H E 4 : 4H E 5 : 5H E 6 : 6H

E 7 : 1T E 8 : 2T E 9 : 3T E 10 : 4T E 11 : 5T E 12 : 6T

Random variable X 1 has six possible outcomes, each with probability 16. Random vari- able X 3 has two possible outcomes, each with probability 12. Consider the values of X 2 for each of the sample points. The possible outcomes and the probabilities for X 2 are as follows.

TABLE 1. Probability of X 2

Value of Random Variable Probability 1 1/ 2 1/ 3 1/ 4 1/ 5 1/ 6 1/ 7 1/

Date: August 9, 2004. 1

1.2. Bivariate Random Variables. Now consider the intersection of X 1 = 3 and X 2 = 3. We call this intersection a bivariate random variable. For a general bivariate case we write this as P (X 1 = x 1 , X 2 = x 2 ). We can write the probability distribution in the form of a table as follows for the above example.

TABLE 2. Joint Probability of X 1 and X 2

X 2

X 1 3 0 0 121 121 0 0 0

For the example, P (X 1 = 3, X 2 = 3) = 121 , which is the probability of sample point E 9.

  1. PROBABILITY DISTRIBUTIONS FOR DISCRETE MULTIVARIATE RANDOM VARIABLES

2.1. Definition. If X 1 and X 2 be discrete random variables, the function given by

p(x 1 , x 2 ) = P (X 1 = x 1 , X 2 = x 2 )

for each pair of values of (x 1 , x 2 ) within the range of X 1 and X 2 is called the joint (or bivariate) probability distribution for X 1 and X 2. Specifically we write

p(x 1 , x 2 ) = P (X 1 = x 1 , X 2 = x 2 ), −∞ < x 1 < ∞, −∞ < x 2 < ∞. (1) In the single-variable case, the probability function for a discrete random variable X assigns non-zero probabilities to a countable number of distinct values of X in such a way that the sum of the probabilities is equal to 1. Similarly, in the bivariate case the joint probability function p(x 1 , x 2 ) assigns non-zero probabilities to only a countable number of pairs of values (x 1 , x 2 ). Further, the non-zero probabilities must sum to 1.

2.2. Properties of the Joint Probability (or Density) Function.

Theorem 1. If X 1 and X 2 are discrete random variables with joint probability function p(x 1 , x 2 ), then

(i) p(x 1 , x 2 ) ≥ 0 for all x 1 , x 2. (ii)

x 1 , x 2 p(x^1 , x^2 ) = 1^ , where the sum is over all values^ (x^1 , x^2 )^ that are assigned non- zero probabilities.

and the total number of ways in which two of the nine caplets can be selected is

( 9 2

Since those possibilities are all equally likely by virtue of the assumption that the selec- tion is random, it follows that the probability associated with (1, 0) is 1236 = 13 Similarly, the probability associated with (1, 1) is

( 3 1

1

1

and, continuing this way, we obtain the values shown in the following table:

TABLE 4. Joint Probability of Drawing Aspirin (X 1 ) and Sedative Caplets (Y ).

x 0 1 2

0 16 13 121 y 1 29 16 0 2 361 0 0

We can also represent this joint probability distribution as a formula

p(x, y) =

x

y

2 −x−y

, x = 0, 1 , 2; y = 0, 1 , 2; 0 ≤ (x + y) ≤ 2

3. DISTRIBUTION FUNCTIONS FOR DISCRETE MULTIVARIATE RANDOM VARIABLES

3.1. Definition of the Distribution Function. If X 1 and X 2 are discrete random variables, the function given by

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

u 1 ≤x 1

u 2 ≤x 2

p(u 1 , u 2 )

−∞ < x 1 < ∞ −∞ < x 2 < ∞

where p(u 1 , u 2 )is the value of the joint probability function of X 1 and X 2 at (u 1 , u 2 ) is called the joint distribution function, or the joint cumulative distribution of X 1 and X 2.

3.2. Examples.

3.2.1. Example 1. Consider the experiment of tossing a red and green die where X 1 is the number of the red die and X 2 is the number on the green die. Now find F (2, 3) = P (X 1 ≤ 2 , X 2 ≤ 3). This is given by summing as in the definition (equation 2).

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

u 1 ≤ 2

u 2 ≤ 3

p(u 1 , u 2 )

= p(1, 1) + p(1, 2) + p(1, 3) + p(2, 1) + p(2, 2) + p(2, 3)

3.2.2. Example 2. Consider Example 3 from Section 2. The joint probability distribution is given in Table 4 which is repeated here for convenience.

TABLE 4. Joint Probability of Drawing Aspirin (X 1 ) and Sedative Caplets (Y ).

x

0 1 2 0 16 13 121 y 1 29 16 0

2 361 0 0

The joint probability distribution is

p(x, y) =

x

y

2 −x−y

, x = 0, 1 , 2; y = 0, 1 , 2; 0 ≤ (x + y) ≤ 2

For this problem find F (1 , 2) = P (X ≤ 1 , Y ≤ 2). This is given by

P

0 < X 1 < 34 , 13 < X 2 < 2

1 3

0

f (x 1 , x 2 ) dx 1 dx 2

1 3

0

6 x^21 x 2 dx 1 dx 2 +

1 3

0

0 dx 1 dx 2

1 3

0

6 x^21 x 2 dx 1 dx 2

Integrate the inner integral first.

P

0 < X 1 < 34 , 13 < X 2 < 2

(^13)

0

6 x^21 x 2 dx 1 dx 2

(^13)

2 x^31 x 2

0

dx 2

(^13)

x 2 − 0

dx 2

(^13)

x 2

dx 2

(^13)

x 2 dx 2

Now integrate the remaining integral

P

0 < X 1 < 34 , 13 < X 2 < 2

1 3

x 2 dx 2

x^22

1 (^13)

This probability is the volume under the surface f (x 1 , x 2 ) = 6x^21 x 2 and above the rect- angular set {(x 1 , x 2 ) | 0 < x 1 < 34 , 13 < x 2 < 1 }

in the x 1 x 2 -plane.

4.4. Definition of a Joint Distribution Function. If X 1 and X 2 are continuous random variables, the function given by

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

∫ (^) x 2

−∞

∫ (^) x 1

−∞

f (u 1 , u 2 ) du 1 du 2

−∞ < x 1 < ∞ −∞ < x 2 < ∞

where f (u 1 , u 2 ) is the value of the joint probability function of X 1 and X 2 at (u 1 , u 2 ) is called the joint distribution function, or the joint cumulative distribution of X 1 and X 2. If the joint distribution function is continuous everywhere and partially differentiable with respect to x 1 and x 2 for all but a finite set of values then

f (x 1 , x 2 ) =

∂^2

∂x 1 ∂x 2

F (x 1 , x 2 ) (5)

wherever these partial derivatives exist.

4.5. Properties of the Joint Distribution Function.

Theorem 3. If X 1 and X 2 are random variables with joint distribution function F (x 1 , x 2 ), then

(i) F (−∞, −∞) = F (−∞, x 2 ) = F (x 1 , −∞) = 0 (ii) F (∞, ∞) = 1 (iii) If a < b and c < d, then F (a, c) < F (b, d) (iv) If a > x 1 and b > x 2 , then F (a, b) − F (a, x 2 ) − F (x 1 , b) + F (x 1 , x 2 ) ≥ 0 Part (iv) follows because F (a, b) − F (a, x 2 ) − F (x 1 , b) + F (x 1 , x 2 ) = P [x 1 < X 1 ≤ a, x 2 < X 2 ≤ b] ≥ 0 Note also that F (∞, ∞) ≡ lim x 1 →∞

lim x 2 →∞

F (x 1 , x 2 ) = 1

implies that the joint density function f (x 1 , x 2 ) must be such that the integral of f (x 1 , x 2 ) over all values of (x 1 , x 2 ) is 1.

4.6. Examples of a Joint Distribution Function and Density Functions.

4.6.1. Deriving a Distribution Function from a Joint Density Function. Consider a joint density function for X 1 and X 2 given by

f (x 1 , x 2 ) =

x 1 + x 2 0 < x 1 < 1 , 0 < x 2 < 1 0 elsewhere This has a positive value in the square bounded by the horizontal and vertical axes and the vertical and horizontal lines at one. It is zero elsewhere. We will therefore need to find the value of the distribution function for five different regions: second, third and fourth quadrants, square defined by the vertical and horizontal lines at one, area between

and for x 1 > 1 and x 2 > 1 we get

F (x 1 , x 2 ) =

0

0

(s + t) ds dt = 1

Because the joint distribution function is everywhere continuous, the boundaries be- tween any two of these regions can be included in either one, and we can write

F (x 1 , x 2 ) =

0 for x 1 ≤ 0 or x 2 ≤ 0

1 2 x^1 x^2 (x^1 +^ x^2 )^ for^0 < x^1 <^1 ,^0 < x^2 <^1 1 2 x^2 (x^2 + 1)^ for^ x^1 ≥^1 ,^0 < x^2 <^1 1 2 x^1 (x^1 + 1)^ for^0 < x^1 <^1 , x^2 ≥^1

1 for x 1 ≥ 1 , x 2 ≥ 1

4.7. Deriving a Joint Density Function from a Distribution Function. Consider two ran- dom variables X 1 and X 2 whose joint distribution function is given by

F (x 1 , x 2 ) =

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

Partial differentiation yields

∂^2 ∂x 1 ∂x 2

F (x 1 , x 2 ) = e−(x^1 +x^2 )

For x 1 > 0 and x 2 > 0 and 0 elsewhere we find that 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

5. MULTIVARIATE DISTRIBUTIONS FOR CONTINUOUS RANDOM VARIABLES

5.1. Joint Density of Several Random Variables. The k-dimensional random variable (X 1 , X 2 ,... , Xk) is said to be a k-dimensional random variable if there exists a function f (·, ·,... , ·) ≥ 0 such that

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

∫ (^) xk

−∞

∫ (^) xk− 1

−∞

∫ (^) x 1

−∞

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

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 ,... ]

The function f (·) is defined to be a joint probability density function. It has the following properties:

f (x 1 , x 2 ,... , xk) ≥ 0 ∫ (^) ∞

−∞

−∞

f (x 1 , x 2 ,... , xk) dx 1... dxk = 1

In order to make it clear the variables over which f is defined it is sometimes written f (x 1 , x 2 ,... , xk) = fX 1 , X 2 , ... , Xk (x 1 , x 2 ,... , xk) (8)

  1. MARGINAL DISTRIBUTIONS

6.1. Example Problem. Consider the example of tossing a coin and rolling a die from sec- tion 1. The probability of any particular pair, (x 1 , x 2 ) is given in the Table 5.

TABLE 5. Joint and Marginal Probabilities of X 1 and X 2.

X 2

X 1 3 0 0 121121 0 0 0

1 12

1 6

1 6

1 6

1 6

1 6

1 12

Notice that we have summed the columns and the rows and placed this sums at the bottom and right hand side of the table. The sum in the first column is the probability that X 2 = 1. The sum in the sixth row is the probability that X 1 = 6. Specifically the column totals are the probabilities that X 2 will take on the values 1, 2, 3,... , 7. They are the values

g(x 2 ) =

∑^6

x 1 =

p(x 1 , x 2 ) for x 2 = 1, 2 , 3 ,... , 7

In the same way, the row totals are the probabilities that X 1 will take on the values in its space. Because these numbers are computed in the margin of the table, they are called marginal probabilities.

First find the marginal density for x 1.

f 1 (x 1 ) =

0

2 x 2 e−x^1 dx 2

= x^22 e−x^1

^1

0 = e−x^1 − 0

= e−x^1

Now find the marginal density for x 2.

f 2 (x 2 ) =

0

2 x 2 e−x^1 dx 1

= − 2 x 2 e−x^1

0 = 0 −

− 2 x 2 e^0

= 2x 2 e^0 = 2x 2

6.5. Example 2. Let the joint density of two random variables x and y be given by

f (x, y) =

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

What are the marginal densities of x and y? First find the marginal density for x.

fX (x) =

0

(x + 4y) dy

(xy + 2y^2 )

1 0

=

(x + 2) −

(x + 2)

Now find the marginal density for y.

fY (y) =

0

(x + 4y) dx

x^2 2

  • 4xy

2

0

=

  • 8y

(2 + 8y)

7. CONDITIONAL DISTRIBUTIONS

7.1. Conditional Probability Functions for Discrete Distributions. We have previously shown that the conditional probability of A given B can be obtained by dividing the prob- ability of the intersection by the probability of B, specifically,

P (A | B) =

P (A ∩ B)

P (B)

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

P (X = x | Y = y) =

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

p (x, y) h(y)

provided P (Y = y) 6 = 0, where p(x, y) is the value of joint probability distribution of X and Y at (x, y) and h(y) is the value of the marginal distribution of Y at y. We can then define a conditional distribution of X given Y = y as follows. 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 | y) =

p (x, y) h(y)

h(y) 6 = 0 (15)

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

7.2. Example for discrete distribution. Consider the example of tossing a coin and rolling a die from section 1. The probability of any particular pair, (x 1 , x 2 ) is given in the following table where x 1 is the value on the die and x 2 is the sum of the number on the die and an indicator that is one if the coin is a head and zero otherwise. The data is in the Table 5 repeated following. Consider the probability that x 1 = 3 given that x 2 = 4. We compute this as follows.

TABLE 6. Probability Function for X 1 given X 2.

X 2

X 1 3 0 0 1212 0 0 0

1 12

1 6

1 6

1 6

1 6

1 6

1 12

We can do the same for X 2 given X 1.

TABLE 7. Probability Function for X 2 given X 1.

X 2

X 1 3 0 0 1212 0 0 0

1 12

1 6

1 6

1 6

1 6

1 6

1 12

7.3. Conditional Distribution Functions for Continuous Distributions.

7.3.1. Discussion. In the continuous case, the idea of a conditional distribution takes on a slightly different meaning than in the discrete case. If X 1 and X 2 are both continuous,

P (X 1 = x 1 | X 2 = x 2 ) is not defined because the probability of any one point is identically zero. It make sense however to define a conditional distribution function, i.e.,

P (X 1 ≤ x 1 | X 2 = x 2 )

because the value of X 2 is known when we compute the value the probability that X 1 is less than some specific value.

7.3.2. Definition of a Continuous Distribution Function. 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 | x 2 ) = P (X 1 ≤ x 1 | X 2 = x 2 ) (16)

We can obtain the unconditional distribution function by integrating the conditional one over x 2. This is done as follows

F (x 1 ) =

−∞

F (x 1 | x 2 )fX 2 (x 2 ) dx 2 (17)

We can also find the probability that X 1 is less than x 1 is the usual fashion as

F (x 1 ) =

∫ (^) x 1

−∞

fX 1 (t 1 ) dt 1 (18)

But the marginal distribution inside the integral is obtained by integrating the joint den- sity over the range of x 2. Specifically,

fX 1 (t 1 ) =

−∞

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

This implies then that

F (x 1 ) =

−∞

∫ (^) x 1

−∞

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

Now compare the integrand in equation 20 with that in equation 17 to conclude that

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

∫ (^) x 1

−∞

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

⇒ F (x 1 | x 2 ) =

∫ (^) x 1

−∞

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

We call the integrand in the second line of (21) the conditional density function of X 1 given X 2 = x 2. We denote it by f (x 1 | x 2 ) orfX 1 |X 2 (x 1 | x 2 ). Specifically

P

X ≤ 1 | Y = 12

0

(x + 2) dx

x^2 2

  • 2x

1

0

=

8. INDEPENDENT RANDOM VARIABLES

8.1. Discussion. We have previously shown that two events A and B are independent if the probability of their intersection is the product of their individual probabilities, i.e.

P (A ∩ B) = P (A)P (B) (24)

In terms of random variables, X and Y , consistency with this definition would imply that

P (a ≤ X ≤ b, c ≤ Y ≤ d) = P (a ≤ X ≤ b) P (c ≤ Y ≤ d) (25) 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 definition. Let X have distribution function FX (x), Y have distribution function FY (y), and X and Y gave joint distribution function F (x, y). Then X and Y are said to be independent if, and only if,

F (x, y) = FX (X)FY (y) (26)

for every pair of real numbers (x, y). If X and Y are not independent, they are said to be dependent.

8.2. Independence Defined in Terms of Density Functions.

8.2.1. Discrete Random Variables. If X and Y are discrete random variables with joint prob- ability density function p(x, y) and marginal density functions pX (x) and pY (y), respec- tively, then X and Y are independent if, and only if

pX,Y (x, y) = pX (x)pY (y) = p(x)p(y)

for all pairs of real numbers (x, y).

8.2.2. Continuous Bivariate Random Variables. If X and Y are continuous random variables with joint probability density function f (x, y) and marginal density functions fX (x) and fY (y), respectively then X and Y are independent if and only if

fX,Y (x, y) = fX (x)fY (y) = f (x)f (y)

for all pairs of real numbers (x, y).

8.3. Continuous Multivariate Random Variables. In a more general context the variables X 1 , X 2 ,... , Xk are independent if, and only if

fX 1 , X 2 , ..., Xk (x 1 , x 2 ,... , xk) =

∏^ k

i=

fXi (xi)

= fX 1 (x 1 )fX 2 (x 2 )... fXk (xk)

= f (x 1 )f (x 2 )... f (xk)

In other words two random variables are independent if the joint density is equal to the product of the marginal densities.

8.4. Examples.

8.4.1. Example 1 — Rolling a Die and Tossing a Coin. Consider the previous example where we rolled a die and tossed a coin. X 1 is the number on the die, X 2 is the number of the die plus the value of the indicator on the coin (H = 1). Table 7 is repeated here for convenience. For independence p(x, y) = p(x)p(y) for all values of x 1 and x 2.

TABLE 7. Probability Function for X 2 given X 1.

X 2

X 1 3 0 0 1212 0 0 0

1 12

1 6

1 6

1 6

1 6

1 6

1 12