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.

382 DISCRETE PROBABILITY<br />

(1 +z+... + znP1)/n, yet it seems that we must resort to L’Hospital’s rule<br />

to find lim,,, U,(z) if we want to determine U,( 1) from the closed <strong>for</strong>m.<br />

The determination of UA( 1) by L’Hospital’s rule will be even harder, because<br />

there will be a factor of (z- 1 1’ in the denominator; l-l: (1) will be harder still.<br />

Luckily there’s a nice way out of this dilemma. If G(z) = Ena0 gnzn is<br />

any power series that converges <strong>for</strong> at least one value of z with Iz/ > 1, the<br />

power series G’(z) = j-n>OngnznP’ will also have this property, and so will<br />

G”(z), G”‘(z), etc. There/<strong>for</strong>e by Taylor’s theorem we can write<br />

G(,+t) = G(,)+~~t+~t2+~t3+...;<br />

(8.33)<br />

all derivatives of G(z) at z =. 1 will appear as coefficients, when G( 1 + t) is<br />

expanded in powers of t.<br />

For example, the derivatives of the uni<strong>for</strong>m pgf U,(z) are easily found<br />

in this way:<br />

1 (l+t)“-1<br />

U,(l +t) = ; t _<br />

Comparing this to (8.33) gives<br />

= k(y) +;;(;)t+;(;)t2+...+;(;)tn-l<br />

U,(l) = 1; u;(l) = v; u;(l) = (n-l)(n-2);<br />

3<br />

(8.34)<br />

and in general Uim’ (1) = (n -- 1 )“/ (m + 1 ), although we need only the cases<br />

m = 1 and m = 2 to compute the mean and the variance. The mean of the<br />

uni<strong>for</strong>m distribution is<br />

n - l<br />

ulm = 2’<br />

and the variance is<br />

U::(l)+U:,(l)-U:,(l)2 = 4<br />

(n- l)(n-2) +6(n-l) 3 (n-l)2<br />

~_<br />

12 12 12<br />

(8.35)<br />

The third-nicest thing about pgf’s is that the product of pgf’s corresponds<br />

to the sum of independent random variables. We learned in Chapters 5 and 7<br />

that the product of generating functions corresponds to the convolution of<br />

sequences; but it’s even more important in applications to know that the<br />

convolution of probabilities corresponds to the sum of independent random

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

Saved successfully!

Ooh no, something went wrong!