pysal.explore.giddy.ergodic.steady_state(P)[source]

Calculates the steady state probability vector for a regular Markov transition matrix P.

Parameters: P : array (k, k), an ergodic Markov transition probability matrix. : array (k, ), steady state distribution.

Examples

Taken from [KS67]. Land of Oz example where the states are Rain, Nice and Snow, so there is 25 percent chance that if it rained in Oz today, it will snow tomorrow, while if it snowed today in Oz there is a 50 percent chance of snow again tomorrow and a 25 percent chance of a nice day (nice, like when the witch with the monkeys is melting).

>>> import numpy as np