Documentation

ZPM.Probability.FintypePMF.Empirical

FintypePMF.empirical: empirical distribution of a finite sequence #

Given a length-T sequence rs : Fin T → α, the empirical PMF puts weight (count of a in rs) / T on each a. Used to turn an MWU row sequence into a row mixture.

noncomputable def ProbabilityTheory.FintypePMF.empirical {α : Type u_1} [Fintype α] [DecidableEq α] {T : } (hT : 0 < T) (rs : Fin Tα) :

Empirical FintypePMF from a length-T sequence.

Equations
Instances For