Q. 6.38

Question

Choose a number X at random from the set of numbers 1,2,3,4,5. Now choose a number at random from the subset no larger than X, that is, from 1 ... ,X. Call this second number Y.

(a) Find the joint mass function of X and Y.

(b) Find the conditional mass function of X given that Y = i. Do it for i = 1,2,3,4,5.

(c) Are X and Y independent? Why? 

Step-by-Step Solution

Verified
Answer

(a) The joint mass function of X and Y:

For kl:

PY=k, X=l=15l

For k>l:

PY=k, X=l=0

(b) Conditional mass function:

P(X=lY=i)=15li=1515l

(c) The random variables X and Y are not independent.

1Step 1: Given information (part a)

Number X to be chosen at random from 1,2,3,4,5

choose the second number at random from the subset 1,, X

2Step 2: Explanation (part a)

We have that X~D Unif 1,...,5

Observe that YXalmost certainly.

Also, Y1,...,5

For kl,

we have 

P(X=lY=i)=P(Y=i,X=l)P(Y=i)=15li=1515l

For k>l:

PY=k,X=l=0

3Step 1: Given information (part b)

Number X to be chosen at random from 1,2,3,4,5

Choose the second number at random from the subset 1,, X

also, Y=i where, i=1,2,3,4,5

4Step 2: Explanation (part b)

Using total probability law,

P(Y=i)=l=i5P(Y=i,X=l)=l=i515l

then for il,

We have P(X=lY=i)=P(Y=i,X=l)P(Y=i)=15li=1515l

5Step 1: Given information (part c)

Number X to be chosen at random from 1,2,3,4,5

Choose the second number at random from the subset 1,, X

6Step 2: Explanation (part c)

Since YX,

Then take any k>l.

Suppose that take k=2, l=1

thus PY=k, X=l=0

On the other hand, it is quite obvious that PY=k>0 and PX=l>0.

Thus, P(Y=k,X=l)P(Y=k)P(X=l)

Therefore, they are not independent