What does Tarot, Lenormand and Tree Graphs conclude, in numbers, about “Shuffles, Mixing Times and the Correlation of Reversals”?
Answer: Chapter 2 computes mixing times: 78 cards need eight GSR riffles before the total variation falls below 0.5 (0.3065); riffles produce no reversals, and the correlation of reversals depends on the turning action: splitting, turning half and riffling finely gives a lag-1 correlation of −0.013, no different from independent turning, while turning packets raises it to 0.774.
Scope of the numbers: Marked boxes separate published evidence, runnable Python calculations (16 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.3065, 0.5, 78
| riffles | TV, 52 cards | TV, 78 cards |
| 1 | 1.0000 | 1.0000 |
| 2 | 1.0000 | 1.0000 |
| 3 | 1.0000 | 1.0000 |
| 4 | 1.0000 | 1.0000 |
| 5 | 0.9237 | 0.9996 |
| 6 | 0.6135 | 0.8926 |
| 7 | 0.3341 | 0.5713 |
| 8 | 0.1672 | 0.3065 |
| 9 | 0.0854 | 0.1532 |
| 10 | 0.0429 | 0.0780 |
| 11 | 0.0215 | 0.0392 |
| 12 | 0.0108 | 0.0196 |
| first k with TV < 0.5: 52 cards -> 7, 78 cards -> 8 | ||
| rule of thumb (3/2) log2 n: 52 -> 8.55, 78 -> 9.43 |
Show the full program
# Chapter 2. p03: How many riffles mix a 78-card deck?
# Gilbert-Shannon-Reeds model; Bayer and Diaconis (1992): after k
# riffles a permutation with r rising sequences has probability
# C(2^k + n - r, n) / 2^(kn),
# and A(n, r) permutations (Eulerian numbers) have r rising sequences.
# Total variation distance to uniform:
# TV = 1/2 * sum_r A(n, r) * | C(2^k + n - r, n) / 2^(kn) - 1/n! |.
# A riffle moves cards but never turns one round: orientation is untouched.
from fractions import Fraction
from math import comb, factorial, log2
def eulerian(n):
row = [1] # n = 1: one permutation, 1 sequence
for m in range(2, n + 1):
new = [0] * m
for j in range(m): # j descents -> j + 1 rising sequences
a = row[j] if j < len(row) else 0
b = row[j - 1] if j >= 1 else 0
new[j] = (j + 1) * a + (m - j) * b
row = new
return row # row[r - 1] = A(n, r)
def tv(n, k, A):
nf = factorial(n)
s = Fraction(0)
for r in range(1, n + 1):
p = Fraction(comb(2 ** k + n - r, n), 2 ** (k * n))
s += A[r - 1] * abs(p - Fraction(1, nf))
return s / 2
if __name__ == "__main__":
tables = {n: eulerian(n) for n in (52, 78)}
for n in (52, 78):
assert sum(tables[n]) == factorial(n)
print(" riffles TV, 52 cards TV, 78 cards")
first = {}
for k in range(1, 13):
row = [float(tv(n, k, tables[n])) for n in (52, 78)]
for n, v in zip((52, 78), row):
if v < 0.5 and n not in first:
first[n] = k
print(" {:7d} {:12.4f} {:12.4f}".format(k, *row))
print(" first k with TV < 0.5: 52 cards -> {}, 78 cards -> {}".format(
first[52], first[78]))
print(" rule of thumb (3/2) log2 n: 52 -> {:.2f}, 78 -> {:.2f}".format(
1.5 * log2(52), 1.5 * log2(78)))Single source and citation
Fan, Y. (2026). Tarot Hypergeometric Sampling, Lenormand Grid Topology and Kabbalistic Tree Graphs (Version 1.0.0), Chapter 2: Shuffles, Mixing Times and the Correlation of Reversals. 5D Library. https://doi.org/10.5281/zenodo.24090191
DOI: 10.5281/zenodo.24090191 · Read the monograph · 5DL-B-071 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026071,
author = {Fan, Yafu},
title = {Tarot Hypergeometric Sampling, Lenormand Grid Topology and Kabbalistic Tree Graphs},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
doi = {10.5281/zenodo.24090191},
url = {https://doi.org/10.5281/zenodo.24090191}
}Other chapter answers in this book
- Chapter 1 · Hypergeometric Sampling of Seventy-Eight Cards
- Chapter 3 · The Grid Combinatorics of the Lenormand Grand Tableau
- Chapter 4 · The Tree of Life as a Graph: Spectrum, Centrality and Paths
- Chapter 5 · Information, Repeats and the Base Rate of "Something Special"
- Chapter 6 · The Barnum Effect: a Coverage Model and Selective Recall
- Chapter 7 · The Sefer Yetzirah, Kircher's Tree and Waite's Numbering
- Chapter 8 · A Four-Step Check and Two Pre-Registered Studies