Ludomancy, all parts
Ludomancy, part 5 of 12 13 min read

Ludomancy 5: No free delight: six levers on the thrill

The laws of belief set a budget. A game cannot add good news, and each unit of hope has a price. Six levers move the news inside the budget.

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

In short

  • Each round has a fixed budget of variance. The mechanic decides which step releases it.
  • At a fixed feature rate, the rate of teases and the chance in a tease have a fixed product.
  • Good news and bad news are equal on average, and bad news weighs more.
  • Six levers move the news. Each lever has a metric and a value in the test game.

The test game. This series uses one test game, which is not a real product. Three scatters on its 5 reels start 10 free spins, about 1 time in 151 spins. Belief is the fair value of the round after each step. News is the change of belief in one step.

What the laws permit

Part 3 shows that the brain signals the news of each step. Part 4 proves three laws of the news. The mean news of a step is 0. The squares of the news add up to the variance of the payout. More steps give the same travel or more travel.

These laws are a budget. This post shows what a designer can change inside the budget, and what each change costs.

The budget of variance

Economists use two quantities for stories, sports and games [1]. Surprise is the change of belief in one step. Suspense is the spread of the next change. Law 2 gives the two quantities a common limit. Each round has a fixed budget of variance. The paytable sets the budget, and the mechanic decides where it goes.

Reel 11% · 0.5Reel 22% · 2.1Reel 35% · 4.4Reel 49% · 8.5Reel 518% · 15.8Feature65% · 57.9
Figure 1. The variance that each step of a base-game round releases: the share of the total, and the value in squared stakes. The reel stops release 35%. The feature releases 65%, although it starts in only 1 of 151 rounds.
Check with numbers

The simulation ran 8,000,000 rounds of the base game. The steps release 89.2 squared stakes in total. The variance of the payout is 88.0. The difference is 1.4%. The 4 runs of the simulation differ from each other by 12%.

In plain words

Subtract the mean payout from the payout of each round, and multiply each difference by itself. The mean of the results is the budget: the variance of the payout, in squared stakes. The news gives the same number. Multiply each news by itself, add the results of a round, and calculate the mean for all rounds.

mean_payout = sum(r.payout for r in rounds) / len(rounds)
budget = sum((r.payout - mean_payout) ** 2 for r in rounds) / len(rounds)
released = sum(news ** 2 for r in rounds for news in r.news) / len(rounds)
at_reels = sum(news ** 2 for r in rounds for news in r.news[:5]) / len(rounds)
share_at_reels = at_reels / released    # the first 5 steps are the reel stops

Use it. Measure the budget before and after each change of a mechanic. If the paytable and the weights did not change, the budget stays the same, and only the share of each step can move.

The tease budget

A tease is a spin that shows 2 scatters before the last reel stops.

Claim
In the test game, P(tease) × P(feature | tease) = P(feature).
In plain words

The tease rate is the number of teases divided by the number of spins. The chance in a tease is the number of teases that start the feature, divided by the number of teases. The product of the two numbers is the feature rate, if each feature starts after a tease.

Example: 5 of 100 spins are teases, and 1 of 10 teases starts the feature. The feature rate is 0.05 × 0.1 = 0.005, or 1 feature in 200 spins.

Proof (you can skip it)
  1. The feature needs 3 scatters, and each reel shows 1 scatter at most.
  2. As a result, the third scatter lands on a later reel than the second scatter.
  3. Each spin that starts the feature is first a tease: P(feature) = P(tease and feature).
  4. The definition of conditional probability gives P(tease and feature) = P(tease) × P(feature | tease).
∎
Check with numbers

The simulation of the base game gives 4.41% × 15.1% = 1 in 150.3 spins. The reel strips give 1 in 150.6. For the ante, the reel strips give 11.4% × 18.9% = 1 in 46.3.

The feature rate is a fixed product. The designer selects the two factors. Scatters on the first reels give many teases with a small chance. Scatters on the last reel give fewer teases with a larger chance. A larger chance is nearer to 50%, where the uncertainty signal is largest.

In plain words

At a fixed feature rate, you cannot increase the two factors together. If the tease rate becomes 2 times as large, the chance in a tease becomes half.

teases = [r for r in rounds if r.has_tease]
tease_rate = len(teases) / len(rounds)
chance_in_tease = len([r for r in teases if r.has_feature]) / len(teases)
feature_rate = tease_rate * chance_in_tease

Use it. Set the feature rate first, and then select the tease rate. The chance in a tease is the feature rate divided by the tease rate. For a larger chance, accept fewer teases: move scatters from the first reels to the last reel.

No free delight

Law 1 says that the mean news of each step is 0. This law has a hard consequence for the designer.

Claim
In the mean round, the total of the good news is equal to the total of the bad news. Each total is half of the travel.
In plain words

The good news of a round is the sum of the moves up of belief. The bad news is the sum of the sizes of the moves down. For the mean of all rounds, the two totals are equal, and each total is half of the travel.

