From Andrey Markov's work beginning in 1906 on sequences of dependent variables, which he applied in 1913 to the vowels and consonants of Pushkin's Eugene Onegin.
A model of a system that moves between states, with each move governed by the present state alone, so a table of transition probabilities forecasts the system's state after many steps.
Where 100 new customers sit after two years, given how fast they go dormant and how many return
Every month some active customers go dormant, some dormant ones return, and some cancel for good, and each arrow is one of those monthly moves. Set the dormancy rate and the win-back rate, and compare halving the first with doubling the second. Illustrative.
Active customers, percent
Dormant customers, percent
Canceled customers, percent
Month 24 of 24
- Active customers, percent
- 57
- Dormant customers, percent
- 12
- Canceled customers, percent
- 31
- Active
- Customers who used the product this month.
- Dormant
- Customers who are paying but have stopped using it. They return or cancel with fixed monthly chances.
- Canceled
- A state customers never leave, which makes it absorbing.
An example
A subscription software company counted its customers as active or not and watched the active count slip, with no clear cause. The analyst proposed treating each customer as being in one of three states in any month: active, dormant, or gone. She counted, from two years of records, how many customers moved between states each month. Six percent of active customers went dormant, twenty percent of dormant customers came back, and ten percent of dormant customers canceled.
From those three numbers the model ran forward. After twenty-four months, a group that began fully active would be about 57 percent active, with nearly a third of it gone. She then tested two ways of spending money. Halving the dormancy rate would leave about 75 percent active. Doubling the win-back rate would leave about 70.
The company put its next budget into onboarding and early use, which kept customers from going dormant, and left its win-back email program as it was.
The core idea
A Markov chain describes a system through a set of states and a table of probabilities for moving from each state to each other state in one step. Its defining assumption is the Markov property: the probabilities depend only on the current state, not on how the system got there. Under that assumption, the future is calculable. Multiplying the table by itself gives the probabilities after two steps, three steps, and so on, and for chains that settle, the long-run share of time in each state can be found directly.
What makes the model valuable is that a small table can answer large questions. How many customers will be active in two years, how long a customer stays before cancelling, and which transition most affects the result all follow from the table. A state that the system never leaves, such as a canceled account, is called absorbing, and chains with one let a business measure the expected time before a customer reaches it.
The thinking behind it
Andrey Andreyevich Markov Andrey Markov first took up dependent variables and the law of large numbers in 1906, in a dispute with Pavel Nekrasov, who had argued that the law applies only to independent events. Markov showed that it holds for a system of dependent variables that meets certain criteria, beginning with a two-state case. At first he showed no interest in applications and said his concern was pure analysis. In 1913 he turned to Pushkin's Eugene Onegin and counted how vowels and consonants follow one another, and presented the work to the Imperial Academy of Sciences on January 23, 1913. Whether a letter was a vowel, he found, depended on whether the letter before it was one, the dependence his chains describe.
Where it sits in the layers
Markov Chains sit in Layer 9, Tools and Techniques, because they are a portable model that works inside retention analysis, credit risk, maintenance planning, and many other tasks. From above they take the stock-and-flow view of System Dynamics in Layer 1, a population tracked as it moves between states, and their own extension, Markov Decision Processes, also in Layer 1, adds the choices and rewards that turn a forecast into a policy. A funnel such as AARRR in Layer 7 supplies natural states for one. Below them, the working use is a monthly forecast that the owner of each transition reviews. The common mistake is to ask the chain for a cause. It describes how a system moves and gives no reason why, so it can show that dormancy is the leak and cannot say what drives customers into it.
How organizations put it to work
An analytics or finance team usually owns the model, with the business owner of each transition, such as customer success or credit, responsible for what moves it. It changes three things. Decisions: investments are compared by the effect on a transition rate and then on the long-run outcome, so a retention budget can be judged against a win-back budget. Routines: the team defines the states, estimates the transition table from recent records, and refreshes it each quarter, checking the forecast against what happened. Measures: the company tracks the share of customers in each state, each transition rate, and the gap between forecast and actual.
Sustaining it takes clear state definitions that stay constant and records that show each customer's state each month. In the first year a leader should expect an argument about what counts as dormant, a first forecast that misses because a rate had shifted, and a clear view of which transition matters most. The return is a business less dependent on the intuition of the person who knows the customer base, with revenue forecasts that rest on stated rates and a budget aimed at the transition that moves outcomes most.
Where it goes wrong
The first failure is false memorylessness. The chain assumes the next move depends only on the present state, but customers who lapsed twice may behave differently from those who lapsed once. The sign is a forecast that misses for the customers with the longest histories. The usual remedy is to split the state, for example into first-time and repeat dormant customers.
The second is fixed rates in a changing business. The table is estimated once and used for years, though prices, products, and competitors change the rates. The sign is a forecast that drifts steadily from actual results after a pricing change.
The third is thin data in rare states. A transition seen a handful of times gets a rate that looks precise and is not. The sign is a forecast that swings with a single quarter's records. More states make the model more realistic and raise the number of rates to estimate.
Related and rival frameworks
- Markov Decision Processes. Adds choices and rewards to the chain. The pick when the question is which action to take in each state, not just how the system will move.
- Queuing Theory. Studies waiting lines, many of which are Markov chains. Use it when the question is how long units wait and how many servers are needed.
- Monte Carlo Simulation. Runs many random trials of a model. The pick when the system is too complicated for a transition table, or when the spread of outcomes matters as much as the average.
Go to the source
- An Example of Statistical Investigation of the Text Eugene Onegin Concerning the Connection of Samples in Chains, Bulletin of the Imperial Academy of Sciences of St. Petersburg 7(3), 153 to 162 (in Russian); English translation in Science in Context 19(4), 591 to 600 (2006), 1913
- First Links in the Markov Chain, Brian Hayes, American Scientist 101(2), 92 to 97, 2013
- The Life and Work of A. A. Markov, G. P. Basharin, A. N. Langville, and V. A. Naumov, Linear Algebra and its Applications 386, 3 to 26, 2004