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


4.2.6 Solved Problems:
Special Continuous Distributions

Problem

Suppose the number of customers arriving at a store obeys a Poisson distribution with an average of λ customers per unit time. That is, if Y is the number of customers arriving in an interval of length t, then YPoisson(λt). Suppose that the store opens at time t=0. Let X be the arrival time of the first customer. Show that XExponential(λ).

  • Solution
    • We first find P(X>t):

      P(X>t) =P(No arrival in [0,t])
      =eλt(λt)00!
      =eλt.

      Thus, the CDF of X for x>0 is given by FX(x)=1P(X>x)=1eλx, which is the CDF of Exponential(λ). Note that by the same argument, the time between the first and second customer also has Exponential(λ) distribution. In general, the time between the k'th and k+1'th customer is Exponential(λ).



Problem (Exponential as the limit of Geometric)

Let YGeometric(p), where p=λΔ. Define X=YΔ, where λ,Δ>0. Prove that for any x(0,), we have limΔ0FX(x)=1eλx.

  • Solution
    • If YGeometric(p) and q=1p, then

      P(Yn) =nk=1pqk1
      =p.1qn1q=1(1p)n.

      Then for any y(0,), we can write P(Yy)=1(1p)y, where y is the largest integer less than or equal to y. Now, since X=YΔ, we have
      FX(x) =P(Xx)
      =P(YxΔ)
      =1(1p)xΔ=1(1λΔ)xΔ.

      Now, we have
      limΔ0FX(x) =limΔ01(1λΔ)xΔ
      =1limΔ0(1λΔ)xΔ
      =1eλx.

      The last equality holds because xΔ1xΔxΔ, and we know limΔ0+(1λΔ)1Δ=eλ.



Problem

Let UUniform(0,1) and X=ln(1U). Show that XExponential(1).

  • Solution
    • First note that since RU=(0,1), RX=(0,). We will find the CDF of X. For x(0,), we have

      FX(x) =P(Xx)
      =P(ln(1U)x)
      =P(11Uex)
      =P(U1ex)=1ex,

      which is the CDF of an Exponential(1) random variable.



Problem

Let XN(2,4) and Y=32X.

  1. Find P(X>1).
  2. Find P(2<Y<1).
  3. Find P(X>2|Y<1).

  • Solution
      1. Find P(X>1): We have μX=2 and σX=2. Thus,
        P(X>1) =1Φ(122)
        =1Φ(0.5)=Φ(0.5)=0.6915

      2. Find P(2<Y<1): Since Y=32X, using Theorem 4.3, we have YN(1,16). Therefore,
        P(2<Y<1) =Φ(1(1)4)Φ((2)(1)4)
        =Φ(0.5)Φ(0.25)=0.29

      3. Find P(X>2|Y<1):
        P(X>2|Y<1) =P(X>2|32X<1)
        =P(X>2|X>1)
        =P(X>2,X>1)P(X>1)
        =P(X>2)P(X>1)
        =1Φ(222)1Φ(122)
        =1Φ(0)1Φ(0.5)
        0.72



Problem

Let XN(0,σ2). Find E|X|

  • Solution
    • We can write X=σZ, where ZN(0,1). Thus, E|X|=σE|Z|. We have

      E|Z| =12π|t|et22dt
      =22π0|t|et22dt(integral of an even function)
      =2π0tet22dt
      =2π[et22]0=2π

      Thus, we conclude E|X|=σE|Z|=σ2π.



Problem

Show that the constant in the normal distribution must be 12π. That is, show that I=ex22dx=2π. Hint: Write I2 as a double integral in polar coordinates.

  • Solution
    • Let I=ex22dx. We show that I2=2π. To see this, note

      I2 =ex22dxey22dy
      =ex2+y22dxdy.

      To evaluate this double integral we can switch to polar coordinates. This can be done by change of variables x=rcosθ,y=rsinθ, and dxdy=rdrdθ. In particular, we have
      I2 =ex2+y22dxdy
      =02π0er22rdθdr
      =2π0rer22dr
      =2π[er22]0=2π.



Problem

Let ZN(0,1). Prove for all x0, 12πxx2+1ex22P(Zx)12π1xex22.

  • Solution
    • To show the upper bound, we can write

      P(Zx) =12πxeu22du
      12πxuxeu22du(since ux>0)
      =12π1x[eu22]x
      =12π1xex22.

      To show the lower bound, let Q(x)=P(Zx), and h(x)=Q(x)12πxx2+1ex22, for all x0. It suffices to show that h(x)0, for all x0. To see this, note that the function h has the following properties
      1. h(0)=12;
      2. limxh(x)=0;
      3. h(x)=22π(ex22(x2+1)2)<0, for all x0.
      Therefore, h(x) is a strictly decreasing function that starts at h(0)=12 and decreases as x increases. It approaches 0 as x goes to infinity. We conclude that h(x)0, for all x0.


Problem

Let XGamma(α,λ), where α,λ>0. Find EX, and Var(X).

  • Solution
    • To find EX we can write EX=0xfX(x)dx=0xλαΓαxα1eλxdx=λαΓ(α)0xxα1eλxdx=λαΓ(α)0xαeλxdx=λαΓ(α)Γ(α+1)λα+1(using Property 2 of the gamma function)=αΓ(α)λΓ(α)(using Property 3 of the gamma function)=αλ.

      Similarly, we can find EX2: EX2=0x2dx=0x2λαΓ(α)xα1eλxdx=λαΓ(α)0x2xα1eλxdx=λαΓ(α)0xα+1eλxdx=λαΓ(α)Γ(α+2)λα+2(using Property 2 of the gamma function)=(α+1)Γ(α+1)λ2Γ(α)(using Property 3 of the gamma function)=(α+1)αΓ(α)λ2Γ(α)(using Property 3 of the gamma function)=α(α+1)λ2.

      So, we conclude Var(X)=EX2(EX)2=α(α+1)λ2α2λ2=αλ2.




The print version of the book is available on Amazon.

Book Cover


Practical uncertainty: Useful Ideas in Decision-Making, Risk, Randomness, & AI

ractical Uncertaintly Cover