MathFin
Map / Probability · Analysis and convexity / MathFin.Probability.Analysis.StdSimplexProd

The product of two standard simplices

MathFin.Probability.Analysis.StdSimplexProdMSC 60E05 source

Convexity.StdSimplex R X is the finitely supported probability distributions on X. Mathlib has the monad structure (StdSimplex.map, StdSimplex.join) and no product of independent distributions. StdSimplex.prod p q is the monadic bind of p against x ↦ q.map (x, ·), so its weights are nonnegative and sum to one by the monad's own proofs, and its weight at (x, y) is the product p x * q y (StdSimplex.weights_prod).

Main definitions

  • StdSimplex.prod: the product distribution of p : StdSimplex R X and q : StdSimplex R Y, the monadic bind of p against x ↦ q.map (x, ·).

Main results

  • StdSimplex.weights_prod: the weight of p.prod q at (x, y) is p.weights x * q.weights y.

Tags

product of distributions, independent distributions, standard simplex, finitely supported probability, monad bind, MSC 60E05

Import neighbourhood

Above: what it imports. Below: what imports it.

Declarations 2

defConvexity.StdSimplex.prodsource
{R : Type u_1} → [Semiring R] → [PartialOrder R] → [IsStrictOrderedRing R] → {X : Type u_2} → {Y : Type u_3} → Convexity.StdSimplex R X → Convexity.StdSimplex R Y → Convexity.StdSimplex R (X × Y)

The product distribution of independent p on X and q on Y.

theoremConvexity.StdSimplex.weights_prod @[simp]source
∀ {R : Type u_1} [Semiring R] [PartialOrder R] [IsStrictOrderedRing R] {X : Type u_2} {Y : Type u_3} (p : Convexity.StdSimplex R X) (q : Convexity.StdSimplex R Y) (x : X) (y : Y), (p.prod q).weights (x, y) = p.weights x * q.weights y

The weight of the product distribution at (x, y) is p x * q y.