Each report on slot math starts with two numbers. RTP tells you the part of the stakes that the game pays back in a long run. Volatility tells you the spread of single results around that average. The two numbers describe the money at the end of a round. They do not describe the time before the end. The player lives in that time.
This series calls its method Ludomancy. The method reads the feel of a game from its math. It uses only books and weights. A book is the record of one round. A weight sets how frequently the game selects a book. Each quantity in the series is a calculation on that table.
How a slot round works
The test game. All examples use one test game. It is not a real product. A simulator made all its numbers. The pictures are schematics with abstract symbols.
The player sets a stake and starts a spin. Five reels stop one after the other, from left to right. Each reel shows 3 symbols. Then the game pays for the symbols on the screen. The player makes no decision between the start of the spin and the payout. As a result, the game can store each possible round as a book.
Most spins pay less than the stake. The feature balances that. The feature is a rare mode in a round, and it pays much more than the base game. In the test game, the feature is a set of free spins with a multiplier that grows. A bet mode sells the same game for a different price.
The reels stop one at a time. As a result, the game can show that the feature is possible before the last reel stops. This moment is a tease.
One experiment
Take a feature of 10 free spins. Each spin pays 0× with a probability of 60%, 1× with 25%, 3× with 10% and 15× with 5%. Show these 10 spins in 2 ways. Version A adds the 10 results and shows the total in one step. Version B shows the 10 spins one at a time.
A and B have the same payout distribution, spin for spin. A report that reads only payouts prints the same row for A and for B. To see the difference, follow the belief. The belief is the fair value of the round at this moment. It is the average payout that the player can expect after the events on the screen.
Before the first spin, the belief is the mean payout of all 10 spins. In version B, the belief after each spin is the money won so far plus the mean payout of the spins that remain.
Example. One spin pays 0.25 × 1 + 0.10 × 3 + 0.05 × 15 = 1.3× on average, and the start value is 10 × 1.3 = 13×. If the first spin of version B pays 15×, the belief goes to 15 + 9 × 1.3 = 26.7×.
mean_spin = 0.60 * 0 + 0.25 * 1 + 0.10 * 3 + 0.05 * 15
belief = [10 * mean_spin] # the start value
for i in range(1, 11): # version B: 1 step for each spin
belief.append(sum(spins[:i]) + (10 - i) * mean_spin)Use it. To change the feel and keep the payouts, change the number of steps that show the result.
| Metric | A: one step | B: spin by spin |
|---|---|---|
| Average payout ÷ start value | 0.999 | 0.999 |
| Standard deviation ÷ start value | 0.792 | 0.792 |
| Rounds that pay more than 0 | 99.4% | 99.4% |
| Travel: the total movement of the belief | 0.66 | 1.31 |
| Letdown: the fall from the highest belief to the payout | 0.00 | 0.41 |
| News steps: the steps that carry most of the news | 1.00 | 2.03 |
| News timing (0 = start, 1 = end) | 1.00 | 0.55 |
The first 3 rows are equal. RTP, volatility and hit rate cannot tell A from B. The last 4 rows are different.
Travel is the sum of all movements of the belief in a round. In B, the belief moves 2.0 times as far as in A. Letdown is the fall from the highest belief before the end to the payout. B gives letdowns. A cannot give a letdown, because A has no moment before the end.
If 2 games have the same payouts with the same frequencies, each calculation on the payouts gives the same result for the 2 games. RTP, volatility and hit rate are calculations of this type: they cannot show a difference.
Example: game A pays 0×, 0×, 2× and 6× in 4 rounds, and game B shows the same 4 payouts in more steps. For each game, the mean payout is 8 ÷ 4 = 2×, and 2 of the 4 rounds pay.
- Let
Xbe the payout of a round. A metric that reads only the payout is a function of the distribution ofX. - RTP is the mean of
X. Volatility is the standard deviation ofX. Hit rate is the probability thatXis more than 0. - Games A and B have the same distribution of
X. - A function gives one value for one input. As a result, each such metric has the same value for A and for B.
|X − μ₀|.Travel is the sum of the sizes of all moves of the belief in a round, up and down. It cannot be smaller than the distance from the start value to the payout. If the game shows the same result in more steps, the travel stays the same or grows.
Example: the belief starts at 2× and the round pays 5×: with 1 step, the travel is 3. With 2 steps, from 2× to 6× and then from 6× to 5×, the travel is 4 + 1 = 5.
- Let
μ₀be the belief before the round. Letμₜbe the belief after stept. The last belief is the payoutX. - The movement at step
tisdₜ = μₜ − μₜ₋₁. Travel isΣ |dₜ|. - The movements add up to the full change:
Σ dₜ = X − μ₀. - The triangle inequality gives
Σ |dₜ| ≥ |Σ dₜ| = |X − μ₀|. - Version A has one step. Its travel is equal to
|X − μ₀|. Version B has the sameXand more steps. Its travel is equal or larger.
In the simulation, the mean travel of A is 0.66. The mean travel of B is 1.31. The simulation agrees with the proof.
The paytable sets the amount of uncertainty in a round. The mechanics set when and how the game releases it.
Four levels of measurement
Each metric in this series is a calculation on the table of books and weights. Some metrics read a small part of each book. Other metrics read all of it. This gives 4 levels.
A metric of Level 0 or Level 1 is a weighted average over the books: Σ wᵢ f(bookᵢ) / Σ wᵢ. A target for such a metric is a linear equation in the weights. An optimiser can use it as a constraint, for example "RTP is 96%". A metric of Level 2 is not linear, because the belief is itself an average over books. Calculate such a metric again after each pass of the optimiser.
Read 1 number from each book, for example the payout. Multiply it by the weight of the book, add the products, and divide by the sum of the weights.
f(bookᵢ)- The number that the metric reads from book i.
/- Divide the left side by the right side. It is the same as ÷.
Example. 3 books pay 0×, 2× and 5×, and their weights are 7, 2 and 1. With the payout as the number, the result is (7 × 0 + 2 × 2 + 1 × 5) ÷ 10 = 0.9: an RTP of 90%.
# f(b): the number that the metric reads from the book b, for example b.payout
metric = sum(b.weight * f(b) for b in books) / sum(b.weight for b in books)This series has 12 posts. Part 2, "What the payout and the events tell you", covers Level 0 and Level 1. Part 3, "Why the unknown excites", shows what the brain does with the events of a round. Part 4, "Belief: the value the player follows", defines the belief and proves its laws. Part 5, "No free delight: six levers on the thrill", shows what a designer can change.
Part 6, "Eleven shapes of belief", sorts mechanics into 11 shapes. Part 7, "Cues: how a game shows the news", and Part 8, "The feed: why a sequence of cues holds the player", explain the screen. Part 9, "Sessions: feel in time and money", adds a bankroll and a clock. Part 10, "Clusters and control: design toward a feel", groups sessions with e-means clustering. Part 11, "Audit the books: ten types of round", does the same with single rounds. Part 12, "Field guide: use the series with an AI agent", is the work method for a person who builds with an AI agent.
Do it with an AI agent
You do not write the calculation. You give the instructions, and you read the checks. The experiment of this post is small: an AI agent can repeat it in a short time.
Simulate a feature of 10 free spins. Each spin pays 0× with a chance of 60%, 1× with 25%, 3× with 10% and 15× with 5%. Run 20000 rounds. Print the mean payout, the standard deviation and the part of the rounds that pay more than 0. Divide the first 2 values by the exact mean payout of a round.
You get. 3 numbers near the first 3 rows of the table in this post: 0.999, 0.792 and 99.4%. The exact mean payout of a round is 10 × 1.3 = 13×. This is the start value of the belief.
Show each round in 2 versions. Version A has 1 step: the belief goes from the start value to the payout. Version B has 10 steps. After each spin, the belief is the money won so far plus the mean payout of the spins that remain. For each version, add the size of each move of the belief in a round: this is the travel. Print the mean travel of A and of B, divided by the start value.
You get. 2 numbers. In this post, they are 0.66 for A and 1.31 for B. In each round, the travel of B is equal to the travel of A or larger. The second proof of this post says this.
Read my books and my weights. Tell me what each book records: the payout only, or also the events in sequence. Tell me which of these 4 levels my books permit: payout, events, belief, sessions.
You get. A list of the levels that your books permit. Level 0 needs only the payout of each book. Level 1 and Level 2 need the events of each round in sequence. If the books have only payouts, add the events to the books before you continue.
Next: Part 2. What the payout and the events tell you.