chapter 5 jointly distributed random variables. joint probability mass function let x and y be two...

46
CHAPTER 5 Jointly Distributed Random Variables

Upload: bennett-potter

Post on 11-Jan-2016

215 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

CHAPTER 5

Jointly Distributed Random Variables

Page 2: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

Joint Probability Mass Function

Let X and Y be two discrete rv’s defined on the sample space of an experiment. The joint probability mass function p(x, y) is defined for each pair of numbers (x, y) by

( , ) ( and )p x y P X x Y y

Let A be the set consisting of pairs of (x, y) values, then

,

, ( , )x y A

P X Y A p x y

Page 3: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

Marginal Probability Mass Functions

The marginal probability mass functions of X and Y, denoted pX(x) and pY(y) are given by

( ) ( , ) ( ) ( , )X Yy x

p x p x y p y p x y

Page 4: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

– the height and weight of a person;

– the temperature and rainfall of a day;

– the two coordinates of a needle randomly dropped on a table;

– the number of 1s and the number of 6s in 10 rolls of a die.

Example. We are interested in the effect of seat belt use on saving lives. If we consider the following random variables X1 and X2 defined as follows:

X1 =0 if child survived

X1 =1 if child did not survive

And X2 = 0 if no belt

X2 = 1 if adult belt used

X2 = 2 if child seat used

Page 5: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

The following table represents the joint probability distribution of X1

and X2 . In general we write P(X1 = x1 , X2 = x2 ) = p(x1 , x2) and call p(x1 , x2) the joint probability function of (X1 , X2).

X1 0 1 -------------------------------------- 0 | 0.38 0.17 | 0.55 X2 1 | 0.14 0.02 | 0.16 2 | 0.24 0.05 | 0.29 ------------------------------------------ 0.76 0.24

Page 6: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

Probability that a child will both survive and be in a child seta when involved in an accident is:

P(X1 = 0, X2 = 2) = 0.24

Probability that a child will be in a child seat:

P(X2 = 2) = P(X1 = 0, X2 = 2) + P(X1 =1, X2 = 2) = 0.24+0.05= 0.29

Page 7: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

Joint Probability Density Function

Let X and Y be continuous rv’s. Then f (x, y) is a joint probability density function for X and Y if for any two-dimensional set A

, ( , )A

P X Y A f x y dxdy If A is the two-dimensional rectangle

, ( , )b d

a c

P X Y A f x y dydx

( , ) : , ,x y a x b c y d

Page 8: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

Marginal Probability Density Functions

The marginal probability density functions of X and Y, denoted fX(x) and fY(y), are given by

( ) ( , ) for

( ) ( , ) for

X

Y

f x f x y dy x

f y f x y dx y

Page 9: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment
Page 10: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment
Page 11: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

Independent Random Variables

Two random variables X and Y are said to be independent if for every pair of x and y values

( , ) ( ) ( )X Yp x y p x p y

when X and Y are discrete or

( , ) ( ) ( )X Yf x y f x f y when X and Y are continuous. If the conditions are not satisfied for all (x, y) then X and Y are dependent.

Page 12: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

Conditional Probability Function

Let X and Y be two continuous rv’s with joint pdf f (x, y) and marginal X pdf fX(x). Then for any X value x for which fX(x) > 0, the conditional probability density function of Y given that X = x is

|( , )

( | )( )Y X

X

f x yf y x y

f x

If X and Y are discrete, replacing pdf’s by pmf’s gives the conditional probability mass function of Y when X = x.

Page 13: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment
Page 14: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment
Page 15: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

1) Find the marginal density functions for X and Y. 2) Are X and Y independent? 3) Find P(X > 1/2 | Y =1/4).

otherwise

xxdyxf

x

0

10),1(22)(

1

01

otherwise

yydxyf

y

0

10),1(22)(

1

02

Let X and Y denote the proportion of two different chemicals in a sample mixture of chemicals used as an insecticide. Suppose X and Y have joint probability density given by:

(Note that X + Y must be at most unity since the random variables denote proportions within the same sample).

elsewhere

yxyxyxf

,0

10,10,10,2),(

Page 16: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

2) f1(x) f2(y)=2(1-x)* 2(1-y) ≠ 2 = f(x,y), for 0 ≤ x ≤ 1-y. Therefore X and Y are not independent.

3)

3

2

)41

1(2

2

)41

(

)41

,()

4

