The Long Run
← Back to AI & Data Science

AI & Data Science

Data Driven Attribution - Markov Chain

How the Markov chain model learns channel credit from real customer journeys, built from first principles: what a Markov chain is, how a Transition Probability Matrix (TPM) is built from journey data, whether the route so far matters, and how the removal effect measures what each step is worth. An optional technical part shows the fundamental matrix behind the exact numbers. Parts 5 and 6 apply it all to customer journeys, with conversion and null paths, and compare Markov credit with rule-based models such as last click.

New to the terms? Read the jargon checklist →

Part 1What is a Markov Chain?Part 1: What is a Markov chain?, Explained with simple examples of Snakes & Ladders and City Traffic.Part 2The Transition Probability Matrix (TPM): Building It from Trip DataPart 2: how to turn a log of journeys into a Transition Probability Matrix (TPM), read it, check it and use it to look several steps ahead.Part 3First- vs Second-Order Markov Chains and the Removal EffectPart 3: does a car's past route change its next move, and how much does each junction matter? The removal effect worked out by hand.Part 4The Fundamental Matrix (F): Exact Absorption Probabilities and Removal EffectsPart 4 (optional, technical): a recap of Parts 1 to 3, then the matrix steps F = (I − Q)⁻¹ and FR that give exact absorption probabilities and removal effects.Part 5Markov Chain Attribution: Customer Journeys, Conversion and Null PathsPart 5: Building a Markov chain, Why null paths matter?, and How the removal effect measures each channel?Part 6Markov vs Rule-Based Attribution: How It Fixes the GapsPart 6: Compare Markov attribution vs 5 rule-based models credit to the same 50,000 journeys. Which gaps in last click and first touch it closes, and which remain?Part 7Data Driven Attribution Interview Questions 1: IntermediateTen case-study interview questions on data-driven attribution: building a Markov model, diagnosing odd credit, explaining it to a CFO and testing it.Part 8Data Driven Attribution Quiz 1: BeginnerFifteen beginner questions on data-driven attribution: Markov chains, null paths, removal effects, Shapley values and when a holdout test is needed.