Loaded Dice: Bias and Applications
- Loaded dice are finite random sources with nonuniform face probabilities used to model biased outcomes and analyze entropy in various probabilistic frameworks.
- They enable efficient algorithms for extracting unbiased bits from biased outcomes, achieving asymptotic optimality and reducing computational overhead.
- Beyond probability theory, loaded dice serve as metaphors and artifacts in fields like climate science, HCI, and computer architecture for designing bias-aware systems.
Loaded dice are, in the most direct probabilistic sense, finite random sources with nonuniform face probabilities. In the cited literature, the term also appears in several extended senses: as a device for extracting or simulating randomness, as an object of inference and algebraic analysis, as a multisensory ideation artifact in HCI, as a metaphor for shifted climate probabilities, and as the name of a RowHammer mitigation mechanism that biases protection toward repeatedly sampled rows (Zhou et al., 2012, Kurze, 2022, Hansen et al., 2012, Woo et al., 17 May 2026).
1. Formal probabilistic definitions
A loaded -sided die is defined as a source that on each roll produces a symbol in the alphabet , with
Its entropy is
This formulation places loaded dice alongside biased coins as basic discrete sources, with the biased 2-face coin recovered as the case (Zhou et al., 2012).
A second formalization considers repeated rolls. For a -sided die with weights , let be i.i.d. outcomes in , and define
The induced cumulative distribution function is
0
This construction shifts the focus from single-roll probabilities to the measure induced on 1 by an infinite 2-ary expansion (Pfeffer et al., 2023).
Independently rolled loaded dice also define product probability spaces. For two six-sided dice with face probabilities 3 and 4, independence gives 5, and the distribution of the total 6 is
7
This total-law perspective underlies inverse questions about whether factor distributions are determined by the distribution of sums (Morrison et al., 2013).
2. Extraction of unbiased bits from biased dice
A central algorithmic problem is to convert biased 8-ary outcomes into independent unbiased bits. One universal scheme begins with any fixed-length coin-to-bits algorithm 9 that extracts unbiased bits from biased 2-face coins, and lifts it to an algorithm 0 for 1-sided dice. The construction uses a binarization tree of depth 2: each die face is represented by a binary string of length 3, and as a die-outcome sequence 4 is read, bits are routed to buffers 5 attached to tree nodes 6. The derived extractor is
7
The key structural fact is invertibility: from the collection 8 one can uniquely reconstruct 9. The correctness theorem then states that if 0 produces independent unbiased bits, so does the induced 1 for an 2-sided die with arbitrary biases 3 (Zhou et al., 2012).
The same framework yields asymptotic optimality. If the coin algorithm 4 is asymptotically optimal, then for 5,
6
Equivalently, if 7 is the number of die rolls needed to generate a fixed 8 bits, then
9
The reported implementation cost is 0, with total buffer length 1 and up to 2 buffers in the straightforward tree representation (Zhou et al., 2012).
The same paper also studies prescribed-length extraction. Its iterative variable-to-fixed-length scheme 3 is stated for biased coins rather than general dice: each round produces 4 bits with 5, produces 6 with probability at least 7, and reaches exactly 8 bits by invoking 9 on fresh tosses whenever 0. The expected number of iterations is at most 1, and the total toss complexity satisfies
2
A plausible implication is that the die-to-bits transformation and the fixed-length coin extractor can be composed when exact output length is operationally required (Zhou et al., 2012).
3. Exact discrete sampling and die-to-die factories
Loaded dice also arise as target distributions to be sampled exactly from unbiased random bits. The Fast Loaded Dice Roller (FLDR) addresses the problem of generating a random integer from a discrete distribution 3, equivalently from positive integer weights 4 summing to 5. FLDR extends the weights with 6, where 7, thereby forming a dyadic proposal distribution 8 over 9 outcomes. It then simulates 0 by an implicit entropy-optimal DDG tree of depth 1, rejects the extra outcome 2, and stores the sampler in two arrays: 3, the number of leaves at each level, and 4, the labels of those leaves in sorted order (Saad et al., 2020).
The reported preprocessing cost is 5 time and 6 space. Sampling uses 7 integer operations per consumed bit, and the main theoretical guarantee is
8
The same source reports that FLDR is 9–0 faster in both preprocessing and sampling than multiple baseline algorithms, including alias and interval samplers, and uses up to 1 less space than a full entropy-optimal sampler (Saad et al., 2020).
A more general “dice enterprise” problem begins with an 2-sided die of unknown face-probabilities 3 and asks for simulation of a 4-sided die with probabilities 5, where 6 is a rational map between open probability simplices. The construction rewrites 7 using a common positive denominator 8 and homogeneous positive polynomials, producing a fine, connected multivariate ladder
9
A finite-state Markov chain is then built with stationary distribution 0; exact simulation is obtained via Coupling from the Past, with a monotone two-chain specialization in the Bernoulli-factory case 1. For the Bernoulli-factory case, the number of tosses has exponential tails and its expected value can be bounded uniformly in 2 (Morina et al., 2019).
These two lines of work are complementary. FLDR starts from unbiased bits and produces a loaded-dice sample exactly; Dice Enterprise starts from a loaded die with unknown parameters and constructs another die whose law is a rational transform of the original law. This suggests a broad algorithmic view in which “loaded dice” are both sources and targets of exact stochastic compilation (Saad et al., 2020, Morina et al., 2019).
4. Infinite-roll distributions and singularity
When a loaded die is rolled infinitely often and interpreted through a 3-ary expansion, the induced distribution on 4 has a recursive structure. If 5, then for 6,
7
For example, on 8, 9, while on 0,
1
Iterating the recursion over finer 2-ary intervals yields a continuous piecewise-linear construction at every finite stage (Pfeffer et al., 2023).
The principal qualitative result is singularity. If some 3, then the induced measure 4 is singular with respect to Lebesgue measure, and the CDF satisfies 5 Lebesgue-a.e. The argument compares 6-typical digit frequencies, which converge to 7 by the strong law of large numbers, with Lebesgue-typical frequencies, which equal 8 by normal number theory. In contrast, in the uniform case 9 for all 00, the recursion gives 01, so the law is absolutely continuous (Pfeffer et al., 2023).
The paper develops two quantitative comparisons with the uniform CDF 02. The first is the sup-norm 03, using a contraction operator 04 on 05 with Lipschitz constant 06. The second is arclength: 07 For any continuous, increasing 08 with 09 and 10, the cited theorem states that 11 if and only if 12 is singular, while 13. Hence 14 for any unfair die and 15 only in the fair case (Pfeffer et al., 2023).
In the special case 16, the model reduces to a biased coin with
17
If 18, then 19; otherwise the limit law is the classical singular Bernoulli-convolution described in the paper as a devil’s staircase (Pfeffer et al., 2023).
5. Inference, maximum entropy, and inverse problems
A different class of loaded-dice problems asks what can be inferred about unknown face probabilities from partial information. In the Brandeis Dice Problem, the observable constraint is a known mean face value
20
Jaynes’ Maximum Entropy approach infers probabilities 21 by maximizing Shannon entropy
22
subject to 23 and 24. The resulting canonical-form solution is
25
with 26 fixed by
27
The same paper presents a Bayesian alternative at a deeper level of description, introducing latent chances 28 with a uniform prior on the simplex and obtaining, in the 29 limit with only the average observed, a micro-canonical posterior
30
The next-toss prediction is then the posterior mean 31 (Enk, 2014).
The significance of this comparison is not merely conceptual. The cited analysis states that, for finite 32, the canonical-MaxEnt probabilities and the microcanonical posterior means are not equivalent, but become equivalent in the analogue of the thermodynamic limit 33. It also reports error bars: for 34 and 35, both methods give 36 of order 37–38, and for finite 39 the two predictions can differ by 40 or more (Enk, 2014).
A related inverse problem concerns identifiability from total distributions. For two independent six-sided dice with face probabilities 41 and 42, one may ask whether there exist non-uniform probabilities such that the total-law matches the fair-craps distribution
43
Three proofs are summarized for the negative answer. A Gröbner-basis computation shows that the only real nonnegative solution is 44. Over 45, the solution set consists of exactly 51 points, but only the fair-dice point is nonnegative real. A generating-function proof factors
46
and concludes that the only admissible split into degree-5 factors with nonnegative coefficients is the trivial fair one. The same source notes that, by contrast, explicit positive-coefficient counterexamples appear for larger orders, with examples starting at order 47 (Morrison et al., 2013).
6. Loaded Dice in interaction design
In HCI and design research, “Loaded Dice” denotes a multisensory ideation tool for connected devices. The system consists of two wireless, battery-powered cubes of approximately 48 edge length, each with six functional faces, where the “top” face is always the active face. One cube is a sensor die with temperature sensor, ambient light sensor, microphone, 3-axis movement sensor, potentiometer, and ultrasonic distance sensor. The other is an actuator die with vibration motor, heating surface, LED bar-graph, loudspeaker, power LEDs, and miniature fan (Kurze, 2022).
The cubes are embedded in workshops through an extended interaction vocabulary adapted from earlier interaction-vocabulary work. The paper lists pairs such as approximate—precise, casual—attention-grabbing, direct—mediated, friendly—angry, graded—binary, incidental—targeted, instant—delayed, objective—poetic, powerful—gentle, private—public, slow—fast, and soft—angry. In the “Cards’n’Dice” method, workshops begin with an introduction of 10 minutes, proceed through 4–6 ideation rounds of 15 minutes each, and end with 20 minutes of reflection. Each round has teams pick one sensor cube face and one actuator cube face, draw 1–2 interaction-quality cards, sketch or role-play a scenario, rapidly “micro-prototype” it by holding the cubes together, and then present insights and refine (Kurze, 2022).
The stated goals are to encourage rapid, playful exploration of 36 possible sensor–actuator combinations, stimulate thinking beyond screens and buttons into temperature, motion, sound, and prospectively smell, and surface latent preferences such as “private” versus “public” or “incidental” versus “targeted.” The paper additionally outlines a smell extension: a small cartridge or absorbent pad soaked with scented oil is placed inside the actuator cube, the existing Peltier heater is used to volatilize the odorant, and the mini-fan directs the scented airflow. The described control strategy uses discrete Peltier temperature levels such as 49, 50, and 51, together with PWM-controlled fan duty cycle to set smell strength (Kurze, 2022).
The evaluation claims in this line of work are explicitly limited. The paper reports no formal user-study metrics, but emphasizes repeated observations across multiple co-design sessions: smell broadened the space of envisioned scenarios, generated ideas around non-visual and non-audible channels for intimate or ambient communication, and increased metaphorical uses such as “warmth as digital hug.” This suggests that, in this context, “loaded” refers not to probabilistic bias but to preconfigured multisensory affordances that deliberately bias ideation toward unconventional IoT experiences (Kurze, 2022).
7. Metaphorical and architectural extensions
In climate science communication, “loaded dice” is a metaphor for the shifted and broadened distribution of seasonal temperature anomalies. Using the 1951–1980 climatology as baseline, a six-sided climate die is defined with two blue faces for “cold,” two white faces for “average,” and two red faces for “hot,” corresponding to terciles under a standard normal distribution. The tercile cut points are at 52, and the normalized anomaly is
53
The cited paper reports that “hot” summers 54 rose from approximately 55 in 1951–80 to approximately 56 in 2001–11; “very hot” 57 rose from approximately 58 to approximately 59 of land; and “extremely hot” 60 rose from approximately 61–62 in 1951–80 to approximately 63 in 2006–11, compared with the baseline Gaussian expectation of 64 beyond 65 (Hansen et al., 2012).
The metaphor is designed to make altered odds perceptible without erasing variability. The same source argues that fixing the baseline at 1951–1980, rather than continuously updating “normal,” prevents the dice from appearing perpetually fair while the underlying distribution shifts. It further states, with respect to the 2010 Moscow heatwave and the 2011 Texas/Oklahoma heat and drought, that such 66 anomalies were “effectively impossible” in the absence of global warming because their probability under the old distribution was vanishingly small (Hansen et al., 2012).
In computer architecture, “Loaded Dice” is also the subtitle of PrISM, a scalable probabilistic RowHammer defense. The motivating problem is the non-selection problem in fixed-rate probabilistic defenses such as MINT: at low thresholds 67–68, a heavily hammered row can repeatedly escape sampling across mitigation windows. PrISM addresses this by sampling 69 activation slots per window of size 70, storing sampled-but-unmitigated rows in a per-bank Sampled History Queue (SHQ) across the previous 71 windows, and issuing an extra mitigation through Alert Back-Off whenever a newly sampled row reappears in the SHQ. The paper gives
72
and interprets history intersections as a mechanism that “loads” mitigation toward persistent aggressors (Woo et al., 17 May 2026).
The reported overheads are explicit. At threshold 73, PrISM incurs a 74 average slowdown compared to 75 for PRAC; at threshold 76, it reduces average slowdown from 77 for MINT to 78, a 79 reduction. The required storage is modest: at 80, the SHQ has 246 entries, and the paper states a maximum of 81 of SRAM per bank for the SHQ and less than 82 per bank overall, with no DRAM timing-parameter changes (Woo et al., 17 May 2026).
Across these examples, the phrase “loaded dice” retains the core idea of biased outcomes, but the object being biased differs. In climate science, the biased object is a public probability metaphor for seasonal anomalies; in PrISM, it is the mitigation process itself, made history-sensitive so that repeated row activity is disproportionately likely to trigger protection (Hansen et al., 2012, Woo et al., 17 May 2026).