Docsity

Discrete Random Variables: Geometric, Negative Binomial, and Hypergeometric Lecture Notes, Study notes of Mathematics

Toggle sidebar
bg1
Sections 5.3 lecture notes
Math331, Fall 2008
Instructor: David Anderson
Section 5.3: other discrete RVs
Geometric RV:
We’ve seen this. Consider lots of Bernoulli trials performed UNTIL A SUCCESS HAP-
PENS. Sample space is
S={s, f s, ff s, f ff s, ...}.
Suppose prob. of success is p. Let Xbe 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−1p, n ∈R(X).
Note, by Geometric series
∞
X
n=1
P(X=n) =
∞
X
n=1
(1 −p)n−1p=p
∞
X
n=1
(1 −p)n−1=p
∞
X
n=0
(1 −p)n=p1
1−(1 −p)= 1.
A random variable with this prob. mass function is called GEOMETRIC. Properties:
E[X] = 1
p, V ar(X) = 1−p
p2.
Example 1. Drawing cards with replacement and wanting an Ace. p= 1/13. So
P(X≥10) =
∞
X
n=10 12
13n−11
13 =1
13
∞
X
n=9 12
13n
=1
13 12
139∞
X
n=0 12
13n
=1
13 12
1391
1−(12/13) =12
139
≈.49.
What is the minimum number of draws required to get an Ace with probability .95?
Solution: We want the smallest nsuch 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 nln(12/13) ≤ln(0.05) or n≥ln(0.05)/ln(12/13) = 37.42. Thus,
nis 38.
Memoryless Property: Let Xbe Geometric. Then for all n, m ≥1
P(X > n +m|X > m) = P(X > n +m)
P(X > m)=n+mfailures to start
mfailures to start
=(1 −p)n+m
(1 −p)m= (1 −p)n=P(X > n).
So prob that next nwill be failures given first mwere is same as prob. that first nare
failures. Intuitive by independence. However, Geometric is the only discrete RV with this
property.
1
pf2

Partial preview of the text

Download Discrete Random Variables: Geometric, Negative Binomial, and Hypergeometric Lecture Notes and more Study notes Mathematics in PDF only on Docsity!

Sections 5.3 lecture notes Math331, Fall 2008 Instructor: David Anderson

Section 5.3: other discrete RVs

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

P (X ≥ 10) =

∑^ ∞

n=

)n− 1 1 13

∑^ ∞

n=

)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) =

. 454 (.55)^6 −^4 =. 124.

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) =

(D

x

)(N −D

n−x

(N

n

This is Hypergeometric prob. mass function. We have

E[X] =

nD N

D

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

D

N

, V ar(X) = np(1 − p) = n

D

N

D

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.