Professional Documents
Culture Documents
20 Negative Binomial
20 Negative Binomial
Let us consider an experiment where the properties are the same as those
listed for a binomial experiment, with the exception that the trials will be repeated
until a fixed number of successes occur. Therefore, instead of finding the probability
of x successes in n trials, where n is fixed, we are now interested in the probability
that, the 𝑘 𝑡ℎ success occurs on the 𝑥 𝑡ℎ trial. Experiments of this kind are called
Negative Binomial Experiments.
Definition:
Comparison:
Example 1:
What is the probability that it will take X number of trials to reach r success?
𝑥 𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑡𝑟𝑖𝑎𝑙
F S F F S F S F S
Trial 1 2 3 4 5 6 7 ... 𝑘−1 𝑘
SUCCESS 1st 2nd 3rd 𝑟 𝑡ℎ
(𝑥 − 1) 𝑖𝑛𝑐𝑙𝑢𝑑𝑒𝑠 (𝑟 − 1) 𝑠𝑢𝑐𝑐𝑒𝑠𝑠𝑒𝑠
NOTE:
Probability Mass Function (PMF)
There are independent trials.
Each trial results in one of two possible outcomes, labelled success and failure.
P (success) = p, and this stays constant from trial to trial
P (failure) = 1-p
X represents the trial number of the 𝑟 𝑡ℎ success.
For the 𝑟 𝑡ℎ success to occur on the 𝑥 𝑡ℎ trial:
a. The first 𝑥 − 1 trials must result in 𝑟 − 1 successes
𝑥 − 1 𝑟−1
( ) 𝑝 (1 − 𝑝)(𝑥−1)−(𝑟−1) ⇐ 𝑏𝑖𝑛𝑜𝑚𝑖𝑎𝑙 𝑓𝑜𝑟𝑚𝑢𝑙𝑎
𝑟−1
b. The 𝑥 𝑡ℎ trial must be a success, which has a probability of p.
𝑥−1 𝑟
P(X = x) = ( ) 𝑝 (1 − 𝑝)(𝑥−𝑟) for 𝑥 = 𝑟, 𝑟 + 1, 𝑟 + 2 …
𝑟−1
Mean Variance
𝑟 𝑟𝑞
𝜇= 𝜎=
𝑝 𝑝2
Solution:
Given: P(X = 10) = ?
𝑝 = 9% 𝑜𝑟 0.09
𝑟 = 3 (3𝑟𝑑)
𝑋 = 10th
𝑥−1 𝑟
P(X = x) = ( ) 𝑝 (1 − 𝑝)(𝑥−𝑟)
𝑟−1
10 − 1
P(X = 10) = ( ) 0.093 (1 − 0.09)(10−3)
3−1
7
= ( ) 0.093 (0.91)(7)
2
P(X = 10) = 0.01356
Example 3:
Solution:
Given: 𝑃(𝑋 = 3) = ?
𝑝 = 0.20
1 − 𝑝 = 0.80
𝑟=1
𝑥=3
𝑥−1 𝑟
P(X = x) = ( ) 𝑝 (1 − 𝑝)(𝑥−𝑟)
𝑟−1
3−1
=( ) 0.201 (1 − 0.20)3−1
1−1
= 0.20(1 − 0.20)2
= 0.20 × 0.802
= 0.128
Proof 2:
𝑥+𝑟−1 𝑟
𝑃(𝑋 = 𝑥) = ( ) 𝑝 (1 − 𝑝)𝑥 𝑥 ∈ {0,1,2, … ∞}
𝑟−1
∞
𝑥 + 𝑟 − 1 𝑟 (1
𝐸(𝑋) = ∑ 𝑥 ( )𝑝 − 𝑝)𝑥
𝑟−1
𝑥=0
𝑥+𝑟−1 𝑥(𝑥+𝑟−1)!
Where: 𝑥 ( )=
𝑟−1 𝑥!(𝑟−1)!
𝑟(𝑥 + 𝑟 − 1)!
=
(𝑥 − 1)! 𝑥!
𝑥+𝑟−1
= 𝑟( )
𝑟
∞
𝑥+𝑟−1 𝑟
E(X) = ∑ 𝑥( )𝑝 (1 − 𝑝)𝑥
𝑟
𝑥=1
∞
𝑟 𝑥+𝑟−1
= 𝑟𝑝 ∑( )(1 − 𝑝)𝑥
𝑟−1
𝑥=1
Let 𝑘 =𝑥−1
𝑟 =𝑠−1
∞
𝑘+𝑠−1
= 𝑟𝑝𝑟 ∑( )(1 − 𝑝)𝑘+1
𝑠−1
𝑘=0
∞
𝑟 (1 𝑘+𝑠−1
= 𝑟𝑝 − 𝑝) ∑( )(1 − 𝑝)𝑘 ⇐ 𝐺𝑒𝑜𝑚𝑒𝑡𝑟𝑖𝑐 𝑠𝑒𝑟𝑖𝑒𝑠
𝑠−1
𝑘=0
∞
𝑟 𝑘+𝑠−1
= 𝑟𝑝 (1 − 𝑝) ∑( )(1 − 𝑝)𝑘
𝑠−1
𝑘=0
Where, = [1 − (1 − 𝑝)]−𝑠
= 𝑝−𝑠
= 𝑝−𝑟−1
𝐸(𝑋) = 𝑟𝑝𝑟 (1 − 𝑝)𝑝−𝑟−1
𝒓(𝟏 − 𝒑)
𝝁=
𝒑
BUENAFLOR, MADONNA C. | Negative Binomial Distribution
Example 4: Refer to Example number 3.
Solution:
Given: 𝑝 = 9% 𝑜𝑟 0.09
𝑟 = 3 (3𝑟𝑑)
𝑋 = 10th
r(1 − p)
μ=
p
3(1 − 0.09)
μ=
0.09
μ = 30.3333
Example 5:
A large lot of tires contains 5% defectives. 4 tires are to be chosen for a car.
a. Find the probability that you and 2 defective tires before 4 good ones.
b. Find the mean and variance of the number of defective tires you and
before ending 4 good tires.
Let X = number of defective tires you find before you find 4 good tires.
𝑋 ~ 𝑁𝑒𝑔𝐵𝑖𝑛(4, 0.95)
Solution:
4 + 2 − 1 (0.95)4
a. 𝑃(𝑋 = 2) = ( ) (0.05)2 = 0.02036
2
b.
4 × 0.05 4
𝐸(𝑋) = =
0.95 19
4 × 0.05 80
𝑉(𝑋) = 2
=
0.95 361
Theorem.
Proof 1:
We have
∞
𝑘 − 1 𝑟 𝑘−𝑟
𝐸(𝑋) = ∑ 𝑘 ( )𝑝 𝑞
𝑟−1
𝑘=𝑟
𝑘−1 𝑘 𝑘+1−1
And since 𝑘 ( ) = 𝑟( ) = 𝑟( ), then
𝑟−1 𝑟 𝑟+1−1
∞
𝑟 𝑘 + 1 − 1 𝑘+1−(𝑟+1)
𝐸(𝑋) = 𝑟𝑝 ∑ ( )𝑞
𝑟+1−1
𝑘=𝑟
∞
ℓ−1
= 𝑟𝑝𝑟 ∑ ( ) 𝑞 ℓ−(𝑟+1)
𝑟+1−1
ℓ=r+1
1
= 𝑟𝑝𝑟
(1 − 𝑞)𝑟+1
𝒓
𝝁= ∎
𝒑
Proof 1:
𝑘−1 𝑘+1
Since 𝑘(𝑘 + 1) ( ) = 𝑟(𝑟 + 1) ( )
𝑟−1 𝑟+1
𝑘+2−1
= 𝑟(𝑟 + 1) ( ), then
𝑟+2−1
∞
𝑟 𝑘 + 2 − 1 𝑘+2−(𝑟+2)
𝐸(𝑋(𝑋 + 1) = 𝑟(𝑟 + 1)𝑝 ∑ ( )𝑞
𝑟+2−1
𝑘=1
∞
𝑟 ℓ−1
= 𝑟(𝑟 + 1)𝑝 ∑ ( ) 𝑞 ℓ−(𝑟+2)
𝑟+2−1
ℓ=𝑟+2
1
= 𝑟(𝑟 + 1)𝑝2
(1 − 𝑞)𝑟+2
𝑟(𝑟 + 1)
=
𝑝2
Therefore,
𝑟(𝑟 + 1) 𝑟 𝑟 2
𝑣𝑎𝑟(𝑋) = − − 2
𝑝2 𝑝 𝑝
𝒓𝒑
𝝈= ∎
𝒑𝟐