For 0<μ(X)<∞0<\mu(X)<\infty, the zero-mean projection is

P0f=f−1μ(X)∫Xf dμ.P_0f=f-\frac{1}{\mu(X)}\int_X f\,d\mu.

It is linear, its output has , and P02=P0P_0^2=P_0. It removes exactly the constant component.

Norms and parameters

On L2(X,μ)L^2(X,\mu), it is the orthogonal projection onto the complement of the constants, and ∥P0f∥2≤∥f∥2\|P_0f\|_2\le\|f\|_2. For 1≤p≤∞1\le p\le\infty, Hölder's inequality gives ∥P0f∥p≤2∥f∥p\|P_0f\|_p\le2\|f\|_p. The notation must specify XX and μ\mu; averaging only an auxiliary variable leaves the remaining variables as parameters.