Docsity

Lecture 12 on Statistical Theory I: Transformations of Random Variables, Study notes of Biostatistics

Toggle sidebar
bg1
Lecture 12 on BST 631: Statistical Theory I – Kui Zhang, 10/23/2008
1
Review for the previous lecture
Definition: n-dimensional random vector, joint pmf (pdf), marginal pmf (pdf), conditional pmf (pdf), conditional
expected values, independence
Theorem: How to calculate marginal pmf (pdf) given joint pmf (pdf), how determine if two random variables are
independence
Example: How to calculate marginal pmf (pdf), joint pmf (pdf), how to calculate probabilities based on marginal
pmf (pdf), joint pmf (pdf), calculate conditional pmf (pdf)
Chapter 4 – Multiple Random Variables
Chapter 4.3 – Bivariate Transformations
Discrete Case:
Let (,)XY be a discrete bivariate random vector with joint pmf (,)
f
xy and support {(,);(,) 0}
x
yfxy
=
>A.
Define 1(,)UgXY= and 2(,)VgXY
=
with 12
{( , ): ( , ) and ( , )}uv u g xy v g xy
=
==B for some ( , )
x
y
∈
A. For
any ( , )uv∈B, define ,12
{(,) : (,) , (,) }
uv
A
xy g xy ug xy v=∈ = =A, then the joint pmf of ( , )UV , ,(,)
UV
uv, can
be computed from the joint pmf of ,
(,), (,):
Xy
XY f xy
,
,,,
(,)
(,) ( , ) (( , ) ) (, )
uv
UV uv XY
xy A
f
uv PU uV v P XY A f xy
∈
==== ∈=
∑.
Theorem 4.3.2 (Distribution of sum of Poisson variables): If ~X Poisson()
θ
and ~Y Poisson()
λ
and they are
independent, then ~XY+Poisson()
θ
λ
+
.
pf3
pf4
pf5

Partial preview of the text

Download Lecture 12 on Statistical Theory I: Transformations of Random Variables and more Study notes Biostatistics in PDF only on Docsity!

Lecture 12 on BST 631: Statistical Theory I – Kui Zhang, 10/23/

1

Review for the previous lecture Definition:

n-dimensional random vector, joint pmf (pdf), marginal pmf (pdf), conditional pmf (pdf), conditional

expected values, independence Theorem:

How to calculate marginal pmf (pdf) given joint pmf (pdf), how determine if two random variables are independence Example:

How to calculate marginal pmf (pdf), joint pmf (pdf), how to calculate probabilities based on marginal pmf (pdf), joint pmf (pdf), calculate conditional pmf (pdf)

Chapter 4 – Multiple Random Variables

Chapter 4.3 – Bivariate TransformationsDiscrete Case:

Let

(^

,^ ) X Y^

be a discrete bivariate random vector with joint pmf

f^ x y

and support

)^

x^ y

f

x y

=^

A^

Define

(^1

,^ )

U^

g^

X Y

=^

and

(^2

,^ )

V^

g^

X Y

=^

with

1

2

) and

u v

u

g^

x y

v^

g^

x y

=^

=^

B^

for some ( ,

) x y^

∈^ A

. For

any ( , )

u v

B^ , define

,^

1

2

)^

:^

)^

,^

)^

A^ u v

x y

g^

x y

u g

x y

v

=^

∈^

=^

A^

