Docsity

Joint Probability Distributions and Conditional Probabilities of Two Random Variables, Study notes of Statistics

Partial preview of the text

Download Joint Probability Distributions and Conditional Probabilities of Two Random Variables and more Study notes Statistics in PDF only on Docsity!

MULTIPLE RANDOM VARIABLES

OUTLINE

Two Random Variables

Joint Probability distribution, joint PDF

Examples

Conditional Probability

Marginal PDF, Bayes’ Rule

Estimation Based on Observation.

Questions and Solutions

Reading:

G. R. Cooper & C. D. McGillem 3.1 - 3.

EE/STAT 322, #

TWO RANDOM VARIABLES

at different time instants.time; sometimes we need the joint distributions to describe multiple RVsA marginal (single) PDF describes the distribution of an RV at a given

Joint probability distribution function:

F

XY

x, y

P

X

x, Y

y ) .

F

x, y

< x <

< y <

F

, y

F

x,

F

Note:

F

, y

P

X <

, Y

y ) .

F

P

X <

, Y <

F

x, y

is a nondecreasing function as either

x

or

y , or both, increase.

F

XY

, y

F Y ( y ) , F

XY

x,

F

X

(^) ( x ) .

EE/STAT 322, #

JOINT PDF (CONT.)

Given a joint PDF Example:

f XY

x, y

1

( x 2 − x 1

)(

y 2 − y 1 ) , x 1

< x

x 2 , y

1

< y

y

elsewhere

Find the correlation value

E

XY

and the marginal PDFs

f X

(^) ( x )

and

f Y ( y ). X

Y

1

x

2

x

1

y

2

y

)

,

(

y

x

f

EE/STAT 322, #

4

JOINT PDF (CONT.)

E^ Solution:

XY

x 2

x 1

y 2

y 1

xyf

x, y

dydx

x 2

x 1

y 2

y 1

xy

( x 2 − x 1

y 2 − y 1 )

dydx

( x 1 + x 2

y 1 + y 2 ).

f X

(^) ( x ) =

y 2

y 1

f (^) ( x, y

dy

y 2

y 1

1

( x 2 − x 1

)(

y 2 − y 1 )

dy

1

x 2 −

x 1 (^) ,

x 1

< x

x 2 ;

f Y

( y ) =

x 2

x 1

f (^) ( x, y

dx

x 2

x 1

1

( x 2 − x 1

)(

y 2 − y 1 )

dx

1

y 2 − y 1 (^) ,

y 1

< y

y 2 ,

EE/STAT 322, #

JOINT PDF (CONT.)

(b)

P

X <

, Y <

1 / 2

0

1 / 4

0

e −

(

x

y ) dydx

2 1 (

/e

3 1 (

− e − 3 / 4

/e

− e − 3 / 4

(b)

E

XY

∞ 0

∞ 0

xy

e −

(

x

y ) dxdy

= 6[

∞ 0

xe

−

2 x dx

]

[

∞ 0

ye

− 3 y dy

]

Using integration by part, we get

∞

0

xe

−

2 x dx

∞

0

2 x

de

− 2 x = − [

2 x e −

2 x | 0 ∞

∞

0

e −

2 x dx

]

e −

2 x | ∞ 0

Similarly,

∞ 0

ye

−

3 y dy

. So

E

XY

EE/STAT 322, #

7

CONDITIONAL PROBABILITY

Conditional probability distribution function:

F

X

(^) ( x | M

P (^) ( X

≤

x,M

(^) )

P (^) ( M

(^) )

Let

M = { Y ≤ y }

, then

F

X

(^) ( x | Y

y ) =

P (^) ( X

≤

x,Y

≤

y )

P (^) ( Y (^) ≤

y )

F (^) ( x,y

)

F Y (^) ( y ) .

Assume

M

y 1

< Y

≤ y 2 } ( P

M

F

X

(^) ( x | y 1

< Y

y 2 ) =

P

X

x, y

1

< Y

y 2 )

P

y 1

< Y

y 2 )

P

X

x, Y

≤ y 2 ) − P

X

x, Y

y 1 )

P

Y ≤ y 2 ) − P

Y

y 1 )

F

x, y

2 )

−

F

x, y

1 )

F Y ( y 2 ) − F Y ( y 1 ).

EE/STAT 322, #

CONDITIONAL PROBABILITY (CONT.)

Note:

∂F

x, y

/∂y

∂ (^) ∫ −∞x

∫ −∞y

(^) f (^) ( u,v

) dvdu

∂y

x −∞

f (^) ( u, y

du

f The conditional PDF is X

(^) ( x | Y

y ) =

∂F

X (^) ( x | Y (^) =

y )

∂x

f (^) ( x, y

/f

Y

( y ) .

Note:

∂ (^) ∫ −∞x

(^) f (^) ( u,y

) dy

∂x

f (^) ( x, y

By interchanging

X

and

Y

it follows that

f Y ( y | X = x

f (^) ( x,y

)

f X (^) ( x ) (^).

f As a shorthand notation, the continuous version of Bayes’ theorem: (^) ( y | x ) =

f (^) ( x,y

)

f X (^) ( x ) (^) , and

f (^) ( x | y ) =

f (^) ( x,y

)

f Y ( y ).

P The discrete version is

(^) ( X

i | Y j ) =

P

X

i , Y

j ) /P

Y

j ) =

P

X

i , Y

j ) / [ ∑

i n

P

X

i , Y

j )]

