7. Two Random Variables In many experiments, the observations are - - PowerPoint PPT Presentation

7 two random variables
SMART_READER_LITE
LIVE PREVIEW

7. Two Random Variables In many experiments, the observations are - - PowerPoint PPT Presentation

7. Two Random Variables In many experiments, the observations are expressible not as a single quantity, but as a family of quantities. For example to record the height and weight of each person in a community or the number of people and the


slide-1
SLIDE 1

1

  • 7. Two Random Variables

In many experiments, the observations are expressible not as a single quantity, but as a family of quantities. For example to record the height and weight of each person in a community or the number of people and the total income in a family, we need two numbers. Let X and Y denote two random variables (r.v) based on a probability model (Ω, F, P). Then

( )

= − = ≤ <

2 1

, ) ( ) ( ) ( ) (

1 2 2 1 x x X X X

dx x f x F x F x X x P ξ

and

( )

. ) ( ) ( ) ( ) (

2 1

1 2 2 1

= − = ≤ <

y y Y Y Y

dy y f y F y F y Y y P ξ

PILLAI

slide-2
SLIDE 2

2

What about the probability that the pair of r.vs (X,Y) belongs to an arbitrary region D? In other words, how does one estimate, for example, Towards this, we define the joint probability distribution function of X and Y to be where x and y are arbitrary real numbers. Properties (i) since we get

[ ]

? ) ) ( ( ) ) ( (

2 1 2 1

= ≤ < ∩ ≤ < y Y y x X x P ξ ξ

[ ]

, ) , ( ) ) ( ( ) ) ( ( ) , ( ≥ ≤ ≤ = ≤ ∩ ≤ = y Y x X P y Y x X P y x FXY ξ ξ (7-1) . 1 ) , ( , ) , ( ) , ( = +∞ +∞ = −∞ = −∞

XY XY XY

F x F y F

( ) ( ),

) ( ) ( , ) ( −∞ ≤ ⊂ ≤ −∞ ≤ ξ ξ ξ X y Y X

(7-2)

PILLAI

slide-3
SLIDE 3

3

Similarly we get (ii) To prove (7-3), we note that for and the mutually exclusive property of the events on the right side gives which proves (7-3). Similarly (7-4) follows.

( )

. ) ( ) , ( = −∞ ≤ ≤ −∞ ξ X P y FXY

( )

, ) ( , ) ( Ω = +∞ ≤ +∞ ≤ ξ ξ Y X

. 1 ) ( ) , ( = Ω = ∞ ∞ P FXY

( )

). , ( ) , ( ) ( , ) (

1 2 2 1

y x F y x F y Y x X x P

XY XY

− = ≤ ≤ < ξ ξ

( )

). , ( ) , ( ) ( , ) (

1 2 2 1

y x F y x F y Y y x X P

XY XY

− = ≤ < ≤ ξ ξ

(7-3) (7-4)

,

1 2

x x >

( ) ( ) ( )

y Y x X x y Y x X y Y x X ≤ ≤ < ∪ ≤ ≤ = ≤ ≤ ) ( , ) ( ) ( , ) ( ) ( , ) (

2 1 1 2

ξ ξ ξ ξ ξ ξ

( ) ( ) ( )

y Y x X x P y Y x X P y Y x X P ≤ ≤ < + ≤ ≤ = ≤ ≤ ) ( , ) ( ) ( , ) ( ) ( , ) (

2 1 1 2

ξ ξ ξ ξ ξ ξ

PILLAI

slide-4
SLIDE 4

4

(iii) This is the probability that (X,Y) belongs to the rectangle in Fig. 7.1. To prove (7-5), we can make use of the following identity involving mutually exclusive events on the right side.

( )

). , ( ) , ( ) , ( ) , ( ) ( , ) (

1 1 2 1 1 2 2 2 2 1 2 1

y x F y x F y x F y x F y Y y x X x P

XY XY XY XY

+ − − = ≤ < ≤ < ξ ξ

(7-5)

R ( ) ( ) ( ).

) ( , ) ( ) ( , ) ( ) ( , ) (

2 1 2 1 1 2 1 2 2 1

y Y y x X x y Y x X x y Y x X x ≤ < ≤ < ∪ ≤ ≤ < = ≤ ≤ < ξ ξ ξ ξ ξ ξ

1

y

2

y

1

x

2

x X Y

  • Fig. 7.1

R

PILLAI

slide-5
SLIDE 5

5

( ) ( ) ( )

2 1 2 1 1 2 1 2 2 1

) ( , ) ( ) ( , ) ( ) ( , ) ( y Y y x X x P y Y x X x P y Y x X x P ≤ < ≤ < + ≤ ≤ < = ≤ ≤ < ξ ξ ξ ξ ξ ξ

2

y y =

1

y

. ) , ( ) , (

2

y x y x F y x f

XY XY

∂ ∂ ∂ =

. ) , ( ) , ( dudv v u f y x F

x y XY XY

∫ ∫

∞ − ∞ −

=

This gives and the desired result in (7-5) follows by making use of (7- 3) with and respectively. Joint probability density function (Joint p.d.f) By definition, the joint p.d.f of X and Y is given by and hence we obtain the useful formula Using (7-2), we also get

(7-6) (7-7) (7-8)

. 1 ) , ( =

∫ ∫

∞ + ∞ − ∞ + ∞ −

dxdy y x f XY

PILLAI

slide-6
SLIDE 6

6

To find the probability that (X,Y) belongs to an arbitrary region D, we can make use of (7-5) and (7-7). From (7-5) and (7-7) Thus the probability that (X,Y) belongs to a differential rectangle ∆x ∆y equals and repeating this procedure over the union of no overlapping differential rectangles in D, we get the useful result

( )

. ) , ( ) , ( ) , ( ) , ( ) , ( ) , ( ) ( , ) ( y x y x f dudv v u f y x F y x x F y y x F y y x x F y y Y y x x X x P

XY x x x y y y XY XY XY XY XY

∆ ∆ = = + ∆ + − ∆ + − ∆ + ∆ + = ∆ + ≤ < ∆ + ≤ <

∫ ∫

∆ + ∆ +

ξ ξ

(7-9)

Y

, ) , ( y x y x f XY ∆ ∆ ⋅

x ∆

X

  • Fig. 7.2

y ∆

D

PILLAI

slide-7
SLIDE 7

7

( )

∫ ∫

= ∈

D y x XY

dxdy y x f D Y X P

) , (

. ) , ( ) , (

(iv) Marginal Statistics In the context of several r.vs, the statistics of each individual

  • nes are called marginal statistics. Thus is the

marginal probability distribution function of X, and is the marginal p.d.f of X. It is interesting to note that all marginals can be obtained from the joint p.d.f. In fact Also To prove (7-11), we can make use of the identity

. ) , ( ) ( ), , ( ) ( y F y F x F x F

XY Y XY X

+∞ = +∞ = (7-11) . ) , ( ) ( , ) , ( ) (

∫ ∫

+∞ ∞ − +∞ ∞ −

= = dx y x f y f dy y x f x f

XY Y XY X

(7-12) ) (x F

X

) (x fX (7-10) ) ( ) ( ) ( +∞ ≤ ∩ ≤ = ≤ Y x X x X

PILLAI

slide-8
SLIDE 8

8

so that To prove (7-12), we can make use of (7-7) and (7-11), which gives and taking derivative with respect to x in (7-13), we get At this point, it is useful to know the formula for differentiation under integrals. Let Then its derivative with respect to x is given by Obvious use of (7-16) in (7-13) gives (7-14).

( ) ( )

). , ( , ) ( +∞ = ∞ ≤ ≤ = ≤ = x F Y x X P x X P x F

XY X

dudy y u f x F x F

x XY XY X

) , ( ) , ( ) (

∫ ∫

∞ − ∞ + ∞ −

= +∞ =

(7-13) . ) , ( ) (

∞ + ∞ −

= dy y x f x f

XY X

(7-14) . ) , ( ) (

) ( ) (

=

x b x a

dy y x h x H (7-15)

( ) ( )

( ) ( ) ( ) ( , ) ( , ) ( , ) .

b x a x

dH x db x da x h x y h x b h x a dy dx dx dx x ∂ = − + ∂

(7-16)

PILLAI

slide-9
SLIDE 9

9

If X and Y are discrete r.vs, then represents their joint p.d.f, and their respective marginal p.d.fs are given by and Assuming that is written out in the form of a rectangular array, to obtain from (7-17), one need to add up all entries in the i-th row.

) , (

j i ij

y Y x X P p = = =

∑ ∑

= = = = =

j j ij j i i

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

∑ ∑

= = = = =

i i ij j i j

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

(7-17) (7-18)

) , (

j i

y Y x X P = = ), (

i

x X P =

ij

p

mn mj m m in ij i i n j n j

p p p p p p p p p p p p p p p p

  • 2

1 2 1 2 2 22 21 1 1 12 11

j ij

p

i

  • Fig. 7.3

It used to be a practice for insurance companies routinely to scribble out these sum values in the left and top margins, thus suggesting the name marginal densities! (Fig 7.3).

PILLAI

slide-10
SLIDE 10

10

From (7-11) and (7-12), the joint P.D.F and/or the joint p.d.f represent complete information about the r.vs, and their marginal p.d.fs can be evaluated from the joint p.d.f. However, given marginals, (most often) it will not be possible to compute the joint p.d.f. Consider the following example: Example 7.1: Given Obtain the marginal p.d.fs and Solution: It is given that the joint p.d.f is a constant in the shaded region in Fig. 7.4. We can use (7-8) to determine that constant c. From (7-8)

   < < < = .

  • therwise

0, , 1 constant, ) , ( y x y x f XY

(7-19)

) , ( y x f XY ) (x f X ). (y fY

1 1 X Y

  • Fig. 7.4

y

. 1 2 2 ) , (

1 2 1 1

= = = =       ⋅ =

∫ ∫ ∫ ∫ ∫

= ∞ + ∞ − ∞ + ∞ − = =

c cy cydy dy dx c dxdy y x f

y y y x XY

(7-20)

PILLAI

slide-11
SLIDE 11

11

Thus c = 2. Moreover from (7-14) and similarly Clearly, in this case given and as in (7-21)-(7-22), it will not be possible to obtain the original joint p.d.f in (7- 19). Example 7.2: X and Y are said to be jointly normal (Gaussian) distributed, if their joint p.d.f has the following form:

, 1 ), 1 ( 2 2 ) , ( ) (

1

∫ ∫

= ∞ + ∞ −

< < − = = =

x y XY X

x x dy dy y x f x f

(7-21)

. 1 , 2 2 ) , ( ) (

∫ ∫

= ∞ + ∞ −

< < = = =

y x XY Y

y y dx dx y x f y f

(7-22)

) (x f X ) (y fY

. 1 | | , , , 1 2 1 ) , (

2 2 2 2 2

) ( ) )( ( 2 ) ( ) 1 ( 2 1 2

< +∞ < < ∞ − +∞ < < ∞ − − =

        − + − − − − − −

ρ ρ σ πσ

σ µ σ σ µ µ ρ σ µ ρ

y x e y x f

Y Y Y X Y X X X

y y x x Y X XY

(7-23)

PILLAI

slide-12
SLIDE 12

12

By direct integration, using (7-14) and completing the square in (7-23), it can be shown that ~ and similarly ~ Following the above notation, we will denote (7-23) as Once again, knowing the marginals in (7-24) and (7-25) alone doesn’t tell us everything about the joint p.d.f in (7-23). As we show below, the only situation where the marginal p.d.fs can be used to recover the joint p.d.f is when the random variables are statistically independent.

), , ( 2 1 ) , ( ) (

2 2 / ) ( 2

2 2

X X x X XY X

N e dy y x f x f

X X

σ µ πσ

σ µ − − ∞ + ∞ −

= = ∫

(7-24) (7-25)

), , ( 2 1 ) , ( ) (

2 2 / ) ( 2

2 2

Y Y y Y XY Y

N e dx y x f y f

Y Y

σ µ πσ

σ µ − − ∞ + ∞ −

= = ∫

). , , , , (

2 2

ρ σ σ µ µ

Y X Y X

N

PILLAI

slide-13
SLIDE 13

13

Independence of r.vs Definition: The random variables X and Y are said to be statistically independent if the events and are independent events for any two Borel sets A and B in x and y axes respectively. Applying the above definition to the events and we conclude that, if the r.vs X and Y are independent, then i.e.,

  • r equivalently, if X and Y are independent, then we must

have

{ }

A X ∈ ) (ξ } ) ( { B Y ∈ ξ

{ }

x X ≤ ) (ξ

{ },

) ( y Y ≤ ξ

( )

) ) ( ( ) ) ( ( ) ) ( ( ) ) ( ( y Y P x X P y Y x X P ≤ ≤ = ≤ ∩ ≤ ξ ξ ξ ξ

(7-26)

) ( ) ( ) , ( y F x F y x F

Y X XY

= ). ( ) ( ) , ( y f x f y x f

Y X XY

=

(7-28) (7-27)

PILLAI

slide-14
SLIDE 14

14

If X and Y are discrete-type r.vs then their independence implies Equations (7-26)-(7-29) give us the procedure to test for

  • independence. Given obtain the marginal p.d.fs

and and examine whether (7-28) or (7-29) is valid. If so, the r.vs are independent, otherwise they are dependent. Returning back to Example 7.1, from (7-19)-(7-22), we

  • bserve by direct verification that Hence

X and Y are dependent r.vs in that case. It is easy to see that such is the case in the case of Example 7.2 also, unless In other words, two jointly Gaussian r.vs as in (7-23) are independent if and only if the fifth parameter

. , all for ) ( ) ( ) , ( j i y Y P x X P y Y x X P

j i j i

= = = = =

(7-29)

) (x f X ) (y fY ), , ( y x fXY

). ( ) ( ) , ( y f x f y x f

Y X XY

. = ρ . = ρ

PILLAI

slide-15
SLIDE 15

15

Example 7.3: Given Determine whether X and Y are independent. Solution: Similarly In this case and hence X and Y are independent random variables.

  • therwise.

, , 1 , , ) , (

2

   < < ∞ < < =

x y e xy y x f

y XY

(7-30)

. 1 , 2 2 2 ) , ( ) (

2

< < =       + − = = =

∫ ∫ ∫

∞ − ∞ − ∞ − ∞ +

x x dy ye ye x dy e y x dy y x f x f

y y y XY X

(7-31)

. , 2 ) , ( ) (

2 1

∞ < < = =

y e y dx y x f y f

y XY Y

(7-32)

), ( ) ( ) , ( y f x f y x f

Y X XY

=

PILLAI