Example: belief goes up by 4 stakes in round 1, and it goes down by 1, 1 and 2 stakes in round 2. For the 2 rounds, the mean good news is 4 ÷ 2 = 2 stakes, and the mean bad news is 4 ÷ 2 = 2 stakes. The mean travel is 8 ÷ 2 = 4 stakes.

Proof (you can skip it)
  1. Divide the news into a good part and a bad part: dₜ = dₜ⁺ − dₜ⁻. The two parts are 0 or more, and one of them is 0.
  2. Law 1 gives E[dₜ] = 0. As a result, E[dₜ⁺] = E[dₜ⁻].
  3. The size of the news is |dₜ| = dₜ⁺ + dₜ⁻.
  4. Add all the steps: E[Σ dₜ⁺] = E[Σ dₜ⁻] = E[travel] ÷ 2.
∎
Check with numbers

In 8,000,000 rounds of the base game, the good news is 2.122 stakes for each round. The bad news is 2.126 stakes. The difference is -0.004. The simulated RTP minus the exact RTP is -0.004, which explains the difference.

In plain words

Calculate the two totals from your record of the news. Their sum is the mean travel.

dₜ⁺
The good part of the news of step t: the size of a move up. It is 0 for a move down.
dₜ⁻
The bad part of the news of step t: the size of a move down. It is 0 for a move up.
good = sum(news for r in rounds for news in r.news if news > 0) / len(rounds)
bad = sum(-news for r in rounds for news in r.news if news < 0) / len(rounds)
travel = good + bad

Use it. If the two totals differ by more than the noise of the simulation, your belief values are wrong. Correct them before you move a lever.

The game takes back each unit of hope that it gives. And bad news weighs more than good news. In experiments on choice, a loss weighed about 2 times as much as an equal gain [2, 3]. Economists model news about future money in the same way [4].

As a result, more travel does not give more pleasure. Travel is the quantity of sensation, and its balance of pleasure is negative. Two things make the player accept this price.

  • The form of the news. In a round of the test game, belief goes down 2.8 times and up 1.3 times. A step up is 2.1 times as large as a step down. The game gives hope in few large steps and takes it back in many small steps. Dopamine cells adjust their signal to the range of the possible results [5]. This can make the small steps weak.
  • The wait. The uncertainty signal comes before the result. The player gets it in each tease, also in a tease that ends with nothing.
In plain words

One number describes the form of the news: the mean step up divided by the mean step down. The mean step up is the total of the good news divided by the number of steps up. Calculate the mean step down in the same way.

Example. In the test game, the mean step up is 1.60 stakes and the mean step down is 0.76 stakes: 1.60 ÷ 0.76 = 2.1.

ups = [news for r in rounds for news in r.news if news > 0]
downs = [-news for r in rounds for news in r.news if news < 0]
form = (sum(ups) / len(ups)) / (sum(downs) / len(downs))

Use it. A number above 1 shows few large steps up and many small steps down. To increase it, show the good news in fewer steps and the bad news in more steps.

Tingle is the metric of this balance. It divides the delight by the letdown in the teased rounds (Part 4). In the base game of the test game, tingle is 0.59.

From research to metrics

A session adds memory and repetition. Each line of the table gives one result of the research and the metric that reads it from the mathematics.

Result of the researchMetric in this seriesPart
The cells signal the prediction error [6].News, travel, thrill for each minute4, 9
The signal moves to the first sign of a reward [6].Rate and reliability of each cue7, 8
An unknown result gives its own signal [7, 8].Uncertainty of each tease state3
Bad news weighs more than good news [2, 4].Letdown, delight, tingle4
A near miss is unpleasant. When the player made the choice, it also increased the wish to continue [9].Blank teases4, 9
A payout below the stake excites the body almost like a win, if the game celebrates it [10].Real win rate: only a payout of 1 stake or more counts2
A reward that comes after an unknown number of tries keeps the behaviour stable [11].Dry spells and their distribution2, 9
In a study of pain, memory kept the worst moment and the end, and it mostly ignored the duration [12]. This series assumes the same for a session.Largest win; result of the last 3 minutes9, 10
Mood follows the recent prediction errors, not the total [13].Thrill, letdown and delight for each minute, apart from the net result9

Six levers on the thrill

The mathematics cannot add delight. It can move the news. Each lever in the table has a metric and a value in the test game.

LeverWhat it changesTest game
1. Size of the budgetThe paytable sets the variance. More variance gives more news in total.88 squared stakes
2. Place of the releaseThe share of the variance at the reel stops and in the feature.35% at the reels, 65% in the feature
3. Number of stepsMore steps give more travel for the same payout. They also give more bad news.4.2 stakes of travel for each round
4. Chance at the teaseA chance nearer to 50% gives more uncertainty for each tease.9.2% before the last reel
5. Tease rateAt a fixed feature rate, more teases give a smaller chance for each tease.4.4% of spins; 15% of them start the feature
6. Form of the newsFew large steps up and many small steps down.Step up ÷ step down = 2.1; tingle 0.59

A seventh lever is outside the mathematics: time. The uncertainty signal lasts as long as the wait. A slow last reel makes the same uncertainty last longer. Part 7 puts this lever in a class of its own.

