Quiz 7 Solution

The random variable X has range SX=[0,∞) with probability density function

fX(x)={exp⁡(−x),x≥00,x<0.

Let Y=1−2exp⁡(−X).  Then Y is itself a random variable.  Note that, since 0<exp⁡(−x)≤1 when x≥0, the random variable Y has range SY=[−1,1).

The first three questions pertain to the random variable X.

1.  True or false?  X is an exponential random variable.

Answer:  true.  By definition an exponential random variable Z has a pdf of the form

fZ(z)={λexp⁡(−λz),z≥0,0,z<0.

for some parameter λ>0.  The pdf of X has this form for λ=1.

2.  True or false?  X is a Gaussian random variable.

Answer: false.  By definition a Gaussian random variable Z has a range SZ=R, and the pdf of Z, given as

fZ(z)=1σ2πexp⁡(−(z−m)22σ2)

is nonzero for all z.   This does not match the pdf of X.

3.  True or false?  X is a gamma random variable.

Answer: true.  By definition a gamma random variable Z has a pdf of the form

fZ(z)={λΓ(α)(λx)α−1exp⁡(−λx),x≥00,x<0

for parameters α>0 and λ>0, where Γ(x) is the gamma function.  Setting α=1 and λ=1 gives the pdf for X, since Γ(1)=0!=1.  (In general, the exponential pdf is the special case of the gamma pdf obtained when α=1.)

The last four questions pertain to the random variable Y.

4.  Determine E(Y).

Answer:  E(Y)=E(1−2exp⁡(−X))

=1−2E(exp⁡(−X))

=1−2∫−∞∞exp⁡(−x)fX(x)dx

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

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

=1−2(12)

=0.

5.  Determine E(Y2).

Answer:  E(Y2)=E((1−2exp⁡(−X))2)

=∫0∞(1−4exp⁡(−x)+4exp⁡(−2x))exp⁡(−x)dx

=∫0∞(exp⁡(−x)−4exp⁡(−2x)+4exp⁡(−3x))dx

=1−42+43

=13.

6.  Determine Pr(Y>12).

Answer:  Note the FX(x)=Pr(X≤x)=1−exp⁡(−x) when x≥0.  We have

Pr(Y>12)=Pr(1−2exp⁡(−X)≥12)

=Pr(−2exp⁡(−X)≥−12)

=Pr(exp⁡(−X)≤14)

=Pr(−X≤ln⁡(1/4))

=Pr(X≥ln⁡(1/4))

=1−Pr(X<ln⁡(1/4))

=1−FX(ln⁡(1/4))

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

=14.

7.  True or false?  Y is uniformly distributed over SY.

Answer:  true.

For y∈SY, we have

Pr(Y≤y)=Pr(1−2exp⁡(−X)≤y)

=Pr(2exp⁡(−X)≥1−y)

=Pr(−X≥ln⁡(1−y2))

=Pr(X≤−ln⁡(1−y2))

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

=1−1−y2

=y+12

It follows that fY(y)=ddyFY(y)=12 for all y∈SY.   Since the pdf is a constant, Y is indeed uniformly distributed.