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−λt0!(λt)0
=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
Δ→0limFX(x)=1−e−λx.
Solution
If Y∼Geometric(p) and q=1−p, then
P(Y≤n)
=∑k=1npqk−1
=p.1−q1−qn=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 have
FX(x)
=P(X≤x)
=P(Y≤Δx)
=1−(1−p)⌊Δx⌋=1−(1−λΔ)⌊Δx⌋.
Now, we have
limΔ→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
Δ→0+lim(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(1−U1≤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−Φ(21−2)
=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)
=Φ(41−(−1))−Φ(4(−2)−(−1))
=Φ(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>1)P(X>2,X>1)
=P(X>1)P(X>2)
=1−Φ(21−2)1−Φ(22−2)
=1−Φ(−0.5)1−Φ(0)
≈0.72
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∣
=2π1∫−∞∞∣t∣e−2t2dt
=2π2∫0∞∣t∣e−2t2dt(integral of an even function)
=π2∫0∞te−2t2dt
=π2[−e−2t2]0∞=π2
Thus, we conclude E∣X∣=σE∣Z∣=σπ2.
Problem
Show that the constant in the normal distribution must be 2π1. That is, show that
I=∫−∞∞e−2x2dx=2π.
Hint: Write I2 as a double integral in polar coordinates.
Solution
Let I=∫−∞∞e−2x2dx. We show that I2=2π. To see this, note
I2
=∫−∞∞e−2x2dx∫−∞∞e−2y2dy
=∫−∞∞∫−∞∞e−2x2+y2dxdy.
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
=∫−∞∞∫−∞∞e−2x2+y2dxdy
=∫0∞∫02πe−2r2rdθdr
=2π∫0∞re−2r2dr
=2π[−e−2r2]0∞=2π.
Problem
Let Z∼N(0,1). Prove for all x≥0,
2π1x2+1xe−2x2≤P(Z≥x)≤2π1x1e−2x2.
Solution
To show the upper bound, we can write
P(Z≥x)
=2π1∫x∞e−2u2du
$\leq \frac{1}{\sqrt{2 \pi}} \int_{x}^{\infty} \frac{u}{x} e^{-\frac{u^2}{2}} du \hspace{10pt} (\textrm{since u≥x>0})$
=2π1x1[−e−2u2]x∞
=2π1x1e−2x2.
To show the lower bound, let Q(x)=P(Z≥x), and
h(x)=Q(x)−2π1x2+1xe−2x2, 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)=21;
x→∞limh(x)=0;
h′(x)=−2π2((x2+1)2e−2x2)<0, for all x≥0.Therefore, h(x) is a strictly decreasing function that starts at h(0)=21 and
decreases as x increases. It approaches $0$ as x goes to infinity. We conclude that
h(x)≥0, for all x≥0.
Problem
Let X∼Gamma(α,λ), where α,λ>0. Find EX, and Var(X).
Solution
To find EX we can write
EX=∫0∞xfX(x)dx=∫0∞x⋅Γαλαxα−1e−λxdx=Γ(α)λα∫0∞x⋅xα−1e−λxdx=Γ(α)λα∫0∞xαe−λxdx=Γ(α)λαλα+1Γ(α+1)=λΓ(α)αΓ(α)=λα.(using Property 2 of the gamma function)(using Property 3 of the gamma function)
Similarly, we can find EX2:
EX2=∫0∞x2dx=∫0∞x2⋅Γ(α)λαxα−1e−λxdx=Γ(α)λα∫0∞x2⋅xα−1e−λxdx=Γ(α)λα∫0∞xα+1e−λxdx=Γ(α)λαλα+2Γ(α+2)=λ2Γ(α)(α+1)Γ(α+1)=λ2Γ(α)(α+1)αΓ(α)=λ2α(α+1).(using Property 2 of the gamma function)(using Property 3 of the gamma function)(using Property 3 of the gamma function)