Docsity

Conditional Probability Distributions and Joint Probability Mass Functions, Study notes of Statistics

Toggle sidebar
bg1
ECE 3720 Engineering Prob. & Stats. -Fall 2001
Lectures 16,17
4 Multiple Random Variables
4.3
Conditional pdf 's and Statistical Independence
4.3.1
Conditional pdf 's
(Sect. 4-5 text, notes)
In this section of the course welookatseveral cases where, given some additional
information, our probabilistic characterization of a random variable is improved.
That is, we derive a conditional pdf (i.e. a pdf conditioned on the additional
information).
Case 1 - A Single Random Variable:
(This case corresponds to Example 4-9, pp.
97-98 of the text.) Recall the conditional probability relation
P
(
A=B
)=
P
(
A
\
B
)
P
(
B
)
:
(1)
Consider a random variable
X
and let event
A
=
f
X
x
g
and event
B
=
f
a
x
b
g
. Then
P
(
X
x=a
X
b
)=
P
(
X
x
\
a
X
b
)
P
(
a
X
b
)
:
(2)
F
X
(
x=a
X
b
) =
P
(
X
x=a
X
b
) is called a conditional cdf. Its
derivative,
f
X
(
x=a
X
b
)=
@
@x
F
X
(
x=a
X
b
)
:
(3)
is call the conditional pdf. The gure below illustrates the concept.
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download Conditional Probability Distributions and Joint Probability Mass Functions and more Study notes Statistics in PDF only on Docsity!

ECE 3720 Engineering Prob. & Stats. - Fall 2001

Lectures 16,

4 Multiple Random Variables

4.3 Conditional p df 's and Statistical Indep endence

4.3.1 Conditional p df 's (Sect. 4-5 text, notes)

In this section of the course we lo ok at several cases where, given some additional information, our probabilistic characterization of a random variable is improved. That is, we derive a conditional p df (i.e. a p df conditioned on the additional information).

Case 1 - A Single Random Variable: (This case corresp onds to Example 4-9, pp. 97-98 of the text.) Recall the conditional probability relation

P (A=B ) =

P (A \ B ) P (B )

Consider a random variable X and let event A = fX  xg and event B = fa  x  bg. Then

P (X  x=a  X  b) =

P (X  x \ a  X  b) P (a  X  b)

FX (x=a  X  b) = P (X  x=a  X  b) is called a conditional cdf. Its derivative, fX (x=a  X  b) =

@ x

FX (x=a  X  b) : (3)

is call the conditional p df. The gure b elow illustrates the concept.

Observations:

1. FX (x=a  X  b) = 0 for x < a, so

fX (x=a  X  b) = 0 x < a : (4)

2. FX (x=a  X  B ) = 1 for x > b, so

fX (x=a  X  b) = 0 x > b : (5)

  1. Since

FX (x=a  X  b) =

P (X  x \ a  X  b)

P (a  X  b)

we have that

FX (x=a  X  b) =

P (a  X  x)

P (a  X  b)

a  x  b (7)

FX (x) FX (a)

P (a  X  b)

Taking the derivative with resp ect to x, and noting that FX (a) is constant, we have that

fX (x=a  X  b) =

fX (x)

P (a  X  b)

a  x  b : (9)

Summerizing these observations, we have that

fX (x=a  X  b) =

0 x < a fX (x)

P (aX b) a^ ^ x^ ^ b

0 x > b

or

fX (x=a  X  b) =

fX (x)

R b

a fX^ (x)dx^

[u(x a) u(x b)] : (11)

So, the conditional p df is restricted to the range a  x  b. Within a  x  b it

has the same shap e as b efore, but it's scaled so as to b e a valid p df.

Case 2 - Two Random Variables, Point Conditioning: (This case corresp onds the material in Sect. 4-5 of the text, up to and including Example 4-7.) Now

consider random variables X and Y and events A = (x  X  x + x) and

B = (y  Y  y + y ) where x and y are small p ositive constants. Then

P (A=B ) =

P (A \ B )

P (B )

P ((x  X  x + x) \ (y  Y  y + y ))

P (y  Y  y + y )

R y +y

y

R x+x

x R fX^ ;Y^ (^ ;^ )^ d^ d

y +y y fY^ (^ )^ d^