Part 10 uses these levers at a fixed RTP. Its design puts more scatters on reels 1 and 5. The chance before the last reel goes from 9.2% to 13.6%. The feature starts 1 time in 94 spins, and the test game needs 151 spins.

A duty

The levers work on each player. In people with a gambling problem, the brain reacted more strongly to near misses [14]. The levers can work most on the players that the game can harm most.

A measurement makes a limit possible. A designer who counts blank teases can set a maximum for them. A designer who counts real wins can stop the celebration of a payout below the stake. The regulator in Great Britain requires this for online slot games [15].

Do it with an AI agent

You apply a lever in 3 parts: measure the budgets, move one lever, and measure again. Lever 1 changes the budget of variance. Levers 2 to 6 move the news, and the budget of variance and the tease budget must stay the same. Instruction 3 moves lever 5, the tease rate. For a different lever, replace the first sentence of instruction 3.

Give this to your AI agent
  1. Read my books and my weights. Record the belief after each step: the weighted mean payout of all books that show the same facts. The facts are the number of scatters, the free spins that remain, the multiplier and the win so far. The news of a step is the belief after the step minus the belief before it. Simulate 2,000,000 rounds 4 times with different seeds. For each run, print the variance of the payout and the mean of the sum of the squared news.

    You get. The budget of variance: 2 numbers for each run that are almost equal. In the test game, the mean values are 88.0 and 89.2 squared stakes, a difference of 1.4%. The runs differ from each other by 12%: this is the noise of the simulation.

  2. Print the share of each step in the sum of the squared news. Count the teases: the spins that show 2 scatters before the last reel stops. Print the tease rate, the chance of the feature in a tease, their product, and the feature rate. Print the chance before the last reel of a tease, and the uncertainty: 4 × chance × (1 − chance). For the steps up and for the steps down, print the total for each round and the mean size.

    You get. The position of each lever. The product is equal to the feature rate: in the test game, 4.41% × 15.06% = 1 in 150.6 spins. The total of the steps up is almost equal to the total of the steps down: 2.122 and 2.126 stakes in the test game.

  3. Change one lever only: move 1 scatter from reel 1 to the last reel. Do not change the paytable. Then adjust the game until the RTP and the feature rate are the same as before.

    You get. A second version of the game. The tease budget tells you what comes: fewer teases, and a larger chance in each tease.

  4. Repeat the measurements for the new version. Print one table with each value before the change and after the change. Mark each value that changed by more than the difference between the runs.

    You get. One table with 2 columns. If the variance of the payout and the product of the 2 tease numbers have no mark, the budgets did not change. The good news is still equal to the bad news. If a budget has a mark, your change also moved lever 1 or the feature rate.

References

  1. Ely J, Frankel A, Kamenica E (2015). Suspense and surprise. Journal of Political Economy 123:215–260.
  2. Kahneman D, Tversky A (1979). Prospect theory: an analysis of decision under risk. Econometrica 47:263–291.
  3. Tversky A, Kahneman D (1992). Advances in prospect theory: cumulative representation of uncertainty. Journal of Risk and Uncertainty 5:297–323.
  4. Kőszegi B, Rabin M (2009). Reference-dependent consumption plans. American Economic Review 99:909–936.
  5. Tobler PN, Fiorillo CD, Schultz W (2005). Adaptive coding of reward value by dopamine neurons. Science 307:1642–1645.
  6. Schultz W, Dayan P, Montague PR (1997). A neural substrate of prediction and reward. Science 275:1593–1599.
  7. Fiorillo CD, Tobler PN, Schultz W (2003). Discrete coding of reward probability and uncertainty by dopamine neurons. Science 299:1898–1902.
  8. Preuschoff K, Bossaerts P, Quartz SR (2006). Neural differentiation of expected reward and risk in human subcortical structures. Neuron 51:381–390.
  9. Clark L, Lawrence AJ, Astley-Jones F, Gray N (2009). Gambling near-misses enhance motivation to gamble and recruit win-related brain circuitry. Neuron 61:481–490.
  10. Dixon MJ, Harrigan KA, Sandhu R, Collins K, Fugelsang JA (2010). Losses disguised as wins in modern multi-line video slot machines. Addiction 105:1819–1824.
  11. Ferster CB, Skinner BF (1957). Schedules of Reinforcement. Appleton-Century-Crofts.
  12. Kahneman D, Fredrickson BL, Schreiber CA, Redelmeier DA (1993). When more pain is preferred to less: adding a better end. Psychological Science 4:401–405.
  13. Rutledge RB, Skandali N, Dayan P, Dolan RJ (2014). A computational and neural model of momentary subjective well-being. PNAS 111:12252–12257.
  14. Chase HW, Clark L (2010). Gambling severity predicts midbrain response to near-miss outcomes. Journal of Neuroscience 30:6180–6187.
  15. Gambling Commission, Great Britain (2021). Rules for the design of online slot games, in force from 31 October 2021.

Next: Part 6. Eleven shapes of belief. Each type of mechanic releases the variance in its own shape.