TableWise How casino games actually work

How we research and check the maths

Every number on TableWise is either worked out on the page or checked against a primary source before it is published. This page explains how the working is done and how it is checked.

Start from the rules

A probability means something only for a particular set of rules. A straight-up bet in roulette pays 35 to 1 on a wheel with one zero and on a wheel with two, yet the second costs 2/38 of every dollar staked against 1/37 for the first, about 1.95 times as much. So every figure we publish names the rules it was computed for: the wheel, the number of decks, the pay table, the options the table allows.

Rules also vary between venues and sites. To learn which variants are actually offered, we read the rules that venues and licensed operators publish, and OLG’s PlaySmart guides, and we note the date we checked them.

Count the outcomes

Most casino maths is counting. Two dice can land 6 × 6 = 36 ways, all equally likely. A 52-card deck can be dealt into this many different five-card hands:

(52 × 51 × 50 × 49 × 48) ÷ (5 × 4 × 3 × 2 × 1) = 2,598,960

Where the outcomes can be listed, we list them and count: the working for all ten five-card poker hands is printed with their chances.

All 36 rolls of two dice, like an addition table. Each cell is the total; the six ways to make 7 are shaded.
First die, second die 123456
1 234567
2 345678
3 456789
4 5678910
5 67891011
6 789101112
Ways to roll each total with two dice, counted from Table 1.
Total Ways Chance Per cent
2 1 1/36 2.78%
3 2 2/36 5.56%
4 3 3/36 8.33%
5 4 4/36 11.11%
6 5 5/36 13.89%
7 6 6/36 16.67%
8 5 5/36 13.89%
9 4 4/36 11.11%
10 3 3/36 8.33%
11 2 2/36 5.56%
12 1 1/36 2.78%

Every bet on a craps layout is priced from Table 2: 7 is the likeliest total, with six ways in 36, while 2 and 12 have one way each.

Tip

To check a probability yourself, count the equally likely outcomes in which it happens and divide by the number of equally likely outcomes in all. Rolling 7: 6 ÷ 36 = 1/6.

Price each outcome

The expected value of a bet adds up, over every outcome, the chance of that outcome times what it wins or loses:

EV = Σ P(outcome) × result(outcome)

The house edge is the expected loss as a share of the stake. For a straight-up bet on a single-zero wheel that comes to 1/37 × 35 − 36/37 × 1 = −1/37, a house edge of 2.70%; the house edge page walks through it. Return to player, or RTP, is the same figure seen from the other side: RTP = 100% − house edge.

Where a game involves decisions, as blackjack and video poker do, the expected value depends on the decision. We work out the value of every possible choice in every situation and mark the best one. When the outcomes are too many to list, we use an exact recursive calculation where the problem allows it and a long simulation where it doesn’t, and we say which method produced each figure. A few counts take too long to repeat each time the site is built, such as every deal of video poker or every matchup in Three Card Poker. Those run once and store their counts, and the build recomputes the prices from the counts and tests them. Our tools count in your browser instead: the poker odds calculator walks every board still to come, and the roulette simulator spins a fair wheel and sets its counts beside the exact chances.

Check it a second way

Before a figure is published, it is checked at least one more way, independently of the calculation that produced it.

  1. Simulate it

    A program plays the game many times, and the frequency it observes should land close to the exact answer. How close can itself be calculated: the standard error of a frequency measured over n trials is √(p(1 − p) ÷ n). Rolling 7 has p = 1/6, so over 1,000,000 simulated rolls the standard error is about 0.000373, and a correct simulation should almost always land within three standard errors of 1/6: between 0.1655 and 0.1678. A result outside that band points to a bug.

  2. Compare it

    We compare our results with published tables from open sources, such as academic papers and regulators’ documents. If the numbers differ, we find out why before anything is published.

  3. Let the build check it

    The code that builds the site checks its own arithmetic: the 36 dice outcomes must add up to exactly 36 ways, the count of five-card hands must agree with C(52, 5) worked out a second way, and the chances of finishing ahead, even and behind must add up to exactly 1. If a check fails, the site does not build.

Facts that aren’t maths

Ontario facts, such as ages, help lines and self-exclusion programs, are checked against primary sources: the AGCO, iGaming Ontario, OLG, ConnexOntario and the law itself. The editorial team keeps the record of where each fact comes from and the day it was last checked; pages don’t list them, but you can ask for the source of any fact at admin@casino-ontario.org. If no primary source supports a figure, the figure doesn’t appear.

Rounding and notation

Fractions are exact. Percentages are rounded to two decimal places, and ≈ marks a rounded value. Calculations run on whole numbers or exact fractions wherever possible and are rounded only at the last step.

A payout written as 35 to 1 means a winning $1 bet returns $35 plus the $1 stake. A payout written as 35 for 1 returns $35 in total, stake included.

When a number is wrong

If a number turns out to be wrong, we correct it, update the page’s date and note what changed. The contact page explains how to report an error, and the editorial policy how corrections are handled.