Trial 1 · Mile

Xsecretariat.com

🪙 100
Loading your session...
Race
Stake
All in stakes your whole balance. If this horse loses, the session ends and no more races can be run.
Trials 0/60 Wins 0 Streak 0 Peak 🪙100

Method and fairness

How races work · How the odds are set · The study

What decides who wins

Each horse has six hidden ratings: top speed, acceleration, stamina, consistency, late finish and quick start. When you press the race button, the result is worked out in one go by a short simulation. The animation you watch afterwards is a replay of that result. Nothing you do during the animation can change it.

How a race is simulated

  • Rating. The six ratings are weighted for the distance and added up. The horse's current form (a small value that drifts a little after every race) is added on top.
  • Luck. A random value from a normal distribution is added. Consistent horses get a narrower spread than erratic ones.
  • Finish time. Rating plus luck is turned into a time. Fastest time wins. Winning margins are shown in lengths, using the racing rule of thumb of about five lengths per second.

The luck term means the best horse does not always win. Over many races the stronger horses win more often, but any single race can go to an outsider. That is what gives the odds their meaning.

Distance

Sprints reward speed and acceleration. Marathons reward stamina and a strong finish. Switching distance changes which horse is favourite, sometimes by a lot.

Where the odds come from

Before each race the same simulation is run 3,000 times and the wins for each horse are counted. That count gives the "chance" shown on each button. The payout is the fair price for that chance, less a 10% margin.

Is any horse a better bet?

No. Because the same margin is taken from every price, every horse returns about 90 coins for each 100 staked on average. A favourite pays little and wins often. A long shot pays a lot and rarely wins. The average return is the same. So picking between them is about how much risk you like, not about finding a bargain. That is the point of the first hypothesis.

Randomness

Each race uses a pseudo-random number generator (mulberry32) seeded from the clock and the trial number, so every race gets a fresh draw. The odds use a fixed set of 3,000 seeds, so the same field and distance always give the same prices. The engine never reads your pick or your stake before working out the result.

The house margin

If a horse truly wins one race in four, a fair payout would be 4 times your stake. This game pays 3.6 times. The 10% difference is the margin. In the short run you can still win, sometimes by a lot. Over a long run the margin pulls the balance down, which is how real betting works too.

10%
Margin on every price
3,000
Simulations behind each price

With 3,000 simulations the chance shown for each horse is accurate to within about 1.6 percentage points (95% interval) of its true value.

Check it yourself

The green bar is the chance implied by the price on offer. The red mark is the chance from the simulation. The green bar always runs slightly past the red mark. That gap is the margin.

Research question

When the odds are fair apart from a known margin, and the true chances are shown on screen, does a person still bet in the ways prospect theory and the gambling literature predict? A risk-neutral bettor with full information would have no reason to prefer long shots, would not change their stake depending on the last result, and would treat winnings and starting coins the same. This study measures how far one person's play moves away from that.

Design

This is a single-case, within-subject design (Barlow et al., 2009). There is no control group. Each hypothesis compares your own trials with each other, for example your stakes after a win against your stakes after a loss. The conditions being compared (win or loss, ahead or behind, close second or clear loss) are not set by the researcher. They come out of the race engine. Once you have chosen a horse, whether it wins is decided by the random draw, so the previous outcome works as a natural random assignment. Your choice of horse still shapes the odds of winning, which is why this is described as a quasi-experimental contrast and not a true experiment.

Participant

One adult (18+) per session. People with a history of problem gambling are asked not to take part.

Procedure

Everyone starts with 100 coins. On each trial you choose a distance (optional), a horse, and a stake as a share of your current balance (5%, 10%, 25%, 50% or all in). The stake has to be chosen fresh each trial, so it cannot just carry over from the last race by default. The session ends at 60 trials, when the balance reaches zero, or when an all-in bet loses. The trial count was fixed in advance so that the report is not affected by stopping when the results look good.

What is recorded on each trial

Before the race: distance, the chance of every horse in the field, the horse picked, its odds, the stake, the balance, the stake as a share of balance, and how long the choice took. After the race: whether you won, where your horse finished, the margin in lengths, and the new balance. All of it can be downloaded as a CSV from the results screen.

Hypotheses (stated before data collection)

