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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

21.2. M/M/1 431<br />

• Due <strong>to</strong> the memoryless property, S1,resid has the same distribution as do the other Si.<br />

• The distribution <strong>of</strong> the service times Si and queue length N observed by our tagged job is the<br />

same as the distributions <strong>of</strong> those quantities at all times, not just at arrival times <strong>of</strong> tagged<br />

jobs. This property can be proven for this kind <strong>of</strong> queue and many others, and is called<br />

PASTA—Poisson Arrivals See Time Averages.<br />

(Note that the PASTA property is not obvious. On the contrary, given our experience with<br />

the Bus Paradox and length-biased sampling in Section 18.2, we should be wary <strong>of</strong> such<br />

things. But the PASTA property does hold and can be proven.)<br />

But that last term in (21.14), E[g(w) N+1 ], is the generating function <strong>of</strong> N+1, evaluated at g(w).<br />

And we know from Section 21.2.2 that N+1 has a geometric distribution. The generating function<br />

for a nonnegative-integer valued random variable K with success probability p is<br />

gK(s) = E(s K ) =<br />

∞<br />

s i (1 − p) i−1 p =<br />

i=1<br />

In (21.14), we have p = 1 -u and s = g(w). So,<br />

E(v N+1 ) =<br />

Finally, by definition <strong>of</strong> Laplace transform,<br />

g(w) = E(e −wS ∞<br />

) =<br />

0<br />

g(w)(1 − u)<br />

1 − u[g(w)]<br />

ps<br />

1 − s(1 − p)<br />

e −wt µe −µt dt = µ<br />

w + µ<br />

So, from (21.11), (21.17) and (21.18), the Laplace transform <strong>of</strong> R is<br />

µ(1 − u)<br />

w + µ(1 − u)<br />

(21.16)<br />

(21.17)<br />

(21.18)<br />

(21.19)<br />

In principle, Laplace transforms can be inverted, and we could use numerical methods <strong>to</strong> retrieve<br />

the distribution <strong>of</strong> R from (21.19). But hey, look at that! Equation (21.19) has the same form as<br />

(21.18). In other words, we have discovered that R has an exponential distribution <strong>to</strong>o, only with<br />

parameter µ(1 − u) instead <strong>of</strong> µ.<br />

This is quite remarkable. The fact that the service and interarrival times are exponential doesn’t<br />

mean that everything else will be exponential <strong>to</strong>o, so it is surprising that R does turn out <strong>to</strong> have<br />

an exponential distribution.

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

Saved successfully!

Ooh no, something went wrong!