Use simple random walk on the loopless undirected unweighted graph, with transition probability to each graph neighbour, and take . Set . Returns to before visiting do not end the commute. After its first visit to , stop at the subsequent first visit to , so . Count transitions with departure times , including the final step arriving at . The expected hitting times are finite: in a finite connected graph there is a uniformly positive probability to reach any fixed target within a fixed number of steps, giving a geometric tail bound.
We prove the needed killed-walk occupation voltage identity from its visit balance equation. Define
For , counting arrivals before absorption gives
Hence, for the Graph Laplacian , we have away from . Since the sum of all Laplacian coordinates is zero, . Thus is the electrical voltage of a unit flow from to , grounded at , and .
Construct for the opposite killed leg. It satisfies and . Therefore . The harmonic maximum principle on a finite graph makes constant: at a maximum its value equals the average over its graph neighbours, forcing all of them to share that value, and connectedness propagates it. At the constant equals .
For any oriented edge , each visit to before the target hit produces a transition to with conditional probability . The expected traversals during the first killed leg are therefore , and those during the second leg are by the Strong Markov property at . This proves directed edge occupation in a random-walk commute:
In particular, both directions of every unoriented edge have this same expected value, although their counts on an individual commute need not coincide. Summing over the directed edges also recovers the commute time identity .
The distinct-terminal convention is necessary for the printed “returns” interpretation. If and is the first positive return, a graph with two graph vertices and one edge gives while . Thus either take , as intended, or explicitly define the degenerate commute as . A general nonuniform random walk is not covered by the unweighted simple-walk formula.
Group the random resistance cost by unoriented edges. For , its resistance contributes once whenever the walk traverses it in either direction. Pathwise,
The graph is finite and the commute has finite expected value. Linearity of expectation, or Tonelli theorem for these nonnegative terms, therefore permits taking expectations of the sum. By the directed edge occupation in a random-walk commute, both directed traversal counts have expected value . Thus
Apply Foster's theorem from part (a) to obtain
The factor two counts the two orientations of each edge. It would be lost by treating the expected directed count in part (b) as an expected count for both directions together. The same distinct-terminal and simple-random-walk conventions from part (b) remain in force.