, then the joint pmf of (

,^

U V

,^

( , ) f u v , (^) U V

, can

be computed from the joint pmf of

,

(^

,^ ),

X y X Y

f

x y

,

,^

,^

,

(^ ,^

)

(^

,^

)^

((^

,^ )

)^

u v

U V^

u v^

X Y x y^

A

f^

u v

P U

u V

v^

P^

X Y

A^

f^

x y

∈

=^

=^

=^

=^

∈^

=^

Theorem 4.3.2 (Distribution of sum of Poisson variables):

If^

~ X Poisson

( )^ θ^

and

~ Y Poisson

(^

) λ and they are

independent, then

X^

Y +

Poisson

(^

θ^

λ+

Lecture 12 on BST 631: Statistical Theory I – Kui Zhang, 10/23/

2

Solution 1 (transformation technique):

The joint pmf of

(^

,^ ) X Y^

is:

)^

,^

!^

x^

y

X Y

e^

e

f^

x y

x^

y

x^

y θ

λ

θ^

−^ λ

−

=^

=^

"^

"^

Let

U^

X^

Y V

Y

=^

+^

=^

, then ,^

,

(^

,^

)^

(^

,^

,^

1,^

;^

(^

)!^

u^ v^

v

U V^

X Y

e^

e

f^

u v

P X

Y^

u Y

v^

f^

u^

v v

u^

v v

v

u^

v^

v θ

λ

θ^

−^ −^

−

=^

+^

=^

=^

=^

−^

=^

=^

+^

−^

"^

Therefore, the marginal pmf of

U^

is:

, 0

0

0

(^

)

(^

)

0

(^

)!^

!^

!^

(^

)!^

(^

)^

,^

!^

u^ v^

v^

u^ v^

v

u^

u

U^

U V v^

v^

v

u

u^

v^

u^ v

v

e^

e^

e

f^

u^

f^

u v

u

u^

v^

v^

u^

v^

v

u

e^

e^

u

v^

θ u

λ

θ^ λ

θ^ λ

θ^ λ

θ^

λ

θ^

λ

μ

θ^

λ

λ θ

μ

−^

−^

−^

−^ −^

−

∞ =^

=^

=

−^ −^

−^ +

−

=

=^

=^

−^

⎛^

⎞^

=^

=^

⎜^

⎝^

Solution 2 (mgf technique):

Let

Z^

X^

Y

=^

+^

, then

(^ 1)

(

(^

)(^

( )^

( )^

( )^

t^

t^

t

e^

e^

e

Z^

X^

Y

M^

t^

M^

t M

t

e^

e^

e

θ

λ

θ^ λ

−^

−^

+^

−

=^

=^

=^

Continuous Case:

Consider (

) X Y^

a continuous bivariate random vector with joint pdf

f^ x y

and define

(^1

,^ )

U^

g^

X Y

=^

and

(^2

,^ )

V^

g^

X Y

=^

. Let

)^

x^ y

f

x y

=^

A^

and

1

2

) and

u v

u

g^

x y

v^

g^

x y

=^

=^

B^

for some ( ,

) x y^

∈^ A

Assume that

U^

and

V^

are 1-1 transformation from

A

to

B^

. Define

x^

h u v =

and

y^

h^

u v =^

be the inverse

transformations. The Jacobian,

J^

, of the transformation is defined as the determinant of a matrix of partial

derivatives:

Lecture 12 on BST 631: Statistical Theory I – Kui Zhang, 10/23/

4

1

,

(^11)

1

1

1

1

(^

)^

(^

)^

(^

(^

)^ (

(^

)^

(^

)^

,^

(^

)^ (

U^

U Vu

u

f^

u^

f^

u v dv

u^

v^

v^

v^

u^

dv

u^

u^

u

α^ β

β^ γ

β

γ

α

β^ γ

α^

β^

γ

α^

β^

γ

α^

β^

γ

α^

β^

γ

+^ −

−^ −

−^

−

−^

+^ −

Γ^

+^

=^

−^

Γ^

Γ^

Γ^

+^

=^

−^

<^

Γ^

Γ^

Example 4.3.4 (Sum and difference of two independent normal random variables):

Let

2

~^

(^ ,

X^

n^ α

σ^

and

2

~^

(^ ,

Y^

n^ β

σ^

and they are independent. Consider

U^

X^

Y

=^

+^

and

V^

X^

Y

=^

−^

, then

(^

X^

U^

V

=^

+^

,^

(^

Y^

U^

V

=^

−^

and |

1/ 2. J =^

Therefore,

,^

,

2

2

2

2

2

2

2

2

2

2 2

2

2

2

2

2

((^

((^

)^

((^

exp(

2(^

)^

2(^

)^

exp(

(^

(^

))^

(^

(^

exp(

)^

exp(

U V^

X Y

f^

u v

f^

u^

v^

u^

v u^

v^

u^

v

u^

u^

v^

v

u^

v

α

β

πσ

σ

α^

β

α^

β^

α^

β

πσ

σ

α^

β

α^

β

σ

σ

π^

σ

π^

σ

=^

+^

−^

+^

−^

=^

−^

+^

+^

−^

−^

+^

=^

⎛^

⎞⎛^

−^

+^

−^

=^

−^

⎜^

⎟⎜^

⎝^

⎠⎝^

Theorem 4.3.5:

Let X and Y be independent random variables. Let

( ) g x

be a function only of x and

) h y^

be a

function only of y. Then the random variables

U^

g x =

and

(^ )

V^

h Y =

are independent.

Proof:

We only prove it for the continuous case.

Lecture 12 on BST 631: Statistical Theory I – Kui Zhang, 10/23/

5

For any

u^ ∈

R^

and

v^ ∈

R^ , we define

{^

:^ ( )

A^ u

x^ g x

u

=^

≤^

and

{^

:^ (

)^

B^ v

y h y

v

=^

≤^

, then the joint cdf of (

,^

U V

is

(^

,^

)^

(^

,^

)^

(^

)^ (

U V^

u^

v^

u^

v

F^

u v

P U

u V

v^

P X

A Y

B^

P X

A^

P Y

B

=^

≤^

≤^

=^

∈^

∈^

=^

∈^

∈^

The joint pdf of (

,^

U V

is

2

,^

,

(^

)^

(^

U V^

U V^

u^

v

f^

u v

F^

u v

P X

A^

P Y

B

u v

u^

v

∂^

∂^

⎛^

⎞⎛^

=^

=^

∈^

⎜^

⎟⎜^

∂^

⎝^

⎠⎝^

Question:

Why can’t we use the transformation technique to prove this?

1

1

,^

,

( , )

(^

(^ )) |

U V^

X Y

f^

u v

f^

g^

x^

h^

y^

J

−^

−

=^

Notes:

1.^

If only one function is of interest, say

(^1

,^ )

U^

g^

X Y

=^

. In this case, choose a convenient

(^2

,^ )

V^

g^

X Y

=^

so that

(^

,^ ) U V^

is a 1-1 transformation from

A

onto

B

and obtain the joint pdf of

U^

and

V^

given by

( , ) f u v , (^) U V

Finally, one can obtain the marginal of

U^

by integrating over all values of

V^

. Another strategy is to directly

obtain the cdf of

U^

:^

1

( )

(^

)^

(^ (^ ,

)^

)

F^ uU

P U

u

P g

X Y

u

=^

≤^

=^

≤^

then obtain the pdf of

U^

2.^

What is the transformation is not 1-1? We use a generalized version of Theorem 2.1.8 from univariate tomany-to-one functions by finding partitions

0

,^1

,^

,^ n

A^

A^

A

"^

of^

A^

where the transformation

(^1

,^ )

U^

g^

X Y

=^

and

(^2

,^ )

V^

g^

X Y

=^

is 1-1 from

(^

A i^ i

n

=^

"^

onto

B^

and

(^ )^0

P A

. Therefore, the joint pdf of

U^

and

V^

is

given by

,^

,^

1

2

1

(^

n

U V^

X Y^

i^

i^

i

i

f^

u v

f^

h^

u v

h

u v

J

=

=^ ∑

3.^

Even the transformation is not 1-1, we can always use the method in the proof of Theorem of 4.3.5 tocalculate the joint cdf and pdf of

U^

and

V^

Lecture 12 on BST 631: Statistical Theory I – Kui Zhang, 10/23/

7

)^

f^ x y

x^

x^

y

=^

−^

<^

<^

<^

Please find the pdf of

U^

XY =

Solution 1.

Let

U^

XY =

and

V^

X = , then this is an one to one transformation from {( ,

x^ y

x^

y

<^

<^

<^

<^

to

u v

u^

v <^

<^

<^

. In addition,

,^

X^

V Y

U V

=^

=^

,^ |^

|^ 1/ J

v =^

, therefore:

,

)^

,^

f^ U V

u v

v^

u^

v

v

=^

−^

<^

<^

So the marginal pdf of

U^

is:

1

,

(^

2)^

2ln( )

)^

2(^

ln( )

U^

U V^

u

f^

u^

f^

u v dv

dv^

u^

u^

u^

u^

u

v

∞ −∞ =^

=^

−^

−^

−^

=^

−^

−^

<^

∫^

Solution 2.

For 0

u < <

, we have

1

1

/

0

0

0

1

0

2

1

1

2

(^

)^

(^

)^

(^

,^

1)^

(^

/^

(^

)^

)^

(^

)^

)^

ln( ) |

|^

ln( ).

U

u^

u^ x u

u

u u^

u

F^

u^

P U

u^

P XY

u

P^

X^

u^

Y^

P u

X^

Y^

u^

X

x dy dx

x dy dx

u

x dx

x^

dxx

u^

u^

u^

x^

ux^

u^

u^

u

=^

≤^

=^

≤^

=^

<^

<^

<^

<^

+^

<^

<^

<^

=^

−^

+^

=^

−^

+^

=^

−^

+^

−^

=^

∫^

Therefore, the pdf of

U^

is:

2

(^

ln( ))

ln( )

U^

U d^

d

f^

u^

F^

u^

u^

u^

u^

u^

u^

u

du^

du

=^

=^

−^

=^

−^

−^

<^