Giry monad

From testwiki
Jump to navigation Jump to search

Template:Short description

In mathematics, the Giry monad is a construction that assigns to a measurable space a space of probability measures over it, equipped with a canonical sigma-algebra.[1][2][3][4][5] It is one of the main examples of a probability monad.

It is implicitly used in probability theory whenever one considers probability measures which depend measurably on a parameter (giving rise to Markov kernels), or when one has probability measures over probability measures (such as in de Finetti's theorem).

Like many iterable constructions, it has the category-theoretic structure of a monad, on the category of measurable spaces.

Construction

The Giry monad, like every monad, consists of three structures:[6][7][8]

  • A functorial assignment, which in this case assigns to a measurable space X a space of probability measures PX over it;
  • A natural map δX:X→PX called the unit, which in this case assigns to each element of a space the Dirac measure over it;
  • A natural map ℰX:PPX→PX called the multiplication, which in this case assigns to each probability measure over probability measures its expected value.

The space of probability measures

Let (X,ℱ) be a measurable space. Denote by PX the set of probability measures over (X,ℱ). We equip the set PX with a sigma-algebra as follows. First of all, for every measurable set A∈ℱ, define the map εA:PX→ℝ by p⟼p(A). We then define the sigma algebra 𝒫ℱ on PX to be the smallest sigma-algebra which makes the maps εA measurable, for all A∈ℱ (where ℝ is assumed equipped with the Borel sigma-algebra). [6]

Equivalently, 𝒫ℱ can be defined as the smallest sigma-algebra on PX which makes the maps

p⟼∫Xfdp

measurable for all bounded measurable f:X→ℝ.[9]

The assignment (X,ℱ)↦(PX,𝒫ℱ) is part of an endofunctor on the category of measurable spaces, usually denoted again by P. Its action on morphisms, i.e. on measurable maps, is via the pushforward of measures. Namely, given a measurable map f:(X,ℱ)→(Y,𝒢), one assigns to f the map f∗:(PX,𝒫ℱ)→(PY,𝒫𝒢) defined by

f∗p(B)=p(f−1(B))

for all p∈PX and all measurable sets B∈𝒢. [6]

The Dirac delta map

Given a measurable space (X,ℱ), the map δ:(X,ℱ)→(PX,𝒫ℱ) maps an element x∈X to the Dirac measure δx∈PX, defined on measurable subsets A∈ℱ by[6]

δx(A)=1A(x)={1if x∈A,0if x∉A.

The expectation map

Let μ∈PPX, i.e. a probability measure over the probability measures over (X,ℱ). We define the probability measure ℰμ∈PX by

ℰμ(A)=∫PXp(A)μ(dp)

for all measurable A∈ℱ. This gives a measurable, natural map ℰ:(PPX,𝒫𝒫ℱ)→(PX,𝒫ℱ).[6]

Example: mixture distributions

A mixture distribution, or more generally a compound distribution, can be seen as an application of the map ℰ. Let's see this for the case of a finite mixture. Let p1,…,pn be probability measures on (X,ℱ), and consider the probability measure q given by the mixture

q(A)=∑i=1nwipi(A)

for all measurable A∈ℱ, for some weights wi≥0 satisfying w1+…+wn=1. We can view the mixture q as the average q=ℰμ, where the measure on measures μ∈PPX, which in this case is discrete, is given by

μ=∑i=1nwiδpi.

More generally, the map ℰ:PPX→PX can be seen as the most general, non-parametric way to form arbitrary mixture or compound distributions.

The triple (P,δ,ℰ) is called the Giry monad.[1][2][3][4][5]

Relationship with Markov kernels

One of the properties of the sigma-algebra 𝒫ℱ is that given measurable spaces (X,ℱ) and (Y,𝒢), we have a bijective correspondence between measurable functions (X,ℱ)→(PY,𝒫𝒢) and Markov kernels (X,ℱ)→(Y,𝒢). This allows to view a Markov kernel, equivalently, as a measurably parametrized probability measure.[10]

In more detail, given a measurable function f:(X,ℱ)→(PY,𝒫𝒢), one can obtain the Markov kernel f♭:(X,ℱ)→(Y,𝒢) as follows,

f♭(B|x)=f(x)(B)

for every x∈X and every measurable B∈𝒢 (note that f(x)∈PY is a probability measure). Conversely, given a Markov kernel k:(X,ℱ)→(Y,𝒢), one can form the measurable function k♯:(X,ℱ)→(PY,𝒫𝒢) mapping x∈X to the probability measure k♯(x)∈PY defined by

k♯(x)(B)=k(B|x)

for every measurable B∈𝒢. The two assignments are mutually inverse.

From the point of view of category theory, we can interpret this correspondence as an adjunction

HomMeas(X,PY)≅HomStoch(X,Y)

between the category of measurable spaces and the category of Markov kernels. In particular, the category of Markov kernels can be seen as the Kleisli category of the Giry monad.[3][4][5]

Product distributions

Given measurable spaces (X,ℱ) and (Y,𝒢), one can form the measurable space (PX,𝒫𝒳)×(PY,𝒫𝒴)=(X×Y,ℱ×𝒢) with the product sigma-algebra, which is the product in the category of measurable spaces. Given probability measures p∈PX and q∈PY, one can form the product measure p⊗q on (X×Y,ℱ×𝒢). This gives a natural, measurable map

(PX,𝒫ℱ)×(PY,𝒫𝒢)→(P(X×Y),𝒫(ℱ×𝒢))

usually denoted by ∇ or by ⊗.[4]

The map ∇:PX×PY→P(X×Y) is in general not an isomorphism, since there are probability measures on X×Y which are not product distributions, for example in case of correlation. However, the maps ∇:PX×PY→P(X×Y) and the isomorphism 1≅P1 make the Giry monad a monoidal monad, and so in particular a commutative strong monad.[4]

Further properties

p⟼∫[0,∞)xp(dx)
whenever p is supported on [0,∞) and has finite expected value, and e(p)=∞ otherwise.

Finitary variant

There is a finitary version of the Giry monad, here denoted F which maps a set S to the set of convex combinations on S. Thus, for example, if S={a,b,c}, the formal combination 0.2a+0.2b+0.6c would be contained in FS.

See also

Citations

Template:Reflist

References

Template:Refbegin

Template:Refend

Further reading