rowstochastic
Row-stochastic, or a row-stochastic matrix, is a square matrix P with nonnegative entries in which the sum of the entries in every row equals 1. Each row of P represents a probability distribution over states, so the entry Pij gives the probability of moving from state i to state j in one step of a finite Markov chain or other stochastic process.
Key properties include that the vector of all ones is a right eigenvector of P with eigenvalue
The stationary distribution can be interpreted as the long-run distribution of states under the Markov process
Relation to column-stochastic matrices: a matrix is row-stochastic if its rows sum to 1, while its transpose
Example: P = [[0.7, 0.3], [0.4, 0.6]] is row-stochastic. Its stationary distribution is pi = [4/7, 3/7], since