Docsity

Conditional CDF and PDF - Lecture Slides | ECE 303, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download Conditional CDF and PDF - Lecture Slides | ECE 303 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Conditional CDF and PDF: Recall that in Chapter 2, we defined conditional CDF and PDF of event {X

x} for conditioning event B (fixed), i.e.

(^

)^

[^

]^

[^

]

(^

) B

P

B x X P B x X P B x

F^

BX

=^

|

C onditional CDF

and

(^

)^

(^

dx

B

x

dF

B

x

f^

BX

BX

|^

|

|^

=^

C onditional PDF

Also, the standard properties of CDF and PDF apply to these as well (See pages 60 and 61 of your textbook). Some additionalproperties are given in the next remarks.

Department of Electrical & Computer Engineering

Remarks:^ 1. For r.v. X conditional PDF is

[^

]^

) ( ] | [ |

|^

i

i

i

BX

x x B x X P B x

f^

=^

∑

δ

  1. The

conditional expectation or mean

of r.v. X is defined to be

[^

]^

∞ ∫ ∞−

=^

dx

B

x

fx

B

X

E^

BX

|^

|

For discrete r.v. this becomes

[^

]^

∑

=^

i

i

i^

B x X P x B X

E^

]

[

More generally,

[^

]^

∞ ∫ ∞−

=^

dx

B x f x g B X g

E^

BX

(^

|

or

[^

]^

∑

=^

i

i

i^

B x X P x g B X g

E^

]

[

Department of Electrical & Computer Engineering

Note that for continuous r.v. the expression for F

(x|Y=y)=X

FX

(x|y) can alternatively be written as (^) (^

)^

(^

)^

[^

]^

[^

]

(^

)

) (

) ,(

) ( 2

) ,( 2

) (

) , (

lim

|

|

|

,

0

y f

y Yx F

y y f

y y Yx F

d f

d d

f

y Y P

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

Y X Y X y y

y y^

Y

x^

y y yy^

YX

y X

X

=

=

∆

∆

=

=

=

= ∩ ≤ = = ≤ = = =

∫ ∫ ∫

∆+ ∆−

∞−

∆+ ∆−

→∆

β β

β α β α

For discrete r.v’s X and Y with possible values x

, yi

,^ ij

∈[1,N], j

∈[1,M]

it can be shown that

[^

]^

]

[ )

(

and ) ( ]

,

[

,^

1

k

k

Y

i

N i

k

i

k

X^

y Y P y Y f x x u y Y x X P y

Yx F^

= = = − = = =

=^

∑=

Thus, we get

[^

]^

]

[

|^

1

i

N i

k

k

i

k

X^

x x u y Y P

y Y x X P y Y x

F^

=^

∑=

4

Department of Electrical & Computer Engineering

The associated PDF is

(^

)^

(^

)

dx

y x dF y x f^

X

X

|^

(^

)

It can be shown that

(^

)^

(^

)^

(^

)

(^

) y f

x f x y f y f

y x f y x f

Y

X

Y

YX Y

X

|^

,^

(^

)^

(^

)^

(^

)^

(^

)

( ) x f

y f y x f x f

y x f x y f

X

Y

X

Y X X

Y

|^

,^

Bayes’ Theorem

A posteriori conditional PDF

A priori conditional PDF

or^ and

(^

)^

(^

)

∫ ∞−

x

X

X^

d y f y x F

α^

These functions satisfy the same properties as the unconditionalones.

Department of Electrical & Computer Engineering

(^

)^

(^

) ) (

|^

,

y f

y x f y x f YX Y

X^

Thus,

⎧^ ⎪ ⎨ ⎪⎩

elsewhere

2 2

2 2

y r

x

y r

Remark: For discrete r.v’s X and Y with possible values x

, yi

,^ ij

∈[1,N], j

∈[1,M]

the conditional PDF can be expressed as

[^

]

]

[

]

[

1 1

i

N i

k

i

i

N i^

k

k

i

k

X

x x y Y x X P

x

x

y

Y

P

y Y x X P y Y x f

∑= ∑=

δ δ

Department of Electrical & Computer Engineering

Statistical Independence: Recall that events A, B are statistically independent if and only if

(^

)^

(^

)^

(^

) B P A P B A P^

(^

)^

(^

) (^

)^

(^

) A P

B P

B
A
P
B
A
P^

or

For r.v.’s X and Y with events {X

x}, {Y

y} statistically

independence similarly implies that

(^

)^

(^

)^

(^

) y

Y P x X P y Y x X

P^
≤^

,^ (

)^

(^

)^

(^

) y F x F y x

F^

Y

X

Y X^

,^

Thus, And from the previous definitions,

(^

)^

(^

)^

(^

) y f x f y x f^

Y

X

Y X^

,^

Department of Electrical & Computer Engineering

(3) The PDF of the sum of a large number of statistically

independent r.v.’s approaches a Gaussian density function (central limit theorem). Example 8: Given the following joint PDF

(^

)^

(^

)^

∫

∫

∞

−

∞ ∞−

0

) 1 (

,^

,^

dx

ex

y

u

dx

y

x

f

y

f^

yx

YX

( Y

)^

) ( ) (

,^

) 1 (

,^

y u x u

ex

y x f^

yx

YX

−

Find the marginal PDF’s and determine statistical independence.

2

2

) 1 (^

) 1

/() ( 0 ] ) 1 (

1

) 1

