Continuous Random Variables
Continuous Random Variables
EEE 214
1 Exponential distribution
2 Normal distribution
Outline
1 Exponential distribution
2 Normal distribution
Exponential distribution
Definition
A continuous random variable X has a Exponential distribution
distribution with λ > 0 if its pdf is
(
λe−λx if x ≥ 0,
f (x) =
0 if x < 0.
X ∼ Exp(λ)
Exponential distribution
Definition
A continuous random variable X has a Exponential distribution
distribution with λ > 0 if its pdf is
(
λe−λx if x ≥ 0,
f (x) =
0 if x < 0.
X ∼ Exp(λ)
F (x) = 1 − e−λx if x ≥ 0 and 0 elsewhere.
1
E(X) = λ
V ar(X) = 1/λ2
PDF plot
Exponential Distribution with Varying Rate
lambda = 0.5
3.0
lambda = 1
lambda = 2
2.5
2.0 lambda = 3
Density
1.5
1.0
0.5
0.0
0 2 4 6 8 10
Example
Suppose that the length of a phone call in minutes is an exponential random
variable with parameter λ = 1/10. If someone arrives immediately ahead of
you at a public telephone booth, find the probability that you will have to
wait
(a) more than 10 minutes;
(b) between 10 and 20 minutes.
Example
Let X be an exponentially distributed random variable with λ = 2. Find
the value of c for which P (X > c) = .25.
Outline
1 Exponential distribution
2 Normal distribution
Normal Distribution
Definition
A continuous random variable X has a Normal distribution distribution
with mean µ and variance σ 2 if its pdf is
1 (x−µ)2
X ∼ N(µ, σ 2 ) ⇐⇒ f (x) = √ e− 2σ 2 , where x ∈ R
2πσ 2
Normal Distribution
Definition
A continuous random variable X has a Normal distribution distribution
with mean µ and variance σ 2 if its pdf is
1 (x−µ)2
X ∼ N(µ, σ 2 ) ⇐⇒ f (x) = √ e− 2σ 2 , where x ∈ R
2πσ 2
Pdf: unimodal and symmetric, bell shaped continuous random variable
Use the fact that normal pdf is well define, calculate the integral
Z ∞
(x−1)2
e− 10 dx =?
−∞
Use the fact that normal pdf is well define, calculate the integral
Z ∞
(x−1)2
e− 10 dx =?
−∞
Use the fact that normal pdf is well define, calculate the integral
Z ∞
(x−1)2
e− 10 dx =?
−∞
Z ∼ N(0, 1)
Z ∼ N(0, 1)
E[X] = µ
Z ∼ N(0, 1)
E[X] = µ
Since X ∼ N(µ, σ 2 ) ⇐⇒ X = σZ + µ and Z ∼ N(0, 1), it’s suffice to
show the mean and variance of standard normal are 0 and 1.
Z ∼ N(0, 1)
E[X] = µ
Since X ∼ N(µ, σ 2 ) ⇐⇒ X = σZ + µ and Z ∼ N(0, 1), it’s suffice to
show the mean and variance of standard normal are 0 and 1.
Z ∞ ∞ Z
1 x2
E[Z] = xfZ (x)dx = x √ e− 2 dx
−∞ −∞ 2π
Z ∞ 2
1 x
= √ x e− 2 dx
2π −∞
∞
1 x2
= −√ e− 2 =0
2π −∞
68-95-99.7 Rule
A random variable X has a normal distribution,
▶ about 68% probability X falls within 1 SD of the mean,
▶ about 95% probability X falls within 2 SD of the mean,
▶ about 99.7% probability X falls within 3 SD of the mean.
The probability of X falls 4, 5, or more standard deviations away from
the mean is very low.
68%
95%
99.7%
µ − 3σ µ − 2σ µ−σ µ µ+σ µ + 2σ µ + 3σ
Example
If X is a normal random variable with parameters µ = 3 and σ 2 = 9, find
(a) P (2 < X < 5); (b) P (X > 0); (c) P (|X − 3| > 6).
Example
Suppose that X is a normally distributed random variable with mean µ and
variance σ 2 . If P (X < 10) = 0.67 and P (X < 20) = 0.975, approximate
µ and σ 2 .
35.8 36
Chapter 5 part 2 EEE 214 17 / 28
Normal distribution
x−µ 35.8 − 36
z= = = −1.82
σ 0.11
0.3
0.0
0 1 2 3 4
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
0 1 2 3 4
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
We are given that X ∼ Bin(n = 450, p = 0.3), and we are asked for
the probability
We are given that X ∼ Bin(n = 450, p = 0.3), and we are asked for
the probability
2
1 (x−µ)
N(µ, σ 2 ) (−∞, ∞) √ 1 e− 2 σ2 µ σ2
2πσ 2
Outline
1 Exponential distribution
2 Normal distribution
dx
fY (y) = fX (x)
dy
dx
fY (y) = fX (x)
dy
Or more rigorously,
(
fX g −1 (y) · d −1
dy g (y) if y = g(x) for some x
fY (y) =
0 if y ̸= g(x) for all x
3
2
1
0
2 differentiable
6
5
4
-ln(x)
3
2
1
0
2 differentiable
6
5
4
-ln(x)
3
2
1
0
2 differentiable ✓
6
5
4
-ln(x)
3
2
1
0
2 differentiable ✓
6
y = − ln(x) ⇐⇒ x = e−y
4
-ln(x)
3
2
1
0
2 differentiable ✓
6
y = − ln(x) ⇐⇒ x = e−y
4
-ln(x)
dx
= −e−y
3
dy
2
1
0
2 differentiable ✓
6
y = − ln(x) ⇐⇒ x = e−y
4
-ln(x)
dx
= −e−y
3
dy
2
dx
fY (y) = fX (x) = 1 · −e−y = e−y
0
dy
0.0 0.2 0.4 0.6 0.8 1.0
2 differentiable ✓
6
y = − ln(x) ⇐⇒ x = e−y
4
-ln(x)
dx
= −e−y
3
dy
2
dx
fY (y) = fX (x) = 1 · −e−y = e−y
0
dy
0.0 0.2 0.4 0.6 0.8 1.0
Let X have pdf fX (x), where −∞ < x < ∞. We want to find the pdf for
Y = |X|. Can we use the formula fY (y) = fX (x) dx
dy ?
(a) Yes
(b) No
Let X have pdf fX (x), where −∞ < x < ∞. We want to find the pdf for
Y = |X|. Can we use the formula fY (y) = fX (x) dx
dy ?
(a) Yes
(b) No
Let X have pdf fX (x), where −∞ < x < ∞. We want to find the pdf for
Y = |X|. Can we use the formula fY (y) = fX (x) dx
dy ?
(a) Yes
(b) No g(x) = |x| is not monotonic; also not differentiable at 0.
0.8
|x|
0.4
0.0
Let X have pdf fX (x), where −∞ < x < ∞. We want to find the pdf for
Y = |X|. Can we use the formula fY (y) = fX (x) dx
dy ?
(a) Yes
(b) No g(x) = |x| is not monotonic; also not differentiable at 0.
First find cdf FY (y), then find fY (y).
0.8
|x|
0.4
0.0
Let X have pdf fX (x), where −∞ < x < ∞. We want to find the pdf for
Y = |X|. Can we use the formula fY (y) = fX (x) dx
dy ?
(a) Yes
(b) No g(x) = |x| is not monotonic; also not differentiable at 0.
First find cdf FY (y), then find fY (y).
For any y ≥ 0,
FY (y) = P (Y < y)
= P (|X| < y)
0.8
0.4
= FX (y) − FX (−y)
0.0
Let X have pdf fX (x), where −∞ < x < ∞. We want to find the pdf for
Y = |X|. Can we use the formula fY (y) = fX (x) dx
dy ?
(a) Yes
(b) No g(x) = |x| is not monotonic; also not differentiable at 0.
First find cdf FY (y), then find fY (y).
For any y ≥ 0,
FY (y) = P (Y < y)
= P (|X| < y)
0.8
0.4
= FX (y) − FX (−y)
0.0