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