An Eilenberg–Moore algebra of the Giry monad computes an expectation, a coherent rule that collapses a distribution over
Fix the Giry monad
The first says the expectation of a point mass
Example. Barycenter on a simplex
When
carries an affine convex structure, sends a distribution to its probabilistic barycenter . On a simplex this is the centre of mass of the mass assignment. Affineness of is what lets that integral name a point of , so without it there is no coherent barycenter and no algebra.
Definition.
-magma Dropping the two coherence laws leaves a
-magma , an operation whose arity functor is itself, so its inputs are whole distributions rather than finite tuples. An expectation algebra is a -magma that also respects the monad laws, one categorical level up from an $F$-algebra that happens to be a monad algebra.
Example. The algebras depend on the arity functor
Over
the Eilenberg–Moore category of the finite-support distribution monad is , since closing convex combinations under the laws forces full linear structure, and more generally the algebras are modules. Changing the arity functor changes the algebras. For the non-monadic the initial -algebra is , the natural numbers, so “algebra of a functor” runs from arithmetic to expectation.
Noise on an expectation algebra
The unbiased Kleisli endomorphisms of
that is
References
- Michèle Giry, “A categorical approach to probability theory”, in Categorical Aspects of Topology and Analysis, Lecture Notes in Mathematics 915 (1982), pp. 68-85