On this page
Voltages in a resistor circuit and the chance that a random walker gets home first are the same calculation. Peter Doyle and J. Laurie Snell built a short book on this, Random Walks and Electric Networks, first published by the Mathematical Association of America in 1984 and now free on arXiv.
Why does the probability of reaching A before B equal a voltage?
Replace each edge of a connected graph with a 1-ohm resistor. A simple random walk moves along one of its vertex's edges, each with equal probability. Let p(x) be the chance that the walk, starting at x, reaches A before B. Then p(A) = 1, p(B) = 0, and at every other vertex p(x) is the average of p over the neighbours, because the first step goes to each neighbour equally often.
Now hold A at 1 volt and B at 0. Kirchhoff's current law with equal resistors gives the same rule: v(x) is the average of v over the neighbours. In the first chapter of their book, Doyle and Snell prove a uniqueness principle: only one function has these boundary values and this averaging property, so p(x) = v(x). On a straight street of N blocks this gives p(x) = x/N, the gambler's ruin formula.
What is commute time, and why is it 2m times the effective resistance?
The commute time between vertices s and t is the expected number of steps to go from s to t and back. Ashok Chandra, Prabhakar Raghavan, Walter Ruzzo, Roman Smolensky and Prasoon Tiwari proved that the commute time equals 2m times R(s,t), where m is the number of edges and R(s,t) is the effective resistance between s and t (Computational Complexity, DOI 10.1007/BF01270385; first presented at STOC 1989).
Effective resistance is the single resistor that could replace the network between s and t, found with the series and parallel rules from school. If those feel shaky, revisit how current splits between parallel resistors.
Worked example: a small network with series and parallel resistors
Take four vertices A, C, D, B and four edges: A–C, C–B, C–D and D–B, so m = 4. Every edge is a 1-ohm resistor.
The path C–D–B is two resistors in series: 2 Ω.
That is in parallel with the direct edge C–B (1 Ω): 1 × 2 / (1 + 2) = 2/3 Ω.
Add A–C in series: R(A,B) = 1 + 2/3 = 5/3 Ω.
Voltages. Put 1 V on A and 0 V on B. The current is 1 ÷ (5/3) = 0.6 A. The drop across A–C is 0.6 V, so v(C) = 0.4 V. The C–D–B branch carries 0.4 ÷ 2 = 0.2 A, so v(D) = 0.2 V.
Check with probability. From C the walk goes to A, B or D with chance 1/3 each, so p(C) = (1 + 0 + p(D))/3. From D it goes to C or B, so p(D) = p(C)/2. Solving gives p(C) = 2/5 and p(D) = 1/5: exactly the voltages.
Commute time. The theorem of Chandra and co-authors gives 2 × 4 × 5/3 = 40/3, about 13.3 steps. Check with expected steps k(x) to reach B: k(A) = 1 + k(C), k(C) = 1 + (k(A) + k(D))/3, k(D) = 1 + k(C)/2, so k(A) = 13/3. The same method from B to A gives 9, and 13/3 + 9 = 40/3. The legs differ; only the round trip is fixed by resistance.
Why does a 2D random walk always come back?
George Pólya proved in 1921 (Mathematische Annalen, vol. 84) that a simple random walk on the square grid returns to its start with probability 1, while in three dimensions it may escape for ever. In Doyle and Snell's version, the escape probability from the origin is 1/(2d × R), where d is the dimension and R is the resistance from the origin to infinity (Section 2.1.6). The walk is recurrent exactly when that resistance is infinite.
For the plane, short together the nodes on each square ring around the origin; shorting can only lower resistance. Between ring n and ring n + 1 there are 8n + 4 resistors in parallel, giving a chain of 1/4, 1/12, 1/20 ohm and so on. The sum of 1/(8n + 4) diverges like the harmonic series, so even this lower bound is infinite and the walk always returns. In three dimensions they cut resistors away instead, leaving a finite resistance, so the walk can escape. For the probability side, read our explainer on Pólya's recurrence theorem.
How can you use this in your own problem solving?
Treat 'reach X before Y' on a graph as a circuit: fix the two boundary values, then average at every other vertex.
Use circuit symmetry: points at equal voltage can be joined or separated freely.
Check answers both ways, as above; each method catches the other's slips.
These are linear equations on a Markov chain, like those for a Markov chain's stationary distribution.
If effective resistance is the weak link, the Fermi Concept Library covers every concept in physics, chemistry, biology, mathematics and computing. To practise, the Fermi Problem Library has a step-by-step solver that explains the reasoning.



