Tutorials › Measure Theory › Computing Pushforwards on Finite and Countable Spaces

Push-Forward Measures and Distribution Functions · Tutorial 223 of 798

Computing Pushforwards on Finite and Countable Spaces

Compute the mass assigned to each output by collecting the masses of all input points that map there.

Advanced 9 min read

What You'll Learn

  • Express a pushforward mass as a sum over the corresponding fiber.
  • Compute pushforwards when a finite map merges several points.
  • Push forward countable sums of Dirac measures.
  • Calculate image measures of counting measure, including infinite values.
  • Check pushforward calculations by comparing total masses and inverse images.

Collecting Mass Along Fibers

A map can send several distinct points to the same output. The pushforward measure records their combined mass: it does not choose one representative point, nor does it count the output only once. On a finite or countable space, this calculation reduces to summing the masses in each fiber.

Throughout this tutorial, \(X\) and \(Y\) are finite or countable sets equipped with their power-set sigma-algebras \(2^X\) and \(2^Y\). Let \(\mu\) be a measure on \((X,2^X)\), and let \(T:X\to Y\) be a function. Every such \(T\) is measurable because every subset of \(Y\) is measurable. The spaces are complete because every subset of every null set belongs to the power-set sigma-algebra. No finiteness or sigma-finiteness is assumed for \(\mu\); these properties do hold in the examples below. A measure on a finite or countable power-set space is determined by its point masses \(a_x=\mu(\{x\})\), which may be infinite.

