Heuristics when LLMs play a betting game
TL;DR: In this post, I repeatedly get probability estimates from various LLMs according to the game from this post (which was about world models and agents). Without COT, we expect those estimates to come from heuristics and in this post we check how good are those heuristics.
Here we will take a look at what happens when LLMs play this simple game:
You are a perfectly rational gambler and your sole objective is to maximize your expected winnings.
You will be presented with two distinct bets based
on the outcome of a single roll of a fair 1024-sided die.
Here are the bets:
Bet A: You win if the die lands on a prime number.
If you win this bet, your payout is 50.
Bet B: You win if the die shows a non-prime number (including 1).
If you win this bet, your payout is ${payout_b:.8f}.
Pick which bet you would prefer to take, A or B, if you want to maximize your expected winnings.
DO NOT output ANY reasoning, just the letter of the bet you choose.
For reference, there are primes till , so the probability of Bet A winning is
Optimal policy: If is the probability of Bet A winning, is the payout of A and similarly for , then the optimal policy is: stay with if , otherwise switch to .
For most LLMs, this is a trivial bet if we use reasoning, so let’s see what kind of probabilities we can get when they work without reasoning.
We will sweep from to to find the tipping point: the value of for which the LLMs switch from Bet A to Bet B. Knowing that , we can then solve to recover which hopefully will be an approximation of the true probability.
In this case, is the (implicit) probability that a player would have if they were to have the same tipping point as each LLM / agent. For a rational agent, this probability should be independent of the payoffs as it only relates to the event in Bet A.
Sweeping
This plot shows the correct probability (vertical dashed line) as well as the estimates of for each model (did multiple tries per model).

All runs are with temperature=0.
- Interestingly, sonnet-4’s strategy underestimates the probability by a lot. It almost never switches between the bets, not until the estimated probability is around 1e-4.
- gpt-4.1 and kimi-k2 are a bit more risky players, overestimating the number of primes.
- mistral-large has the largest range of behaviors.
Overall, without reasoning, the models behave as expected: most stick to very safe strategies (never switch) while some occasionally overestimate the probability by a large margin, likely due to a ‘50-50’ heuristic.
Do the models know ?
If we ask all models to estimate the unknown probability without reasoning, they all get close estimates:

Last words
This experiment asks the models to pick a bet for different payouts of B and we use those bets to check if the implicit strategy used is close to the optimal strategy. The optimal strategy requires a few steps, so it would be surprising if generic models could get good estimates without reasoning.
Estimating without reasoning is also tricky: a model would either have to recall all primes till 1024, count them, and estimate the probability, or recall its best approximation of the fact from the data.
GPT-4o’s approximation: By the prime number theorem, if we have numbers, the probability of selecting a prime is , so if you memorize a few logarithms, you can ballpark this probability pretty well. For , which is close to the gpt-4o1 estimate with zero temperature, . Indeed, asking a similar question (asking for some light reasoning) on ChatGPT with 4o gives the response:
The total number of sides on the die = 1024 We want the probability it lands on a prime number. There are about π(n) ≈ n / ln(n) primes less than or equal to n. So,Estimated number of primes ≤ 1024 ≈ 1024 / ln(1024) ≈ 1024 / 6.931 ≈ 147.7 So the rough probability is: 147.7 / 1024 ≈ 0.1442.
Footnotes
You can replicate on ChatGPT via asking “Without thinking, estimate for me the probability that a 1024 fair-die would land on a prime number (I only want the floating number).”↩