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.

20.1. DISCRETE-TIME MARKOV CHAINS 401<br />

Intuitively, the existence <strong>of</strong> πi implies that as t approaches infinity, the system approaches steadystate,<br />

in the sense that<br />

lim<br />

t→∞ P (Xt = i) = πi<br />

(20.4)<br />

Actually, the limit (20.4) may not exist in some cases. We’ll return <strong>to</strong> that point later, but for<br />

typical cases it does exist, and we will usually assume this.<br />

20.1.2.1 Derivation <strong>of</strong> the Balance Equations<br />

Equation (20.4) suggests a way <strong>to</strong> calculate the values πi, as follows.<br />

First note that<br />

P (Xt+1 = i) = <br />

P (Xt = k and Xt+1 = i) = <br />

P (Xt = k)P (Xt+1 = i|Xt = k) = <br />

P (Xt = k)pki<br />

k<br />

k<br />

k<br />

(20.5)<br />

where the sum goes over all states k. For example, in our random walk example above, we would<br />

have<br />

P (Xt+1 = 3) =<br />

5<br />

P (Xt = k and Xt+1 = 3) =<br />

k=1<br />

5<br />

P (Xt = k)P (Xt+1 = 3|Xt = k) =<br />

k=1<br />

Then as t → ∞ in Equation (20.5), intuitively we would have<br />

πi = <br />

k<br />

πkpki<br />

5<br />

P (Xt = k)pk3<br />

k=1<br />

(20.6)<br />

(20.7)<br />

Remember, here we know the pki and want <strong>to</strong> find the πi. Solving these balance equations<br />

equations (one for each i), gives us the πi.<br />

For the random walk problem above, for instance, the solution is π = ( 1 3 3 3 1<br />

11 , 11 , 11 , 11 , 11 ). Thus in<br />

the long run we will spend 1/11 <strong>of</strong> our time at position 1, 3/11 <strong>of</strong> our time at position 2, and so<br />

on.

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

Saved successfully!

Ooh no, something went wrong!