Occurrence counts of independent samples #
Real expectations under k independent draws iid μ k split along the first draw
(sum_iid_succ_mul) and along a split Fin (m + k) of the positions (sum_iid_add_mul). They are
invariant under permuting the positions (sum_iid_comp_perm).
Cslib.Probability.PMF.occurrenceCount x b is the number of positions i with x i = b. The
counts of all values add up to the number of samples (sum_occurrenceCount). Among m
independent draws from μ, the count N of a value a has the inverse moment bound
(m + 1) μ(a) E[1 / (N + 1)] ≤ 1 (mul_sum_iid_mul_inv_occurrenceCount_le). The proof is by
exchangeability: under m + 1 draws, the events that position i holds a, weighted by the
inverse number of occurrences of a, have equal expectations, and these expectations add up to
at most one. This bound gives the fixed-sample-size form of the second part of
Diakonikolas–Kane, Lemma 2.6 (lemma numbering of arXiv:1601.05557v1), which
takes a Poisson number of samples.
Main definitions #
Cslib.Probability.PMF.occurrenceCount: the number of sample positions holding a given value.
Main results #
Cslib.Probability.PMF.sum_iid_succ_mul: expectations underk + 1draws via the first draw.Cslib.Probability.PMF.sum_iid_add_mul: expectations underm + kdraws via the firstm.Cslib.Probability.PMF.sum_iid_comp_perm: expectations are invariant under permuting draws.Cslib.Probability.PMF.sum_occurrenceCount: the occurrence counts add up to the sample size.Cslib.Probability.PMF.mul_sum_iid_mul_inv_occurrenceCount_le: the inverse moment bound.
References #
Expectations under independent draws are invariant under permuting the draws.
The number of sample positions i with x i = b.
The occurrence count is a sum of indicators.
Prepending a sample adds its indicator to the occurrence count.
Occurrence counts are invariant under permuting the positions.
The occurrence counts of all values add up to the number of samples.
Inverse occurrence moment. Among m independent draws from μ, the value a occurs N
times with (m + 1) μ(a) E[1 / (N + 1)] ≤ 1.