- This program computes the fixed vector w for an ergodic Markov chain with transition matrix P. You input the "Matrix size" (number of states) and then, after clicking on "Create", you input the transition matrix.