ArticleslgStudy

mathematics

Analysis of Boolean functions

Analysis of Boolean functions is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Analysis of Boolean functions rather than just read about it. In short: In mathematics and theoretical computer science, the analysis of Boolean functions is the study of real-valued functions on {0,1}n or {−1,1}n (such functions are sometimes known as pseudo-Boolean functions) from a spectral perspective. The functions studied are often, but not always, Boolean-valued, making them Boolean functions.

Key takeaways

  • Analysis of Boolean functions belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Analysis of Boolean functions to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Analysis of Boolean functions from memory before moving on to harder problems.

Reference excerpt

In mathematics and theoretical computer science, the analysis of Boolean functions is the study of real-valued functions on {0,1}n or {−1,1}n (such functions are sometimes known as pseudo-Boolean functions) from a spectral perspective. The functions studied are often, but not always, Boolean-valued, making them Boolean functions. The area has found many applications in combinatorics, social choice theory, random graphs, and theoretical computer science, especially in hardness of approximation, property testing, and PAC learning.

Basic concepts We will mostly consider functions defined on the domain {−1,1}n. Sometimes it is more convenient to work with the domain {0,1}n instead. If f is defined on {−1,1}n, then the corresponding function defined on {0,1}n is

f01(x1,…,xn)=f((−1)x1,…,(−1)xn). Similarly, for us a Boolean function is a {−1,1}-valued function, though often it is more convenient to consider {0,1}-valued functions instead.

Fourier expansion Every real-valued function f:{−1,1}n→ℝ has a unique expansion as a multilinear polynomial:

f(x)=∑S⊆[n]f̂(S)χS(x),χS(x)=∏i∈Sxi. (Note that even if the function is 0-1 valued this is not a sum mod 2, but just an ordinary sum of real numbers.) This is the Hadamard transform of the function f, which is the Fourier transform in the group ℤ2n. The coefficients f̂(S) are known as Fourier coefficients, and the entire sum is known as the Fourier expansion of f. The functions χS are known as Fourier characters, and they form an orthonormal basis for the space of all functions over {−1,1}n, with respect to the inner product ⟨f,g⟩=2−n∑x∈{−1,1}nf(x)g(x). The Fourier coefficients can be calculated using an inner product:

f̂(S)=⟨f,χS⟩. In particular, this shows that f̂(∅︀)=E⁡[f], where the expected value is taken with respect to the uniform distribution over {−1,1}n. Parseval's identity states that

‖f‖2=E⁡[f2]=∑Sf̂(S)2. If we skip S=∅︀, then we get the variance of f:

Var⁡[f]=∑S≠∅︀f̂(S)2.

Fourier degree and Fourier levels The degree of a function f:{−1,1}n→ℝ is the maximum d such that f̂(S)≠0 for some set S of size d. In other words, the degree of f is its degree as a multilinear polynomial. It is convenient to decompose the Fourier expansion into levels: the Fourier coefficient f̂(S) is on level |S|. The degree d part of f is

f=d=∑|S|=df̂(S)χS. It is obtained from f by zeroing out all Fourier coefficients not on level d. We similarly define f>d,f<d,f≥d,f≤d.

Influence The i'th influence of a function f:{−1,1}n→ℝ can be defined in two equivalent ways:

Infi[f]=E⁡[(f−f⊕i2)2]=∑S∋if̂(S)2,f⊕i(x1,…,xn)=f(x1,…,xi−1,−xi,xi+1,…,xn). If f is Boolean then Infi[f] is the probability that flipping the i'th coordinate flips the value of the function:

Infi[f]=Pr⁡[f(x)≠f⊕i(x)]. If Infi[f]=0 then f doesn't depend on the i'th coordinate. The total influence of f is the sum of all of its influences:

Inf⁡[f]=∑i=1nInfi[f]=∑S|S|f̂(S)2. The total influence of a Boolean function is also the average sensitivity of the function. The sensitivity of a Boolean function f at a given point is the number of coordinates i such that if we flip the i'th coordinate, the value of the function changes. The average value of this quantity is exactly the total influence. The total influence can also be defined using the discrete Laplacian of the Hamming graph, suitably normalized: Inf⁡[f]=⟨f,Lf⟩. A generalized form of influence is the ρ-stable influence, defined by:

Infi(ρ)[f]=Stabρ[Dif]=∑S∋iρ|S|−1f̂(S)2. The corresponding total influences is

I(ρ)[f]=ddρStabρ[f]=∑S|S|ρ|S|−1f̂(S)2. One can prove that a function f:{−1,1}n→{−1,1} has at most “constantly” many “stably-influential” coordinates: |{i∈[n]:Infi(1−δ)[f]≥ϵ}|≤1δϵ.

