Docsity

Lecture 8: Joint Probability Distributions, Exercises of Probability and Statistics

Partial preview of the text

Download Lecture 8: Joint Probability Distributions and more Exercises Probability and Statistics in PDF only on Docsity!

Lecture 8: Joint Probability Distributions

MSU-STT-351-Sum-19B

Joint Probabilty Distributions

Earlier, we discussed how to display and summarize the data x 1 ,... , xn on

a variable X. Also, we discussed how to describe the population

distribution of a random variable X through pmf or pdf. We now extend

these ideas to the case where X = (X 1 , X 2 ,... , Xp ) is a random vector and

we will focus mainly for the case p = 2.

First, we introduce the joint distribution for two random variables or

characteristics X and Y.

1. Discrete Case:

Let X and Y be two discrete random variables. For example, X=number of courses taken by a student. Y=number of hours spent (in a day) for these courses.

Our aim is to describe the joint distribution of X and Y.

Example 1: The joint distribution of p(x, y) of X (number of cars) and Y

(the number of buses) per signal cycle at a traffic signal is given by

y p(x,y) 0 1 2

x

(a) Find P(X = Y ).

(b) Find the marginal distribution of X and Y. (c) Suppose a bus occupies three vehicle spaces and a car occupies just one. What is the mean number of vehicle spaces occupied during a signal

cycles? That is, find the mean or expected value of h(X, Y ) = X + 3 Y.

Solution:

(a) The number of cars equals the number of buses if X = Y. Hence,

P(X = Y ) = p( 0 , 0 ) + p( 1 , 1 ) + p( 2 , 2 ) =. 025 +. 030 +. 050 =. 105.

That is, about 10. 5 % of the time.

(b) Adding the row values yields the marginal distribution of the x values:

x 0 1 2 3 4 5 p(x): 0.05 0.1 0.25 0.3 0.2 0.

So, the mean number of cars is μx = E(X) is

μx = 0 ( 0. 05 ) + 1 (. 10 ) + 2 (. 25 ) + 3 (. 30 ) + 4 (. 20 ) + 5 (. 10 ) = 2. 8.

2. Continuous Case

Bivariate Continuous Distributions

Definition: Let X and Y be continuous variables. The joint probability

density of X and Y, denoted by f (x, y), satisfies

(i) f (x, y) ≥ 0

(ii)

f (x, y)dxdy = 1.

The graph (x, y, f (x, y)) is a surface in 3-dimensional space. The second

condition shows the volume of this density surface is 1.

(^0 0). 2

  1. (^4 0). (^6 0). 8 1 0

  2. 5

1 0

2

4 μ

− (^6) − (^4) − 2 (^0 2 )

0

5 0

  1. 5

1

μ

Example 1 (Eg. 5.3) Let X and Y have joint density

f (x, y) =

5 (x^ +^ y

2 ), 0 ≤ x ≤ 1 , 0 ≤ y ≤ 1

0 , otherwise.

Then,

P( 0 ≤ X ≤

, 0 ≤ Y ≤

0

0

(x + y^2 )dxdy

0

[^

x^2 2

+ y^2 x]

(^14) 0

dy

0

y^2

dy

Example 2 (Ex.16)

Let X 1 , X 2 and X 3 have density

f (x 1 , x 2 , x 3 ) =

k (x 1 x 2 ( 1 − x 3 )), 0 ≤ xi ≤ 1 ; x 1 + x 2 + x 3 ≤ 1

0 , otherwise.

(a) Compute the joint marginal density function of X 1 and X 3 alone.

(b) What is P(X 1 + X 3 ≤. 5 )?

(c) Compute the marginal pdf of X 1 alone.

Solution: It can be seen that the value of k = 144.

(a) : f (x 1 , x 3 ) =

−∞

f (x 1 , x 2 , x 3 )dx 2

∫ 1 −x 1 −x 3

0

kx 1 x 2 ( 1 − x 3 )dx 2

= 72 x 1 ( 1 − x 3 )( 1 − x 1 − x 3 )^2 , 0 ≤ x 1 , 0 ≤ x 3 , x 1 + x 3 ≤ 1.

Conditional Distributions

(i) Let X and Y be continuous rvs with with the joint pdf f (x, y) and the

marginal pdfs fX (x) and fY (y). Then the conditional probability density of

Y , given X = x, is

fY |X (y|x) = f (y|x) =

f (x, y)

fX (x)

, − ∞ ≤ y ≤ ∞,

provided that fX (x) > 0. Similarly, fX|Y (x|y) is defined.

(ii) Let X and Y be discrete rvs with joint pmf p(x, y) and marginal pmfs

pX (x) and pY (y). Then the conditional pmf of Y given X = x is

pY |X (y|x) = p(y|x) =

p(x, y)

pX (x)

provided that pX (x) > 0. Similarly, p(x|y) is defined.

Example 3 (Ex. 18) Let X denote the number of hoses being used on the self-service island at particular time, and let Y denote the number of hoses on the full-service island in use at that time, in a service station. The joint pmf of X and Y is given in the following table:

y p(x,y) 0 1 2

x

Solution

(a) pY |X (y| 1 ) results from dividing each entry in X = 1 row of the joint

probability table by px ( 1 ) = 0. 34 , we obtain

py|x ( 0 | 1 ) =

py|x ( 1 | 1 ) =

py|x ( 2 | 1 ) =

(b) To obtain pY |X (y| 2 ), divide each entry in the y = 2 row by pX ( 2 ) = 0. 5 :

y: 0 1 2

pY |X (y| 2 ): 0.12 0.28 0.

(c) P(Y ≤ 1 |x = 2 ) = pY |X ( 0 | 2 ) + pY |X ( 1 | 2 ) = 0. 12 + 0. 28 = 0. 40

(d) pX|Y (x| 2 ) results from dividing each entry in the y = 2 column by

pY ( 2 ) = 0. 38 :

x: 0 1 2

pX|Y (x| 2 ): 0.0526 0.1579 0.

Solution:

(a) fY |X (y|x) =

f (x, y)

fX (x)

k (x^2 + y^2 )

10 kx^2 + 0. 05

, 20 ≤ y ≤ 30.

fX|Y (x|y) =

k (x^2 + y^2 )

10 ky^2 + 0. 05

, 20 ≤ x ≤ 30.

k =

(b) : P(Y ≥ 25 |X = 22 ) =

25

fY |X (y| 22 )dy

25

k (( 22 )^2 + y^2 )

10 k ( 22 )^2 + 0. 05

dy

Also,

P(Y ≥ 25 ) =

25

fY (y)dy =

25

( 10 ky^2 + 0. 05 )dy = 0. 75 ;

(c) : E(Y |X = 22 ) =

−∞

y.fY |X (y| 22 )dy

20

y

k (( 22 )^2 + y^2 )

10 k ( 22 )^2 + 0. 05

dy

Note also that

E(Y 2 |X = 22 ) =

20

y^2

k (( 22 )^2 + y^2 )

10 k ( 22 )^2 + 0. 05

dy = 652. 028640.

Var(Y |X = 22 ) = E(Y 2 |X = 22 ) − [E(Y |X = 22 )]^2 = 8. 243976.