nLab Giry monad

Redirected from "Giry's monad".
Note: Giry monad, Giry monad, and Giry monad all redirect for "Giry's monad".

Contents

Idea

The Giry monad (Giry 1980, following Lawvere 1962) is the monad on a category of suitable spaces which sends each suitable space XX to the space of suitable probability measures on XX.

This is one of the main examples of probability monads, and hence one of the main structures used in categorical probability.

Definition

The Giry monad is defined on the category of measurable spaces, assigning to each measurable space XX the space G(X)G(X) of all probability measures on XX endowed with the σ \sigma -algebra generated by the set of all the evaluation maps

ev U:G(X)[0,1] ev_U \colon G(X) \to [0,1]

sending a probability measure PP to P(U)P(U), where UU ranges over all the measurable sets of XX. The unit of the monad sends a point xXx \in X to the Dirac measure at xx, δ x\delta_x, while the monad-multiplication is defined by the natural transformation

μ X:G(G(X))G(X) \mu_{X} \;\colon\; G\big(G(X)\big) \longrightarrow G(X)

given by

μ X(Q)(U)= qG(X)ev U(q)dQ. \mu_X (Q)(U) =\textstyle{\int}_{q \in G(X)} ev_U(q) \,dQ \,.

This makes the endofunctor GG into a monad, and as such this is the Giry monad on measurable spaces, as originally defined by Lawvere 1962.

An alternative choice, convenient for analysis purposes, and introduced by Giry, is obtained by restricting the category of measurable spaces to the (full) subcategory which are those measurable spaces generated by Polish spaces, PolPol, which are separable metric spaces for which a complete metric exists. The morphisms of this category are continuous functions.

Write

P:PolPol P \colon Pol \to Pol

for the endofunctor which sends a space, XX, to the space of probability measures on the Borel subsets of XX. P(X)P(X) is equipped with the weakest topology which makes the integration map τ Xfdτ\tau \mapsto \int_{X}f d\tau continuous for any ff, a bounded, continuous, real function on XX.

There is a natural transformation

μ X:P(P(X))P(X) \mu_{X}: P(P(X)) \to P(X)

given by

μ X(M)(A):= P(X)τ(A)M(dτ). \mu_X (M)(A) := \int_{P(X)} \tau(A) M(d\tau).

This makes the endofunctor PP into a monad, and this is the Giry monad on Polish spaces.

Properties

Kleisli category

The Kleisli morphisms of the Giry monad on Meas (and related subcategories) are Markov kernels. Therefore its Kleisli category is the category Stoch (=Meas G\mathbf{Meas}_{G}). It is one of the most important examples of a Markov category.

Algebras of the Giry Monad on Meas\mathbf{Meas}

We construct a factorization of the GG monad which shows every GG-algebra is an expectation map.

Let Alg G\mathbf{Alg}_G denote the category of algebras of the GG-monad has objects XX for which there exists a GG-algebra G(X)hXG(X) \xrightarrow{h} X which is an object in the Eilenberg-Moore category of the GG-monad, and consists of arrows XmYX \xrightarrow{m} Y such that mm constitutes an arrow in the Eilenberg-Moore category of the GG-monad.

If XX is any measurable space then the space of probability measures GXG{X} has a convex space structure defined pointwise: if {P i} i=1 n\{P_i\}_{i=1}^{n} is finite collection of probability measures on XX then, for every sequence {p i} i=1 n\{p_i\}_{i=1}^{n} with each p i[0,1]p_i \in [0,1] such that i=1 np i=1\sum_{i=1}^{n} p_i = 1, the affine sum i=1 np iP i\sum_{i=1}^{n} p_i P_i, is also a probability measure, defined at the measurable set UU in XX by

( i=1 np iP i)(U)= i=1 np iP i(U). \big(\sum_{i=1}^{n} p_i P_i\big)(U) = \sum_{i=1}^{n} p_i P_i(U).

Lemma

Given any GG-algebra GXhXG{X} \xrightarrow{h} X the base space XX has the structure of a convex space which makes the measurable function hh an affine (measurable) map. Moreover, morphisms of GG-algebras are also affine maps.

Proof

Given hh define the convex space structure on XX by