Noise stability Given −1≤ρ≤1, we say that two random vectors x,y∈{−1,1}n are ρ-correlated if the marginal distributions of x,y are uniform, and E⁡[xiyi]=ρ. Concretely, we can generate a pair of ρ-correlated random variables by first choosing x,z∈{−1,1}n uniformly at random, and then choosing y according to one of the following two equivalent rules, applied independently to each coordinate:

yi={xiw.p. ρ,ziw.p. 1−ρ.oryi={xiw.p. 1+ρ2,−xiw.p. 1−ρ2. We denote this distribution by y∼Nρ(x). The noise stability of a function f:{−1,1}n→ℝ at ρ can be defined in two equivalent ways:

Stabρ[f]=Ex;y∼Nρ(x)[f(x)f(y)]=∑S⊆[n]ρ|S|f̂(S)2. For 0≤δ≤1, the noise sensitivity of f at δ is

NSδ[f]=12−12Stab1−2δ[f]. If f is Boolean, then this is the probability that the value of f changes if we flip each coordinate with probability δ, independently.

Noise operator The noise operator Tρ is an operator taking a function f:{−1,1}n→ℝ and returning another function Tρf:{−1,1}n→ℝ given by

(Tρf)(x)=Ey∼Nρ(x)[f(y)]=∑S⊆[n]ρ|S|f̂(S)χS. When ρ>0, the noise operator can also be defined using a continuous-time Markov chain in which each bit is flipped independently with rate 1. The operator Tρ corresponds to running this Markov chain for 12log⁡1ρ steps starting at x, and taking the average value of f at the final state. This Markov chain is generated by the Laplacian of the Hamming graph, and this relates total influence to the noise operator. Noise stability can be defined in terms of the noise operator: Stabρ[f]=⟨f,Tρf⟩.

Hypercontractivity For 1≤q<∞, the Lq-norm of a function f:{−1,1}n→ℝ is defined by

‖f‖q=E⁡[|f|q]q. We also define ‖f‖∞=maxx∈{−1,1}n|f(x)|. The hypercontractivity theorem states that for all p>q>1, if |ρ|≤q−1p−1 then

‖Tρf‖p≤‖f‖q. Hypercontractivity is closely related to the logarithmic Sobolev inequalities of functional analysis. A similar result for 1>p>q is known as reverse hypercontractivity. It states that if |ρ|≤1−p1−q then

‖Tρf‖q≥‖f‖p.

p-Biased analysis In many situations the input to the function is not uniformly distributed over {−1,1}n, but instead has a bias toward −1 or 1. In these situations it is customary to consider functions over the domain {0,1}n. For 0<p<1, the p-biased measure μp is given by

μp(x)=p∑ixi(1−p)∑i(1−xi). This measure can be generated by choosing each coordinate independently to be 1 with probability p and 0 with probability 1−p. The classical Fourier characters are no longer orthogonal with respect to this measure. Instead, we use the following characters:

ωS(x)=(p1−p)|{i∈S:xi=0}|(−1−pp)|{i∈S:xi=1}|. The p-biased Fourier expansion of f is the expansion of f as a linear combination of p-biased characters:

f=∑S⊆[n]f̂(S)ωS. We can extend the definitions of influence and the noise operator to the p-biased setting by using their spectral definitions.

Influence The i's influence is given by

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Analysis of Boolean functions

Start with the simplest possible case. Write down what Analysis of Boolean functions claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Analysis of Boolean functions before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Analysis of Boolean functions ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Analysis of Boolean functions

In research
Analysis of Boolean functions appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Analysis of Boolean functions in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Analysis of Boolean functions is common in secondary-school and first-year university syllabi. It links to neighbouring topics Boolean algebra, Mathematical optimization, Theoretical computer science, so understanding it makes those chapters shorter.
In everyday life
Look for Analysis of Boolean functions outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Analysis of Boolean functions” →

How to study Analysis of Boolean functions in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Analysis of Boolean functions means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Analysis of Boolean functions out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Analysis of Boolean functions in simple terms?

In mathematics and theoretical computer science, the analysis of Boolean functions is the study of real-valued functions on {0,1}n or {−1,1}n (such functions are sometimes known as pseudo-Boolean functions) from a spectral perspective. The functions studied are often, but not always, Boolean-valued…

Why does Analysis of Boolean functions matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Analysis of Boolean functions?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Analysis of Boolean functions.

Tags

  • Boolean algebra
  • Mathematical optimization
  • Theoretical computer science

Keep exploring