Analyze a transition matrix \(P\) (row-stochastic). Compute a steady state \(\pi\) by solving \(\pi P=\pi\) with \(\sum_i \pi_i=1\), detect absorbing states, compute \(n\)-step transitions \(P^n\), and visualize state probabilities over time.
Markov Chain Matrix Analyzer
Math Linear Algebra • Applications and Advanced Linear Algebra (capstone)
Frequently Asked Questions
What does it mean for P to be row-stochastic?
Every entry is nonnegative and each row sums to 1. Row i represents a probability distribution over the next state given the current state i.
How is the steady state computed?
The calculator solves πP=π with sum(π)=1 by converting it to (P^T - I)π^T=0 and replacing one equation with the normalization constraint; if the system is ill-conditioned, it falls back to an iterative approximation.
What is an absorbing state?
A state i is absorbing if p_ii=1 and p_ij=0 for all j≠i. Once entered, the chain stays there forever.
Why might the chain not converge to a single steady state?
If the chain is reducible, periodic, or has multiple closed classes, it may have multiple stationary distributions or oscillate. Regular/ergodic chains converge to a unique π.