0% found this document useful (0 votes)
219 views8 pages

ECE 302 Brief Solution To Homework Assignment 6: X, Y X, Y

This document provides the solution to several probability problems based on a joint probability density function (pdf) defined over the region 0 ≤ x ≤ y ≤ 3. The problems involve finding the joint and marginal pdfs, conditional pdfs, and expected values. Key results include: 1) The joint pdf fX,Y(x,y) = 2/3 for 0 ≤ x ≤ y ≤ 3 and 0 otherwise. 2) The marginal pdfs are fX(x) = 2(1-x) for 0 ≤ x ≤ 1 and fY(y) = 2y/9 for 0 ≤ y ≤ 3. 3) The conditional pdfs are fX|Y(x|y

Uploaded by

Karishma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
219 views8 pages

ECE 302 Brief Solution To Homework Assignment 6: X, Y X, Y

This document provides the solution to several probability problems based on a joint probability density function (pdf) defined over the region 0 ≤ x ≤ y ≤ 3. The problems involve finding the joint and marginal pdfs, conditional pdfs, and expected values. Key results include: 1) The joint pdf fX,Y(x,y) = 2/3 for 0 ≤ x ≤ y ≤ 3 and 0 otherwise. 2) The marginal pdfs are fX(x) = 2(1-x) for 0 ≤ x ≤ 1 and fY(y) = 2y/9 for 0 ≤ y ≤ 3. 3) The conditional pdfs are fX|Y(x|y

Uploaded by

Karishma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

ECE 302 Assignment 6 Solution March 21, 2007 1

ECE 302 Brief Solution to Homework Assignment 6


I will fill in more details later.
Note: To obtain credit for an answer, you must provide adequate justification. Also, if
it is possible to obtain a numeric answer, you should not only find an expression for the
answer, but also solve for the numeric answer.

1. Consider the joint pdf shown below:

'
6
Y fX,Y (x, y) = 2/3
(a) Write fX,Y (x, y) in our usual notation (as
3 opposed to expressing it pictorially.)


?  (b) Find FX,Y (x, y).
2 
(c) Find the marginal fX (x).



 (d) Find the marginal fY (y).
1 


(e) Find fX|Y (x|y).

 - (f) Find fY |X (y|x).
1 X
(g) Find E[X|Y = y]. (i) Find E[Y |X = x].
(h) Find E[X|Y ]. (j) Find E[Y |X].

Solution:

(a) The joint pdf shown in the figure is


(
2/3 0 x y 3
fX,Y (x, y) =
0 otherwise.

(b) We consider the full range of possibilities:


i. either x < 0 or y < 0 or both;
ii. x > y/3 and 0 y 3;
iii. 0 x y/3 and y > 3;
iv. 0 3x y 3;
v. x > 1 and y > 3.
The values of FX,Y (x, y) for these cases are
ECE 302 Assignment 6 Solution March 21, 2007 2

i. We have FX,Y (x, y) = 0 if either x < 0 or y < 0 or both.


ii. For x > y/3 and 0 y 3, we first fix u and integrate over v from v = 3u
to v = y. Then we integrate over u from u = 0 to u = y/3. Thus we
obtain
Z y/3 Z y
FX,Y (x, y) = 2/3dv du (1)
0 3u
Z y/3
2
= (y 3u)du (2)
0 3
2 3 2 y/3
 
= yu u (3)
3 2 0
!
2 1 2 3 2
= y y (4)
3 3 2(32 )
1 2
= y . (5)
9
iii. For 0 x y/3 and y > 3, we first fix u and integrate over v from 3u to
3. Then we integrate over u from u = 0 to u = x.
Z xZ 3
2
FX,Y (x, y) = dv du (6)
0 3u 3
Z x
2
= (3 3u)du (7)
0 3
  x
= 2 u u2 /2 (8)

0
2
= 2x x = x(2 x). (9)
iv. 0 3x y 3; Here we have
Z x Z y 2
FX,Y (x, y) = dv du (10)
0 3u 3
Z x 2
= (y 3u)du (11)
0 3
2  x
2
= uy 3u /2 (12)
3 0
2
= (xy 3x2 /2) (13)
3
1
= x(2y 3x). (14)
3
v. We have FX,Y (x, y) = 1 if x 1 and y 3.
Finally,




0 x < 0 or y < 0 (or both)
x(2 x) x > y/3 and 0 y 3



FX,Y (x, y) = y 2 /9 0 x y/3 and y > 3



x(2y 3x)/3 0 3x y 3
1 x > 1 and y > 3


ECE 302 Assignment 6 Solution March 21, 2007 3

(c) The marginal distribution of the random variable X is


Z Z 3 2
fX (x) = fX,Y (x, y)dy = dy = 2(1 x)
3x 3
for 0 x 1, or (
2(1 x) 0 x 1
fX (x) =
0 otherwise
(d) The marginal distribution of the random variable Y is
Z y/3 2
fY (y) = dx = 2y/9
0 3
for 0 y 3, or (
2y/9 0 y 3
fY (y) =
0 otherwise
(e) The conditional distribution of the random variable X in terms of y is given
by
fX,Y (x, y)
fX|Y (x|y) =
fY (y)
for values of y such that fY (y) > 0. Thus

2/3 3
fX|Y (x|y) = =
2y/9 y

for 0 x < y/3 < 1.


(f) The conditional distribution of the random variable Y in terms of x is given
by
fX,Y (x, y)
fY |X (y|x) =
fX (x)
for values of x such that fX (x) > 0. Thus

2/3 1
fY |X (y|x) = =
2(1 x) 3(1 x)

for 0 3x < y < 3.


(g) Expected value of X in terms of y:
y/3
3x2 3y 2
!
Z Z y/3 3
E[X|Y = y] = xfX|Y (x|y) dx = x dx = = = y/6.
0 y 2y 0 2y9

(h) E[X|Y ] = Y /6.


ECE 302 Assignment 6 Solution March 21, 2007 4

(i) Expected value of Y in terms of x:

32 9x2
!
Z 1 Z 3
E[Y |X = x] = yfY |X (y|x) dx = y dy = = 3(1+x)/2.
3x 3(1 x) 2(1 x)3

(j) E[Y |X] = 3/2(1 + X).

2. Consider dropping a dart from a height of two meters. Air currents acting on the
feathers of the dart will impose an apparently random horizontal motion in addition
to the vertical motion resulting from the action of gravity on the dart. Suppose that
fX,Y (x, y) = c(x + 1)(2y + 2) on the square with side length 2 centered at (0, 0).
Assume that the coordinates of the location at which the dart is dropped (not where
it lands) are (0, 0).

(a) Find the value of c.


Solution: We apply the axioms of probability to obtain
Z 1 Z 1
c(x + 1)(2y + 2)dydx = 8c = 1
1 1

so c = 1/8.
(b) Find the probability that the dart lands at (x, y) where both x and y are
negative.
Solution: Here we integrate the JPDF over the 3rd quadrant to obtain
1Z 0 Z 0
P [X 0, Y 0] = (x + 1)(2y + 2)dydx = 1/16
8 1 1

(c) Find the expected values of the landing coordinates.


Solution: We first show that the joint PDF is the product of the marginals,
then apply Theorem 4.27(e) to compute the expected value of X to be

1Z 1 1 2  1
E[X] = x(x + 1)dx = x /2 + x3 /3 = 1/3.
2 1 2 1

(d) Find the expected value of Y given that X = x.


Solution: Having shown that the random variables X and Y are indepen-
dent above, we can apply Theorem 4.27(e) to conclude that

E[Y |X = x] = E[Y ] = 1/3.


ECE 302 Assignment 6 Solution March 21, 2007 5

3. Suppose that a photon arrives at a photon detector at time X and a second photon
arrives at time Y . Suppose that
(
2 ey 0 x < y
fX,Y (x, y) =
0 otherwise

where is the average number of photons received per second.

(a) Suppose that the first photon arrives 3 seconds after we start watching.
i. Find the conditional PDF of the arrival time of the second photon.
Solution: The definition of the conditional PDF is that
fX,Y (x, y)
fY |X (y|x) =
fX (x)

for values of x such that fX (x) > 0. Thus we must find fX (x), which yields
Z
fX (x) = 2 ey dy = ey = ex .

x x

Then (
e(yx) 0 x < y <
fY |X (y|x) =
0 otherwise,
so (
e(3y) 3 < y <
fY |X (y|3) =
0 otherwise.
ii. Find the expected value of the arrival time of the second photon.
Solution: Here, using integration by parts, we obtain
Z
E[Y |X = 3] = ye(3y) dy (15)
3
3 3 1 y
 
= e3 e 2e (16)
3
= 3 + 1/. (17)

(b) Now suppose that the second photon arrives at 5 seconds.


i. Find the conditional PDF of the arrival time of the first photon.
Solution: First we find the marginal
Z y
fY (y) = 2 ey dx = 2 ey y.
0

Then for Y = 5, we have that


(
1/5 0 x < 5
fX|Y (x|5) =
0 otherwise
ECE 302 Assignment 6 Solution March 21, 2007 6

ii. Find the expected value of the arrival time of the first photon.
Solution: ! 5
Z 5
1 1 x2 5
E[X|Y = 5] = x dx = = .
0 5 5 2 0 2
Note that knowing that the second photon arrived at time Y = 5 doesnt
tell us anything about where in the time interval [0, 5) the first photon
arrives, in the sense that the conditional distribution is uniform on the
interval so the expected value is the midpoint of the interval.

4. Consider the joint PMF given below:

y6
4 PX,Y (x, y)
(a) Find c.
3 t4c t5c t6c
(b) Find PX (x).

2 t3c t4c t5c (c) Find PX|Y (x|y).

t2c t3c t4c (d) Find E[X|Y = 3].


1
- (e) Find FX,Y (x, y).
1 2 3 x
(f) Find Cov[X, Y ]. (h) Are X and Y uncorrelated?
(g) Are X and Y orthogonal? (i) Are X and Y independent?

Solution:

(a) One of the axioms of probability requires that


X X
PX,Y (x, y) = 1.
xSX ySY

From the diagram we see that SX = {1, 2, 3} and SY = {1, 2, 3}. Thus c(2 +
3 + 4 + 3 + 4 + 5 + 4 + 5 + 6) = 1 requires c = 1/36.
(b) To obtain PX (x) we sum over values of y SY as follows:


9/36 x=1
12/36 x = 2
X

PX (x) = PX,Y (x, y) =
ySY


15/36 x = 3
0 otherwise

Checking to make sure that this is a valid PDF, we verify that 9/36 + 12/36 +
15/36 = 36/36 = 1.
ECE 302 Assignment 6 Solution March 21, 2007 7

(c) As usual we start by finding PY (y). We could sum over x or simply note that
the symmetry of the distribution requires Py (y) = PX (x).
Then the conditional probability we seek is
1
36
(x + y) x+y
PX|Y (x|y) = 1 =
36
3(x + 2) 3(x + 2)
on the region where 1 x 3 and 1 y 3.
(d) The conditional expected value requested is obtained as follows:
X
E[X|Y = 3] = xPX|Y (x|3) (18)
xSX
!
X x+3
= x (19)
xSX 3(x + 2)
= 446/180 = 223/90. (20)
We should perform a simple check to see whether this value is plausible. We
verify that minxSX x = 1 < 223/90 = 2 + 43/90 < 3 = maxxSX x, so the
answer is plausible.
(e) The cumulative distribution function can be written as



0 x < 1 or y < 1 (or both)
2/36 1 x < 2 and 1 y < 2





5/36 2 max(x, y) < 3 and 1 min(x, y) < 2



FX,Y (x, y) = 9/36 max(x, y) > 3 and 1 min(x, y) < 2
12/36 2 min(x, y) < 3 max(x, y) < 3




21/36 2 min(x, y) < 3 and 3 max(x, y)





1 min(x, y) 3.

(f) The expected values E[X], E[Y ], and E[XY ] will be needed here so we compute
them first. The expected value of X is
X X
E[X] = xPX,Y (x, y) = 13/6.
xSX ySY

The expected value of Y is


X X
E[Y ] = yPX,Y (x, y) = 13/6.
xSX ySY

The expected value of the product XY is


X X
E[XY ] = xyPX,Y (x, y) = 14/3.
xSX ySY

Thus
Cov [X, Y ] = E[XY ] E[X]E[Y ] = 14/3 (13/6)2 = 1/36.
ECE 302 Assignment 6 Solution March 21, 2007 8

(g) By the definition of orthogonality, a pair of random variables are orthogonal if


and only if their correlation is zero. By definition of correlation, the correlation
or random variables X and Y is rX,Y = E[XY ]. We see from part (f) above
that X and Y are not orthogonal.
(h) Because the covariance is not zero, random variables X and Y are not uncor-
related, i.e. they are correlated.
(i) By definition, X and Y being independent implies that the conditional PMFs
are equal to the marginals. From parts (b) and (c) above, we see that that is
not the case; therefore, X and Y cannot be independent.

You might also like