Exponential Distribution and Continuous Random Variables
Exponential Distribution and Continuous Random Variables
The exponential distribution models the time between events in a Poisson process, while the theory
Of continuous random variables extends probability to quantities that can take any value in an
Interval.
Board Coverage
Board
Paper
Notes
AQA
Paper 2
Continuous RVs; limited exponential coverage
Edexcel
S3, S4
Exponential distribution in S4; continuous RVs in S3
OCR (A)
Paper 2
Continuous RVs and exponential
CIE (9231)
S2
Both continuous RVs and exponential covered
:::info The exponential distribution is the continuous counterpart to the geometric distribution.
Both are memoryless. The Poisson process links all three distributions: Poisson counts events,
Exponential measures inter-arrival times, and geometric counts trials until the first event.
:::
1. Continuous Random Variables
1.1 Probability density function
Definition. A probability density function (PDF) f(x) of a continuous random variable X
Is a non-negative function satisfying:
f(x)≥0forallx,∫−∞∞f(x)dx=1
Probabilities are found by integration:
P(a≤X≤b)=∫abf(x)dx
:::caution For a continuous random variable, P(X=a)=0 for any single value a. This is why
P(a≤X≤b)=P(a<X<b) — the inequalities at individual points do not matter.
:::
1.2 Cumulative distribution function
Definition. The cumulative distribution function (CDF) is
F(x)=P(X≤x)=∫−∞xf(t)dt
Properties:
F(−∞)=0, F(∞)=1
F is non-decreasing
f(x)=F′(x) where F is differentiable
P(a<X≤b)=F(b)−F(a)
1.3 Expected value
Definition. The expected value of a continuous random variable X is
:::info The memoryless property has important practical implications. If a component with an
Exponentially distributed lifetime has been working for s hours, the remaining lifetime has the
Same distribution as a brand new component. This means exponential lifetimes imply no “wear out”
Effect — which is why it is more appropriate for electronic components than mechanical ones.
:::
2.6 Link to Poisson processes
A Poisson process with rate λ satisfies:
The number of events in an interval of length t follows Po(λt)
The time between consecutive events follows Exp(λ)
The inter-arrival times are independent and identically distributed
Proof sketch that inter-arrival times are exponential. Let T be the time until the first
Event.
P(T>t)=P(noeventsin[0,t])=P(N(t)=0)=L◆B◆e−λt(λt)0◆RB◆◆LB◆0!◆RB◆=e−λt.
So P(T≤t)=1−e−λtWhich is the CDF of Exp(λ). ■
2.7 Percentiles
For the exponential distribution:
F(x)=1−e−λx=p⟹x=−L◆B◆1◆RB◆◆LB◆λ◆RB◆ln(1−p)
The median is
x0.5=−L◆B◆ln(0.5)◆RB◆◆LB◆λ◆RB◆=L◆B◆ln2◆RB◆◆LB◆λ◆RB◆.
3. Worked Examples
3.1 Finding probabilities
Example.X∼Exp(0.5). Find P(X>3), P(1<X<4)And the median.
4. Hypothesis Testing with the Exponential Distribution
Example. The lifetime of a component is modelled by X∼Exp(λ). A sample of
10 components gives a mean lifetime of 420 hours. Test at the 5% level whether λ=0.005
Against H1:λ=0.005.
Under H0: E(X)=1/λ=200 hours. Since n is large, use the approximate normal
Distribution of Xˉ:
If you get this wrong, revise:Percentiles — Section 2.7.
Problem 2
A continuous random variable $X$ has PDF $f(x) = \dfrac{3x^2}{8}$ for $0 \leq x \leq 2$. Find $E(X)$, $\mathrm{Var}(X)$And the median.
Solution 2
$E(X) = \int_0^2 x\cdot\dfrac{3x^2}{8}\,dx = \dfrac{3}{8}\cdot\left[\dfrac{x^4}{4}\right]_0^2 = \dfrac{3}{8}\cdot 4 = 1.5$.
Problem 4
Calls arrive at a switchboard as a Poisson process with rate $\lambda = 4$ per hour. Find the probability that the time between two consecutive calls exceeds 30 minutes.
Solution 4
The inter-arrival time $T \sim \mathrm{Exp}(4)$ (rate in hours).
Problem 5
$X$ has PDF $f(x) = \dfrac{1}{2}x$ for $0 \leq x \leq 2$. Find the CDF, $E(X)$And $\mathrm{Var}(X)$.
Solution 5
CDF: $F(x) = \int_0^x \dfrac{t}{2}\,dt = \dfrac{x^2}{4}$ for $0 \leq x \leq 2$. $F(x) = 0$ for $x < 0$, $F(x) = 1$ for $x > 2$.
E(X)=∫02x⋅2xdx=21[3x3]02=34.
E(X2)=21[4x4]02=21⋅4=2.
Var(X)=2−(34)2=2−916=92.
If you get this wrong, revise:Expected value — Section 1.3.
Problem 6
The lifetime of a light bulb follows $X \sim \mathrm{Exp}(0.01)$ (in hours). Given that the bulb has been working for 500 hours, find the probability it lasts at least another 200 hours.
Solution 6
By the memoryless property: $P(X > 500+200 \mid X > 500) = P(X > 200) = e^{-0.01 \times 200} = e^{-2} \approx 0.1353$.
Problem 7
A continuous random variable $X$ has CDF $F(x) = \dfrac{x^3}{27}$ for $0 \leq x \leq 3$. Find the PDF, $E(X)$And the upper quartile.
Solution 7
PDF: $f(x) = F'(x) = \dfrac{x^2}{9}$ for $0 \leq x \leq 3$.
Problem 9
Buses arrive at a stop as a Poisson process with rate 6 per hour. Find the probability that a passenger waits between 5 and 15 minutes for a bus.
Solution 9
Waiting time $T \sim \mathrm{Exp}(6)$ (rate per hour).
5.2 Converse: exponential is the only continuous memoryless distribution
Theorem. If a continuous random variable X on (0,∞) satisfies
P(X>s+t∣X>s)=P(X>t) for all s,t>0Then X∼Exp(λ) for some
λ>0.
Proof
Let G(t)=P(X>t). The memoryless condition gives:
G(s+t)=G(s)G(t)
This is Cauchy’s functional equation. Since G is non-increasing and 0≤G≤1The only
Solutions are:
G(t)=e−λt
For some λ≥0. Since G is non-trivial (not identically 1), λ>0. Therefore:
P(X≤t)=1−e−λt
Which is the CDF of Exp(λ). ■
5.3 Practical interpretation
The memoryless property means:
If a light bulb has been on for 100 hours, the probability it lasts another 50 hours is the same
as a new bulb lasting 50 hours.
If you have waited 20 minutes for a bus, your expected additional wait time is the same as if you
had just arrived.
This property makes exponential models appropriate for random failure mechanisms (electronic
components) but inappropriate for wear-out mechanisms (mechanical parts).
6. Poisson-Exponential Connection: Inter-Arrival Times
6.1 Derivation
Theorem. In a Poisson process with rate λThe time between consecutive events follows
Exp(λ).
Proof
Let T be the time from an arbitrary starting point until the first event.
P(T>t)=P(noeventsin[0,t])
Since the number of events in [0,t] follows Po(λt):
P(N(t)=0)=L◆B◆e−λt(λt)0◆RB◆◆LB◆0!◆RB◆=e−λt
Therefore P(T≤t)=1−e−λtWhich is the CDF of Exp(λ).
■
6.2 Sum of inter-arrival times
If T1,T2,…,Tn are n independent inter-arrival times, each
∼Exp(λ)Then the total time until the n-th event is:
Sn=T1+T2+⋯+Tn∼Gamma(n,λ)
This connects the exponential to the gamma distribution.
6.3 Worked example: call centre
Example. Calls arrive at a call centre as a Poisson process at rate 5 per hour.
(a) Find the probability that the time between two consecutive calls exceeds 20 minutes.
T∼Exp(5) (rate per hour). P(T>1/3)=e−5/3≈0.1889.
(b) Find the probability that at least 3 calls arrive in the next 30 minutes.
A mixture distribution arises when a random variable is selected from one of several
Sub-populations. If X comes from distribution 1 with probability p and from distribution 2 with
Probability 1−p:
The variance formula includes an extra term from the difference in means — this is the law of total
Variance.
8.2 Worked example
Example. A machine produces components. With probability 0.7 it is correctly calibrated,
Producing components with lifetime ∼Exp(0.01). With probability 0.3 it is faulty,
Producing components with lifetime ∼Exp(0.002). Find the overall PDF, the expected
Lifetime, and P(X>100).
The PDF f(x) gives the density of probability at x. It is not a probability itself — f(x)
Can be greater than 1. The CDF F(x) gives the accumulated probability up to xAnd always
Satisfies 0≤F(x)≤1.
Common error: writing P(X=a)=f(a) for a continuous RV. This is wrong — P(X=a)=0 always.
Probabilities are areas under the PDF, not values of the PDF.
Discrete vs continuous probability
For a discrete RV, P(X=a)>0 for specific values, and probabilities sum to 1.
For a continuous RV, P(X=a)=0 for any single value, and probabilities integrate to 1.
Never use summation for a continuous RV or integration for a discrete RV (unless using the CDF
Formalism).
Exponential rate vs mean
X∼Exp(λ) has mean 1/λ. A common error is to confuse λ (the
Rate) with the mean. If the mean lifetime is 200 hours, then λ=1/200=0.005Not
λ=200.
Check: a larger λ means shorter lifetimes on average (events happen more frequently).
Units in Poisson-exponential problems
If events occur at rate λ=5 per hour, then the inter-arrival time is Exp(5)
Measured in hours. If you want the probability of waiting more than 20 minutes, convert to
Hours: t=1/3 hours. Using t=20 directly would give P(T>20)=e−100Which is
Essentially zero and wrong.
10. Problem Set
Q1. $X \sim \mathrm{Exp}(\lambda)$. Find the value of $\lambda$ such that $P(X > 2) = 0.3$And hence find $E(X)$ and the 80th percentile.
By inspection: m=2 gives 24−8=16. So the median is 2 (equal to the mean, reflecting the
Symmetry of the PDF about x=2).
Q3. Emails arrive at a server as a Poisson process with rate 12 per hour. Find the probability that the time between two consecutive emails is between 2 and 5 minutes, and find the probability that the third email arrives within 10 minutes.
For the third email: the total time S3=T1+T2+T3∼Gamma(3,12).
Alternatively, use the Poisson count: P(atleast3in10min)=P(N(1/6)≥3) where
N(1/6)∼Po(2).
=1−P(N≤2)=1−e−2(1+2+2)=1−5e−2≈1−0.6767=0.3233.
Q4. $X \sim U(0, a)$. Given that $E(X) = 3$ and $\mathrm{Var}(X) = 3$Find $a$ and the 90th percentile.
E(X)=a/2=3⟹a=6.
Check: Var(X)=(b−a)2/12=36/12=3. ✓
90th percentile: F(x)=(x−0)/6=0.9⟹x=5.4.
Q5. The lifetime of Component A follows $\mathrm{Exp}(0.02)$ and Component B follows $\mathrm{Exp}(0.05)$ (in hours). They are connected in series, so the system fails when either component fails. Assuming independence, find the PDF of the system lifetime, the expected system lifetime, and $P(\mathrm{system lasts} > 50\,\mathrm{hours})$.
System lifetime T=min(XA,XB).
P(T>t)=P(XA>t)P(XB>t)=e−0.02t⋅e−0.05t=e−0.07t.
So T∼Exp(0.07).
E(T)=1/0.07≈14.3hours.
P(T>50)=e−0.07×50=e−3.5≈0.0302.
Note: the minimum of independent exponential RVs is itself exponential, with rate equal to the sum
Of the individual rates.
Q6. A random variable $X$ has PDF $f(x) = \dfrac{2x}{9}$ for $0 \leq x \leq 3$. Find the CDF, $E(X)$, $\mathrm{Var}(X)$The median, and $P(1 \lt X \lt 2)$.
CDF: F(x)=∫0x92tdt=9x2 for 0≤x≤3. F(x)=0 for
x<0, F(x)=1 for x>3.
E(X)=∫03x⋅92xdx=92[3x3]03=92×9=2.
E(X2)=92[4x4]03=92×481=29=4.5.
Var(X)=4.5−4=0.5.
Median: 9m2=0.5⟹m2=4.5⟹m=4.5≈2.12.
P(1<X<2)=F(2)−F(1)=94−91=31.
:::
8. Advanced Worked Examples
Example 8.1: Exponential distribution and memorylessness
Problem. The lifetime T of a component follows an exponential distribution with mean 200
Hours. Given that the component has survived 150 hours, find the probability it survives a further
100 hours.
Solution. By the memoryless property of the exponential distribution:
P(T>150+100∣T>150)=P(T>100)
λ=2001=0.005.
P(T>100)=e−0.005×100=e−0.5=0.607 (3 s.f.).
Example 8.2: Continuous uniform — conditional probability
Total: 32+34=2. But the range is [0,2] and the function is symmetric about
x=1. The mean of a symmetric distribution on [0,2] about x=1 is 1. There must be a
Normalization error. Let me verify: ∫012xdx=1 and
∫122(2−x)dx=[4x−x2]12=(8−4)−(4−1)=1. Total area =2=1.
The PDF should be f(x)=x for 0≤x≤1 and f(x)=2−x for 1<x≤2. Then
E(X)=∫01x2dx+∫12x(2−x)dx=31+32=1. ✓
9. Common Pitfalls
Pitfall
Correct Approach
Confusing the rate λ with the mean L◆B◆1◆RB◆◆LB◆λ◆RB◆ for exponential distributions
E(X)=L◆B◆1◆RB◆◆LB◆λ◆RB◆; the rate parameter is λ
Forgetting that the total area under a PDF must equal 1
Always verify: ∫−∞∞f(x)dx=1
Applying the exponential memoryless property to other distributions
Only the exponential distribution has this property
Using P(a<X<b)=f(b)−f(a)
This is for CDFs, not PDFs. Use ∫abf(x)dx
10. Additional Exam-Style Questions
Question 8
Calls arrive at a call centre at a rate of 4 per hour. Find the probability that the time between
Two consecutive calls exceeds 45 minutes.
Solution
Time between calls T∼Exp(4) (rate =4 per hour).
P(T>0.75)=e−4×0.75=e−3≈0.0498.
Question 9
X is a continuous random variable with PDF f(x)=43(2x−x2) for 0≤x≤2.
Find E(X), Var(X)And the median.
Finding CDFs, means, and variances of continuous random variables requires integration. See
Further Calculus.
11.3 Normal distribution and the CLT
The Central Limit Theorem connects the exponential and uniform distributions to the normal
Distribution. See
Chi-Squared Tests.
12. Key Results Summary
Distribution
PDF
E(X)
Var(X)
Exp(λ)
λe−λx, x≥0
L◆B◆1◆RB◆◆LB◆λ◆RB◆
L◆B◆1◆RB◆◆LB◆λ2◆RB◆
U(a,b)
b−a1, a≤x≤b
2a+b
12(b−a)2
Property
Exponential
Uniform
Memoryless
Yes
No
CDF
1−e−λx
b−ax−a
Median
L◆B◆ln2◆RB◆◆LB◆λ◆RB◆
2a+b
13. Further Exam-Style Questions
Question 11
The lifetime of a light bulb follows an exponential distribution with mean 500 hours. Find: (a) the
Probability it lasts more than 600 hours; (b) the probability it lasts between 400 and 600 hours;
(c) the median lifetime.
Solution
λ=5001=0.002.
(a)P(X>600)=e−1.2≈0.301.
(b)P(400<X<600)=e−0.8−e−1.2≈0.449−0.301=0.148.
(c) Median m:
e−0.002m=0.5⟹m=L◆B◆ln2◆RB◆◆LB◆0.002◆RB◆=346.6hours.