Please verify you are human to use the simulator.
Specify the probability of moving between each pair of states. Each row must sum to 1, encoding a valid probability distribution over next states.
The power method iteratively multiplies a uniform distribution by the transition matrix until convergence, revealing the long-run fraction of time spent in each state.
Starting from a chosen state, each step samples the next state from the current row of the transition matrix. Visit counts accumulate into empirical state proportions.
The stacked area chart shows how the empirical distribution evolves over time, gradually converging to the theoretical stationary distribution as more steps are simulated.
Markov chains are foundational to many areas of machine learning and statistics. Hidden Markov Models extend the basic framework by introducing latent states that emit observations, enabling powerful sequence modelling for speech, genomics, and financial regime detection — explore this in our guide to Hidden Markov Models: When Clusters Have Memory.
Markov Chain Monte Carlo (MCMC) methods construct Markov chains whose stationary distribution matches a target posterior, enabling Bayesian inference for complex models. The Metropolis-Hastings Island Hopping Guide walks through the most widely used MCMC algorithm, while our MCMC Poisson Mixture for Earthquake Regimes demonstrates a practical application to real-world data.
State models of this kind earn their place when the transition matrix is estimated from data that keeps arriving, which makes monitoring and retraining part of the build rather than an afterthought. Scoping that is our AI pilot design work, and it sits within the wider boutique AI consultancy remit.
Edit a 2x2 matrix and read its eigenvectors and eigenvalues off the plot, then switch to SVD to see the unit circle stretched into an ellipse.
Try itWatch a Q-learning agent train in a 5×5 grid world. Live Q-value heatmap, policy arrows, and configurable hyperparameters.
Try itInteractive probability distribution calculators. Visualise Normal, Binomial, Poisson, Beta, and 12 more distributions with live PDF/CDF charts.
Try itGet notified when new tutorials and deep-dives are published. No spam, unsubscribe anytime.
Common questions about Markov chains, transition matrices, and stationary distributions