Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

Exercise 4.1Z: Calculation of Moments

From LNTwww

Exponential PDF (top),
Laplace PDF (bottom)

The upper graph shows the probability density function  (PDF)  of the  exponential distribution:

fX(x)={AXeλxAX/20f¨urx>0,f¨urx=0,f¨urx<0.

Drawn below is the PDF of the  Laplace distribution, which can be specified for all  y–values as follows:

fY(y)=AYeλ|y|.

The two continuous random variables  X  and  Y  are to be compared with respect to the following characteristics:

  • The linear mean  m1  (first order moment),
  • the second order moment   ⇒   m2,
  • the variance  σ2=m2m21   ⇒   Steiner's theorem,
  • the standard deviation  σ.





Hints:

  • The task belongs to the chapter  Differential Entropy.
  • Useful hints for solving this task and further information on continuous random variables can be found in the third chapter "Continuous Random Variables" of the book  Theory of Stochastic Signals.
  • Also given are the two indefinite integrals:
xeλxdx=eλx(λ)2(λx1),
x2eλxdx=eλx(x2λ2xλ2+2λ3).


Questions

1

What is the maximum value  AX  of the PDF  fX(x)?

AX=λ/2,
AX=λ,
AX=1/λ.

2

What is the maximum value  AY  of the PDF  fY(y)?

AY=λ/2,
AY=λ,
AY=1/λ.

3

Is there an argument  z, such that  fX(z)=fY(z) ?

Yes.
No.

4

Which statements are true about the characteristics of the exponential distribution?

The linear mean is  m1=1/λ.
The second order moment is  m2=2/λ2.
The variance is  σ2=1/λ2.

5

Which statements are true about the characteristics of the Laplace distribution?

The linear mean is  m1=1/λ.
The second order moment is  m2=2/λ2.
The variance is  σ2=1/λ2.

6

With what probabilities does the random variable  (X  or   Y)  differ from the respective mean in magnitude by more than the dispersion  σ?

Exponential:Pr(|XmX|>σX) = 

Laplace:Pr(|YmY|>σY) = 


Solution

(1)  Proposed solution 2 is correct:

  • The area under the PDF must always be  1 .  It follows for the exponential distribution:
AX0eλxdx=AX(1/λ)[eλx]0=AX(1/λ)!=1AX=λ.


(2)  Proposed solution 1 is correct:

  • From the graph on the information page, we can see that the height  AY  of the Laplace PDF is only half as large as the maximum of the exponential PDF:
AY=λ/2.


(3)  Correct is YES,  although for  z0  always  fX(z)=fY(z).   Let us now consider the special case  z=0:

  • For the Laplace PDF:  fY(y=0)=λ/2.
  • For the exponential PDF,  the left-hand and right-hand limits differ for  x0.
  • The PDF value at point  x=0  is the average of these two limits:
fX(0)=12[0+λ]=λ/2=fY(0).


(4)  All proposed solutions are correct. 

For the exponential distribution, the  k–th order moment is generally calculated to be

mk=k!λkm1=1λ,m2=2λ2,m3=6λ3, ...

Thus one obtains for

  • the linear mean (first order moment):
m1=λ0xeλxdx=λ[eλx(λ)2(λx1)]0=1/λ,
  • the second order moment:
m2=λ0x2eλxdx=λ[eλx(x2λ2xλ2+2λ3)]0=2/λ2.

From this, using Steiner's theorem for the variance of the exponential distribution, we get:

σ2=m2m21=2/λ21/λ2=1/λ2σ=1/λ.


To illustrate the sample solution to problem  (5)

(5)  Only the proposed solution 2 is correct:

  • The second moment of  "Laplace"  is the same as for the exponential distribution because of the symmetric PDF:
m2=λ2y2eλ|y|dy=λ0y2eλydy=2/λ2.
  • In contrast, the mean of the Laplace distribution is  m1=0.
  • Thus, the variance of the Laplace distribution is twice that of the exponential distribution:
σ2=m2m21=2/λ20=2/λ2σ=2/λ.


(6)  For the exponential distribution, according to the upper graph with  mX=σX=1/λ:

Pr(|XmX|>σX)=Pr(X>2/λ)=λ2/λeλxdx=[eλx]2/λ=e20.135_.

For the Laplace distribution (lower graph),  with  mY=0  and  σY=2/λ we obtain::

Pr(|YmY|>σY)=2Pr(Y>2/λ)=2λ22/λeλxdx
Pr(|YmY|>σY)=[eλx]2/λ=e20.243_.

A comparison of the shaded areas in the accompanying graph qualitatively confirms the result:
⇒   The blue areas together are slightly larger than the red area.