i=1 np ix i:=h( i=1 np iδ x i). \sum_{i=1}^{n} p_i x_i := h(\sum_{i=1}^{n} p_i \delta_{x_i}).

Because a GG-algebra hh must satisfy hμ X=hGhh \circ \mu_X = h \circ G{h} we have, for any finite sequence Q iGXQ_i \in GX,

(hμ X)( i=1 np iδ Q i) = (hGh)( i=1 np iδ Q i) h( i=1 np iQ i) = h( i=1 np iδ h(Q i)) = i=1 np ih(Q i) \begin{array}{lcl} (h \circ \mu_X)( \sum_{i=1}^{n} p_i \delta_{Q_i}) &=& (h \circ G{h})( \sum_{i=1}^{n} p_i \delta_{Q_i}) \\ h( \sum_{i=1}^{n} p_i Q_i) &=& h(\sum_{i=1}^{n} p_i \, \delta_{h(Q_i)}) \\ &=& \sum_{i=1}^{n} p_i h(Q_i) \end{array}

where the last line makes use of the definition of the convex structure on XX. Thus, every GG-algebra is affine.

To prove that any map of GG-algebras f:(X,h)(Y,k)f: (X, h) \to (Y, k) is an affine map, we compute

f( i=1 np ix i) = f(h( i=1 np iδ x i)) = k(G(f)( i=1 np iδ x i) = k( i=1 np iδ f(x i)) = i=1 np if(x i) . \begin{array}{lcll} f(\sum_{i=1}^{n} p_i x_i) &=& f(h(\sum_{i=1}^{n} p_i \delta_{x_i})) & \\ &=& k(G(f)(\sum_{i=1}^{n} p_i \delta_{x_i}) & \\ &=& k(\sum_{i=1}^{n} p_i \delta_{f(x_i)}) & \\ &=& \sum_{i=1}^{n} p_i f(x_i) & \end{array}.

Let \mathbb{R}_{\infty} be the one-point compactification of the real-line with the Borel σ\sigma-algebra. Let MeasCvx\mathbf{Meas} \cap \mathbf{Cvx} denote the category whose objects XX are measurable spaces with a convex space structure such that there are enough affine measurable functions Xf X \xrightarrow{f} \mathbb{R}_{\infty} to coseparate the points of XX. The morphisms of MeasCvx\mathbf{Meas} \cap \mathbf{Cvx} are affine measurable functions. Because \mathbb{R}_{\infty} is a coseparator in Cvx\mathbf{Cvx} it follows that \mathbb{R}_{\infty} is a coseparator in MeasCvx\mathbf{Meas} \cap \mathbf{Cvx}.

Given any measurable space XX and any PG(X)P \in G(X) let hom Meas(X, )𝔼 P hom_{\mathbf{Meas}}(X, \mathbb{R}_{\infty}) \xrightarrow{\mathbb{E}_{P}} \mathbb{R}_{\infty} denote the functional sending f𝔼 P(f)f \mapsto \mathbb{E}_{P}(f) where 𝔼 P(f)= XfdP\mathbb{E}_{P}(f) = \int_X f \, dP. Let X=hom MeasCvx(X, )\mathbb{R}_{\infty}^X = hom_{\mathbf{Meas} \cap \mathbf{Cvx}}(X, \mathbb{R}_{\infty}). Taking X= X=\mathbb{R}_{\infty} we obtain the space \mathbb{R}_{\infty}^{\mathbb{R}_{\infty}} of affine measurable endomaps on \mathbb{R}_{\infty}.

Recall that a \mathbb{R}_{\infty}-generalized point of XX is a functional XJ \mathbb{R}_{\infty}^X \xrightarrow{J} \mathbb{R}_{\infty} satisfying, for all ϕ \phi \in \mathbb{R}_{\infty}^{\mathbb{R}_{\infty}} and all f Xf \in \mathbb{R}_{\infty}^X, the equation

ϕ(J(f))=J(ϕf). \phi \big( J(f) \big) = J(\phi \circ f).

Generalized points are defined in Definition 8.19 of Sets for Mathematics, and several basic properties are discussed therein.

Note that if PG(X)P \in G(X) then the functional X𝔼 P \mathbb{R}_{\infty}^X \xrightarrow{\mathbb{E}_P} \mathbb{R}_{\infty} is an \mathbb{R}-generalized point of XX since 𝔼 P(ϕf)=ϕ(𝔼 P(f))\mathbb{E}_P(\phi \circ f) = \phi( \mathbb{E}_P(f) ).

Conversely, we have the

Conjecture. If JJ is an \mathbb{R}_{\infty}-generalized element of XX then there exists a PG(X)P \in G(X) such that J=𝔼 PJ=\mathbb{E}_P.

We say an object XX in MeasCvx\mathbf{Meas} \cap \mathbf{Cvx} satisfies the fullness property if and only if for every PG(X)P \in G(X) the property

f Xf 1(𝔼 P(f))={xX|𝔼 P(f)=f(x)f X} \displaystyle{ \bigcap_{f \in \mathbb{R}_{\infty}^X}} f^{-1}\big(\mathbb{E}_{P}(f)\big) = \{x \in X \, | \, \mathbb{E}_P(f)=f(x) \quad \forall f \in \mathbb{R}_{\infty}^X\} \ne \emptyset

holds.

Lemma

Every \mathbb{R}_{\infty}-generalized element JJ of XX which satisfies the fullness property is a point, i.e, J=ev xJ =ev_x for a unique element xXx \in X. (ev xev_x is the evaluation map at the point xx.)

Proof

Since the fullness property is satisfied there exist at least one element xXx \in X such that J(f)=f(x)J(f)=f(x). Since XX lies in MeasCvx\mathbf{Meas} \cap \mathbf{Cvx} which is coseparated by \mathbb{R}_{\infty} there is at most one element xXx \in X satisfying, for all affine measurable maps Xf X \xrightarrow{f} \mathbb{R}_{\infty}, the equation J(f)=f(x)J(f)=f(x).

Define Meas Cvx\mathbf{Meas}_{Cvx} to be the full subcategory of MeasCvx\mathbf{Meas} \cap \mathbf{Cvx} consisting of those objects which satisfy the fullness property.

Note that \mathbb{R}_{\infty} is an object in Meas Cvx\mathbf{Meas}_{Cvx}. (This is exercise 8.23 in Sets for Mathematics. The expectation mapping G( )𝔼 (id ) G(\mathbb{R}_{\infty}) \xrightarrow{\mathbb{E}_{\bullet}(id_{\mathbb{R}_{\infty}})} \mathbb{R}_{\infty} is easily verified to be a GG-algebra.)

Also note that for every measurable space XX that G(X)G(X) is an object in MeasCvx\mathbf{Meas} \cap \mathbf{Cvx} because, for every measurable set UU in XX the evaluation maps G(X)ev U G(X) \xrightarrow{ev_U} \mathbb{R}_{\infty} is an affine measurable map. Since any two distinct probability measures P,QG(X)P, Q \in G(X) must differ on at least one measurable set UU, P(U)Q(U)P(U) \ne Q(U), it follows that there are enough affine measurable maps to coseparate elements in G(X)G(X).

Theorem

Let \mathcal{R} denote the full subcategory of Meas Cvx\mathbf{Meas}_{Cvx} consisting of the single object \mathbb{R}_{\infty}. The functor defined (on objects) by

Meas Cvx op 𝒴 Set X Meas Cvx(X,) \begin{array}{ccc} \mathbf{Meas}_{Cvx}^{op} & \xrightarrow{\mathcal{Y}} & \mathbf{Set}^{\mathcal{R}} \\ X & \mapsto & \mathbf{Meas}_{Cvx}(X, \bullet) \end{array}

is a full and faithful functor.

Proof

In the category Meas Cvx\mathbf{Meas}_{Cvx} every affine measurable function XgYX \xrightarrow{g} Y is determined by its value on points 1xX1 \xrightarrow{x} X. Hence to prove the fully faithful property it suffices to prove those properties on points.

Faithful: We have 𝒴(x)\mathcal{Y}(x) is the evaluation map Xev x \mathbb{R}_{\infty}^X \xrightarrow{ev_x} \mathbb{R}_{\infty}. If, for f,g Xf, g \in \mathbb{R}_{\infty}^X, we have f(x)=g(x)f(x) = g(x) then since XX has enough affine measurable maps X X \rightarrow \mathbb{R}_{\infty} to coseparate points it follows that f=gf=g.

Full: If JNat(hom(X,),hom(1,))J \in Nat( hom(X, \cdot), hom(\mathbf{1}, \cdot) ) is a natural transformation then ϕ(J(f))=J(ϕf)\phi( J(f) ) = J( \phi \circ f) for all f Xf \in \mathbb{R}_{\infty}^X and all ϕ \phi \in \mathbb{R}_{\infty}^{ \mathbb{R}_{\infty} }, i.e., JJ is an \mathbb{R}_{\infty}-generalized point of XX. Now to complete the proof we employ the conjecture - J=𝔼 PJ = \mathbb{E}_P for some PG(X)P \in G(X). Then we have J(f)= XfdPIm(f)J(f) = \int_X f \, dP \in Im(f).

Now let X f={xX|J(f)=f(x)}X_f = \{x \in X \, | \, J(f) = f(x) \}. Then fX f\cap_f X_f \ne \emptyset is precisely the fullness property which is satisfied since, by hypothesis, XX is an object in Meas Cvx\mathbf{Meas}_{Cvx}. Thus there exist an xXx \in X such that 𝒴(x)=ev x\mathcal{Y}(x) = ev_x and 𝒴\mathcal{Y} is full.

Note that in the proof we do not need the conjecture per se, all we require is that the \mathbb{R}_{\infty}-generalized point JJ satisfies J(f)Im(f)J(f) \in Im(f) for all affine measurable functions ff. However trying to prove the condition J(f)Im(f)J(f) \in Im(f) given the naturality condition leads to the conjecture.

Let δ x\delta_x denote the Dirac measure at xx.

Corollary

If XX is an object in Meas Cvx\mathbf{Meas}_{Cvx} then there exists a unique affine measurable function G(X)ϵ XXG(X) \xrightarrow{\epsilon_X} X such that ϵ X(δ x)=x\epsilon_X(\delta_x)=x for all xXx \in X.

Proof

Let ιMeas Cvx\mathcal{R} \xrightarrow{\iota} \mathbf{Meas}_{Cvx} denote the inclusion functor. Let XιX\downarrow \iota denote the slice category of arrows Xm X \xrightarrow{m} \mathbb{R}_{\infty}, and let XιπX \downarrow \iota \xrightarrow{\pi} \mathcal{R} denote the projection functor. For 𝒟 X=XιπιMeas Cvx\mathcal{D}_X = X \downarrow \iota \xrightarrow{\pi} \mathcal{R} \xrightarrow{\iota} \mathbf{Meas}_{Cvx} the theorem is equivalent to saying X=lim𝒟 XX = \lim \mathcal{D}_X with the projection map at component ff being ff. In other words, the inclusion functor ι\iota is codense. See Propositions 1 and 2, page 242 of CWM.

Consider the cone over 𝒟 X\mathcal{D}_X with vertex G(X)G(X) and natural transformation components 𝔼 (f)=𝔼 (id )G(f)\mathbb{E}_{\bullet}(f) = \mathbb{E}_{\bullet}(id_{\mathbb{R}_{\infty}}) \circ \G(f).

Since X=lim𝒟 XX=\lim \mathcal{D}_X there exists a unique Meas Cvx\mathbf{Meas}_{Cvx}-morphism G(X)ϵ XXG(X) \xrightarrow{\epsilon_X} X such that fϵ X=𝔼 (f)f \circ \epsilon_X = \mathbb{E}_{\bullet}(f) for all affine maps Xf X \xrightarrow{f} \mathbb{R}_{\infty}. It follows that for each Dirac measure δ xG(X)\delta_x \in G(X) that, for all Xf X \xrightarrow{f} \mathbb{R}_{\infty} in Meas Cvx\mathbf{Meas}_{Cvx} that f(ϵ X(δ x))=f(x)f(\epsilon_X(\delta_x)) = f(x). Since \mathbb{R}_{\infty} is a coseparator in Meas Cvx\mathbf{Meas}_{Cvx} it follows ϵ X(δ x)=x\epsilon_X(\delta_x)=x.

A more appropriate notation for the unique morphism ϵ X\epsilon_X is 𝔼 (id X)\mathbb{E}_{\bullet}(id_X) which, in the special case of XX lying in an \mathbb{R}-vector space coincides with the usual interpretation. For an arbitrary space XX the function G(X)𝔼 (id X)XG(X) \xrightarrow{\mathbb{E}_{\bullet}(id_X)} X is the unique morphism such that, for every PG(X)P \in G(X), 𝔼 P(id X)X\mathbb{E}_P(id_X) \in X is the unique point in XX such that f(𝔼 P(id X))= Xf(x)dPf(\mathbb{E}_{P}(id_X)) = \int_X f(x) \, dP for all affine measurable functions Xf X \xrightarrow{f} \mathbb{R}_{\infty}.

Lemma

The function ϵ X\epsilon_X is a GG-algebra.

Proof

The property ϵ X(δ x)=x\epsilon_X(\delta_x)=x follows from the preceding corollary. To prove the property ϵ Xμ X=ϵ XG(ϵ X)\epsilon_X \circ \mu_X = \epsilon_X \circ G(\epsilon_X) compose both sides of that equation by an affine measurable map Xf X \xrightarrow{f} \mathbb{R}_{\infty}. If we spell both sides of that equation out, using the property Xfd(μ X(Q))= PG(A)𝔼 P(f)dQ\int_X f \, d(\mu_X(Q)) = \int_{P \in \G(A)} \mathbb{E}_{P}(f) dQ, the equation holds valid. The result of the lemma follows from the property that \mathbb{R}_{\infty} coseparates, i.e, the set of morphisms Xf X \xrightarrow{f} \mathbb{R}_{\infty} are jointly monic on XX.

Lemma

Let X obMeas CvxX \in_{ob} \mathbf{Meas}_{Cvx}. Every affine measurable function Xf X \xrightarrow{f} \mathbb{R}_{\infty} yields a morphism of G\G-algebras.

Proof

By Corollary 3.9 the affine measurable function ϵ X=𝔼 (id X)\epsilon_X =\mathbb{E}_{\bullet}(id_X) is the unique morphism in Meas Cvx\mathbf{Meas}_{Cvx} such that for every Xf X \xrightarrow{f} \mathbb{R}_{\infty} the property

f𝔼 (id X)=𝔼 (id )G(f) f \circ \mathbb{E}_{\bullet}(id_X) = \mathbb{E}_{\bullet}(id_{\mathbb{R}_{\infty}}) \circ G(f)

holds. But both 𝔼 (id X)\mathbb{E}_{\bullet}(id_X) and 𝔼 (id )\mathbb{E}_{\bullet}(id_{\mathbb{R}_{\infty}}) are GG-algebras. Hence ff is a morphism of those algebras.

Lemma

The construction 𝔼 (id X)\mathbb{E}_{\bullet}(id_X) is natural in the argument XX.

Proof

The proof is straightforward using the previous lemma.

Using the naturality of 𝔼\mathbb{E} we obtain an adjunct pair MeasG^Meas Cvx\mathbf{Meas} \xrightarrow{\hat{G}} \mathbf{Meas}_{Cvx}, which is the Giry monad (functor) viewed as a functor into Meas Cvx\mathbf{Meas}_{Cvx}, and the partial forgetful functor Meas Cvx𝒰 CvxMeas\mathbf{Meas}_{Cvx} \xrightarrow{\mathcal{U}_{Cvx}} \mathbf{Meas} which forgets the convex space structure, with the natural transformation 𝔼\mathbb{E} as the counit of the adjunction. The composite functor 𝒰 CvxG^=G\mathcal{U}_{Cvx} \circ \hat{G} = G.

Since the Giry monad factors through Meas Cvx\mathbf{Meas}_{Cvx} it follows that Meas Cvx\mathbf{Meas}_{Cvx} is a subcategory of Alg G\mathbf{Alg}_{G}.

Theorem

Meas Cvx=Alg G\mathbf{Meas}_{Cvx} = \mathbf{Alg}_{G}.

Proof

The preceding remark implies Meas CvxAlg G\mathbf{Meas}_{Cvx} \hookrightarrow \mathbf{Alg}_G.

To prove the converse condition suppose that (X,h)(X,h) is a GG-algebra so that XX is an object in Alg G\mathbf{Alg}_G. By Lemma 3.1 XX has a convex space structure so XX is an object in MeasCvx\mathbf{Meas} \cap \mathbf{Cvx}. To show that XX is an object in Meas Cvx\mathbf{Meas}_{Cvx} we need to verify that XX satisfies the fullness condition, and that there are enough affine measurable maps X X \rightarrow \mathbb{R}_{\infty} to coseparate the points of XX.

Take any affine measurable function Xm X \xrightarrow{m} \mathbb{R}_{\infty}. We claim that (X,h)m( ,𝔼 (id ))(X,h) \xrightarrow{m} (\mathbb{R}_{\infty}, \mathbb{E}_{\bullet}(id_{\mathbb{R}_{\infty}})) is a morphism of GG-algebras. In other words, the right-hand side of the Meas\mathbf{Meas}-diagram commutes.

To prove this note that the space G(X)G(X) is, by Lemma 3.7, an object in Std Cvx\mathbf{Std}_{Cvx}, and that \mathbb{R}_{\infty} is also an object in Std Cvx\mathbf{Std}_{Cvx}. The composite map mhm \circ h is an affine measurable map and hence an arrow in Std Cvx\mathbf{Std}_{Cvx}. By Corollary 3.11 it follows that the outer square commutes. Thus we have

𝔼 (id )G(m)G(h)=m(hμ X)=mhG(h). \mathbb{E}_{\bullet}(id_{\mathbb{R}_{\infty}}) \circ G(m) \circ G(h) = m \circ (h \circ \mu_X) = m \circ h \circ G(h).

Now note that G(h)G(h) is an epimorphism (onto) because hh is an epimorphism. Consequently, cancelling the term G(h)G(h) on the right in the preceding equation shows that the right-hand side of the square in the diagram commutes.

Since mm is a morphism of GG-algebras it follows that for all PG(X)P \in G(X) that m(h(P))=𝔼 P(m)m( h(P)) = \mathbb{E}_P(m), which in turn implies that

h(P)m 1(𝔼 P(m)) h(P) \in m^{-1}\big(\mathbb{E}_P(m)\big)

or equivalently, h(P)m 1(P˜(m))h(P) \in m^{-1}( \tilde{P}(m) ). This equation holds for all affine measurable maps Xm X \xrightarrow{m} \mathbb{R}_{\infty}, and hence the fullness property is satisfied, i.e.,

m Am 1(𝔼 P(m)). \bigcap_{m \in \mathbb{R}_{\infty}^A} m^{-1}(\mathbb{E}_{P}(m)) \ne \emptyset.

Consequently XX lies in the category Meas Cvx\mathbf{Meas}_{Cvx}.

The fact that every morphism in Alg G\mathbf{Alg}_G is a morphism in Meas Cvx\mathbf{Meas}_{Cvx} follows from Lemma 3.1. Hence we have shown that Alg G\mathbf{Alg}_G is a subcategory of Meas Cvx\mathbf{Meas}_{Cvx}. Combining this fact with the result that Meas Cvx\mathbf{Meas}_{Cvx} is a subcategory of Alg G\mathbf{Alg}_G yields the result.

See also monads of probability, measures, and valuations.

Voevodsky’s work

Vladimir Voevodsky has also worked on a category theoretic treatment of probability theory, and gave few talks on this at IHES, Miami, in Moscow etc. Voevodsky had in mind applications in mathematical biology?, for example, population genetics:

See Miami Talk abstract

…a categorical study of probability theory where “categorical” is understood in the sense of category theory. Originally, I developed this approach to probability to get a better understanding of the constructions which I had to deal with in population genetics. Later it evolved into something which seems to be also interesting from a purely mathematical point of view. On the elementary level it gives a category which is useful for the work with probabilistic constructions involving complicated combinations of stochastic processes of different types. On a more advanced level, applying in this context the old idea of a functor as a generalized object one gets a better view of the relationship between probability and the theory of (pre-)ordered topological vector spaces.

A talk in Moscow (20 Niv 2008, in Russian) can be viewed here, wmv 223.6 Mb. Abstract:

In early 60-ies Bill Lawvere defined a category whose objects are measurable spaces and morphisms are Markov kernels. I will try to show how this category allows one to think about many of the notions of probability theory in categorical terms and to connect probabilistic objects to objects of other types through various functors.

Voevodsky’s unfinished notes on categorical probability theory have been released posthumously.

Panangaden’s monad

Prakash Panangaden in Probabilistic Relations defines the category SRelSRel (stochastic relations) to have as objects sets equipped with a σ\sigma-field. Morphisms are conditional probability densities or stochastic kernels. So, a morphism from (X,Σ X)( X, \Sigma_X) to (Y,Σ Y)( Y, \Sigma_Y) is a function h:X×Σ Y[0,1]h: X \times \Sigma_Y \to [0, 1] such that

  1. BΣ Y.λxX.h(x,B)\forall B \in \Sigma_Y . \lambda x \in X . h(x, B) is a bounded measurable function,
  2. xX.λBΣ Y.h(x,B)\forall x \in X . \lambda B \in \Sigma_Y . h(x, B) is a subprobability measure on Σ Y\Sigma_Y.

If kk is a morphism from YY to ZZ, then khk \cdot h from XX to ZZ is defined as (kh)(x,C)= Yk(y,C)h(x,dy)(k \cdot h)(x, C) = \int_Y k(y, C)h(x, d y).

Panangaden’s definition differs from Giry’s in the second clause where subprobability measures are allowed, rather than ordinary probability measures.

Panangaden emphasises that the mechanism is similar to the way that the category of relations can be constructed from the power set functor. Just as the category of relations is the Kleisli category of the powerset functor over the category of sets Set, SRelSRel is the Kleisli category of the functor over the category of measurable spaces and measurable functions which sends a measurable space, XX, to the measurable space of subprobability measures on XX. This functor gives rise to a monad.

What is gained by the move from probability measures to subprobability measures? One motivation seems to be to model probabilistic processes from XX to a coproduct X+YX + Y. This you can iterate to form a process which looks to see where in YY you eventually end up. This relates to SRelSRel being traced.

There is a monad on MeasureSpacesMeasureSpaces, 1+:MeasMeas1 + -: Meas \to Meas. A probability measure on 1+X1 + X is a subprobability measure on XX. Panangaden’s monad is a composite of Giry’s and 1+1 + -.

History

The adjunction underlying the Giry monad was originally developed by Lawvere in 1962, prior to the full recognition of the relationship between monads and adjunctions. Although P. Huber had already shown in 1961 that every adjoint pair gives rise to a monad, it wasn’t until 1965 that the constructions of Eilenberg-Moore, and Kleisli, made the essential equivalence of both concepts manifest.

Lawvere’s construction was written up as an appendix to a proposal to the Arms Control and Disarmament Agency, set up by President Kennedy as part of the State Department to handle planning and execution of certain treaties with the Soviet Union. This appendix was intended to provide a reasonable framework for arms control verification protocols (Lawvere 20).

At that time, Lawvere was working for a “think tank” in California, and the purpose of the proposal was to provide a means for verifying compliance with limitations on nuclear weapons. In the 1980’s, Michèle Giry was collaborating with another French mathematician at that time who was also working with the French intelligence agency, and she was able to obtain a copy of the appendix. Giry then developed and extended some of the ideas in the appendix (Giry 80)

Gian-Carlo Rota had also (somehow) obtained a copy of the appendix, which ended up in the library at The American Institute of Mathematics, and only became publicly available in 2012.

From Lawvere 20:

I’d like to say that the idea of the category of probabilistic mappings, the document corresponding to that was not part of a seminar, as some of the circulations say, essentially it was the document submitted to the arms control and disarmament agency after suitable checking that the Pentagon didn’t disagree with it. Because of the fact that for arms control agencies as a side responsibility the forming of arms control agreements and part of these agreements must involve agreed upon protocols of verification. So the idea of that paper did not provide such protocols, but it purported to provide reasonable framework within which such protocol can be formulated.

References

The idea originates with

and was picked up and published in:

  • Michèle Giry, A categorical approach to probability theory, Categorical aspects of topology and analysis (Ottawa, Ont., 1980), pp. 68–85, Lecture Notes in Math. 915 Springer 1982 (doi:10.1007/BFb0092872)

    (there are allegedly a few minor analytically incorrect points and gaps in proofs, observed by later authors).

Historical comments on the appearance of Lawvere 62 are made in

According to E. Burroni (2009), the Giry monad appears also in

  • O. de la Tullaye, L’intégration considérée comme l’algèbre d’un triple. Rapport de Stage de D.E.A. manuscrit 1971.

The article

shows, in effect, that the Giry monad restricted to countable measurable spaces (with the discrete σ\sigma-algebra) yields the restricted Giry functor G|:Meas cMeasG|: \mathbf{Meas}_c \rightarrow \mathbf{Meas} which has the codensity monad GG. This suggest that the natural numbers \mathbb{N} are ‘’sufficient’‘ in some sense. Indeed, the full subcategory of Polish spaces consisting of the single object NN of all natural numbers with the powerset σ\sigma-algebra is codense in PolPol - every continuous function PXXP{X} \rightarrow X is completely determined by its values on the countable dense subset of PXP{X}.

The article

views probability measures via double dualization, restricted to weakly averaging affine maps. A more satisfactory description of probability measures arises from recognizing the need for viewing them as weakly-averaging countably affine maps, obtained by double dualizing into \mathbb{R}_{\infty}, which then yields the characterization of GG-algebras summarized above, which is from the article

  • Kirk Sturtz, Deriving the Giry algebras on standard Borel spaces using \mathbb{R}_{\infty}-generalized points, [[arXiv:2409.14861]]

Some corrections from an earlier version of the Categorical Probability Theory article, were pointed out in

Apart from these papers, there are similar developments in

  • Franck van Breugel, The metric monad for probabilistic nondeterminism, features both the Lawvere/Giry monad and Panangaden’s monad.

  • Ernst-Erich Doberkat, Characterizing the Eilenberg-Moore algebras for a monad of stochastic relations (pdf)

  • Ernst-Erich Doberkat, Kleisli morphisms and randomized congruences, Journal of Pure and Applied Algebra Volume 211, Issue 3, December 2007, Pages 638-664 https://doi.org/10.1016/j.jpaa.2007.03.003

  • N. N. Cencov, Statistical decisions rules and optimal Inference, Translations of Math. Monographs 53, Amer. Math. Society 1982

(blog comment) Cencov’s “category of statistical decisions” coincides with Giry’s (Lawvere’s) category. I (\leftarrow somebody) have the sense that Cencov discovered this category independently of Lawvere although years later.

  • category cafe related to Giry monad: category theoretic probability, coalgebraic modal logic

  • Samson Abramsky et al. Nuclear and trace ideals in tensored ∗-Categories,arxiv:math/9805102, on the representation of probability theory through monads, which looks to work Giry’s monad into a context even more closely resembling the category of relations.

There is also relation with work of Jacobs et al.

J. Culbertson and K. Sturtz use the Giry monad in their categorical approach to Bayesian reasoning and inference (both articles contain further references to the categorical approach to probability theory):

  • Jared Culbertson and Kirk Sturtz, A categorical foundation for Bayesian probability, Applied Cat. Struc. 2013 (preprint as arXiv:1205.1488)

  • Jared Culbertson and Kirk Sturtz, Bayesian machine learning via category theory, 2013 (arxiv:1312.1445)

  • Elisabeth Burroni, Lois distributives. Applications aux automates stochastiques, TAC 22, 2009 pp.199-221 (journal page)

where she derives stochastic automata as algebras for a suitable distributive law on the monoid and Giry monads.

B. Fong has a section on the Giry monad in his paper on Bayesian networks:

  • Fong: Causal Theories - A Categorical Perspective on Bayesian Networks, (2013) arXiv:1301.6201

See also:

Discussion of the Giry monad extended to simplicial sets and used to characterize quantum contextuality via simplicial homotopy theory:

exposition:

category: probability

Last revised on August 30, 2026 at 01:19:49. See the history of this page for a list of all contributions to it.