A Markov model describes anything that moves step by step between situations, from the weather to an illness to the next word in a sentence, using chances rather than certainties. Its defining assumption is that only the present situation matters for what comes next; once you know where things stand, the past adds nothing.1Wikipedia. Markov property That deliberate forgetfulness is what makes these models simple enough to run on huge problems, and it is also what limits how realistic they can be. The idea dates to the early 1900s, when the Russian mathematician Andrey Markov first tested it by counting letter patterns in Pushkin’s novel Eugene Onegin.2Science in Context. An Example of Statistical Investigation of the Text Eugene Onegin Concerning the Connection of Samples in Chains
The One Rule Behind Every Markov Model
A Markov model is built from states and the moves between them. A state is one of the situations the system can be in, such as “sunny,” “cloudy,” or “rainy” for weather. The model moves from one state to the next in steps, say once a day or once per word. Because each move happens by chance, the model tells you how likely each next state is, not what will definitely happen.3MATH2750 Introduction to Markov Processes. Section 1 Stochastic processes and the Markov property
The key assumption is that the odds of the next step depend only on the current state.3MATH2750 Introduction to Markov Processes. Section 1 Stochastic processes and the Markov property Knowing yesterday and last week tells you nothing extra once you know today.1Wikipedia. Markov property
Snakes and Ladders is a good picture of this. Your next square depends only on where you stand and the roll of the dice. Blackjack is different: cards already dealt change what can come next, so it has memory.
“Memoryless” can be misleading. The past still matters, because it shaped where you are now. The point is that the present already carries everything the model needs. A patient’s history counts only through the health state they are in today, and modelers choose states carefully so that useful history is folded into the present.
Predicting from full histories becomes unmanageable fast, since the possibilities multiply with every step. Dropping history turns a tangled problem into a small set of repeated calculations.
How a Markov Model Works Step by Step
The chances of moving from each state to each other state are arranged in a grid.4Wikipedia. Markov chain Each row is where you start and each column is where you might end up, so the grid is square.5Mathematics LibreTexts. Markov Chains In one bike-share example, the entry for station B to station C was 0.30, a 30% chance a bike at B is at C the next day.5Mathematics LibreTexts. Markov Chains Because something must happen next, every row’s chances add up to exactly 1, or 100%.6Probability Course. What Is a Markov Model? How It Works and Where It’s Used
Take weather. Suppose a sunny day is followed by sun 70% of the time, by cloud 20%, and by rain 10%. Starting from sun, you can work through the table of chances to get odds for two days ahead, and then three, and so on.
By hand, the two-day odds work like this. Take each possible state for tomorrow, multiply its chance by the chance of moving from it to a given state the day after, and add up those products across all the middle states. Doing that for every pair of states is what “multiplying the table by itself” means. The result is a new table of two-step chances whose rows still add up to 100%. The same step repeats for three days, four days, and beyond, which is why computers handle long forecasts easily.
The numbers in the table usually come from counting how often each move happened in past data. The share of times sun followed sun becomes the sun-to-sun chance. More data gives more trustworthy chances, especially for rare moves.
For well-behaved chains, repeating this many times makes the odds settle into a steady pattern that no longer depends on the starting point.7math.uchicago.edu. CONVERGENCE THEOREM FOR FINITE MARKOV CHAINS The model can then say what share of time the system spends in each state over the long run, such as how many days per year are rainy. This settling is guaranteed when every state can eventually reach every other and the chain doesn’t cycle in a fixed rhythm.4Wikipedia. Markov chain
The steady pattern is a statement about long-run averages, not about any single day. Tomorrow can still be rainy even if rain is rare in the long run.
Steps Versus Smooth Time
Some Markov models let changes happen at any instant rather than at fixed ticks. They describe rates of change, and their table’s rows add up to 0 instead of 1.8Wikipedia. Continuous-time Markov chain – Wikipedia Chemists use them to model reactions, with the state being how many molecules of each kind are present and each reaction a possible move.9Mathematics of Control, Signals, and Systems. Continuous time Markov chain models for chemical reaction networks A rate says how quickly moves tend to happen, like reactions per second.
Daily weather or monthly health checks fit naturally into steps. Molecules reacting, or customers arriving at random moments, fit smooth time better.
Hidden States and Decision-Making Versions
In a hidden Markov model, the states themselves can’t be seen, only clues that each state tends to produce.10Wikipedia. Hidden Markov model The goal is to work out the likely hidden states from the visible clues.10Wikipedia. Hidden Markov model Besides the usual table of moves, it needs the chance that each state produces each kind of clue, plus starting odds.11Speech and Language Processing. Hidden Markov Models In language work, the visible clues can be words and the hidden states their grammatical roles, like noun or verb.11Speech and Language Processing. Hidden Markov Models Speech software reasons this way with sounds and words.
Under the hood, the model takes a string of visible clues and weighs every possible sequence of hidden states, asking which would most plausibly produce those clues. At each step it combines how likely each hidden move is with how likely each state is to produce the clue seen. The answer is usually the single most likely hidden sequence, or the odds of each state at each moment, not a certainty. Computers do this efficiently by reusing partial results instead of listing every possible sequence.
A Markov decision process adds actions and rewards, so a decision-maker’s choices shape what happens next.12Wikipedia. Markov decision process The aim is a policy, a rule saying what to do in each state, like a game strategy.13intro to machine learning mit. Markov Decision Processes The best policy maximizes rewards added up over time, with future rewards usually counted for a bit less.12Wikipedia. Markov decision process This is the framework behind reinforcement learning, where AI learns by trial and reward.12Wikipedia. Markov decision process When the decision-maker can’t see the true state, a partially observable version has it keep a running belief and update it with each new clue.14The R Journal. The R Journal: Pomdp: A Computational Infrastructure for Partially Observable Markov Decision Processes
Where Markov Models Are Used
Health economists use Markov models to simulate how treatments affect both patients’ health and costs over time.15Digital Health Outcomes. Markov model for cost-effectiveness analysis They handle long-running illnesses well, where people move between stages over years.16PubMed. An introduction to Markov modelling for economic evaluation One analysis of screening migrants in Europe for Chagas disease used five states: no symptoms yet, heart disease, digestive disease, treatment response, and death.17PubMed. Cost-effectiveness of Chagas disease screening in Latin American migrants at primary health-care centres in Europe: a Markov model analysis Models like this help decide whether a screening or treatment program is worth its cost.
In practice, imaginary patients start in a healthy or early stage. Each year a share moves to worse stages, recovers, or dies according to the table, and costs and quality of life are tallied in each state. The model needs no record of when any patient first became ill, so analysts can follow a group over decades, far longer than most clinical trials run.
The output is usually a comparison of total costs and total health gained under each option, with and without a treatment. If a treatment adds health at a cost per unit of benefit that a health system is willing to pay, it may be judged good value. Because the inputs are estimates, analysts rerun the model with different numbers to see whether the conclusion survives, which shows how much to trust it.
Hidden Markov models were for years the best-performing approach to computer speech recognition.18The Lincoln Laboratory Journal. Speech Recognition Using Hidden Markov Models Language models that predict the next word from the previous few words are a kind of Markov model.19Association for Computational Linguistics. Speech Recognition and the Frequency of Recently Used Words: A Modified Markov Model for Natural Language You may have met this in older phone voice assistants and dictation, and in predictive text that suggests your next word.
In finance, regime-switching models treat markets as flipping between calm and turbulent periods.20Energy Policy. Volatility behavior of oil, industrial commodity and stock markets in a regime-switching environment One finding is that market swings tend to be larger in falling-market periods than in rising ones.20Energy Policy. Volatility behavior of oil, industrial commodity and stock markets in a regime-switching environment Forecasters have used Markov chains to predict drought levels, from no drought to extreme drought, using decades of rainfall records.21Theoretical and Applied Climatology. Evaluating Markov chains and Bayesian networks as probabilistic meteorological drought forecasting tools in the seasonally dry tropics of Costa Rica In genetics, hidden Markov models help analyze DNA and protein sequences that change from position to position.22Proceedings of the seventh annual international conference on Research in computational molecular biology. Combining phylogenetic and hidden Markov models in biosequence analysis
Statistics itself borrows the idea. A method called Markov chain Monte Carlo builds a chain whose long-run pattern matches a complicated probability that can’t be sampled directly.23Mathematics Department, University of Chicago. Markov Chain Monte Carlo: The Metropolis Hastings Algorithm Running the chain produces samples statisticians use for complex models across many fields.24Wikipedia. Metropolis–Hastings algorithm
What Markov Models Get Wrong
The ‘only now matters’ rule is often unrealistic in practice.25PubMed Central. Using higher-order Markov models to reveal flow-based communities in networks People navigating Wikipedia toward a goal chose their next topic based on their previous two clicks, not just the last one.26PubMed Central. Detecting Memory and Structure in Human Navigation Patterns Using Markov Chain Models of Varying Order A one-step model sees only the current page and treats all visitors there alike, even though they are following different plans. Looking back two clicks reveals the direction of travel, so second-order models that look back two steps fit that behavior better.26PubMed Central. Detecting Memory and Structure in Human Navigation Patterns Using Markov Chain Models of Varying Order Looking further back, though, makes the model react more slowly and need more data.27PubMed Central. Higher-Order Markov Model-Based Analysis of Reinforcement Learning in 6G Mobile Retrial Queueing Systems
There are two repairs. One is a higher-order model that conditions on the last two or three steps. The other is to redefine each state to include recent history, such as “rainy after a sunny day” as one state. The second keeps the one-step rule technically intact, but the number of states grows.
That growth is the second problem. A model with 100 states has 9,900 move chances to estimate, beyond those fixed by each row adding up to 100%.28Unidata. Markov Models: The Definitive Guide to Theory and Applications Rare moves get unreliable estimates when data is limited.28Unidata. Markov Models: The Definitive Guide to Theory and Applications
Are Chatbots Just Markov Models
Large language models work with so many possibilities and long-range connections that they can’t be reduced to classic Markov structures.29arXiv. Additive Multi-Step Markov Chains and the Curse of Dimensionality in Large Language Models The two do share a habit: both produce text one piece at a time, by chance. A classic word-chain generator picks each word from a table of which words followed the previous word in some body of text. That is why its sentences often read as fluent for a few words and then lose the thread. A chatbot weighs a whole conversation, so a claim in the first paragraph can still affect the last, and its text stays on topic where simple chains wander.
Markov thinking still lives inside AI. The decision-making version shapes modern systems, since reinforcement learning is built on it.12Wikipedia. Markov decision process Newer research blends learning from an AI’s own actions with learning from past records within this framework.30icml.cc. Hybrid Reinforcement Learning in Adversarial Markov Decision Processes