Definition: The pushforward of \(\mu\) by \(T\), denoted \(T_\#\mu\), is the measure \(\nu\) on \((Y,2^Y)\) defined by \(\nu(B)=\mu(T^{-1}(B))\) for every \(B\subseteq Y\). The fiber over \(y\in Y\) is \(T^{-1}(\{y\})=\{x\in X:T(x)=y\}\).

For a countable family of nonnegative numbers, its sum means the supremum of its finite subsums, so the sum may equal \(+\infty\). The fundamental calculation is that the mass at \(y\) is the sum of the masses of all points in its fiber. Summing these point masses over a set of outputs gives the measure of that set.

Theorem (Fiber formula): For the measure space \((X,2^X,\mu)\) and map \(T:X\to Y\) above, \(T_\#\mu\) is a measure on \((Y,2^Y)\), and for every \(B\subseteq Y\), $$ (T_\#\mu)(B)=\sum_{y\in B}\ \sum_{\substack{x\in X\\T(x)=y}}\mu(\{x\}) =\sum_{\substack{x\in X\\T(x)\in B}}\mu(\{x\}). $$ In particular, \((T_\#\mu)(\{y\})=\sum_{T(x)=y}\mu(\{x\})\). Empty sums are zero, and all equalities allow the value \(+\infty\).

Proof. Set \(\nu(B)=\mu(T^{-1}(B))\). Then \(\nu(\varnothing)=\mu(\varnothing)=0\). If \(B_1,B_2,\ldots\) are pairwise disjoint subsets of \(Y\), their inverse images are pairwise disjoint, and \(T^{-1}(\bigcup_j B_j)=\bigcup_jT^{-1}(B_j)\). Countable additivity of \(\mu\) therefore gives \(\nu(\bigcup_jB_j)=\sum_j\nu(B_j)\), so \(\nu\) is a measure. For any \(A\subseteq X\), the singleton sets \(\{x\}\), \(x\in A\), are disjoint and have union \(A\); countable additivity gives \(\mu(A)=\sum_{x\in A}\mu(\{x\})\). For \(B\subseteq Y\), the inverse image \(T^{-1}(B)\) is the disjoint union of the fibers \(T^{-1}(\{y\})\) for \(y\in B\). Applying countable additivity to this partition, and then to the singleton partition of each fiber, gives $$ \nu(B)=\sum_{y\in B}\mu(T^{-1}(\{y\})) =\sum_{y\in B}\sum_{T(x)=y}\mu(\{x\}) =\sum_{T(x)\in B}\mu(\{x\}). $$ The last equality groups the same nonnegative point masses according to their output; it also holds for infinite sums by countable additivity. If \(B=\varnothing\), both sides are zero. If \(X=\varnothing\), every sum and every measure of an inverse image is zero, so the formula still holds. \(\square\)

Finite Spaces: Add the Masses That Merge

Worked Example: A Map with Two Nontrivial Fibers

Let \(X=\{a,b,c,d,e\}\), with \(\mu(\{a\})=2\), \(\mu(\{b\})=3\), \(\mu(\{c\})=1\), \(\mu(\{d\})=4\), and \(\mu(\{e\})=5\). This is a finite measure on the complete, finite measure space \((X,2^X,\mu)\). Let \(Y=\{r,s\}\), and define \(T(a)=T(b)=T(d)=r\) and \(T(c)=T(e)=s\).

The fiber of \(r\) is \(\{a,b,d\}\), so its mass is \(2+3+4=9\). The fiber of \(s\) is \(\{c,e\}\), so its mass is \(1+5=6\). Thus \(\nu=T_\#\mu\) has point masses \(\nu(\{r\})=9\) and \(\nu(\{s\})=6\). For example, if \(B=\{r\}\), then \(T^{-1}(B)=\{a,b,d\}\), and directly \(\nu(B)=\mu(\{a,b,d\})=2+3+4=9\).

Check: the input total mass is \(2+3+1+4+5=15\), while the output total mass is \(9+6=15\). The agreement also follows directly from \(T^{-1}(Y)=X\).

More generally, a finite collection of atoms can be written using Dirac measures. For \(x\in X\), the Dirac measure \(\delta_x\) assigns mass \(1\) to sets containing \(x\) and mass \(0\) to sets not containing \(x\). The following consequence makes explicit how a map groups such atoms.

Corollary (Finite sums of Dirac measures): Let \(x_1,\ldots,x_k\) be distinct points of \(X\), and let \(c_1,\ldots,c_k\) be finite nonnegative real numbers. If \(\mu=\sum_{j=1}^k c_j\delta_{x_j}\), then $$ T_\#\mu=\sum_{y\in T(\{x_1,\ldots,x_k\})} \left(\sum_{\substack{1\le j\le k\\T(x_j)=y}}c_j\right)\delta_y. $$

Proof. For any \(B\subseteq Y\), the definition of pushforward and of each Dirac measure gives $$ (T_\#\mu)(B)=\mu(T^{-1}(B)) =\sum_{j=1}^k c_j\,\delta_{x_j}(T^{-1}(B)) =\sum_{\substack{1\le j\le k\\T(x_j)\in B}}c_j. $$ Group this finite sum by the value \(y=T(x_j)\). The result is the mass that the displayed measure on \(Y\) assigns to \(B\), proving equality of the measures. If \(k=0\), both measures are zero and the same equality holds with an empty sum. \(\square\)

Countable Spaces: Dirac Sums and Counting Measure

Worked Example: Pushing a Countable Sum of Dirac Measures Forward

Let \(X=\mathbb{N}_0=\{0,1,2,\ldots\}\), and define \(\mu=\sum_{n=0}^{\infty}2^{-(n+1)}\delta_n\). This is a finite measure on \((\mathbb{N}_0,2^{\mathbb{N}_0},\mu)\), since the geometric series of point masses sums to \(1\); the space is complete and sigma-finite. Let \(Y=\{0,1\}\) and \(T(n)=0\) for even \(n\), \(T(n)=1\) for odd \(n\).

The fiber over \(0\) contains \(0,2,4,\ldots\). Its mass is a geometric series with first term \(2^{-1}=1/2\) and ratio \(1/4\): $$ \nu(\{0\})=\frac{1/2}{1-1/4}=\frac{1/2}{3/4}=\frac23. $$ The fiber over \(1\) contains \(1,3,5,\ldots\). Its first mass is \(2^{-2}=1/4\), with the same ratio \(1/4\), so $$ \nu(\{1\})=\frac{1/4}{1-1/4}=\frac{1/4}{3/4}=\frac13. $$ Consequently \(\nu=\frac23\delta_0+\frac13\delta_1\). In particular, the distinct points \(0\) and \(2\) both contribute to the mass at output \(0\), as do all the other even inputs.

Check: the sum of the output masses is \(2/3+1/3=1\). Independently, the input total is \(\sum_{n=0}^{\infty}2^{-(n+1)}=(1/2)/(1-1/2)=1\), in agreement with \(\nu(Y)=\mu(X)\).

Counting measure assigns to each set its number of elements, with value \(+\infty\) for an infinite set. On a countable space it is sigma-finite and complete when the sigma-algebra is the power set, but it is not finite if the space is infinite. A pushforward of counting measure therefore counts points in fibers, not merely distinct outputs.

Worked Example: Pushing Counting Measure Through a Two-to-One Map

Take \(X=Y=\mathbb{N}=\{1,2,3,\ldots\}\), with counting measure \(\mu\) on \((X,2^X,\mu)\). This space is complete and sigma-finite, but \(\mu(X)=+\infty\). Define \(T(n)=\lceil n/2\rceil\). For every \(k\in\mathbb{N}\), the fiber over \(k\) is exactly \(\{2k-1,2k\}\), containing two points. Thus \(\nu(\{k\})=2\) for every \(k\).

For the specified set \(B=\{1,2,3\}\), membership means that the output is equal to one of these three integers. Its inverse image is \(\{1,2,3,4,5,6\}\), so \(\nu(B)=6\). The fiber formula gives the same value: \(2+2+2=6\). For \(B=Y\), every positive integer is an output and \(\nu(Y)=\sum_{k=1}^{\infty}2=+\infty\), consistent with \(\mu(X)=+\infty\).

Check: the point-mass calculation gives \(\nu(\{1\})=2\), since \(T^{-1}(\{1\})=\{1,2\}\). Counting that inverse image directly also gives \(2\).

A Common Counting Error

A frequent mistake is to transfer the mass of one input point to its output and overlook the other points in the fiber. For instance, let \(X=\{p,q\}\) with \(\mu(\{p\})=2\) and \(\mu(\{q\})=3\), and let both points map to \(z\in Y=\{z\}\). A wrong calculation might select \(q\) as the representative of the fiber and write \(\nu(\{z\})=3\). But \(T^{-1}(\{z\})=\{p,q\}\), so the definition gives $$ \nu(\{z\})=\mu(\{p,q\})=2+3=5. $$ The correction is to sum over every point in the fiber, once each. The result passes the total-mass check: \(\nu(Y)=5=\mu(X)\). Counting distinct outputs alone would instead give \(1\), which is not the mass of the pushforward.

The fiber formula is especially useful when the input measure is specified by point masses. First identify each fiber, then add its masses; for a set of outputs, add the masses of all fibers in that set. Empty fibers have mass zero, and infinite fibers or infinitely many outputs are handled by nonnegative countable sums. No finiteness assumption is needed for the formula, though a computed mass can be infinite.

Check Your Understanding

For each question, identify the relevant fibers before adding point masses.

  1. Let \(X=\{a,b,c\}\) have point masses \(4,1,2\), respectively, and let \(T(a)=T(c)=u\), \(T(b)=v\). What are the two point masses of \(T_\#\mu\)?
  2. Suppose \(X=\mathbb{N}_0\), \(\mu(\{n\})=3^{-(n+1)}\), and \(T(n)\) is the remainder when \(n\) is divided by \(2\). Compute the two output point masses.
  3. For counting measure on \(\mathbb{N}\) and \(T(n)=\lceil n/2\rceil\), compute \((T_\#\mu)(\{2,4\})\).
  4. Explain why the pushforward mass of an output with an empty fiber is zero.
  5. Give a direct inverse-image check of the fiber formula for a finite set of outputs in a finite example.