H1 · LONG-SHOT PREFERENCE
You will pick horses with a true chance under 20% more often than a bettor with no preference would.
Measure: proportion of trials on which the pick had p < .20, against the proportion expected if picks were made at random from each trial's field. Every horse has the same expected return, so an excess means a taste for long shots, as predicted by probability weighting (Tversky & Kahneman, 1992; Snowberg & Wolfers, 2010).
H2 · LOSS CHASING
Your stake, as a share of your balance, will be higher after a loss than after a win.
Measure: mean stake share on trials following a loss minus mean stake share on trials following a win. Predicted direction: positive.
H3 · HOUSE MONEY
You will stake a larger share of your balance when you are above your starting 100 coins.
Measure: mean stake share when the balance before the bet is above 100 minus the mean when it is 100 or below (Thaler & Johnson, 1990). Predicted direction: positive.
H4 · NEAR MISS
After your horse finishes second, your stake will go up more than after it finishes third or worse.
Measure: change in stake share from a losing trial to the next one, compared between losses where your horse came second and losses where it came third or lower (Reid, 1986; Clark et al., 2009). Predicted direction: positive.

Analysis

  • H2 to H4: difference in means between the two sets of trials, a 95% bootstrap confidence interval (2,000 resamples), Hedges' g, and a one-sided permutation test (5,000 random reassignments) in the predicted direction (Edgington & Onghena, 2007).
  • H1: observed rate against the rate expected under random picking, a Monte Carlo test (5,000 simulated sessions), a Wilson 95% interval, and Cohen's h.
  • Multiple tests: p values are corrected across the tests that have enough data using Holm's method (Holm, 1979), alpha = .05.
  • Minimum data: a contrast is only tested once each side has at least 5 trials (H1 needs 20 trials in total). Below that the report says there is not enough data.
  • Interim and final: before trial 60 the report is labelled interim and should be read as exploratory.
  • Reversed results: an effect that is clearly in the opposite direction is reported as reversed. That check was not planned in advance, so it is uncorrected and exploratory.

Limitations

  • Trials from one person are not independent. Stakes tend to follow a run. The permutation test assumes trials can be swapped between conditions, and serial dependence weakens that. The report gives the lag-1 autocorrelation of stakes so the reader can judge how much this matters.
  • Balance and recent outcome are linked. After a loss you are more likely to be below 100, so H2 and H3 are not fully separate.
  • Stakes come from a fixed menu of five options, which limits how finely they can change. Very small balances also round stakes up.
  • Near misses (H4) depend on how often your horse comes second, which you cannot control. Some sessions will not reach the minimum.
  • Play money does not carry the same weight as real money, so effect sizes may be smaller than in real betting.
  • A result from one session describes that session. It is not a claim about people in general.

Ethics and your data

No account is needed and no data about your play is sent anywhere. Everything is stored in this browser and can be deleted with the new session button. The CSV download is the only way the data leaves the device, and only if you choose to share it. There is no real money involved.

Support. In Aotearoa New Zealand, the Gambling Helpline is free on 0800 654 655. Gambling Therapy (gamblingtherapy.org) offers free support worldwide.

References

Barlow, D. H., Nock, M. K., & Hersen, M. (2009). Single case experimental designs: Strategies for studying behavior change (3rd ed.). Pearson.

Clark, L., Lawrence, A. J., Astley-Jones, F., & Gray, N. (2009). Gambling near-misses enhance motivation to gamble and recruit win-related brain circuitry. Neuron, 61(3), 481–490.

Edgington, E. S., & Onghena, P. (2007). Randomization tests (4th ed.). Chapman & Hall/CRC.

Holm, S. (1979). A simple sequentially rejective multiple test procedure. Scandinavian Journal of Statistics, 6(2), 65–70.

Kahneman, D., & Tversky, A. (1979). Prospect theory: An analysis of decision under risk. Econometrica, 47(2), 263–291.

Reid, R. L. (1986). The psychology of the near miss. Journal of Gambling Behavior, 2(1), 32–39.

Snowberg, E., & Wolfers, J. (2010). Explaining the favorite–long shot bias: Is it risk-love or misperceptions? Journal of Political Economy, 118(4), 723–746.

Thaler, R. H., & Johnson, E. J. (1990). Gambling with the house money and trying to break even: The effects of prior outcomes on risky choice. Management Science, 36(6), 643–660.

Tversky, A., & Kahneman, D. (1992). Advances in prospect theory: Cumulative representation of uncertainty. Journal of Risk and Uncertainty, 5(4), 297–323.