p-biased Fourier analysis #
Under the p-biased distribution each bit is true, read as -1, independently with probability
p (BitString.bernoulliAverage). With μ = 1 - 2p and σ = 2 √(p (1 - p)) the mean and the
standard deviation of a bit read as a sign, the biased basis function is
φ(b) = (signVal b - μ) / σ (BitString.biasedBasis) O'Donnell, Definition 8.39,
and the biased characters are φ_S(x) = ∏_{i ∈ S} φ(xᵢ) (BitString.biasedChi), with the
biased Fourier coefficients f̂(S) = 𝔼_p[f φ_S] (BitString.biasedFourierCoeff)
O'Donnell, Definition 8.40.
For 0 < p < 1 a bit's φ has mean 0 and second moment 1, so the biased characters are
orthonormal under the p-biased distribution
(BitString.bernoulliAverage_biasedChi_mul_biasedChi).
The indicator of agreeing with y in one bit is π_p(yᵢ) (1 + φ(xᵢ) φ(yᵢ)), so the indicator of
the point y is bernoulliWeight p y ∑_S φ_S(x) φ_S(y), with bernoulliWeight p y = ∏ᵢ π_p(yᵢ)
the product mass at y, which gives the biased Fourier expansion
f = ∑_S f̂(S) φ_S (BitString.sum_biasedFourierCoeff_mul_biasedChi) and Plancherel's
identity 𝔼_p[f g] = ∑_S f̂(S) ĝ(S)
(BitString.bernoulliAverage_mul_eq_sum_biasedFourierCoeff_mul).
The coefficient on ∅ is the mean (BitString.biasedFourierCoeff_empty), so the covariance and the
variance are the same sums over the nonempty sets
(BitString.bernoulliAverage_sub_bernoulliAverage_mul_sub_bernoulliAverage_eq_sum,
BitString.bernoulliAverage_sub_bernoulliAverage_sq_eq_sum_biasedFourierCoeff_sq); with Parseval
these are the five formulas of O'Donnell, Proposition 8.16 for this basis.
Conditioning on bit i (BitString.bernoulliAverage_eq_bernoulliAverage_update) pairs each string
with its flip at i: for every p, 𝔼_p[f · (signVal (x i) - μ)] = 4p(1 - p) 𝔼_p[D_{x_i} f], with
D_{x_i} the usual derivative BitString.derivative
(BitString.bernoulliAverage_mul_signVal_sub), so for 0 < p < 1 the coefficient on {i} is
σ 𝔼_p[D_{x_i} f] (BitString.biasedFourierCoeff_singleton), the step of the proof of
O'Donnell, (8.8) that gives the Margulis–Russo Formula in the book's form
(BitString.hasDerivAt_bernoulliAverage_one_sub_div_two of
CslibFrontier.Foundations.BooleanAnalysis.MargulisRusso). A dictator xᵢ is μ + σ φ_{i}, so its
coefficients are μ on ∅, σ on {i} and 0 elsewhere
(BitString.biasedFourierCoeff_dictator) O'Donnell, Example 8.41.
The book writes ±1 bits with π_p(-1) = p; here true is the bit of probability p, which is
-1 under signVal, so the book's φ(1) = √(p/q) and φ(-1) = -√(q/p) are
BitString.biasedBasis_false and BitString.biasedBasis_true. Outside 0 < p < 1 the definitions
still make sense, with σ = 0 and φ = 0; the basis facts take 0 < p < 1. The book proves
orthonormality and completeness (Proposition 8.13) and the five formulas of Proposition 8.16 for
every product Fourier basis of a finite product space; here they are proved for this two-point
basis on bits only, and the expansion comes from the point-indicator identity rather than from a
dimension count.
Usage #
Open Cslib.BitString. The p-biased expectation is bernoulliAverage p, the coefficient
f̂(S) is biasedFourierCoeff p f S and φ_S(x) is biasedChi p S x. Pass hp : 0 < p and
hp1 : p < 1 to the expansion, Parseval, Plancherel, the covariance and the variance,
orthonormality, the dictator's coefficients and the degree-one formula; the mean
biasedFourierCoeff_empty and the pairing identity bernoulliAverage_mul_signVal_sub hold for
every p. To compute the biased coefficients of a function written in the usual characters,
substitute signVal (x i) = μ + σ φ_{i} as in biasedFourierCoeff_dictator; at p = 1/2,
biasedFourierCoeff_one_half and biasedChi_one_half return to fourierCoeff and chi.
Checked clients compute the basis at rates 1/4, 1/3 and 3/4, check orthonormality, the
expansion and the coefficients of indicator bits and dictators, derive σ² = 1 - μ² from
Parseval, the correlation μ² of two dictators from Plancherel, the variance σ² of a dictator
and the zero covariance of two dictators, and return to the uniform case at p = 1/2, in
CslibFrontierTests/BooleanAnalysisBiasedFourier.lean.
Main definitions #
Cslib.BitString.biasedStd,Cslib.BitString.biasedBasis,Cslib.BitString.biasedChi,Cslib.BitString.biasedFourierCoeff: thep-biased Fourier basis and coefficients.
Main results #
Cslib.BitString.bernoulliAverage_biasedChi_mul_biasedChi: orthonormality.Cslib.BitString.bernoulliWeight_mul_sum_biasedChi_mul_biasedChi: the indicator of a point.Cslib.BitString.sum_biasedFourierCoeff_mul_biasedChi: the biased Fourier expansion.Cslib.BitString.biasedFourierCoeff_empty: the coefficient on∅is the mean.Cslib.BitString.bernoulliAverage_mul_eq_sum_biasedFourierCoeff_mul,Cslib.BitString.bernoulliAverage_sq_eq_sum_biasedFourierCoeff_sq: Plancherel and Parseval.Cslib.BitString.bernoulliAverage_sub_bernoulliAverage_mul_sub_bernoulliAverage_eq_sum,Cslib.BitString.bernoulliAverage_sub_bernoulliAverage_sq_eq_sum_biasedFourierCoeff_sq: the covariance and the variance.Cslib.BitString.bernoulliAverage_mul_signVal_sub,Cslib.BitString.biasedFourierCoeff_singleton: degree-one coefficients as mean derivatives.Cslib.BitString.biasedFourierCoeff_dictator: Example 8.41.Cslib.BitString.biasedBasis_false,Cslib.BitString.biasedBasis_true: the values of the basis.Cslib.BitString.biasedBasis_one_sub: exchangingpand1 - pcomplements the bit.Cslib.BitString.biasedChi_one_half,Cslib.BitString.biasedFourierCoeff_one_half: the uniform case.
References #
The standard deviation σ = 2 √(p (1 - p)) of a p-biased bit read as a sign. Outside
0 < p < 1 it is 0, since √ of a nonpositive number is 0.
The p-biased basis function φ(b) = (signVal b - μ) / σ, with μ = 1 - 2p
O'Donnell, Definition 8.39. Outside 0 < p < 1, where σ = 0, it is 0.
The p-biased character φ_S(x) = ∏_{i ∈ S} φ(xᵢ)
O'Donnell, Definition 8.40.
The p-biased Fourier coefficient f̂(S) = 𝔼_p[f φ_S]
O'Donnell, Definition 8.40.
The basis function has mean zero under the p-biased distribution.
The basis function at false, the book's 1, is √(p / q) with q = 1 - p: the formula
φ(1) = √(p/q) after O'Donnell, Definition 8.39.
Exchanging the rates p and 1 - p and complementing the bit negates the basis function:
φ_{1-p}(¬b) = -φ_p(b).
The basis function at true, the book's -1, is -√(q / p) with q = 1 - p: the formula
φ(-1) = -√(q/p) after O'Donnell, Definition 8.39.
At p = 1/2 the biased Fourier coefficients are the usual Fourier coefficients.
A biased character as a product over all coordinates.
The biased Fourier coefficient on the empty set is the mean, the first formula of
O'Donnell, Proposition 8.16; it holds for every p.
The biased characters are orthonormal under the p-biased distribution, for
0 < p < 1: the orthonormality half of O'Donnell, Proposition 8.13 for bits.
The biased Fourier expansion O'Donnell, Definition 8.40: for
0 < p < 1, f = ∑_S f̂(S) φ_S.
Plancherel's identity for biased Fourier coefficients, for 0 < p < 1, one of the formulas
of O'Donnell, Proposition 8.16.
Parseval's identity for biased Fourier coefficients, for 0 < p < 1, one of the formulas
of O'Donnell, Proposition 8.16.
The covariance is the sum of the products of the biased Fourier coefficients on the nonempty
sets, for 0 < p < 1, one of the formulas of O'Donnell, Proposition 8.16.
The variance is the biased Fourier weight on the nonempty sets, for 0 < p < 1, one of the
formulas of O'Donnell, Proposition 8.16.
The biased Fourier coefficients of a dictator O'Donnell, Example 8.41: for
0 < p < 1, the dictator xᵢ, read as a sign, is μ + σ φ_{i}, so its coefficients are μ on
∅, σ on {i} and 0 elsewhere.
Pairing across bit i against the centered sign of bit i: with μ = 1 - 2p, the mean of
signVal (x i), the p-biased expectation of h · (signVal (x i) - μ) is 4p(1 - p) times that
of the derivative Dᵢ h, for every p. Since σ² = 4p(1 - p), this is the step
𝔼_p[D_{x_i} f] = σ⁻¹ f̂^{(p)}(i) of the book's proof of (8.8)
(BitString.biasedFourierCoeff_singleton).
The step f̂(i) = σ 𝔼_p[D_{x_i} f] of the proof of O'Donnell, (8.8) (p. 225):
for 0 < p < 1, a degree-one biased coefficient is σ times a mean derivative, where D_{x_i} f
is the usual derivative BitString.derivative, so that σ D_{x_i} is the book's biased derivative
Dᵢ of its Definition 8.44.