Professional Documents
Culture Documents
Lecture 07 - Probability Distributions
Lecture 07 - Probability Distributions
Lecture 07
Probability distributions
Probability distributions
Lecture Notes 07 1
Probability Distributions
Discrete Probability Distribution
– Bernoulli Distribution
– Binomial Distribution
– Geometric Binomial Distribution
– Negative Binomial Distribution
– Hypergeometric Distribution
– Poisson Distribution
𝑿 = 𝒙𝟏 , 𝒙𝟐 , 𝒙𝟑 , … is a set
𝑹𝑿 = 𝒙𝟏 , 𝒙𝟐 , 𝒙𝟑 , … .
𝑿 = 𝒙𝟏 , 𝒙𝟐 , 𝒙𝟑 , … is a set
𝑹𝑿 = 𝒙𝟏 , 𝒙𝟐 , 𝒙𝟑 , … .
The function:
𝑷𝑿 𝒙𝒌 = 𝑷 𝑿 = 𝒙𝒌 , 𝒇𝒐𝒓 𝒌 = 𝟏, 𝟐, 𝟑, 𝟑, … ,
Random Variables 8
Lecture Notes 07
Probability Mass Function – Discrete RV’s
Theorem:
For a discrete random variable with PMF 𝑷𝑿 𝒙 and Range
𝑹 𝑿 = 𝛀𝑿 = 𝒙 𝟏 , 𝒙 𝟐 , 𝒙 𝟑 , …
i. 𝟎 ≤ 𝑷𝑿 𝒙𝒌 ≤ 𝟏 𝒇𝒐𝒓 𝒂𝒍𝒍 𝒙𝒌 𝒙𝒌 ∈ 𝛀𝑿 .
ii. σ∞
𝒌=𝟏 𝑷 𝑿𝒌 = 𝟏
iii. 𝑨 ⊂ 𝛀𝑿 , 𝑷𝑿 𝑿 ∈ 𝑨 = 𝑷 𝑨
𝑷 𝑨 = 𝑷 𝑿 = 𝒙𝒌 = 𝑷𝑿 (𝒙𝒌 )
𝒙𝒌 ∈𝑨 𝒙𝒌 ∈𝑨
Definition:
Consider two discrete random variables X and Y.
We say that X and Y are independent if
𝑷 𝑿𝟏 = 𝒙𝟏 , 𝑿𝟐 = 𝒙𝟐 , … , 𝑿𝒏 = 𝒙𝒏
= 𝑷 𝑿𝟏 = 𝒙𝟏 )𝑷 𝑿𝟐 = 𝒙𝟐 … 𝑷(𝑿𝒏 = 𝒙𝒏
for all 𝒙𝟏 , 𝒙𝟐 , … , 𝒙𝒏
Probability distributions 14
Lecture Notes 07
Binomial Distribution
❖ Repeated Trials:
❖ Repeat the same random experiment n times.
(Experiments are independent of each other)
❖ Number of times an event A happens among n
trials has Binomial distribution
(e.g. Number of heads in n coin tosses, number
of arrival in n times slots,…)
𝑿 ~ 𝑩𝒊𝒏𝒐𝒎𝒊𝒂𝒍 (𝒏, 𝒑)
𝑿 ~ 𝑩𝒊𝒏𝒐𝒎𝒊𝒂𝒍 (𝒏, 𝒑)
𝑛 𝑛 𝑛−𝑘
𝑃𝑋 𝑘 = 𝑝 1−𝑝 , k = 0, 1, 2, … , n
𝑘
Probability distributions 19
Lecture Notes 07
Example (black and white dice)
Probability distributions 20
Lecture Notes 07
Example (black and White dice) :
Probability distributions 21
Lecture Notes 07
Example (ball-bin) :
𝑲𝒊 ~ 𝑩𝒊𝒏𝒐𝒎𝒊𝒂𝒍 (𝒏, 𝒑)
𝑖 = 1,2,3, … , 𝐵
Probability distributions 22
Lecture Notes 07
Binomial Distribution
Lemma: If 𝑿𝟏 , 𝑿𝟐 , … , 𝑿𝒏 are independent
Bernoulli random variable, then the random
variable 𝑋 defined by
𝑿 = 𝑿𝟏 , +𝑿𝟐 + ⋯ + 𝑿𝒏
is a Binomial(n, p) RV distribution.
Probability distributions 23
Lecture Notes 07
Binomial - Example
n=4 p=0.2
n=10
n=20
n=40
Probability distributions 24
Lecture Notes 07
DISCRETE PROBABILITY DISTRIBUTION
𝐹𝑋 𝑋 ≤ 𝑘 = 1 − 1 − 𝑝 𝑘
for x = r, r + 1, r + 2,….
Lecture Notes 07 Probability distributions 27
DISCRETE PROBABILITY DISTRIBUTION
Hypergeometric Distribution
𝐾 𝑁−𝐾
𝑃(𝑥) = 𝑥 𝑛 − 𝑥 𝑥 = max{ 0, 𝑛 + 𝐾 − 𝑁}𝑡𝑜 min{ 𝐾, 𝑛}
𝑁
𝑛
𝑁−𝑛
𝜇=𝐸 𝑋 = 𝑛𝑝𝑎𝑛𝑑𝜎 2 = 𝑛𝑝 1 − 𝑝
𝑁−1
𝑤ℎ𝑒𝑟𝑒 𝑝 = 𝐾/𝑁
𝑁 = 12, 𝑛 = 5, 𝐾 = 3, 𝑏 = 𝑁 − 𝐾 = 12 − 3 = 9
𝐾 𝑏 3 9
𝑥 𝑛−𝑥
𝑃 𝑋=𝑥 = = 𝑥 5−𝑥 , 𝑥 = 0, 1,2,3
𝑁 12
𝑛 5
3 9
𝑃 𝑋=0 = 0 5 − 0 = 1 × 126 = 0.159
12 792
5
3 9
𝑃 𝑋=1 = 1 5 − 1 = 3 × 126 = 0.477
12 792
5
Probability distributions 34
Lecture Notes 07
Answer (Hypergeometric Distribution)
3 9
𝑃 𝑋=2 = 2 5 − 2 = 3 × 84 = 0.31818
12 792
5
3 9
𝑃 𝑋=3 = 3 5 − 3 = 1 × 36 = 0.045
12 792
5
P(X = xi)
xi P(X = xi)
0.5
0 0.159
1 0.477
2 0.381818
3 0.045
0 1 2 3 x
Probability distributions 35
Lecture Notes 07
DISCRETE PROBABILITY DISTRIBUTION
Poisson Distribution
Poisson Distribution
Poisson Distribution
Poisson Distribution
𝐸 𝑋 = 𝜆, Var 𝑋 = 𝜆
Lecture Notes 07 Probability distributions 40
Poisson Graphs
0.5
0.45 l=.5
0.4
0.35
l=1
0.3
0.25
l=4
0.2
0.15 l=10
0.1
0.05
0
0 5 10 15
Poisson Distribution
• Let
43
DISCRETE PROBABILITY DISTRIBUTION
0.35 n=5,p=4/5
0.3 Poisson(4)
n=10,p=.4
0.25
0.2
n=20, p=.2
0.15
0.1
n=50,p=.08
0.05
0
0 1 2 3 4 5 6 7 8 9 10
45
Poisson Distribution
Example:
The expected number of car accidents in an intercity highway in a
month is known as 4.5, (i.e., it has is known to be l = 4.5). The
number of accidents is known and to have a Poisson distribution.
a) Compute the probability of exactly no accident in a month
b) Compute the probability of exactly 1 accident in a month
c) Compute the probability of at most 2 accidents in a month
d) Compute the probability of at least 4 accidents in a month.
e) Compute the probability of at most 4 accidents in a month, if it
is known that there were at least 2 accidents. (Assume that the
number of accidents for a month in the city follows a Poisson
distribution)
Remember: 𝒂, 𝒃 = 𝒙 ∈ ℝ, 𝒂≤𝒙≤𝒃 ,
(𝒂, 𝒃] = 𝒙 ∈ ℝ, 𝒂<𝒙≤𝒃
Example.
T: Lifetime of a light bulb, 𝐑𝐚𝐧𝐠𝐞 𝑻 = [𝟎, ∞)
Example.
Let 𝑎, 𝑏 be an interval in the real line (where 𝑎 and
𝑏 are real numbers with 𝑎 < 𝑏). Let 𝑋 be a number
chosen at random from that interval.
“Chosen at random” means: If 𝑎 ≤ 𝑥1 ≤ 𝑥2 ≤ 𝑏, then
𝑥2 − 𝑥1
𝑃 𝑋 ∈ [𝑥1 , 𝑥2 ] =
𝑏−𝑎
𝐚) 𝑭𝑿 𝒙 = 𝟎, for 𝒙 < 𝒂,
𝒙−𝒂
𝒃) 𝑭𝑿 𝒙 = , for 𝒙 ≤ 𝒂 ≤ 𝐛,
𝒃−𝒂
𝒄) 𝑭𝑿 𝒙 = 𝟏, for 𝒙 ≥ 𝐛,
Theorem.
𝑷 𝒂 < 𝑿 < 𝒃 = 𝑭𝑿 𝒃 − 𝑭𝑿 𝒂
𝒃 𝒂 𝒃
= න 𝒇𝑿 𝝉 𝒅𝝉 − න 𝒇𝑿 𝝉 𝒅𝝉 = න 𝒇𝑿 𝝉 𝒅𝝉
−∞ −∞ 𝒂
Where
𝑭𝑿 𝒙 is the CDF (Cumulative Distribution Function),
𝒇𝑿 𝒙 is the PDF (Probability Density Function)
1 𝑎+𝑏
𝑓(𝑥) = ,𝑎 ≤ 𝑥 ≤ 𝑏 𝐸(𝑋) = 𝜇 =
𝑏−𝑎 2
Variance, Var(X)
f(x)
(𝑏 − 𝑎)2
𝑉𝑎𝑟(𝑋) = 𝜎 2 =
1 / (b-a) 12
a b x
Let the continuous variable x denote the current measured in a thin copper
wire in millimeter. Assume that the range of x is [0, 20mA], and assume that
the probability density function of x is f(x) = 0.05, 0 <= x <= 20.
What is the probability that a measurement of current is between 5 and 10
millimeter? What are the mean and the variance?
𝑏
10
Normal Distribution
Normal Distribution
Normal Distribution
1 −(𝑥−𝜇)2
𝑓 𝑥 = 𝑒 2𝜎2 𝑓𝑜𝑟 − ∞ < 𝑥 < ∞
𝜎 2𝜋
1 −𝑧 2
𝑓(𝑧) = 𝑒 2 𝑓𝑜𝑟 −∞<𝑥 <∞
2𝜋
z −u 2
1
( z ) = P( Z z ) =
2 e
−
2 du
+ −u 2
1
( z ) =
2 e
−
2 du = 1
X − np
Z=
np(1 − p)
is approximately a standard normal random variable.
9
8
7
6
5
4
3
2
1
0
1 2 3 4 5 6 7 8 9
Examples
The lifetime of a device with failures caused by random shocks might be appropriately
modeled as an exponential random variable.
The random variable X that equals the distance between successive counts of a Poisson
process with mean l > 0 has an exponential distribution with parameter l. The
probability density function of X is
f ( x) = l e −lx , for 0 x
1 1
= E( X ) = and 2 = V ( X ) =
l l2
lr x r −1e − lx
f ( x) = , for x 0 and r = 1,2,...
(r − 1)!
r
= E( X ) =
l
r
2 = V (X ) =
l2
lr x r −1e − lx
f ( x) = , for x 0
( r )
The gamma function ( x) = x r −1e − x dx, for r 0
0
r r
= E( X ) = and 2 = V ( X ) =
l l2