Professional Documents
Culture Documents
5 Continuous Probabilities
5 Continuous Probabilities
5 Continuous Probabilities
X P(X)
0 0.343
How to count the
1 0.441
probabilities for continuous
random variables?
2 0.189
3 0.027
Discrete Probability Distribution
You randomly select a
student from the
class. What is the
probability that his or
her height is exactly
1.70m?
f (x)
-5.0 -4.0 -3.0 -2.0 -1.0 0.0 1.0 2.0 3.0 4.0 5.0
x
Probability Density Function
The probability density function (pdf) of a r.v. X has the
following characteristics:
– Area under the pdf curve is equal to 1
– Probability that X lies between values a and b is equal to the
area under the curve between a and b
f (x)
area = P(a X b)
f (x)
area = P(a X b)
http://www.johndcook.com/blog/2008/07/20/why-heights-are-normally-distributed/
Probability Density Function
∞
Mean = 𝝁 = −∞
𝑥 𝑓 𝑥 𝑑𝑥
∞
Variance = 𝝈𝟐 = −∞
(𝑥 − 𝝁) 2
𝑓 𝑥 𝑑𝑥
f (x)
-5.0 -4.0 -3.0 -2.0 -1.0 0.0 1.0 2.0 3.0 4.0 5.0
x
Discrete vs Continuous
Discrete Continuous
Probability x1 p1
distribution x2 p2 pdf f(x)
xn pn
𝑛 ∞
𝑝𝑖 = 1 𝑓 𝑥 𝑑𝑥 = 1
𝑖=1 −∞
∞
Mean 𝑛
𝑥𝑖 𝑝𝑖 𝑥 𝑓 𝑥 𝑑𝑥
𝑖=1 −∞
𝑛 ∞
Variance 2
(𝑥𝑖 − 𝝁)2 𝑝𝑖 (𝑥 − 𝝁)2 𝑓 𝑥 𝑑𝑥
𝑖=1 −∞
Cumulative Distribution Function
f (t) By definition :
• 0 ≤ F(t) ≤ 1
• F(t) is a non-decreasing
function of t
P(X t)
-5.0 -4.0 -3.0 -2.0 -1.0 0.0
t
1.0 2.0 3.0 4.0 5.0
Cumulative Distribution Function
Uniform Distribution
X is “uniform” on [a,b] if X is equally likely to take any value in
the range from a to b.
f (t)
a b t
Example
• Suppose that travel time (by bus) between Clementi and NUS is uniformly distributed between 12 and 20 minutes.
3. What is the probability that the travel time is between 14 and 18 minutes?
Uniform Distribution
PDF of X
Equation of f(t) ?
f (t)
1
𝑖𝑓 𝑎 ≤ 𝑡 ≤ 𝑏
𝑓 𝑡 = 𝑏−𝑎
1/(b–a)
0 otherwise
area = 1
a b t
CDF of Uniform Distribution
1
𝑖𝑓 𝑎 ≤ 𝑡 ≤ 𝑏
PDF of X 𝑓 𝑡 = 𝑏−𝑎
0 otherwise
CDF of X ?
f (t)
F(t) = P(X t)
1/(b–a)
a b t
CDF of Uniform Distribution
a b t
Mean & Variance of Uniform Distribution
X U[a,b]
E (X) = ?(a+b)/2
(𝑏 − 𝑎)2
Var (X) = ?
12
PDF f (t)
1
1/(b–a) 𝑖𝑓 𝑎 ≤ 𝑡 ≤ 𝑏
𝑓 𝑡 = 𝑏−𝑎
0 otherwise
a b t
Example
• The men’s 100 meter sprint at the 1996 Olympic Games in Atlanta was a hotly contested event between
three athletes.
– What is the probability that the winning time will beat the previous records of 9.86 seconds?
Exponential Distribution
Exponential Distribution
Exponential Distribution
Often arises as the distribution of amount of time until an event occurs.
Useful for waiting line problems.
CDF 𝐹 𝒙 = 1 − 𝑒 −𝝀𝒙
Example:
Suppose the usage duration of a particular ATM is an exponential r.v.
with a mean of 3 mins. If someone arrives at the ATM immediately
ahead of you, find the probability that you have to wait (a) more than
2 minutes, and (b) between 2 and 3 minutes
X = usage duration (in mins) of ATM is exponential r.v. with parameter = 1/3.
CDF 𝐹 𝒙 = 1 − 𝑒 −𝝀𝒙
Example:
Suppose the usage duration of a particular ATM is an exponential r.v.
with a mean of 3 mins. If someone arrives at the ATM immediately
ahead of you, find the probability that you have to wait (a) more than 2
minutes, and (b) between 2 and 3 minutes
X = usage duration (in mins) of ATM is exponential r.v. with parameter = 1/3.
CDF 𝐹𝐹 𝒙𝒙 = − 𝑒𝑒−𝝀𝒙
= 11 − −𝝀𝒙
cumulative = 0 f(x)
1 F(x)
Exponential Distribution
Example
Suppose the usage duration of a particular ATM is an exponential r.v. with a
mean of 3 mins. If someone arrives at the ATM immediately ahead of you,
find the probability that you have to wait
(a) more than 2 minutes, and = 1/3
(b) between 2 and 3 minutes
Example
Suppose the usage duration of a particular ATM is an exponential r.v. with a
mean of 3 mins. If someone arrives at the ATM immediately ahead of you,
find the probability that you have to wait
(a) more than 2 minutes, and = 1/3
(b) between 2 and 3 minutes
f(t)
1 (𝒕−𝜇 )2
−
𝑓 𝒕 = 𝑒 2𝜎 2
2𝜋𝜎 2
t
We write : X N(µ, ).
Note: f(t) is symmetric around the mean
f(t) is highest at its mean
Normal Distribution
1 (𝒕−𝜇 )2
−
Suppose : X N(µ, ) 𝑓 𝒕 = 𝑒 2𝜎 2
2𝜋𝜎 2
How do we compute : P ( a Z b ) ?
Computing Probabilities for Standard Normal Distributions
P(Z 1.55) = ?
P(−0.55 Z 0.50) = ?
Computing Probabilities for Normal Distributions
Because :
There is a special relationship between N(0,1) and N(µ, ).
In other words :
𝑿− 𝜇
𝑿 ~ 𝑁 𝜇, 𝜎 ⇒ ~ 𝑁(0,1)
𝜎
Application of Normal Distribution
Normal Distribution
99.72%
95.44%
68.26%
x
– 3 – + + 3
– 2 + 2
Are you normal?
W = aX + bY