1|(

4

1|

2

1 1

2/1

1

2/1

1

2/1

dx

yf

yxfdxyxfYXP

Page 17: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

5.2 Expected Values, Covariance, and Correlation

Let X and Y be jointly distributed rv’s with pmf p(x, y) or pdf f (x, y) according to whether the variables are discrete or continuous. Then the expected value of a function h(X, Y), denoted E[h(X, Y)] or

is( , ) ( , )

( , ) ( , )

x y

h x y p x y

h x y f x y dxdy

discrete

continuous

( , )h X Y

Page 18: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

Covariance

The covariance between two rv’s X and Y is

( )( ) ( , )

( )( ) ( , )

X Yx y

X Y

x y p x y

x y f x y dxdy

discrete

continuous

Cov , X YX Y E X Y

Page 19: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

Short-cut Formula for Covariance

Cov , X YX Y E XY

Page 20: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

Cov(X, Y) = 0 does not imply X and Y are independent!!

Page 21: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment
Page 22: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

Correlation Proposition

1. If a and c are either both positive or both negative, Corr(aX + b, cY + d) = Corr(X, Y)

2. For any two rv’s X and Y, 1 Corr( , ) 1.X Y

Page 23: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

Correlation Proposition

1. If X and Y are independent, then but does not imply independence.

2. for some numbers a and b with

0, 0

1 or 1 iff Y aX b 0.a

Page 24: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment
Page 25: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment
Page 26: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment
Page 27: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment
Page 28: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment
Page 29: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment
Page 30: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment
Page 31: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment
Page 32: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

The proportions X and Y of two chemicals found in samples of an insecticide have the joint probability density function

The random variable Z=X + Y denotes the proportion of the insecticide due to both chemicals combined.1)Find E(Z) and V(Z)2) Find the correlation between X and Y and interpret its meaning.

elsewhere

yxyxyxf

,0

10,10,10,2),(

Page 33: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

1

0

1

0

1

0

2

3

2)1(2)()(

x

dxxdydxyxYXE

2

1

4

3

3

2|)

4(

3

2)1(

3

22)(])[( 1

0

43

1

0

1

0

1

0

22

xxdxxdydxyxYXE

x

1

1

3

2

2

1)()()(

222

ZEZEZV

Page 34: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

6

1

12

12

4

1

3

12

4322)1()()(

3

1

6

12

3

1

2

12

3222)1(2)()(

10),1(22),()(

10),1(22),()(

1

0

431

0

1

0

32222

1

0

321

0

1

0

2

1

0

1

0

1

0

1

0

zzdzzzdzzzYEXE

zzdzzzdzzzYEXE

YYdXdxYXfYf

XXdYdyYXfXf

Y Y

X X

Page 35: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

2

1

181

91

121

181

31

121

12

1

4

1

3

2

2

1

43

2

22)1(

)(22)(

18

1

9

1

6

1

3

1

6

1))(()()()(

2

2

1

0

4321

0

321

0

2

1

0

1

0

1

0

1

0

1

0

1

0

2

222

xxxdxxxxdxxx

dxyxydydxxdxdyxyXYE

XEXEYVarXVar

xx x

Page 36: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment
Page 37: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

A statistic is any quantity whose value can be calculated from sample data. Prior to obtaining data, there is uncertainty as to what value of any particular statistic will result. A statistic is a random variable denoted by an uppercase letter; a lowercase letter is used to represent the calculated or observed value of the statistic.

Page 38: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

Random Samples

The rv’s X1,…,Xn are said to form a (simple

random sample of size n if

• The Xi’s are independent rv’s.

• Every Xi has the same probability distribution.

Page 39: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

Simulation ExperimentsThe following characteristics must be specified:

1. The statistic of interest.

2. The population distribution.

3. The sample size n.

4. The number of replications k.

Page 40: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

Using the Sample Mean

Let X1,…, Xn be a random sample from a distribution with mean value and standard deviation Then

.

22

1.

2.

X

X

E X

V X n

In addition, with To = X1 +…+ Xn, 2, , and .

oo o TE T n V T n n

Page 41: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

Normal Population Distribution

Let X1,…, Xn be a random sample from a normal distribution with mean value and standard deviation Then for any n, is normally distributed, as is To.

. X

Page 42: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

The Central Limit Theorem

Let X1,…, Xn be a random sample from a distribution with mean value and variance Then if n sufficiently large, has approximately a normal distribution with

X

2.

22 and ,X X n and To also has

approximately a normal distribution with2, .

o oT Tn n n, the better the approximation.

The larger the value of

Page 43: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

The Central Limit Theorem

Population distribution

small to moderate nX

large nX

Page 44: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment

Rule of Thumb

If n > 30, the Central Limit Theorem can be used.

Page 45: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment
Page 46: CHAPTER 5 Jointly Distributed Random Variables. Joint Probability Mass Function Let X and Y be two discrete rv’s defined on the sample space of an experiment