Independent erasure of a pair #
For each component of a pair, independently sample whether to retain it or replace it
with none. The resulting distribution records the original joint mass when both
components survive and the corresponding marginal when one survives.
theorem Cslib.Probability.PMF.anchorPair_apply {X : Type u_1} {Y : Type u_2} (μ : PMF (X × Y)) (α β : ↑unitInterval) (x : Option X) (y : Option Y) :
(anchorPair μ α β) (x, y) = match x, y with
| none, none => ENNReal.ofReal ↑α * ENNReal.ofReal ↑β
| some x, none => ENNReal.ofReal (1 - ↑α) * ENNReal.ofReal ↑β * (PMF.map Prod.fst μ) x
| none, some y => ENNReal.ofReal ↑α * ENNReal.ofReal (1 - ↑β) * (PMF.map Prod.snd μ) y
| some x, some y => ENNReal.ofReal (1 - ↑α) * ENNReal.ofReal (1 - ↑β) * μ (x, y)
If only one question is retained, its law is the corresponding original marginal. The two anchor flags contribute their independent masses in each case.
theorem Cslib.Probability.PMF.map_fst_anchorPair_apply {X : Type u_1} {Y : Type u_2} (μ : PMF (X × Y)) (α β : ↑unitInterval) (m : Option X) :
(PMF.map Prod.fst (anchorPair μ α β)) m = match m with
| none => ENNReal.ofReal ↑α
| some x => ENNReal.ofReal (1 - ↑α) * (PMF.map Prod.fst μ) x
The first marginal depends only on the first erasure rate.
theorem Cslib.Probability.PMF.conditionalSnd_anchorPair_left_rate {X : Type u_1} {Y : Type u_2} (μ : PMF (X × Y)) (α α' β : ↑unitInterval) (m : Option X) (hm : m ∈ (PMF.map Prod.fst (anchorPair μ α β)).support) (hα' : (coin α') m.isNone ≠ 0) :
Changing only the first erasure rate does not change the conditional law of the second outcome at a supported first outcome whose slice is retained under the new rate.
theorem Cslib.Probability.PMF.conditionalSnd_anchorPair_none {X : Type u_1} {Y : Type u_2} (μ : PMF (X × Y)) (α β : ↑unitInterval) (m : Option X) (hm : m ∈ (PMF.map Prod.fst (anchorPair μ α β)).support) :
The second erase flag stays independent of any supported first outcome.