Consider a game played as follows: You are given a regular Markov chain with transition matrix P, fixed probability vector w, and a payoff function f which assigns to each state si an amount fi which may be positive or negative. Assume that wf=0. You watch this Markov chain as it evolves, and every time you are in state si you receive an amount fi. Show that your expected winning after n steps can be represented by a column vector g(n), with
g(n)=(I+P+P2+⋯+Pn)f.
Show that as n→∞, g(n)→g with g=Zf.