[ (

) (^

= ∞⎤ ⎥ ⎦

⎡ ⎢ ⎣

−

⇒

−^

y y u

y

x y

e y u^

yx

Solution:

Department of Electrical & Computer Engineering

( )

(^

)^

∫

∫

∞

−

−

∞ ∞−

0

,^

,^

dy

e

x

u

ex

dy

y

x

f

x

f^

xy

x

YX

X

) (

0

1 ) (^

x u e

e x

x u ex

x

xy

x^

−

−

−^

= ∞⎤ ⎥⎦

⎡ ⎢−⎣

⇒ (^

)^

) ( ) (

, ,^

y f x f y x

f^

Y

X

YX

≠

Clearly

i.e. statistically dependent.

Example 9:

Two r.v.’s have a joint PDF as (^

)^

(^

)

⎧^ ⎨ ⎩
=^

elsewhere

,

y x y x A y x

f^

Y X

(a) Find the value of A. (b) Find the marginal PDF’s. (c) Find the conditional PDF’s and determine statistical

independence.

Department of Electrical & Computer Engineering

(^

)^

⎧^ ⎪ ⎨ ⎪⎩

elsewhere

y

y

y f^ Y

Similarly,

(^

)^

(^

)

|^

,

=^

y

y x

y f

y x f y x f YX Y

X^

and

(c)

(^

)^

(^

)

|^

,

=^

x

y x

x f

y x f x y f Y X X

Y

( )

(^

)^

(^

)(^

)^

y x y x y f x

f^

Y

X^

=^

Since they are NOT statistically independent.

Department of Electrical & Computer Engineering

Sum of Two Random Variables-Very Important Let Z be a r.v. equal to the sum of two r.v.’s X and N (signal

  • noise) that are statistically independent, i.e.,

Communication

Channel

Noise

Z = X + N

X

Given the PDF’s of X and N, i.e.,

fX

(x)

and

fN

(n),

the PDF

of r.v. Z=X+N is the convolution of the two PDF’s, i.e.

( )

(^

)^

(^

)^

(^

)^

(^

)

α α

α

α α

α^

d f z f d z f f z

f^

N

X

N

X

Z^

∞ ∞−

∞ ∞−

−

=

−

=

( )

) ( ) ( ) ( )

(^

z f z f z f z f z

f^

X

N

N

X

Z^

∗

=

∗

=

or where * stands for linear convolution.

Department of Electrical & Computer Engineering

And let Z = X + N. Find

fZ

(z).

( )

(^

)^

(^

)^

(^

)^

(^

)

α α

α

α α

α^

d f z f d z f f z

f^

N

X

N

X

Z^

∞ ∞−

∞ ∞−

−

=

−

=

Hint: When taking the convolution integral always fix the more complicated functionwhile the other function is flipped and used as a moving frame.^ Solution:

z^

z

-^

1

(^

)α − fX

(^ )^ α N f

(^

) α − z f^ X

1/

α

Department of Electrical & Computer Engineering

Region 1: For z < -1 Obviously no overlap, thus

-^

(^1 ) α f^ N

(^

)α − z fX

1/

( )

z for 0

z fZ

α

z

Region 2: For –

z < 1

( )

(^

)

− −

=

z^

z

Z^

d

e

z f

1 1 2

α α^

z z^ e e

1

−

−

α

(^

)

[^

1 ]

− − =^

z e

Department of Electrical & Computer Engineering

α^17

-^

1

(^ )^ α N f

1/

OverlapRegion

(^ z

)α − z fX

Generalization-Sum of Multiple Random Variables:^ Consider N statistically independent r.v.’s X

, X 1
, .. X 2

N^

with

PDF’s

,^

, then the PDF of r.v.

is given by

i.e. (N-1)-fold (consecutive) convolution of N PDF’s.

( )

(^

1

1

z f z f z f z

f^

X

X

X

Z^

N

N^

=^

−

N X

X

X Z^

=^

.... 2

1

) (^

1 1

x f^ X

) (^

2 2

x f^ X

) (^

N

X^

x f^

N

Central Limit Theorem

(Cramer 1946)

The CDF of the sum of a large number (i.e. N large) of statistically independent and identically distributed (IID)

r.v.’s

approaches that of

Gaussian,

regardless of the CDF of individual

r.v.’s.

Department of Electrical & Computer Engineering

Maximum

A Posteriori

(MAP) Estimator

Let Z (e.g. Z=X+N i.e. signal+noise) represent the observation/ measurement, then the MAP estimate of r.v. X (unknown parameter/signal) is the one that maximizes the

a posteriori

conditional PDF, i.e.

|^

=^

x MAP x

x

z

x

f^ X

Noisy Measurements(Observations)

Measurement

X )( x f^ X

Inference

Department of Electrical & Computer Engineering

Y

)| (|

x y f^

XY

) | (|

y x f^ ˆ X YX