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.

422 CHAPTER 20. MARKOV CHAINS<br />

20.5.4 Example: Finite Random Walk<br />

Let’s go back <strong>to</strong> the example in Section 20.1.1.<br />

Suppose we start our random walk at 2. How long will it take <strong>to</strong> reach state 4? Set bi =<br />

E(Ti4|start at i). <strong>From</strong> (20.62) we could set up equations like<br />

b2 = 1<br />

3 (1 + b1) + 1<br />

3 (1 + b2) + 1<br />

3 (1 + b3) (20.71)<br />

Now change the model a little, and make states 1 and 6 absorbing. Suppose we start at position<br />

3. What is the probability that we eventually are absorbed at 6 rather than 1? We could set up<br />

equations like (20.65) <strong>to</strong> find this.<br />

20.5.5 Example: Tree-Searching<br />

Consider the following Markov chain with infinite state space {0,1,2,3,...}. 8 The transition matrix<br />

is defined by pi,i+1 = qi and pi0 = 1 − qi. This kind <strong>of</strong> model has many different applications,<br />

including in computer science tree-searching algorithms. (The state represents the level in the tree<br />

where the search is currently, and a return <strong>to</strong> 0 represents a backtrack. More general backtracking<br />

can be modeled similarly.)<br />

The question at hand is, What conditions on the qi will give us a positive recurrent chain?<br />

Assuming 0 < qi < 1 for all i, the chain is clearly irreducible. Thus, <strong>to</strong> check for recurrence, we<br />

need check only one state, say state 0.<br />

For state 0 (and thus the entire chain) <strong>to</strong> be recurrent, we need <strong>to</strong> show that P (T00 < ∞) = 1. But<br />

Therefore, the chain is recurrent if and only if<br />

P (T00 > n) = Π n−1<br />

i=0 qi<br />

(20.72)<br />

lim<br />

n→∞ Πn−1<br />

i=0 qi = 0 (20.73)<br />

For positive recurrence, we need E(T00) < ∞. Now, one can show that for any nonnegative integer-<br />

8 Adapted from Performance Modelling <strong>of</strong> Communication Networks and Computer Architectures, by P. Harrison<br />

and N. Patel, pub. by Addison-Wesley, 1993.

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

Saved successfully!

Ooh no, something went wrong!