09.12.2012 Views

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

390 DISCRETE PROBABILITY<br />

There’s a curious relatio:n between S and the sum of domino tilings<br />

in equation (7.1). Indeed, we obtain S from T if we replace each 0 by T and<br />

each E by HT, then tack on an HH at the end. This correspondence is easy to<br />

prove because each element of n has the <strong>for</strong>m (T + HT)"HH <strong>for</strong> some n 3 0,<br />

and each term of T has the <strong>for</strong>m (0 + E)n. There<strong>for</strong>e by (7.4) we have<br />

s = (I-T-HT)-'HH,<br />

and the probability generatin.g function <strong>for</strong> our problem is<br />

G(z) = (1 -w- (P~W-‘(PZ)Z<br />

p*2*<br />

= 1 - qz-pqz* .<br />

(8.64)<br />

Our experience with the negative binomial distribution gives us a clue<br />

that we can most easily calcmate the mean and variance of (8.64) by writing<br />

where<br />

F(z) =<br />

1 - qz-pqz*<br />

P2 ’<br />

and by calculating the “mean” and “variance” of this pseudo-pgf F(z). (Once<br />

again we’ve introduced a function with F( 1) = 1.) We have<br />

F’(1) = (-q-2pq)/p* = 2-p-l -P-*;<br />

F”(1) = -2pq/p* = 2 - 2pP’ .<br />

There<strong>for</strong>e, since z* = F(z)G(z), Mean = 2, and Var(z2) = 0, the mean<br />

and variance of distribution G(z) are<br />

Mean(G) = 2 - Mean(F) = pp2 + p-l ; (8.65)<br />

Var(G) = -Va.r(F) = pP4 � t&-3 -2~-*-~-1. (8.66)<br />

When p = 5 the mean and variance are 6 and 22, respectively. (Exercise 4<br />

discusses the calculation of means and variances by subtraction.)

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

Saved successfully!

Ooh no, something went wrong!