Week 4 Continuous Probability Distribution PDF
Week 4 Continuous Probability Distribution PDF
Week 4
Continuous Probability Distributions
Agenda
• Continuous Random Variables
• Probability Density Function and
Cumulative Distribution Function
• Exponential Distribution
• Normal Distribution
Continuous Random Variables
f (x)
-5.0 -4.0 -3.0 -2.0 -1.0 0.0 1.0 2.0 3.0 4.0
x
5.0
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
∞
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)
with the range of the
xn pn possible values of 𝑥𝑥
𝑛𝑛 ∞
� 𝑝𝑝𝑖𝑖 = 1 � 𝑓𝑓(𝑥𝑥 )𝑑𝑑𝑥𝑥 = 1
𝑖𝑖=1 −∞
𝑛𝑛 ∞
Mean µ � 𝑥𝑥𝑖𝑖 𝑝𝑝𝑖𝑖 � 𝑥𝑥 𝑓𝑓(𝑥𝑥 )𝑑𝑑𝑥𝑥
𝑖𝑖=1 −∞
𝑛𝑛 ∞
Variance σ2
� (𝑥𝑥𝑖𝑖 − 𝝁𝝁)2 𝑝𝑝𝑖𝑖 � (𝑥𝑥 − 𝝁𝝁)2 𝑓𝑓(𝑥𝑥 )𝑑𝑑𝑥𝑥
𝑖𝑖=1 −∞
Cumulative Distribution Function
f (t) By definition :
P(X ≤ t) • 0 ≤ F(t) ≤ 1
• F(t) is a non-decreasing
function of t
a c b
Continuous Probability Distribution:
Exponential Distribution
Exponential Distribution
Often arises as the distribution of amount of time until an event occurs.
Useful for waiting time problems.
cumulative = 0 ⇒ f(x)
1 ⇒ F(x)
Exponential Distribution
X is exponential r.v. with parameter λ ( > 0)
Example:
Suppose the usage duration of a particular ATM is an exponential r.v.
with a mean of 3 minutes. 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.
(a)
(b)
Continuous Probability Distribution:
Normal Distribution
Normal Distribution
The density function is the familiar bell-shaped curve
f(t)
1 (𝒕𝒕−𝜇𝜇 )2
−
𝑓𝑓 (𝒕𝒕) = 𝑒𝑒 2𝜎𝜎 2
√2𝜋𝜋𝜎𝜎 2
t
µ
cumulative = 0 ⇒ f(x)
1 ⇒ F(x)
Question
• Assume 𝑋𝑋~𝑁𝑁 5,4 .
• Transform back!
Suppose it costs $135 per day to run the croissant operation, and
that the cost of producing one croissant is $0.75.
Daily cost of croissant operations = 0.75 X + 135
Linear Functions of a Random Variable
Example
Note:
If Y = a X + b Formulas apply
to continuous
E (Y) = a E (X) + b
r.v.’s as well
Var (Y) = a2 Var (X)
Derivation
For Normal Distributions
In other words :
𝑿𝑿 − 𝜇𝜇
𝑿𝑿 ~ 𝑁𝑁(𝜇𝜇, 𝜎𝜎) ⇒ ~ 𝑁𝑁(0,1)
𝜎𝜎
Percentile Function
•The percentile function of a r.v. 𝑋𝑋 is defined as
follows:
For 𝑝𝑝th percentile of 𝑋𝑋, we can write it as 𝑥𝑥𝑝𝑝 such that
Pr 𝑋𝑋 ≤ 𝑥𝑥𝑝𝑝 = 𝑝𝑝/100,
Remember the range of 𝒑𝒑 is from 1 to 100.
Suppose X is N(100,80).
If P(X ≤ n) =0.64
What is n?
Pr 𝑋𝑋 ≤ 𝑥𝑥𝑝𝑝 = 𝑝𝑝/100,
B=? A=2.5
• The current hiring policy occurs in two phases. The first phase
separates all applicants into three categories:
• automatic accepts – test scores 600 or above
• automatic rejects – test scores 425 or below
• maybe – the rest