

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Sections 5.3 lecture notes Math331, Fall 2008 Instructor: David Anderson
Geometric RV:
We’ve seen this. Consider lots of Bernoulli trials performed UNTIL A SUCCESS HAP- PENS. Sample space is S = {s, f s, f f s, f f f s, ...}.
Suppose prob. of success is p. Let X be number of trials until a success. WHAT IS THE RANGE? R(X) = { 1 , 2 , 3 , ...}. The probability mass function is given by
P (X = n) = (1 − p)n−^1 p, n ∈ R(X).
Note, by Geometric series ∑^ ∞
n=
P (X = n) =
n=
(1 − p)n−^1 p = p
n=
(1 − p)n−^1 = p
n=
(1 − p)n^ = p
1 − (1 − p)
A random variable with this prob. mass function is called GEOMETRIC. Properties:
E[X] =
p
, V ar(X) =
1 − p p^2
Example 1. Drawing cards with replacement and wanting an Ace. p = 1/13. So
n=
)n− 1 1 13
n=
n=
)n
What is the minimum number of draws required to get an Ace with probability .95?
Solution: We want the smallest n such that P (X ≤ n) ≥ .95. Therefore, we want 1 − P (X > n) ≥ .95 or P (X > n) ≤ 0 .05. P (X > n) = (12/13)n.
So need (12/13)n^ ≤ 0 .05 or n ln(12/13) ≤ ln(0.05) or n ≥ ln(0.05)/ ln(12/13) = 37.42. Thus, n is 38.
Memoryless Property: Let X be Geometric. Then for all n, m ≥ 1
P (X > n + m | X > m) =
P (X > n + m) P (X > m)
n + m failures to start m failures to start
=
(1 − p)n+m (1 − p)m^
= (1 − p)n^ = P (X > n).
So prob that next n will be failures given first m were is same as prob. that first n are failures. Intuitive by independence. However, Geometric is the only discrete RV with this property.
Quicker now Negative Binomial:
Generalized geometric. Have a sequence of Bernoulli trials with prob. success = p. Let X be the number of experiments until the rth success occurs. Then X is Negative Binomial with parameters r, p. Note that NegBin(1, p) = Geom(p). The range is R(X) = {r, r+1, r+2, ....} and for n ∈ R(X) (using independence)
P (X = n) = P (r − 1 successes in n − 1 trials and then success on nth) = P (r − 1 successes in n − 1 trials)P (success) = P (binom(n − 1 , p) = r − 1)p
=
n − 1 r − 1
pr−^1 (1 − p)n−^1 −(r−1)p
n − 1 r − 1
pr(1 − p)n−r.
We have
E[X] =
r p
, V ar(X) =
r(1 − p) p^2
Example 2. The Red Sox and Brewers are playing for the World Series. The prob. that the Red Sox win each game is .55. What is the probability that the Brewers win in 6?
Solution: Let X be number of games needed until Brewers win 4th. This is NegBin(r=4,p=.45). Therefore,
P (X = 6) =
Hypergeometric RV
Suppose we have a box with N total items, D of which are defective and N − D are non-defective. Suppose n are drawn WITHOUT REPLACEMENT. Also suppose n ≤ min{D, N − D}. Suppose X is number of defective items chosen. Then X is discrete RV with range R(X) = { 0 , 1 , 2 , ...n} and prob. mass function x ∈ { 0 , 1 , ..., n}
p(x) = P (X = x) =
x
n−x
n
This is Hypergeometric prob. mass function. We have
nD N
n) V ar(X) =
nD(N − D) N 2
n − 1 N − 1
Note that if we had replacement, X would be binomial with parameters n and D/N = p. Thus,
E[X] = np = n
, V ar(X) = np(1 − p) = n
nD(N − D) N 2
This is accurate so long as n << N. Why? Because replacement shouldn’t matter in that case. So when n << N , binomial is a good approximation to Hypergeometric.
Hw pgs 224-226, #’s 3, 5, 9, 15, 16.