.

EE/STAT 322, #

CONDITIONAL PROBABILITY (CONT.)

f From joint PDF to conditional PDF and marginal PDF: (^) ( x, y

f (^) ( x | y ) f Y ( y

f (^) ( y | x ) f X

x ) .

Example:

A joint PDF is given by

f (^) ( x, y

5 6 (

− x 2 y ) , 0 ≤ x ≤ 1 , 0 ≤ y ≤ 0

elsewhere

f We can obtain conditional and marginal PDFs from the joint PDF. (^) ( x ) =

1 0

f (^) ( x, y

dy

5 6 (

x 2 /

, 0 ≤ x ≤ 1.

f (^) ( y ) =

1 0

f (^) ( x, y

dx

5 6 (

y/

, 0 ≤ y ≤ 1.

f (^) ( x | y ) =

f (^) ( x, y

/f

Y

( y ) =

1 −

x 2 y

1 −

y/

3 , 0 ≤ x ≤ 1 ,

y

f (^) ( y | x ) =

f (^) ( x, y

/f

X

(^) ( x ) =

1 −

x 2 y

1 − x 2 / 2 , 0 ≤ x ≤ 1 ,

y

EE/STAT 322, #

11

ESTIMATION BASED ON OBSERVATION (CONT.)

f (^) ( x | y ) =

b

√

2 πσ

N (^) f Y (^) ( y ) exp

( − ( y − x ) 2

2 σ N 2

bx

x

x <

Next,

the most likely value of

X

given

Y

y

is

x

which maximizes

f (^) ( x | Y = y )

, or in mathematical language,

ˆx

=

max

x f (^) ( x | Y = y ).

In

f (^) ( x | y ) , factor

f Y

( y )

is independent of

X

and can be ignored. We want

to maximize

− ( y − x ) 2

2 σ N 2

bx

, or to minimize

G

x ) =

( y − x ) 2 2 σ N 2

bx

Let

G

′ ( x ) = 0

, we get

x

y

−

bσ

N 2

(^).

EE/STAT 322, #

ESTIMATION BASED ON OBSERVATION (CONT.)

X

y

−

bσ

N 2

y

−

bσ

N 2

y

−

bσ

N 2

(a)

0

ˆ

=

X

)

|

(

y

x

f

)

|

(

y

x

f

X

X

(b)

X ˆ

EE/STAT 322, #

QUESTIONS AND SOLUTIONS (CONT.)

P

X >

2 1 | Y

2 1 ) =

(^21) ∞

f (^) ( x | Y

2 1 ) dx

(^21) ∞

f (^) ( x,Y

=

21 )

f (^) ( Y

=

21 )

dx

f (^) ( Y

2 1 ) =

1 0

3 2 ( x

dx

3 2 ( x 2 / + x ) |

01

=

3 2

· 2 3

= 1

Note that

P

Y

2 1 ) =

f (^) ( Y

2 1 )∆

y

= 0

P

X >

2 1 | Y

2 1 ) =

(^21) ∞

3 2 ( x

dx

3 2 ( x 2 / 2 +

x ) | 211

= 7

P

Y

2 1 | X

2 1 ) =

21

0

f (^) ( X

=

21 ,y

)

f (^) ( X

=

21 )

dx

21

0

3 2 ( 2 1

  • 2

y ) dy

3 2 ( y/

y 2 ) | (^021)

=

3 2

· ( 2 1 ) = 1

Here we used that

f (^) ( X

2 1 ) =

1 0

3 2 ( 2 1

  • 2

y ) dy

EE/STAT 322, #

QUESTIONS AND SOLUTIONS (CONT.)

Example:

(Ex 3-2.2)

A random signal

X

is uniformly distributed between 10 and 20 V.

deviation of 5 V. The observed signal isIt is observed that the present Gaussian noise has zero mean and standard

Y

X

N

Find the best estimate of

X

, (a) if

Y

; (b) if

Y

; (c) if

Y

X

)

( (^) x

f

10

20

EE/STAT 322, #

17

QUESTIONS AND SOLUTIONS (CONT.)

To maximize

f (^) ( x | y )

with respect to

x , we need to minimize

G

x ) = (

y − x ) 2.

X

, which is

X

closest to

Y

X

)

|

(

y

Y

x

f

=

10

20

)

|

(

x

y

f

10

ˆ

=^

X

5

=

y

EE/STAT 322, #

19

QUESTIONS AND SOLUTIONS (CONT.)

G

′ ( x ) = 0

x

y , if

y

≤

X

Y

X

)

|

(

y

Y

x

f

=

0

10

20

)

|

(

x

y

f

12

ˆ

=^

X

20

10

<

<

y

X

, which is

X

closest to

Y

EE/STAT 322, #