Docsity

Statistical Analysis of Two Random Variables: Independence, Correlation, and Sum, Study notes of Statistics

Partial preview of the text

Download Statistical Analysis of Two Random Variables: Independence, Correlation, and Sum and more Study notes Statistics in PDF only on Docsity!

MULTIPLE RANDOM VARIABLES

OUTLINE

Statistical Independence

Correlation Between Random Variables

Definition

Variance of Sum

X

Y

PDF of Sum

X

Y

Questions and Solutions

Reading:

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

EE/STAT 322, #

STATISTICAL INDEPENDENCE

If two RVs

X

and

Y

are independent, then

f XY

x, y

f X

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

Since

f XY

x, y

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

f (^) ( x | y ) f (^) ( y ) , we see that

f (^) ( y | x ) =

f (^) ( y ) , f (^) ( x | y ) =

f (^) ( x )

The correlation value is

E

[

XY

] =

∞

−∞

xf

x ) dx

∞

−∞

yf

y ) dy

= E [ X ] E [

Y

] =

X

Y.

Example:

Two

RVs

X

and

Y

have

a

joint

PDF

f (^) ( x, y

ke

− ( x + y −

x

y

≤ ∞

elsewhere

Find (a) the value of

k

such that

X

and

Y

are independent; (b)

E

[

XY

]

EE/STAT 322, #

CORRELATION BETWEEN RANDOM VARIABLES

Definition: correlation coefficient between

X

and

Y

ρ = E [ X − X

σ X · Y − Y

σ Y ] = ∫ ∞

−∞

∞ −∞

X

−

X

σ X · Y − Y

σ Y

f (^) ( x, y

dxdy

ρ

=

E

XY

X

Y

σ X

(^) σ

Y

Some properties of

ρ : show that

− 1 ≤ ρ ≤ 1.

Define

standardized

RVs

ξ

and

η

as

ξ

=

X

−

X

σ X , η = Y − Y

σ Y

Then

ξ

=

η

σ ξ 2

=

σ η 2

= 1

, and

ρ

E

[

ξη

]

E

[(

ξ

±

η ) 2 ] =

E [ ξ 2 ± 2

ξη

η 2 ] = 2(

ρ )

≥

1 ≤ ρ ≤ 1.

EE/STAT 322, #

CORRELATION BETWEEN RVS (CONT.)

Show that

X

and

Y

are independent and one of them is zero mean

ρ

= 0

Proof:

If

f (^) ( x, y

f (^) ( x ) f (^) ( y ) , we get

ρ

=

E

ξη

E ( ξ ) E ( η

However,

ρ

normally doesn’t imply

X

and

Y

are independent, except

for Gaussian RVs.

Joint Gaussian PDF of

X

and

Y

, with correlation coefficient

ρ , is

f (^) ( x, y

1

2 πσ

X (^) σ Y √ 1 − ρ 2

exp

1

2(

− ρ 2 ) [ ( x − X ) 2

σ X 2

  • ( y − Y ) 2

σ Y 2

( x −

X

)(

y −

Y

) ρ

σ X (^) σ Y

]}

When

ρ

= 0

f (^) ( x, y

1

2 πσ

X (^) σ Y

exp

2 1 [ ( x − X ) 2

σ X 2

  • ( y − Y ) 2

σ Y 2

]}

f (^) ( x ) f (^) ( y ) .

This means:

ρ

independence for Gaussian RVs.

EE/STAT 322, #

5

VARIANCE OF SUMS (CONT.)

Example:

Two RVs

X

and

Y

have means of 1 and variances of 1 and 4,

Solution:(c) the mean square value of their difference.Find (a) the variance of their sum; (b) the mean square value of their sum;respectively. Their correlation coefficient is 0.5.

X

Y

σ X 2

, and

σ Y 2

(a)

σ ( 2 X

Y (^) )

=

σ X 2

σ Y 2

ρσ

X

(^) σ

Y

(b)

E

[(

X

Y

2 ] =

σ ( 2 X

Y (^) )

  • (

X

Y

2

= 7 + (1 + 1)

2

= 7 + 4 = 11

(c)

E

[(

X

Y

2 ] =

σ ( 2 X

−

Y (^) )

  • (

X − Y ) 2.

σ ( 2 X

−

Y (^) )

σ X 2

σ Y 2

ρσ

X

(^) σ

Y

and

( X − Y ) 2

2

= 0

. So

E

[(

X

Y

2 ] = 3

EE/STAT 322, #

PDF OF SUM OF TWO RVS

Consider the sum of two independent RVs

X

and

Y

, given by

Z

X

Y

The distribution function of

Z

is

F

Z

( z ) =

P

Z

z ) =

P

X

Y

z ) .

for a givenWe may interpret it as:

y

, we have

< X < z

y .

X

Y

z

Y

X

=

z

Z

≤

Thus

F

Z ( z ) =

∞ −∞

z −

y

−∞

f (^) ( x, y

dxdy

∞ −∞

f Y ( y ) ∫ z − y

−∞

f X

(^) ( x ) dxdy

EE/STAT 322, #

8

PDF OF SUM (CONT.)

Example:

If

X

and

Y

are independent exponential RVs with parameters

λ 1

= 1

τ 1

and

λ 2

= 1

τ 2 , respectively. Find the pdf for

Z = X + Y.

Solution:

f (^) ( x ) =

λ 1 e − λ 1 x U

x )

and

f (^) ( y ) =

λ 2 e − λ 2 y U

y ) .

f Z (^) ( z ) =

z

x

f X

(^) ( x ) f Y ( z − x )

dx

z

0 λ 1 λ 2 e − λ 1 x e − λ 2 ( z − x )

dx

= λ 1 λ 2 e − λ 2 z ∫ z

0 e ( λ 2 − λ 1 ) x

dx

= λ 1 λ 2 e − λ 2 z

(^) e ( λ 2 − λ 1 ) z λ 2

−

λ 1

= λ 1 λ 2 e − λ 1 z − e − λ 2 z

λ 2 − λ 1.

When

λ 1 = λ 2 = λ

, the result reduces to a Gamma PDF

f Z (^) ( z ) =

zλ

2 e −

λz

U

z )

.

EE/STAT 322, #

PDF OF SUM (CONT.)

Example:

Independent RVs

X

and

Y

, with PDFs

f X

(^) ( x ) =

{ 1 0 ≤ x ≤ 1

elsewhere

and

f Y

( y ) =

{ e − y y ≥ 0

y <

Let

Z

X

Y

. Find the PDF

f Z (^) ( z ) .

)

( (^) x

f

X

)

( (^) y

f

Y

y

e

EE/STAT 322, #

PDF OF SUM (CONT.)

Example:

Independent RVs

X

and

Y

with Gaussian PDFs

f (^) ( x ) =

1

√

2 πσ

X

exp

( − ( x − X ) 2

2 σ X 2

, and

f (^) ( y ) =

1

√

2 πσ

Y

exp

( − ( y − Y ) 2

2 σ Y 2

. Find the PDF

of

Z = X + Y.

f Z (^) ( z ) =

∞ −∞

f X

(^) ( x ) f Y ( z − x )

dx

1

2 πσ

X (^) σ Y

∫

∞ −∞

∞ −∞

exp

( − ( x − X ) 2

2 σ X 2

exp

( − ( z − x − Y

(^) ) 2

2 σ Y 2

dx

1

2 π ( σ X 2 (^) +

σ Y 2 (^) )

exp

[ x − ( X + Y

)] 2

2(

σ X 2 (^) +

σ Y 2 (^) )

Z

N

X

Y , σ

X 2

σ Y 2

) .

Observation:

Linear combinations of Gaussian RVs result in Gaussian RVs.

However, this is normally

not

true for other PDFs.

EE/STAT 322, #

QUESTIONS AND SOLUTIONS

Example:

(Ex 3-4.2) RV

X

has zero mean and variance of 9,

Y

is zero

mean.

X

Y

has a variance of 29 and the difference has a variance of 21.

(a) the variance ofFind

Y

(b) the correlation coefficient of

X

and

Y

(c) the variance of

U

X

Y

Solution:

X

σ X 2

X

2

= 9

Y

σ X 2

Y

, and

σ X 2

−

Y

(a)

σ X 2

Y

σ X 2

σ Y 2

ρσ

X

(^) σ

Y

σ Y 2

ρσ

Y

, and

σ X 2

−

Y

σ X 2

σ Y 2

ρσ

X

(^) σ

Y

σ Y 2

ρσ

Y

EE/STAT 322, #

QUESTIONS AND SOLUTIONS (CONT.)

Example:

(Ex 3-5.1)

X

and

Y

are independent RVs, with PDFs

f X

(^) ( x ) =

< x <

elsewhere

f Y

( y ) =

< y <

elsewhere

Let

Z

X

Y

. Find

(a) the value of

z

for which

f Z (^) ( z )

is a maximum.

(b)

P

z <

(a) Let us try to obtain Solution:

f Z

( z )

first. Clearly,

Z = X + Y → 0 ≤

z <

EE/STAT 322, #

QUESTIONS AND SOLUTIONS (CONT.)

X

Y

x= z-^ (^1) y

0

<

≤ z

1

1

X

Y

x= z-^ y

2

1

<

≤

z

1

1

For

z <

1 , F Z ( z

z y =

z −

y

x

dxdy

z y =

z

−

y ) dy

= z 2 / 2.

For

z <

2 , F Z ( z

P

Z > z

1 y = z − 1 ∫ 1

x = z − y 1

dxdy

− z ) 2 / 2.

EE/STAT 322, #

)

( (^) x

f Y

x

1

)

(

x

z

f X^

−

x

z

)

(

)

(

x

f

x

z

f

Y

X

−

x

z

1

−

z

1

0

)

(

<

≤ z

a

)

( (^) x

f Y^

x

1

)

(

x

z

f X^

−

x

)

(

)

(

x

f

x

z

f

Y

X

−

x

1

1

−

z

z

1

−

z

2

1

)

(

<

≤ z

Fig. 8.6 ( b

c )

)

( (^) z

f Z^

z

2

0

1

PILLAI

)

( (^) x

f Y

x

1

)

(

x

z

f X^

−

x

z

)

(

)

(

x

f

x

z

f

Y

X

−

x

z

1

−

z

1

0

)

(

<

≤ z

a

)

( (^) x

f Y

x

1

)

(

x

z

f X^

−

x

z

)

(

)

(

x

f

x

z

f

Y

X

−

x

z

1

−

z

1

0

)

(

<

≤ z

a

)

( (^) x

f Y^

x

1

)

(

x

z

f X^

−

x

)

(

)

(

x

f

x

z

f

Y

X

−

x

1

1

−

z

z

1

−

z

2

1

)

(

<

≤ z

b

)

( (^) x

f Y^

x

1

)

(

x

z

f X^

−

x

)

(

)

(

x

f

x

z

f

Y

X

−

x

1

1

−

z

z

1

−

z

2

1

)

(

<

≤ z

Fig. 8.6 ( b

c )

)

( (^) z

f Z^

z

2

0

1

Fig. 8.6 (

c )

)

( (^) z

f Z^

z

2

0

1

PILLAI

EE/STAT 322, #