For incrementally small x and y ,

P (A=B ) =

fX ;Y (x; y ) x y fY (y ) y

= x

fX ;Y (x; y ) fY (y )

De ning P (A=B ) = x fX= Y (x=y ), we have the nal result

fX= Y (x=y ) =

fX ;Y (x; y ) fY (y )

This conditional p df is a function of x only.

This reads: given joint p df fX ;Y (x; y ) and marginal p df fY (y ), if we are given that Y = y (e.g. we observe the value y for variable Y ), then the new p df of X

(conditioned on Y = y ) is fX= Y (x=y ). It assumes that fY (y ) 6 = 0. This kind of

conditioning, where on random variable is conditioned on a given value of another, is called p oint conditioning.

Example 4: Let fX ;Y (x; y ) = x ex(y^ +1)^ u(x) u(y ) (16)

with marginals fx (x) = ex^ u(x) (17)

fY (y ) =

(y + 1)^2

u(y ) (18)

  1. Determine fY =X (y =x).
  2. Given X = 2, determine the conditional p df of Y.

Case 4 - Multiple Random Variables, Point Conditioning: (This is not in the b o ok, but it's a straightforward extension of Case 2.) Given random variables Xi ; i = 1 ; 2 ;    ; N with joint p df fX 1 ;X 2 ;;XN (x 1 ; x 2 ;    ; xN ), then for example

fX 1 ;X 2 ;;XJ =XJ +1 ;;XN (x 1 ; x 2 ;    ; xJ =xJ +1 ;    ; xN ) (23)

is the conditional p df of X 1 ; X 2 ;    ; XJ conditioned on values xJ +1 ; xJ +2 ;    ; xN of random variables XJ +1 ; XJ +2 ;    ; XN.

Case 5 - One We've Dealt With Before: Back when we rst lo oked at a single random variable, when we lo oked at the digital communication case study, recall that we lo oked at the p df of a received random variable conditioned on which signal was sent. This corresp onds to Example 4-8, p. 96 of the text.

4.3.2 Statistical Indep endence (Sect. 4-6 text)

Given random variables Xi ; i = 1 ; 2 ;    ; N , they are statistically indep endent if

their joint p df is

fX 1 ;X 2 ;;XN (x 1 ; x 2 ;    ; xN ) =

Y^ N

i=

fXi (xi ) : (24)

It can b e easily shown that for statistically indep endent random variables a con- ditional p df is equal to the corresp onding marginal p df, e.g.

fX 1 (x 1 =x 2 ; x 3 ;    ; xN ) = fX 1 (x 1 ) : (25)

That is, knowing something ab out some of the indep endent random variables gives us no additional information ab out the others.

We have already seen that if the joint p df of random variables Xi ; i = 1 ; 2 ;    ; N

factors into the pro duct of the individual p df 's (i.e. if the random variables are statistically indep endent), then

P

\Ni=1 ai  Xi  bi

Y^ N

i=

P (ai  Xi  bi ) : (26)

The following example illustrates the advantage of this.

4.4 Exp ectation and Moments (Sects. 4-7,8 & some of 4-14 of text)

Let X and Y b e random variables with joint p df fX ;Y (x; y ), and let g (X ; Y ) b e a function of X and Y. As a generalization of exp ectation for a single random variable, we de ne the joint exp ectation of the function as

E fg (X ; Y )g =

Z 1

Z 1

g (x; y ) fX ;Y (x; y ) dx dy : (33)

For discrete random variables taking on joint values (xk ; yk ); k = 1 ; 2 ;    ; K this re-

duces to

E fg (X ; Y )g =

X^ K

k =

g (xk ; yk ) P (xk ; yk ) : (34)

This generalizes to multiple random variables in an obvious way.

4.4.1 Moments Ab out the Origin

Let X and Y b e two random variables with joint p df fX ;Y (x; y ). The m; nth moment ab out the origin is

mm;n = E fX m^ Y n^ g =

Z 1

Z 1

xm^ y n^ fX ;Y (x; y ) dy dx : (35)

Note that the mm; 0 moment ab out the origin is just the mth^ moment ab out the origin of X. That is,

mm; 0 =

Z 1

xm

Z 1

fX ;Y (x; y ) dy dx =

Z 1

xm^ fX (x) dx: (36)

Correlation: The correlation b etween X and Y is

RX ;Y = m 1 ; 1 = E fX Y g =

Z 1

Z 1

xy fX ;Y (x; y ) dx dy : (37)

By de nition, if X and Y are uncorrelated, then

RX ;Y = E fX g E fY g = X Y : (38)

If X and Y are statistically indep endent, they are uncorrelated. That is,

RX ;Y =

Z 1

Z 1

xy fX ;Y (x; y ) dx dy (39)

=

Z 1

Z 1

xy fX (x) fY (y ) dx dy (40)

=

Z 1

x fX (x) dx 

Z 1

y fY (y ) dy = X Y : (41)

Note that statistically indep endent means uncorrelated. However, uncorrelated do es not, in general, necessarily mean statistically indep endent.

If RX ;Y = 0 we say the two random variables are orthogonal.

Example 7: Let

fX ;Y =

( x

10 0 ^ x^ ^2 and^0 ^ y^ ^5

0 other w ise (48)

Find X , Y ,  (^) X^2 ,  (^2) Y , RX ;Y , CX ;Y and X ;Y.

4.5 Joint Gaussian Random Variables (Some of Sect. 4-9, notes)

Two random variables X and Y are jointly Gaussian (normal) if their joint p df is of the form

fX ;Y (x; y ) =

2  X Y

p

1 ^2

e

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

(xX )^2  (^2) X^ ^

2 (xX )(y Y ) X Y +^

(y Y )^2  (^2) Y

It can b e shown that: fX (x) =

q^1

2   X^2

e

(x 2 X 2 )^2 X (^) (50)

fY (y ) =

q^1

2   Y^2

e

(y 2 Y 2 )^2 Y (^) (51)

i.e. the marginal p df 's are Gaussian

E fX g = X ; E f(X X )^2 g =  X^2 (52)

E fY g = Y ; E f(Y Y )^2 g =  Y^2 (53)

CX ;Y = E f(X X )(Y Y )g =  X Y (54)

so that  = (^) CXX;Y Y is the correlation co ecient.

Note: The joint p df of Gaussian X and Y is completely characterized by its rst and second order moments.

Generalization to N Gaussian Random Variables: Now let Xi ; i = 1 ; 2 ;    ; N b e N

jointly Gaussian random variables. De ne

X =

X 1

X 2

XN

; x =

x 1 x 2 : : : xN

These random variables could, for example, represent the outputs of N antennas at a selected time, N successive samples of the output of a microphone, N pixels of an image or N voltages in a circuit.

Denote the joint p df of these N random variables as

fX (x) = fX 1 ;X 2 ;;XN (x 1 ; x 2 ;    ; xN ) : (59)

Denote the mean vector as

X = E fX g = E

n

[X 1 ; X 2 ;    ; XN ]T^

o

= [E fX 1 g; E fX 2 g;    ; E fXN g]T^ (60)

and the N  N covariance matrix as

C X = E f(X X ) (X X )T^ g (61)

E f(X 1 X 1 )^2 g E f(X 1 X 1 )(X 2 X 2 )g : : E f(X 1 X 1 )(XN X N )g

E f(X 2 X 2 )(X 1 X 1 )g E f(X 2 X 2 )^2 : : E f(X 2 X 2 )(XN X N )g

E f(XN X N )(X 1 X 1 )g : : : E f(XN X N )^2 g

CX (1; 1) CX (1; 2) : : CX (1; N )

CX (2; 1) CX (2; 2) : : CX (2; N )

CX (3; 1) CX (3; 2) : : CX (3; N )

CX (N ; 1) CX (N ; 2) : : CX (N ; N )

where CX (i; j ) = E f(Xi X i ) (Xj X j )g.

Let C X^1 b e the inverse of the covariance matrix C X , and let jC X j denote its determi-

nant. The joint p df of these N Gaussian random variables is

fX (x) =

(2 )N^ =^2 jC X j

exp

n

(X X )T^ C X^1 (X X )= 2

o

Try this for N = 2. Note that in this case

C X =

 2 X 1 X 1 X 2

X 1 X 2  X^22

and fX (x) reduces to the N = 2 joint Gaussian p df intro duced earlier.