Ludomancy, all parts
Ludomancy, part 1 of 12 10 min read

Ludomancy 1: Two numbers are not enough

RTP and volatility describe the money at the end of a round. The player feels the time before the end. This series shows how to measure that time from the math of the game.

Part 1 of 12 in Ludomancy. Each part stands on its own: it explains the test game and defines the terms it uses.

In short

  • RTP and volatility read only the payout of a round.
  • Two games can have the same payouts and feel different to the player.
  • The belief is the fair value of a round at each moment. Its path shows what the player lives through.
  • Four levels of measurement read more and more of each round: payout, events, belief, sessions.

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.

reel 1Areel 2WQreel 3Kreel 4JAreel 5Q123Five reels. Each reel shows 3 symbols.Dotted line: one win, ● W ● on reels 1 to 3.High symbols ● ■ ▲Rare, pay most. Three ● pay 0.53×,four 2.1×, five 10.5× the stake.ALow symbols A K Q JCommon, pay little:0.05× to 1.0× the stake.WWildReplaces each symbol that pays.Lands on reels 2 to 4 only.ScatterCounts in all positions.3 or more start free spins.243 ways: a win is the same symbol onadjacent reels from the left, any row.3 × 3 × 3 × 3 × 3 = 243 possible paths.
Figure 1. One spin of the test game. The dotted line shows one win: the same symbol on reels 1, 2 and 3. The wild on reel 2 replaces that symbol. The screen also shows 2 scatters. A third scatter starts the feature.

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.

ANTE MODECosts 2 stakes per spin.Scatters land more frequently:free spins 1 in 46 spins.BASE GAMEThe usual spin.Costs 1 stake.Most spins pay littleor nothing.FREE SPINS (THE FEATURE)10, 12 or 15 free spinsfor 3, 4 or 5 scatters.Multiplier starts at ×1,grows by 2.29 after eachwinning spin. 3 scattersinside add 5 more spins.BONUS BUYPay 66 stakes to skip thebase game and start freespins immediately.same game, other price3+ scatters: 1 in 151 spinsthe feature ends, the game paysEvery round pays at most 5,000× the stake.The player makes no decision in a round.
Figure 2. The parts of the test game. The player spends most of the time in the black box. The feature starts one time in 151 spins of the base game. The player can also buy the feature.

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.

1st stopK2nd stop3rd stop4th stop5th stopturns longerTwo scatters are on the screen. The last reel turnsfor a longer time, with more sound and light.This is a tease. A third scatter starts the feature.A different symbol gives the player nothing.
Figure 3. A tease, with one symbol for each reel. Two scatters are on the screen after the fourth stop. The last reel turns for a longer time. In the test game, 4.4% of the base spins have a tease. 80% of those teases pay less than the stake.

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.

In plain words

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.

0×1×belief μ ÷ μ₀A · one step shows the full result0×1×B · the same spins, one at a time
Figure 4. Nine rounds with the same results in the two versions. The vertical axis shows the belief as a multiple of its start value. The dashed line is the start value. In A, the belief moves one time. In B, the belief moves after each spin.
MetricA: one stepB: spin by spin
Average payout ÷ start value0.9990.999
Standard deviation ÷ start value0.7920.792
Rounds that pay more than 099.4%99.4%
Travel: the total movement of the belief0.661.31
Letdown: the fall from the highest belief to the payout0.000.41
News steps: the steps that carry most of the news1.002.03
News timing (0 = start, 1 = end)1.000.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.

Claim
If two games have the same payout distribution, each metric that reads only the payout has the same value in the two games.
In plain words

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.

Proof (you can skip it)
  1. Let X be the payout of a round. A metric that reads only the payout is a function of the distribution of X.
  2. RTP is the mean of X. Volatility is the standard deviation of X. Hit rate is the probability that X is more than 0.
  3. Games A and B have the same distribution of X.
  4. A function gives one value for one input. As a result, each such metric has the same value for A and for B.
∎
Claim
More steps cannot decrease travel. In each round, travel is at least |X − μ₀|.
In plain words

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.

Proof (you can skip it)
  1. Let μ₀ be the belief before the round. Let μₜ be the belief after step t. The last belief is the payout X.
  2. The movement at step t is dₜ = μₜ − μₜ₋₁. Travel is Σ |dₜ|.
  3. The movements add up to the full change: Σ dₜ = X − μ₀.
  4. The triangle inequality gives Σ |dₜ| ≥ |Σ dₜ| = |X − μ₀|.
  5. Version A has one step. Its travel is equal to |X − μ₀|. Version B has the same X and more steps. Its travel is equal or larger.
∎
Check with numbers

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.

L0
Payout only. One number for each book.
RTP, volatility, hit rate, win sizes, the gaps between wins.
L1
Events. The events of the round, in sequence.
Trigger rate, the share of the feature in RTP, teases, the time of the payout in the feature.
L2
Belief. The fair value of the round after each event.
Travel, letdown, the quality of teases, the shape of the belief path.
L3
Sessions. Many rounds in sequence, with a bankroll and a clock.
The loss in each minute, the life of the bankroll, the typical sessions.

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.

In plain words

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.

Give this to your AI agent
  1. 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.

  2. 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.

  3. 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.