Bernoulli coordinate sampling and transference #
A Boolean mask selected : ι → Bool is a set of coordinates. Selecting each coordinate
independently with probability p gives it the weight bernoulliWeight p selected, and
bernoulliAverage p f is the expectation of f over the random mask, a finite sum. The coordinates
of the random mask are independent (bernoulliAverage_prod), the union of independent masks of
rates p and q has rate p + q - p q (bernoulliAverage_union), and increasing the rate
decreases the expectation of an antitone function (bernoulliAverage_bias_antitone).
The union of h independent masks of rate p lies in a lower set A only if each of them does.
So when h p ≤ q, the probability of A at rate q is at most its probability at rate p to the
power h (bernoulliAverage_lowerSet_pow_le). This transference principle appears in Section 2 of
[Kor26] (Lemma 3) and again in Section 4; Korten attributes it to
Zhao, Lemma 4.3.7. Its form at small rates, with a real exponent, is
BitString.bernoulliAverage_lowerSet_transfer.
Main definitions #
Cslib.BitString.bernoulliWeight: the probability of a mask.Cslib.BitString.bernoulliAverage: the expectation over a random mask.
Main results #
Cslib.BitString.bernoulliAverage_prod: the coordinates of a random mask are independent.Cslib.BitString.bernoulliAverage_reindex,Cslib.BitString.bernoulliAverage_sumElim,Cslib.BitString.bernoulliAverage_restrict: reindexing, splitting over a disjoint union, and restricting the coordinates of a random mask.Cslib.BitString.bernoulliAverage_coordinate,Cslib.BitString.bernoulliAverage_nonempty,Cslib.BitString.bernoulliAverage_hits,Cslib.BitString.bernoulliAverage_weight: the probability that a coordinate is selected, that some coordinate is, that some coordinate of a given set is, and the expected number of selected coordinates.Cslib.BitString.bernoulliAverage_bernoulliAverage_eq_sum: the law of a coordinatewise image of two independent masks.Cslib.BitString.bernoulliAverage_union: unions of independent masks.Cslib.BitString.bernoulliAverage_bias_antitone: antitone functions have smaller expectations at larger rates.Cslib.BitString.bernoulliAverage_lowerSet_union,Cslib.BitString.bernoulliAverage_lowerSet_pow_le: transference for lower sets.
References #
The expectation of f over a random mask selecting each coordinate independently with
probability p. It is a probability expectation when 0 ≤ p ≤ 1.
Instances For
Reindexing and splitting the coordinates #
An equivalence of coordinate types preserves Bernoulli expectations.
Random masks on a disjoint union of coordinates are pairs of independent masks: the
expectation over a mask on ι ⊕ κ is the iterated expectation over a mask on ι and one on
κ.
Linearity and positivity #
The weights of the masks sum to one, so constants are their own expectations. This holds for
every p; the weights are nonnegative when p ∈ [0, 1].
Bernoulli expectation is additive.
Bernoulli expectation commutes with subtraction.
Bernoulli expectation commutes with multiplication by a constant.
Bernoulli expectation commutes with finite sums.
Bernoulli expectation commutes with finite averages.
The probability of a set of masks is between zero and one.
Independence of the coordinates #
The coordinates of a random mask are independent: the average of a product of functions of the separate coordinates is the product of their averages.
Restricting a Bernoulli mask to fixed coordinates preserves its product law.
Sampling at rate zero selects the empty coordinate set.
A coordinate is selected with probability p.
A mask is nonempty with probability 1 - (1 - p) ^ |ι|.
A mask of rate p has |ι| p coordinates on average.
A mask of rate p meets the coordinates selected by s with probability
1 - (1 - p) ^ |s|.
Unions of independent masks #
Coordinatewise images of two independent masks: the expectation of f at the image
i ↦ φ (P i) (Q i) of independent masks P and Q of rates p and q is the sum of its values
against a product weight, in which each coordinate takes the value b with weight
`(1 - p) (1 - q) [φ false false = b] + (1 - p) q [φ false true = b] + p (1 - q) [φ true false = b]
- p q [φ true true = b]`.
The union of independent masks of rates p and q has rate p + q - p * q.
Transference for lower sets #
The union of independent masks of rates p and q lies in a lower set only if both masks do,
so the probability of a lower set at rate p + q - p q is at most the product of its
probabilities at rates p and q.
Transference for lower sets, with an integer number of repetitions: if h independent
masks of rate p have a union of rate at most q (h p ≤ q), then the probability of a lower set
at rate q is at most the h-th power of its probability at rate p.