What does Baccarat Edges, Counting and Ruin conclude, in numbers, about “Sources East and West: Tao Kan Throws the Gaming Pieces into the River, and Cardano's Book on Games of Chance”?
Answer: Chapter 7 examines the biography of Tao Kan in the Book of Jin and Cardano's Book on Games of Chance; by equality of conditions the fair commission would be only 0.026932.
Scope of the numbers: Its parameters are illustrative, all calculations are generated by its programs, and nothing in it is personalised financial advice. Marked boxes separate published evidence, runnable Python calculations (21 programs), classical sources and the author's hypotheses.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 0.026932
| throws n x 1/6 exact P(at least one six) gap | |
| 1 | 0.1667 0.1667 0.0000 |
| 2 | 0.3333 0.3056 0.0278 |
| 3 | 0.5000 0.4213 0.0787 |
| 4 | 0.6667 0.5177 0.1489 |
| 6 | 1.0000 0.6651 0.3349 |
| three dice, at least one ace: exact 91/216 | 0.4213 |
| two dice, 24 throws, a double six: n x 1/36 | 0.6667, exact 0.4914 |
| equal conditions on the eight-deck shoe: | |
| fair Banker payout | 0.973068 (tables pay 0.95) |
| fair commission | 0.026932 (tables take 0.05) |
| fair Tie payout | 9.5091 to 1 (tables pay 8 to 1) |
| Player bet: fair only if P(Player) = P(Banker); gap 0.012351 |
Show the full program
# Chapter 7. p71: Cardano's two ideas, tested. (1) The "reasoning on the
# mean" that Ore (1953) found in the Liber de Ludo Aleae: taking n times
# the one-throw chance as the chance of at least one success in n
# throws. Compare with the exact 1 - (5/6)^n, and the same slip in the
# later two-dice question of 24 throws. (2) His fundamental
# principle of equal conditions: a wager is fair when stakes match the
# chances. Applied to the exact eight-deck values of p11, it gives the
# fair Banker payout, the fair commission and the fair Tie payout, to
# set beside the 0.95 and 8 to 1 the tables pay.
from fractions import Fraction as F
def banker_draws(b, p3):
# 庄家补牌表:b 为庄两张牌点数,p3 为闲第三张牌点数
if b <= 2:
return True
if b == 3:
return p3 != 8
if b == 4:
return 2 <= p3 <= 7
if b == 5:
return 4 <= p3 <= 7
if b == 6:
return p3 in (6, 7)
return False
DRAW = [[banker_draws(b, p3) for p3 in range(10)] for b in range(10)]
# WIN[p][b]:0 庄胜,1 闲胜,2 和
WIN = [[0 if b > p else 1 if p > b else 2 for b in range(10)]
for p in range(10)]
def tally(c):
# 返回 [庄胜, 闲胜, 和] 的整数权重,分母为 n 起连乘六项的降阶乘
c = list(c)
n = 0
for x in c:
n += x
s4, s5 = (n - 4) * (n - 5), n - 5
acc = [0, 0, 0]
vals = range(10)
for p1 in vals:
w1 = c[p1]
if not w1:
continue
c[p1] -= 1
for b1 in vals:
w2 = w1 * c[b1]
if not w2:
continue
c[b1] -= 1
for p2 in vals:
w3 = w2 * c[p2]
if not w3:
continue
c[p2] -= 1
pt = (p1 + p2) % 10
for b2 in vals:
w4 = w3 * c[b2]
if not w4:
continue
c[b2] -= 1
bt = (b1 + b2) % 10
if pt >= 8 or bt >= 8 or (pt >= 6 and bt >= 6):
acc[WIN[pt][bt]] += w4 * s4
elif pt <= 5:
drw = DRAW[bt]
for p3 in vals:
w5 = w4 * c[p3]
if not w5:
continue
pf = (pt + p3) % 10
row = WIN[pf]
if drw[p3]:
c[p3] -= 1
for b3 in vals:
acc[row[(bt + b3) % 10]] += w5 * c[b3]
c[p3] += 1
else:
acc[row[bt]] += w5 * s5
else:
row = WIN[pt]
w = w4 * s5
for b3 in vals:
acc[row[(bt + b3) % 10]] += w * c[b3]
c[b2] += 1
c[p2] += 1
c[b1] += 1
c[p1] += 1
return acc
if __name__ == "__main__":
print("throws n x 1/6 exact P(at least one six) gap")
for n in (1, 2, 3, 4, 6):
naive = F(n, 6)
exact = 1 - F(5, 6) ** n
print("%6d %.4f %.4f %.4f" % (
n, naive, exact, naive - exact))
print("three dice, at least one ace: exact %s = %.4f" % (
1 - F(5, 6) ** 3, 1 - F(5, 6) ** 3))
dd = 1 - F(35, 36) ** 24
print("two dice, 24 throws, a double six: n x 1/36 = %.4f, "
"exact %.4f" % (F(24, 36), dd))
wb, wp, wt = tally([128] + [32] * 9)
fair_b = F(wp, wb)
fair_t = F(wb + wp, wt)
print("equal conditions on the eight-deck shoe:")
print(" fair Banker payout %.6f (tables pay 0.95)" % fair_b)
print(" fair commission %.6f (tables take 0.05)" % (1 - fair_b))
print(" fair Tie payout %.4f to 1 (tables pay 8 to 1)" % fair_t)
print(" Player bet: fair only if P(Player) = P(Banker); gap %.6f" % (
F(wb - wp, wb + wp + wt)))Single source and citation
Fan, Y. (2026). Exact Enumeration of Baccarat House Edges, the Futility of Card Counting and Gambler's Ruin Probabilities (Version 1.0.0), Chapter 7: Sources East and West: Tao Kan Throws the Gaming Pieces into the River, and Cardano's Book on Games of Chance. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-224 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026224,
author = {Fan, Yafu},
title = {Exact Enumeration of Baccarat House Edges, the Futility of Card Counting and Gambler's Ruin Probabilities},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · Exact Enumeration of the Eight-Deck Shoe: Where Banker 1.06 % and Player 1.24 % Come From
- Chapter 2 · Why Counting Barely Works: Effects of Removal, Simulated Shoes and the Fundamental Theorem
- Chapter 3 · Gambler's Ruin: a Finite Bankroll Against a House Without a Ceiling
- Chapter 4 · Staking Systems Cannot Change the Expectation: Doubling, d'Alembert and the Optional Stopping Theorem
- Chapter 5 · The Road Has No Predictive Power: Streak Lengths, Runs Tests and Small-Sample Bias
- Chapter 6 · The Price of a Session: Loss Distributions, a Hard Stop Line and Chasing
- Chapter 8 · Closing the Loop: the Entertainment Stop-Loss Calculator, Risk Notices and Pre-Registered Tests