Uniform prior on Δ₃
Darker green means higher posterior density.
Darker green means higher posterior density.
Same matrices for every temperature. Losses use the mean chosen before each reveal.
Rate guide, not a finite bound.
| μ | Last loss | Total loss | Regret | Gap |
|---|
Every round follows the same order: choose the Gibbs posterior mean using only the matrices already revealed, reveal the next matrix, score that previously chosen allocation, then update the posterior. The simplex shows the updated distribution and its mean, ready for the next round. Online loss adds the losses actually incurred by these changing pre-round means. Online regret subtracts the loss of the single best fixed allocation over the same revealed rounds.
Each dashed curve uses the same fixed μ and color as its solid regret curve, including a custom temperature. All logarithms are natural. The default μ(n − 1) log t is a leading-rate guide, not a finite-time guarantee; in particular it is zero at t = 1. In the single-surprise preset, μ = 0.25 rises above that guide on rounds 23–34 after the surprise.
Exact posterior bound. Let L*t be the best fixed allocation's cumulative loss and Zt(μ) the normalizer under this demo's uniform prior. The comparison is the posterior-telescoping expression from the proof of Proposition 3.1:
Thus this is an upper bound on regret when the accumulated gap is nonpositive. In the single-surprise preset, at μ = 0.25 it is exceeded immediately at t = 21: regret ≈ 1.3862 versus posterior bound ≈ 1.0863. This shows failure of the cumulative mixability comparison for the raw mean.
Finite uniform-prior bound. With q = μ(n − 1) and k = rt, a homothetic-simplex localization bounds the posterior expression by
This follows by integrating over εu + (1 − ε)w*, whose relative volume is εn−1 and whose return is at least (1 − ε)r times the best fixed allocation’s return in each round, then choosing ε = q/(k + q). It bounds regret under the same mixability condition. The raw posterior mean is guaranteed to meet that condition for μ ≥ r = 2; smaller μ need not do so. In the single-surprise preset, the μ = 0.25 regret does not exceed this looser finite bound.
The paper's Proposition 3.1, Eq. (7), uses a Jeffreys Dirichlet(½, …, ½) prior. This demo retains its uniform prior, so that sharper finite expression is not applied here. No comparison replaces the prescribed μ with r or n − r. Values at t = 0 are defined as zero; the posterior is evaluated in closed form for repeated surprises and by numerical integration for the other presets.
A gap at or below zero meets the one-step inequality. A positive gap shows that this proof condition failed for that round; it does not establish poor cumulative regret. The posterior mean has the Jensen guarantee at μ ≥ 2.
The new preset alternates two full-row-rank matrices. In preparation, experiments 1 and 2 are available and experiment 3 is inactive. A surprise switches availability to experiments 2 and 3, making the previously neglected experiment essential:
Block lengths double: 20 preparation / 10 surprise rounds, then 40 / 20, 80 / 40, 160 / 80, and so on. S₁, S₂, … mark the starts of surprise bursts in the plots. Prepare surprise advances to the next burst; Complete burst runs its remaining rounds. Next round still advances one round at a time. All past matrices, losses, and posterior evidence are retained throughout.
Choose Exact posterior bound to see the repeated cumulative comparison: μ = 0.5 crosses above at t = 26, 77, 179, and 383 and returns below between bursts. μ = 0.25 has repeated upward jumps; μ = 1 and 2 stay below in this preset. Only μ ≥ 2 has the general Jensen guarantee for the raw mean. The looser finite uniform-prior bound need not be exceeded.
Here each return is a single product, w₁w₂ or w₂w₃. Under the uniform prior, the posterior is Dirichlet with parameters 1 + c[i]/μ, where c[i] counts how many previous matrices include experiment i in their active pair. Means, normalizers, losses, and the best fixed allocation are evaluated from these closed-form expressions, including for custom μ.
The single surprise preset preserves the previous experiment: unit column directions −25°, 25°, 0° for 20 rounds, followed by a matrix with parallel first two columns and a perpendicular third column, repeated thereafter. Rotating phases preserves the earlier structured sequence. All temperatures receive the same matrices. Changing μ replays that fixed history for the selected temperature; it never changes an earlier matrix. Moving the weight sliders only inspects the posterior and current experiment vectors, leaving all online losses and comparison curves unchanged.
The gold diamond is the selected-temperature posterior mean. The blue triangle is a current D-optimal allocation. When the optimum is nonunique, a blue line shows the full optimal segment and the triangle marks its midpoint. For the single-surprise matrix, every allocation with w₃ = ½ is optimal; symmetry selects (¼, ¼, ½) as the representative. The retained warm-up rounds delay the approach of the mean and best fixed allocation to this set. The purple square is the best fixed allocation minimizing the summed losses. These two benchmarks use revealed matrices. Colors on the simplex are relative to the current peak, and the density readout is relative to the uniform prior. Repeated surprises use the Dirichlet formulas; the other presets use numerical integration.