Modelling Hold & Spin with Markov chains
This is a sample post showing how an article with an embedded demo will look. The text is placeholder ā replace it with your own.
A Hold & Spin feature looks chaotic on screen, but underneath it is a very orderly thing: a state machine. At any moment, the feature is fully described by two numbers ā how many positions are held, and how many respins are left.
The state
Write the state as a pair:
where h is the number of held symbols and r the respins remaining.
Each respin either lands new symbols (h goes up, r resets) or lands nothing (r goes down by one).
When r = 0 or the board is full, the feature ends.
Try it
Here's a stripped-down version of the feature. Play a few rounds and watch the state change.
From states to RTP
Because every transition depends only on the current state, the feature's expected value can be computed recursively, starting from the terminal states and working backwards:
Build the transition matrix once, and you get the feature's RTP contribution, its average length, and the probability of filling the board ā without simulating a single spin.
Simulation tells you what happened. The Markov model tells you why.
What's next
- Adding jackpot tiers and computing full-board probability
- Comparing the model against a 100M-spin simulation
- Tuning volatility without moving RTP