Multiple Random Variables - Lecture Notes | ST 521, Study notes of Statistics

Material Type: Notes; Professor: Zhang; Class: Statistical Theory I; Subject: Statistics; University: North Carolina State University; Term: Unknown 1989;

Typology: Study notes

Pre 2010

Uploaded on 03/18/2009

koofers-user-n2t
koofers-user-n2t 🇺🇸

8 documents

1 / 30

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Chapter 4: Multiple Random Variables
We study the joint distribution of more than two random variables, called
arandom vector, such that (X, Y ),(X, Y , Z), (X1,···, Xn),and the distri-
bution of their functions like X+Y,XY Z , or X1+X2+· · · +Xn.
1 Bivariate Random Variables
Assume both Xand Yare random. We treat (X, Y ) as a two-dimensional
random vector and study their relationship.
1.1 Discrete Case
Assume that both Xand Yare discrete random variables, with the sample
space Xand Yrespectively.
Joint pmf:
fX,Y (x, y) = P(X=x, Y =y),x X , y Y.
Properties:
fX,Y (x, y)0;
Px∈X Py∈Y fX,Y (x, y) = 1.
The probability of a set Ais given by
P((X, Y )A) = X
(x,y)A
fX,Y (x, y).
Marginal pmf: If the joint distribution of (X, Y ) is known, their marginal
pmf are
fX(x) = P(X=x) = X
y∈Y
fX,Y (x, y).
fY(y) = P(Y=y) = X
x∈X
fX,Y (x, y)
74
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e

Partial preview of the text

Download Multiple Random Variables - Lecture Notes | ST 521 and more Study notes Statistics in PDF only on Docsity!

Chapter 4: Multiple Random Variables

We study the joint distribution of more than two random variables, called a random vector, such that (X, Y ), (X, Y, Z), (X 1 , · · · , Xn), and the distri- bution of their functions like X + Y , XY Z, or X 1 + X 2 + · · · + Xn.

1 Bivariate Random Variables

Assume both X and Y are random. We treat (X, Y ) as a two-dimensional random vector and study their relationship.

1.1 Discrete Case

Assume that both X and Y are discrete random variables, with the sample space X and Y respectively.

Joint pmf:

fX,Y (x, y) = P (X = x, Y = y), ∀x ∈ X , y ∈ Y.

Properties:

  • fX,Y (x, y) ≥ 0;

x∈X

y∈Y fX,Y^ (x, y) = 1.

The probability of a set A is given by

P ((X, Y ) ∈ A) =

(x,y)∈A

fX,Y (x, y).

Marginal pmf: If the joint distribution of (X, Y ) is known, their marginal pmf are fX (x) = P (X = x) =

y∈Y

fX,Y (x, y).

fY (y) = P (Y = y) =

x∈X

fX,Y (x, y)

Example 1 Two fair dice thrown. Let X=maximum, Y =sum. Possible values: X: 1, 2, 3, 4, 5, 6. Y : 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12. Can write the probabilities in a table.

Remark:

  • Joint distribution determines the marginal distribution.
  • Marginals do not determine the joint distribution.

Example: Define the joint pmf by

f (0, 0) = f (0, 1) =

; f (1, 0) = f (1, 1) =

; f (x, y) = 0, otherwise.

Consider another joint pmf by

f (0, 0) =

; f (1, 0) =

; f (0, 1) = f (1, 1) =

; f (x, y) = 0, otherwise.

They share the same marginal distributions, but not the same joint distri- bution!

Example. Check whether the following function a valid pdf

f (x, y) = ye−(x+y)I{ 0 < x < y}.

Example. f (x, y) = 2I{ 0 ≤ x ≤ y ≤ 1 }.

Example. f (x, y) = e−y^ I{ 0 < x < y}.

Ex. f (x, y) = e−yI{ 0 < x < y}. Compute E(X), E(Y ), E(XY ), MX,Y (t, s).

2 Conditional Distributions

2.1 Discrete Case

