The Giry monad (Giry 1980, following Lawvere 1962) is the monad on a category of suitable spaces which sends each suitable space to the space of suitable probability measures on .
This is one of the main examples of probability monads, and hence one of the main structures used in categorical probability.
The Giry monad is defined on the category of measurable spaces, assigning to each measurable space the space of all probability measures on endowed with the -algebra generated by the set of all the evaluation maps
sending a probability measure to , where ranges over all the measurable sets of . The unit of the monad sends a point to the Dirac measure at , , while the monad-multiplication is defined by the natural transformation
given by
This makes the endofunctor 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, , which are separable metric spaces for which a complete metric exists. The morphisms of this category are continuous functions.
Write
for the endofunctor which sends a space, , to the space of probability measures on the Borel subsets of . is equipped with the weakest topology which makes the integration map continuous for any , a bounded, continuous, real function on .
There is a natural transformation
given by
This makes the endofunctor into a monad, and this is the Giry monad on Polish spaces.
The Kleisli morphisms of the Giry monad on Meas (and related subcategories) are Markov kernels. Therefore its Kleisli category is the category Stoch (=). It is one of the most important examples of a Markov category.
We construct a factorization of the monad which shows every -algebra is an expectation map.
Let denote the category of algebras of the -monad has objects for which there exists a -algebra which is an object in the Eilenberg-Moore category of the -monad, and consists of arrows such that constitutes an arrow in the Eilenberg-Moore category of the -monad.
If is any measurable space then the space of probability measures has a convex space structure defined pointwise: if is finite collection of probability measures on then, for every sequence with each such that , the affine sum , is also a probability measure, defined at the measurable set in by
Given any -algebra the base space has the structure of a convex space which makes the measurable function an affine (measurable) map. Moreover, morphisms of -algebras are also affine maps.
Given define the convex space structure on by
Because a -algebra must satisfy we have, for any finite sequence ,
where the last line makes use of the definition of the convex structure on . Thus, every -algebra is affine.
To prove that any map of -algebras is an affine map, we compute
Let be the one-point compactification of the real-line with the Borel -algebra. Let denote the category whose objects are measurable spaces with a convex space structure such that there are enough affine measurable functions to coseparate the points of . The morphisms of are affine measurable functions. Because is a coseparator in it follows that is a coseparator in .
Given any measurable space and any let denote the functional sending where . Let . Taking we obtain the space of affine measurable endomaps on .
Recall that a -generalized point of is a functional satisfying, for all and all , the equation
Generalized points are defined in Definition 8.19 of Sets for Mathematics, and several basic properties are discussed therein.
Note that if then the functional is an -generalized point of since .
Conversely, we have the
Conjecture. If is an -generalized element of then there exists a such that .
We say an object in satisfies the fullness property if and only if for every the property
holds.
Every -generalized element of which satisfies the fullness property is a point, i.e, for a unique element . ( is the evaluation map at the point .)
Since the fullness property is satisfied there exist at least one element such that . Since lies in which is coseparated by there is at most one element satisfying, for all affine measurable maps , the equation .
Define to be the full subcategory of consisting of those objects which satisfy the fullness property.
Note that is an object in . (This is exercise 8.23 in Sets for Mathematics. The expectation mapping is easily verified to be a -algebra.)
Also note that for every measurable space that is an object in because, for every measurable set in the evaluation maps is an affine measurable map. Since any two distinct probability measures must differ on at least one measurable set , , it follows that there are enough affine measurable maps to coseparate elements in .
Let denote the full subcategory of consisting of the single object . The functor defined (on objects) by
is a full and faithful functor.
In the category every affine measurable function is determined by its value on points . Hence to prove the fully faithful property it suffices to prove those properties on points.
Faithful: We have is the evaluation map . If, for , we have then since has enough affine measurable maps to coseparate points it follows that .
Full: If is a natural transformation then for all and all , i.e., is an -generalized point of . Now to complete the proof we employ the conjecture - for some . Then we have .
Now let . Then is precisely the fullness property which is satisfied since, by hypothesis, is an object in . Thus there exist an such that and is full.
Note that in the proof we do not need the conjecture per se, all we require is that the -generalized point satisfies for all affine measurable functions . However trying to prove the condition given the naturality condition leads to the conjecture.
Let denote the Dirac measure at .
If is an object in then there exists a unique affine measurable function such that for all .
Let denote the inclusion functor. Let denote the slice category of arrows , and let denote the projection functor. For the theorem is equivalent to saying with the projection map at component being . In other words, the inclusion functor is codense. See Propositions 1 and 2, page 242 of CWM.
Consider the cone over with vertex and natural transformation components .
Since there exists a unique -morphism such that for all affine maps . It follows that for each Dirac measure that, for all in that . Since is a coseparator in it follows .
A more appropriate notation for the unique morphism is which, in the special case of lying in an -vector space coincides with the usual interpretation. For an arbitrary space the function is the unique morphism such that, for every , is the unique point in such that for all affine measurable functions .
The function is a -algebra.
The property follows from the preceding corollary. To prove the property compose both sides of that equation by an affine measurable map . If we spell both sides of that equation out, using the property , the equation holds valid. The result of the lemma follows from the property that coseparates, i.e, the set of morphisms are jointly monic on .
Let . Every affine measurable function yields a morphism of -algebras.
By Corollary 3.9 the affine measurable function is the unique morphism in such that for every the property
holds. But both and are -algebras. Hence is a morphism of those algebras.
The construction is natural in the argument .
The proof is straightforward using the previous lemma.
Using the naturality of we obtain an adjunct pair , which is the Giry monad (functor) viewed as a functor into , and the partial forgetful functor which forgets the convex space structure, with the natural transformation as the counit of the adjunction. The composite functor .
Since the Giry monad factors through it follows that is a subcategory of .
.
The preceding remark implies .
To prove the converse condition suppose that is a -algebra so that is an object in . By Lemma 3.1 has a convex space structure so is an object in . To show that is an object in we need to verify that satisfies the fullness condition, and that there are enough affine measurable maps to coseparate the points of .
Take any affine measurable function . We claim that is a morphism of -algebras. In other words, the right-hand side of the -diagram commutes.
To prove this note that the space is, by Lemma 3.7, an object in , and that is also an object in . The composite map is an affine measurable map and hence an arrow in . By Corollary 3.11 it follows that the outer square commutes. Thus we have
Now note that is an epimorphism (onto) because is an epimorphism. Consequently, cancelling the term on the right in the preceding equation shows that the right-hand side of the square in the diagram commutes.
Since is a morphism of -algebras it follows that for all that , which in turn implies that
or equivalently, . This equation holds for all affine measurable maps , and hence the fullness property is satisfied, i.e.,
Consequently lies in the category .
The fact that every morphism in is a morphism in follows from Lemma 3.1. Hence we have shown that is a subcategory of . Combining this fact with the result that is a subcategory of yields the result.
See also monads of probability, measures, and valuations.
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:
…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.
Prakash Panangaden in Probabilistic Relations defines the category (stochastic relations) to have as objects sets equipped with a -field. Morphisms are conditional probability densities or stochastic kernels. So, a morphism from to is a function such that
If is a morphism from to , then from to is defined as .
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, is the Kleisli category of the functor over the category of measurable spaces and measurable functions which sends a measurable space, , to the measurable space of subprobability measures on . 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 to a coproduct . This you can iterate to form a process which looks to see where in you eventually end up. This relates to being traced.
There is a monad on , . A probability measure on is a subprobability measure on . Panangaden’s monad is a composite of Giry’s and .
measure, probability measure, pushforward measure, convex mixture
Radon monad, distribution monad, extended probabilistic powerdomain
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.
The idea originates with
W. Lawvere, The category of probabilistic mappings, ms. 12 pages, 1962 (Lawvere Probability 1962)
(notice that the statement of origin on p.1 is wrong)
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
The article
shows, in effect, that the Giry monad restricted to countable measurable spaces (with the discrete -algebra) yields the restricted Giry functor which has the codensity monad . This suggest that the natural numbers are ‘’sufficient’‘ in some sense. Indeed, the full subcategory of Polish spaces consisting of the single object of all natural numbers with the powerset -algebra is codense in - every continuous function is completely determined by its values on the countable dense subset of .
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 , which then yields the characterization of -algebras summarized above, which is from the article
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 ( 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.
Robert Furber, Bart Jacobs, Towards a categorical account of conditional probability, arxiv:1306.0831
Bart Jacobs, Probabilities, distribution monads and convex categories, Theoretical
Computer Science 412(28) (2011) pp.3323–3336. https://doi.org/10.1016/j.tcs.2011.04.005, (preprint)
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:
See also:
Discussion of the Giry monad extended to simplicial sets and used to characterize quantum contextuality via simplicial homotopy theory:
Cihan Okay, Sam Roberts, Stephen D. Bartlett, Robert Raussendorf, Topological proofs of contextuality in quantum mechanics, Quantum Information and Computation 17 (2017) 1135-1166 [arXiv:1701.01888, doi:10.26421/QIC17.13-14-5]
Cihan Okay, Aziz Kharoof, Selman Ipek, Simplicial quantum contextuality, Quantum 7 (2023) 1009 [arXiv:2204.06648, doi:10.22331/q-2023-05-22-1009]
Aziz Kharoof, Cihan Okay, Homotopical characterization of strongly contextual simplicial distributions on cone spaces [arXiv:2311.14111]
exposition:
Last revised on August 30, 2026 at 01:19:49. See the history of this page for a list of all contributions to it.