How to Kemeny
Currently, I am working on the revision of StationRank, a paper we wrote with Vahid Moosavi. In the words of one of the academic referees: “The paper presents a Markov Chain (MC) framework to analyse daily aggregated itineraries of the swiss railway systems. They use their MC framework to asses the congestion, resilience and fragility of the railway network”. In the preprint we also discuss the relevance of a somewhat obscure notion: the Kemeny’s constant.
Preliminaries and assumptions
For this brief analysis, I assume an ergodic MC of discrete time in first order, with a row-stochastic transition probability matrix . By solving , we obtain the stationary distribution vector and the eigenvalues . Having the eigenvalues, we directly obtain the Kemeny constant 1. This is very straightforward to calculate, but difficult to interpret. I would like to focus on another formulation in terms of mean first passage time which grants us more insight to the inner workings of .
Mean First Passage Time
Mean first passage time is the expected number of steps from an origin state to a destination state . The equation is yet another, more intuitive way to calculate the Kemeny constant as the average mean first passage time from any origin state to any other destination state chosen according to the probability and shows that is independent from the choice of the initial state .
Obviously now, in addition to , we also need to calculate mean first passage time, which in turn requires the calculation of the group (special case of Drazin) inverse of .
A matrix is the group inverse of if and only if:
Interpretability often comes at a cost.
The mean first passage time can be calculated as follows: .
Takeaway
If instead of , which by definition is expected to have very similar distribution for different initial stations, we have a look at the mean , then we come up with a kind of accessibility analysis in terms of “remoteness” of train stations. This can be easily verified on a map. Geographic distribution of mean , a measure of “remoteness”
1: E. Crisostomi, S. Kirkland & R. Shorten (2011) A Google-like model of road network dynamics and its application to regulation and control, International Journal of Control, 84:3, 633-651, DOI: 10.1080/00207179.2011.568005