Theorem (linear equations for hitting probability)

Consider a Markov chain on $I$ with a transition matrix $P$, and let $A\subseteq I$.

The hitting probability $(h_i^A)_{i\in I}$ is the minimal non-negative solution to the system of linear equations $$ \begin{align*} h_i^A = \begin{cases} 1, &\text{if }i\in A,\\ \sum_{j\in I} P(i,j) h_j^A = (Ph^A)_i, &\text{if } i\not\in A, \end{cases} \end{align*} $$ i.e. if $(h_i)_{i\in A}$ is another non-negative solution, then $h_i^A \leq h_i$ for all $i\in I$.

Proof