20.03.2013 Views

From Algorithms to Z-Scores - matloff - University of California, Davis

From Algorithms to Z-Scores - matloff - University of California, Davis

From Algorithms to Z-Scores - matloff - University of California, Davis

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.12. PARAMETERIC FAMILIES OF PMFS 65<br />

“outside world,” i.e. <strong>to</strong> the remaining n-k nodes. So, the distribution <strong>of</strong> T is binomial with<br />

trials and success probability p.<br />

k(n − k) +<br />

<br />

k<br />

2<br />

3.12.3 The Negative Binomial Family <strong>of</strong> Distributions<br />

(3.110)<br />

Recall that a typical example <strong>of</strong> the geometric distribution family (Section 3.12.1) arises as N, the<br />

number <strong>of</strong> <strong>to</strong>sses <strong>of</strong> a coin needed <strong>to</strong> get our first head. Now generalize that, with N now being<br />

the number <strong>of</strong> <strong>to</strong>sses needed <strong>to</strong> get our r th head, where r is a fixed value. Let’s find P(N = k), k<br />

= r, r+1, ... For concreteness, look at the case r = 3, k = 5. In other words, we are finding the<br />

probability that it will take us 5 <strong>to</strong>sses <strong>to</strong> accumulate 3 heads.<br />

First note the equivalence <strong>of</strong> two events:<br />

{N = 5} = {2 heads in the first 4 <strong>to</strong>sses and head on the 5 th <strong>to</strong>ss} (3.111)<br />

That event described before the “and” corresponds <strong>to</strong> a binomial probability:<br />

P (2 heads in the first 4 <strong>to</strong>sses) =<br />

<br />

4 1<br />

2 2<br />

4<br />

(3.112)<br />

Since the probability <strong>of</strong> a head on the k th <strong>to</strong>ss is 1/2 and the <strong>to</strong>sses are independent, we find that<br />

P (N = 5) =<br />

<br />

4 1<br />

2 2<br />

5<br />

= 3<br />

16<br />

(3.113)<br />

The negative binomial distribution family, indexed by parameters r and p, corresponds <strong>to</strong> random<br />

variables that count the number <strong>of</strong> independent trials with success probability p needed until we<br />

get r successes. The pmf is<br />

We can write<br />

P (N = k) =<br />

<br />

k − 1<br />

(1 − p)<br />

r − 1<br />

k−r p r , k = r, r + 1, ... (3.114)<br />

N = G1 + ... + Gr<br />

(3.115)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!