4.2.6 Solved Problems:
Special Continuous Distributions
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 Y∼Poisson(λt). Suppose that the store opens at time t=0. Let X be the arrival time of the first customer. Show that X∼Exponential(λ).
- 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)=1−P(X>x)=1−e−λ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 Y∼Geometric(p), where p=λΔ. Define X=YΔ, where λ,Δ>0. Prove that for any x∈(0,∞), we have limΔ→0FX(x)=1−e−λx.
- Solution
-
If Y∼Geometric(p) and q=1−p, then
P(Y≤n) =∑nk=1pqk−1 =p.1−qn1−q=1−(1−p)n.
Then for any y∈(0,∞), we can write P(Y≤y)=1−(1−p)⌊y⌋, where ⌊y⌋ is the largest integer less than or equal to y. Now, since X=YΔ, we haveFX(x) =P(X≤x) =P(Y≤xΔ) =1−(1−p)⌊xΔ⌋=1−(1−λΔ)⌊xΔ⌋.
Now, we havelimΔ→0FX(x) =limΔ→01−(1−λΔ)⌊xΔ⌋ =1−limΔ→0(1−λΔ)⌊xΔ⌋ =1−e−λx.
The last equality holds because xΔ−1≤⌊xΔ⌋≤xΔ, and we know limΔ→0+(1−λΔ)1Δ=e−λ.
-
Problem
Let U∼Uniform(0,1) and X=−ln(1−U). Show that X∼Exponential(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(X≤x) =P(−ln(1−U)≤x) =P(11−U≤ex) =P(U≤1−e−x)=1−e−x,
which is the CDF of an Exponential(1) random variable.
-
Problem
Let X∼N(2,4) and Y=3−2X.
- Find P(X>1).
- Find P(−2<Y<1).
- Find P(X>2|Y<1).
- Solution
-
- Find P(X>1): We have μX=2 and σX=2. Thus,
P(X>1) =1−Φ(1−22) =1−Φ(−0.5)=Φ(0.5)=0.6915
- Find P(−2<Y<1): Since Y=3−2X, using Theorem 4.3, we have Y∼N(−1,16).
Therefore,
P(−2<Y<1) =Φ(1−(−1)4)−Φ((−2)−(−1)4) =Φ(0.5)−Φ(−0.25)=0.29
- Find P(X>2|Y<1):
P(X>2|Y<1) =P(X>2|3−2X<1) =P(X>2|X>1) =P(X>2,X>1)P(X>1) =P(X>2)P(X>1) =1−Φ(2−22)1−Φ(1−22) =1−Φ(0)1−Φ(−0.5) ≈0.72
- Find P(X>1): We have μX=2 and σX=2. Thus,
-
Problem
Let X∼N(0,σ2). Find E|X|
- Solution
-
We can write X=σZ, where Z∼N(0,1). Thus, E|X|=σE|Z|. We have
E|Z| =1√2π∫∞−∞|t|e−t22dt =2√2π∫∞0|t|e−t22dt(integral of an even function) =√2π∫∞0te−t22dt =√2π[−e−t22]∞0=√2π
Thus, we conclude E|X|=σE|Z|=σ√2π.
-
Problem
Show that the constant in the normal distribution must be 1√2π. That is, show that I=∫∞−∞e−x22dx=√2π. Hint: Write I2 as a double integral in polar coordinates.
- Solution
-
Let I=∫∞−∞e−x22dx. We show that I2=2π. To see this, note
I2 =∫∞−∞e−x22dx∫∞−∞e−y22dy =∫∞−∞∫∞−∞e−x2+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 haveI2 =∫∞−∞∫∞−∞e−x2+y22dxdy =∫∞0∫2π0e−r22rdθdr =2π∫∞0re−r22dr =2π[−e−r22]∞0=2π.
-
Problem
Let Z∼N(0,1). Prove for all x≥0, 1√2πxx2+1e−x22≤P(Z≥x)≤1√2π1xe−x22.
- Solution
-
To show the upper bound, we can write
P(Z≥x) =1√2π∫∞xe−u22du ≤1√2π∫∞xuxe−u22du(since u≥x>0) =1√2π1x[−e−u22]∞x =1√2π1xe−x22.
To show the lower bound, let Q(x)=P(Z≥x), and h(x)=Q(x)−1√2πxx2+1e−x22, for all x≥0. It suffices to show that h(x)≥0, for all x≥0. To see this, note that the function h has the following properties- h(0)=12;
- limx→∞h(x)=0;
- h′(x)=−2√2π(e−x22(x2+1)2)<0, for all x≥0.
-
Problem
Let X∼Gamma(α,λ), where α,λ>0. Find EX, and Var(X).
- Solution
-
To find EX we can write EX=∫∞0xfX(x)dx=∫∞0x⋅λαΓαxα−1e−λxdx=λαΓ(α)∫∞0x⋅xα−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=λαΓ(α)∫∞0x2⋅xα−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.
-