MomentsArm
Moments-tracking arm. Backs MomentsStat under the hood, which means the snapshot exposes the raw second moment m2 (in addition to mean and variance); required by the variance-aware UCB policies that need mean-of-squares directly:
UCB1Normal: Auer et al.'s variance-aware UCB for Gaussian rewards.
UCB1Tuned: sample-variance-aware UCB; typically tighter bound than plain UCB1.
UcbV: variance-aware UCB with an explicit exploration constant.
For pure Thompson sampling on Gaussian rewards, NormalArm + the Normal-Gamma posterior is the right pick; MomentsArm earns its place specifically when the policy needs m2.
Types
Factory entry-point for MomentsArm (host for warmStart).
Functions
Allocate a fresh per-arm accumulator already seeded with this arm's prior pseudo-counts.
Map a raw observation onto the scale the stat accumulates. Identity by default; LogNormalArm overrides with ln so the underlying stat tracks the log-reward and the Normal-Gamma posterior fits the log-normal generative model.
MomentsArm
createStat
Allocate a fresh per-arm accumulator already seeded with this arm's prior pseudo-counts.
priorMean
priorWeight
Pseudo-weight of the prior seed.