Given a markov chain (viewed as a graph) with two absorbing states (ie. there are no outedges to another vertex, just to themselves). Now suppose we are performing a random walk on this graph starting at vertex . What is the probability that the walk ends at versus ?
More generally, we may take a weighted graph with weight for each edge, and set the probability of walking along that edge is where the denominator is a sum over all edges outgoing from the current vertex.
Let us write and and we would like to find what is for .
where each is an edge that goes out from . Multiplying across the denominator and moving it all to one side, we have
for all . Notice that the LHS is exactly what the Kirchoff's matrix of an electrical network is, applied to the vector of probabilities. We may then model these equations with the matrix multiplication:
Suppose there is a straight line with vertices through and edges between and and , with equal probability of transitioning to either of these states. Let and .