Double samples and coordinate swaps #
The double-sample (ghost-sample) argument bounds the probability of an event about one i.i.d.
sample S by the probability of an event J about a pair (S, T) of independent samples
[ShalevShwartzBenDavid2014, Section 28.3]. It has two measure-theoretic steps, collected here.
- Ghost sample. If every
Sin a setBextends to a pair inJwith conditional probability at leastc, thenc ν B ≤ (ν × ν') J(mul_measure_le_measure_prod). The usual case isc = 1 / 2(measure_le_two_mul_measure_prod). - Swaps. For
σ : Fin m → Bool,swapSamples σexchanges the coordinatesiwithσ i = truebetween the two samples. It preserves the product of two i.i.d. sample distributions (measurePreserving_swapSamples). Averaging over all2 ^ mswaps gives2 ^ m ρ J = ∫ #{σ | swapSamples σ z ∈ J} dρ(z)(lintegral_card_filter_swapSamples_mem). So if at most2 ^ m Kswaps of each double sample land inJ, thenρ J ≤ K(measure_prod_le_of_card_filter_swapSamples_mem_le).
Applications bound the number of swaps that land in J combinatorially; see EpsilonNet.lean.
The domain Z is an arbitrary measurable space and the sample measures are σ-finite (s-finite for
the second sample of the ghost-sample bound). The swap-averaging and ghost-sample bounds assume the
event J is measurable; on a countable domain with measurable singletons every set is measurable
(.of_discrete).
Main definitions #
swapSamples σ z: swap the coordinatesiwithσ i = truebetween the samples ofz.
Main results #
measurePreserving_swapSamples: swapping coordinates preservesμ^m × μ^m.lintegral_card_filter_swapSamples_mem: the swap-averaging identity.measure_prod_le_of_card_filter_swapSamples_mem_le: the swap-counting bound.mul_measure_le_measure_prod,measure_le_two_mul_measure_prod: the ghost-sample bound.
References #
Swapping coordinates #
Swapping coordinates preserves the product of two i.i.d. sample distributions, on any
measurable space and for any σ-finite μ. Under the identification of a double sample with a
sample of pairs, swapSamples σ swaps the pairs at the coordinates i with σ i = true, and each
such swap preserves μ × μ.
Swapping coordinates preserves the probability of every set of double samples, measurable or not, under the product of two i.i.d. sample distributions.
Swap averaging: summing over all 2 ^ m swaps, the probability of a measurable set J
under μ^m × μ^m, times 2 ^ m, is the expected number of swaps of a random double sample that
land in J.
Swap counting: if J is measurable and for every double sample z at most 2 ^ m K of
the 2 ^ m swaps of z land in J, then J has probability at most K under μ^m × μ^m.
The ghost sample #
Ghost-sample bound: if J is measurable and every sample S ∈ B extends to a double
sample in J with probability at least c over an independent second sample from ν', then
c ν B ≤ (ν × ν') J.
The ghost-sample bound at c = 1 / 2: ν B ≤ 2 (ν × ν') J.