I found an interesting problem in my book:
There is a game where player starts with $k\$$. In each step he wins or loses $1\$$ (both with probability $p=\frac{1}{2}$). The game ends when player has $0$ or $n$ dollars. Calculate:
- probability of reaching $n$ dollars.
- expected number of steps during the game.
This exercise is to practice Markov chains. So I imagine this as a graph: $$0\leftarrow1\leftrightarrow2\leftrightarrow...\leftrightarrow (k-1) \leftrightarrow k \leftrightarrow (k+1)\leftrightarrow...\leftrightarrow (n-1) \rightarrow n$$ where every edge has probability $\frac{1}{2}$.
And my approach was: let $f_{k,n}$ denote probability of winning $n\$$, starting with $k\$$. So we need to calculate it, and we know that $\forall_{1<i<n}$ we have: $f_{i,k}=\frac{1}{2}f_{i-1,n}+\frac{1}{2}f_{i+1,n}$ and $f_{1,n}=\frac{1}{2}f_{2,n}$ and $ f_{n,n}=1$. But this gives us system of recurrences which does not seem to be solvable (but only from my point of view, of course). I think it is a dead end, and this task need some smart observation.
Can anybody help?