Assume both X and Y are discrete. For any x such that P (X = x) > 0, the conditional pmf of Y given X = x is defined as

fY |X (y|x) = P (Y = y|X = x) = P (X = x, Y = y) P (X = x)

, ∀y ∈ Y.

We can define fX|Y (x|y) similarly.

Remark: The function f (y|x) is indeed a pmf, since for any fixed x it satisfies

  • fY |X (y|x) ≥ 0 for any y.

y fY^ |X^ (y|x) = 1.

Example. The two dice example, X=maximum, Y =sum.

fY |X (y|3).

fX|Y (x|7).

2.3 Conditional Mean and Variance

For discrete random variables:

E(Y |X = x) =

y

yfY |X (y|x),

Var(Y |X = x) =

y

{y − E(Y |X = x)}^2 fY |X (y|x).

For continuous random variables:

E(Y |X = x) =

yfY |X (y|x)dy,

Var(Y |X = x) =

{y − E(Y |X = x)}^2 fY |X (y|x)dy.

Remark: As before, we have

Var(Y |X = x) = E(Y 2 |X = x) − {E(Y |X = x)}^2.

Example. Two dice example, X=max, Y =sum. Compute E(Y |X = 3).

Ex. f (x, y) = e−y^ I{ 0 < x < y}. Find E(Y |X = x) and Var(Y |X = x).

Remark: Note E(Y |X = x) is a function of x. Therefore, E(Y |X) is a random variable as a function of X.

  • E(g(X)|X) = g(X).

Theorem:

  • Conditional Expectation Identity

E(Y ) = E(E(Y |X)).

  • Conditional Variance Identity

Var(Y ) = E(Var(Y |X)) + Var(E(Y |X)).

Remark:

  • E(g(X, Y )) = E(E(g(X, Y )|Y )) = E(E(g(X, Y )|X)).
  • Conditional expectation as projection:

E(Y − E(Y |X))^2 ≤ E(Y − g(X))^2 , ∀ g function

So E(Y |X) is “closest” (in above sense) to Y among all the functions of X.

Theorem: If X and Y are independent, then

(i) E(Y |X) = E(Y ).

(ii) The events {X ∈ A} and {Y ∈ B} are independent.

P (X ∈ A, Y ∈ B) = P (X ∈ A)P (Y ∈ B), ∀A ⊂ R, B ⊂ R.

(iii) E(g(X)h(Y )) = E(g(X))E(h(Y ). In particular, E(XY ) = E(X)E(Y ).

(iv) In addition, we have MX,Y (t, s) = E(etX+sY^ ) = MX (t)MY (s). And

MX+Y (t) = E(et(X+Y^ )) = MX (t)MY (t).

If it is easy to identify the right-hand side as the MGF of some standard distribution, then the sum of two independent variables is easy to find.

Example 1. binomial+binomial.

Example 2. Poisson+Poisson.

Example 3. negative binomial+negative binomial.

Example 4. normal+normal.

Example 5. gamma+gamma.

Theorem. If fX,Y (x, y) is the joint density of (X, Y ), then

fU,V (u, v) = fX,Y (h 1 (u, v), h 2 (u, v))| det(J)|.

Proof follows from change of variable rules for integration — omitted.

Example. Sum and difference of independent normals.

Example. Polar transform of independent normals.

Example. Sum and ratio of independent gammas.

Example. Ratio of two standard normals.

Many-to-One Transformation: Assume (X, Y ) takes value from A = A 0 ∪ A 1 ∪ · · · ∪ Ak, where P ((X, Y ) ∈ A 0 ) = 0. Also U = g 1 i(X, Y ), V = g 2 i(X, Y ) is one-to-one transformation from Ai to B, for i = 1, · · · , k. Then

fU,V (u, v) =

∑^ k

i=

fX,Y (h 1 i(u, v), h 2 i (u, v))| det(Ji)|,

Example Poisson-gamma.

Example chi square-gamma.

Example binomial-beta.

Example binomial-Poisson-gamma (optional).