Quiz 9 Solution

Let X and Y be independent exponentially-distributed random variables of unit mean.  Thus X and Y have marginal probability density functions

fX(x)={exp⁡(−x),x≥0;0,otherwise, and fY(y)={exp⁡(−y),y≥0;0,otherwise.

Question 1.

Determine the correlation coefficient ρX,Y of X and Y.

Answer: Since X and Y are independent, it follows that X and Y are uncorrelated.  As such, ρX,Y=0.

Question 2.

Determine Pr(max(X,Y)≤ln⁡(2)).

Answer:  We have max(X,Y)≤ln⁡(2) if and only if X≤ln⁡(2) and Y≤ln⁡(2).  This is the product form event (X,Y)∈(−∞,ln⁡(2)]×(−∞,ln⁡(2)] shown in the diagram.  We can calculate the probability of this event by integrating the joint pdf.  Since X and Y are independent, the joint pdf is the product of the marginal pdfs.

We get Pr(max(X,Y)≤ln⁡2)=∫−∞ln⁡2∫−∞ln⁡2fX,Y(x,y)dydx

=∫−∞ln⁡2∫−∞ln⁡2fX(x)fY(y)dydx  (since X and Y are independent)

=∫0ln⁡2∫0ln⁡2fX(x)fY(y)dydx  (since the marginal pdfs are zero for negative values of their argument)

=∫0ln⁡2fX(x)dx⋅∫0ln⁡2fY(y)dy

=(∫0ln⁡2exp⁡(−x)dx)2

=(−exp⁡(−x)|0ln⁡2)2

=(1−exp⁡(−ln⁡(2)))2

=(1−exp⁡(ln⁡(1/2)))2

=(1−12)2

=14.

Question 3.

Determine Pr(min(X,Y)≤ln⁡(2)).

Answer:  We have min(X,Y)≤ln⁡(2) if X≤ln⁡(2) or Y≤ln⁡(2).  This corresponds to the shaded region in the diagram below.

It is easier to integrate over the complementary region.  Thus we find

Pr(min(X,Y)≤ln⁡(2))=1−∫ln⁡2∞∫ln⁡2∞exp⁡(−x)exp⁡(−y)dxdy

=1−(−exp⁡(−x)|ln⁡2∞)2

=1−(exp⁡(−ln⁡(2))2

=1−14

=34.

Question 4.

Determine Pr(X+Y≤ln⁡(2)).

Answer:  We have X+Y≤ln⁡2 in the shaded region shown below.

Since the joint pdf is zero outside the first quadrant, we integrate only over the triangular region in the first quadrant to obtain:

Pr(X+Y≤ln⁡(2))=∫x=0ln⁡2∫y=0−x+ln⁡2exp⁡(−x)exp⁡(−y)dydx

=∫0ln⁡2exp⁡(−x)(−exp⁡(−y)|0−x+ln⁡2)dx

=∫0ln⁡2exp⁡(−x)(1−exp⁡(x−ln⁡2))dx

=∫0ln⁡2exp⁡(−x)dx−∫0ln⁡2exp⁡(−ln⁡2)dx

=(1−exp⁡(−ln⁡2))−ln⁡(2)exp⁡(−ln⁡2)

=1−12−12ln⁡(2)

=12(1−ln⁡(2))

≈0.1534264

Question 5.

Determine E((X−Y)2.

Answer:  Expanding the square we get

E((X−Y)2)=E(X2−2XY+Y2)

=E(X2)−2E(XY)+E(Y2)

=E(X2)−2E(X)E(Y)+E(Y2) (since X and Y are independent, they are uncorrelated)

=2E(X2)−2(E(X))2  (since X and Y have the same distribution)

=2VAR(X)

=2 (since X has a variance of 1).

(Why does X have a variance of 1?  An exponential random variable with parameter λ, having a pdf f(x)=λexp⁡(−λx) when x≥0, has a mean of 1λ and a variance of 1λ2.  Here λ=1.)