Tutorials › Measure Theory › Transformations and Joint Random Variables

Probability Spaces and Random Variables · Tutorial 729 of 798

Transformations and Joint Random Variables

Use Borel maps to transform random variables and test measurability of joint, vector-valued random variables coordinate by coordinate.

Intermediate 9 min read

What You'll Learn

  • State the measurability definition for real- and vector-valued random variables.
  • Prove that composing a random variable with a Borel map preserves measurability.
  • Prove that a finite-dimensional vector map is measurable exactly when each coordinate is measurable.
  • Find preimages of events under explicit transformations and compute their probabilities.
  • Distinguish measurability of a joint map from any claim about how its coordinates are related.

From Random Variables to Transformations

Once a random variable is known to be measurable, it is natural to apply functions to it or to combine several random variables into one vector. Measurability is what ensures that events described by these new quantities remain events in the original probability space. The key facts are that Borel transformations preserve measurability and that, for a finite-dimensional vector, measurability can be checked coordinate by coordinate.

Throughout, the underlying probability space is \((\Omega,\mathcal{F},\mathbb{P})\). A real-valued random variable is a measurable map \(X:(\Omega,\mathcal{F})\to(\mathbb{R},\mathcal{B}_{\mathbb{R}})\), where \(\mathcal{B}_{\mathbb{R}}\) is the Borel sigma-algebra. Unless otherwise stated, random variables in this tutorial take finite real values everywhere, and measurability is an everywhere property of the map; probabilities of events are, of course, values of \(\mathbb{P}\). For \(d\ge1\), \(\mathcal{B}_{\mathbb{R}^d}\) denotes the Borel sigma-algebra of Euclidean space.

Definition: A map \(T:\Omega\to\mathbb{R}^d\) is a vector-valued random variable, or a jointly measurable vector, if \(T^{-1}(B)\in\mathcal{F}\) for every \(B\in\mathcal{B}_{\mathbb{R}^d}\). If \(T=(X_1,\ldots,X_d)\), the maps \(X_j:\Omega\to\mathbb{R}\) are its coordinate random variables.

In particular, an event such as \(\{T\in B\}\) is shorthand for \(T^{-1}(B)\), and it belongs to \(\mathcal{F}\) whenever \(T\) is measurable and \(B\) is Borel. The condition concerns all Borel sets, not just intervals or open sets chosen one at a time.

Borel Transformations Preserve Measurability

Theorem: Let \((\Omega,\mathcal{F},\mathbb{P})\) be a probability space, let \(X:\Omega\to\mathbb{R}^d\) be measurable, and let \(g:\mathbb{R}^d\to\mathbb{R}^k\) be Borel measurable. Then \(g\circ X:\Omega\to\mathbb{R}^k\) is measurable.

Proof. Let \(C\in\mathcal{B}_{\mathbb{R}^k}\). Since \(g\) is Borel measurable, \(g^{-1}(C)\in\mathcal{B}_{\mathbb{R}^d}\). Since \(X\) is measurable, \(X^{-1}(g^{-1}(C))\in\mathcal{F}\). The identity \((g\circ X)^{-1}(C)=X^{-1}(g^{-1}(C))\) therefore shows that the preimage of every Borel \(C\) is in \(\mathcal{F}\). This is precisely measurability of \(g\circ X\). \(\square\)

Continuous maps between Euclidean spaces are Borel measurable, so the theorem applies to continuous transformations. It also applies to Borel maps that are not continuous. In the scalar case, sums and products are examples: the maps \((x,y)\mapsto x+y\) and \((x,y)\mapsto xy\) are continuous on \(\mathbb{R}^2\). Thus, once \((X,Y)\) is measurable, \(X+Y\) and \(XY\) are measurable real-valued random variables.

Worked Example: Squaring a Uniform Random Variable

Let \(\Omega=[0,1]\), let \(\mathcal{F}\) be the Lebesgue sigma-algebra on \([0,1]\), and let \(\mathbb{P}(E)=m(E)\) for \(E\in\mathcal{F}\). Define \(X(\omega)=\omega\) and \(Z=X^2\). The identity map \(X\) is measurable, and \(g(x)=x^2\) is continuous, hence Borel measurable. The composition theorem gives measurability of \(Z\).

For a direct event calculation, use the strict inequality in the event \(Z>1/4\). Since \(\omega\in[0,1]\),

$$ \{Z>1/4\}=\{\omega\in[0,1]:\omega^2>1/4\}=(1/2,1]. $$

This set is Lebesgue measurable and has measure \(1-1/2=1/2\), so \(\mathbb{P}(Z>1/4)=1/2\). Check: \(Z(1/2)=1/4\), so the endpoint \(1/2\) is correctly excluded by the strict inequality; the interval \((1/2,1]\) has length \(1-1/2=1/2\).

Joint Measurability Is Equivalent to Coordinate Measurability

Theorem: Let \((\Omega,\mathcal{F},\mathbb{P})\) be a probability space and let \(T=(X_1,\ldots,X_d):\Omega\to\mathbb{R}^d\), where each \(X_j:\Omega\to\mathbb{R}\) is real-valued. Then \(T\) is measurable into \((\mathbb{R}^d,\mathcal{B}_{\mathbb{R}^d})\) if and only if every \(X_j\) is measurable into \((\mathbb{R},\mathcal{B}_{\mathbb{R}})\).

Proof. Suppose first that \(T\) is measurable. For each \(j\), the coordinate projection \(\pi_j:\mathbb{R}^d\to\mathbb{R}\), defined by \(\pi_j(x_1,\ldots,x_d)=x_j\), is continuous and therefore Borel measurable. The composition theorem gives that \(\pi_j\circ T=X_j\) is measurable.

Conversely, suppose that every \(X_j\) is measurable. The Borel sigma-algebra \(\mathcal{B}_{\mathbb{R}^d}\) is generated by open boxes \(\prod_{j=1}^d(a_j,b_j)\), where the endpoints may be rational. Indeed, these boxes form a countable base for the Euclidean topology: every open set is a union of boxes from this base, and that union is countable because the base is countable. For any such box,

$$ T^{-1}\left(\prod_{j=1}^d(a_j,b_j)\right) =\bigcap_{j=1}^d X_j^{-1}\big((a_j,b_j)\big). $$

Each set on the right belongs to \(\mathcal{F}\), because \(X_j\) is measurable and \((a_j,b_j)\) is Borel. The finite intersection therefore belongs to \(\mathcal{F}\). The collection of subsets \(B\subseteq\mathbb{R}^d\) for which \(T^{-1}(B)\in\mathcal{F}\) is a sigma-algebra: preimages preserve complements and countable unions. It contains the open boxes, so it contains the sigma-algebra they generate, namely \(\mathcal{B}_{\mathbb{R}^d}\). Thus \(T\) is measurable. If \(d=1\), this is just the given measurability of \(X_1\), and the same conclusion holds. \(\square\)

This equivalence is specific to finite-dimensional Euclidean targets and their Borel sigma-algebras. It lets us establish measurability of a joint random vector without checking preimages of every Borel subset separately. Once the vector is measurable, the composition theorem then permits a Borel transformation of the entire vector.

Worked Example: A Joint Transformation of Two Coordinates

Again take \(\Omega=[0,1]\) with its Lebesgue sigma-algebra and uniform probability \(\mathbb{P}(E)=m(E)\). Put \(X(\omega)=\omega\) and \(Y(\omega)=1-\omega\). Both coordinates are continuous functions of \(\omega\), so they are measurable. By the coordinate criterion, \(T=(X,Y)\) is measurable into \(\mathbb{R}^2\). Consider the continuous map \(g(u,v)=(u+v,uv)\). The transformed vector \(g(T)\) is measurable, and its coordinates are \(X+Y\) and \(XY\).

Consider the open rectangle \(R=(9/10,11/10)\times(3/16,13/50)\). Its preimage can be found by substitution. The first transformed coordinate is \(\omega+(1-\omega)=1\), which lies between \(9/10\) and \(11/10\) for every \(\omega\in[0,1]\). The second is \(\omega(1-\omega)\). Since \(13/50=0.26>1/4\) and \(\omega(1-\omega)\le1/4\), the upper bound is satisfied throughout. The lower bound is strict, and

$$ \omega(1-\omega)>3/16 \quad\Longleftrightarrow\quad \omega^2-\omega+3/16<0 \quad\Longleftrightarrow\quad (\omega-1/4)(\omega-3/4)<0. $$

Therefore \(T^{-1}(g^{-1}(R))=(1/4,3/4)\), whose probability is \(3/4-1/4=1/2\). Check: at each endpoint, \(\omega(1-\omega)=3/16\), so neither endpoint belongs to the preimage. At \(\omega=1/2\), the value is \(1/4\), which is below \(13/50\), so the midpoint is included. The interval length is exactly \(1/2\).

A Borel Map Need Not Be Continuous

It is not necessary for a transformation to be continuous. For example, define \(g:\mathbb{R}\to\mathbb{R}\) by \(g(x)=1/x\) when \(x\ne0\), and \(g(0)=0\). This map is Borel measurable. To verify this, let \(O\subseteq\mathbb{R}\) be open. On the open set \(\mathbb{R}\setminus\{0\}\), the reciprocal map is continuous, so \(\{x\ne0:1/x\in O\}\) is relatively open in \(\mathbb{R}\setminus\{0\}\), hence Borel in \(\mathbb{R}\). The preimage \(g^{-1}(O)\) is this Borel set, with \(\{0\}\) added exactly when \(0\in O\). It is therefore Borel.

Worked Example: A Discontinuous Transformation

Let \(\Omega=[-1,1]\) with its Lebesgue sigma-algebra and uniform probability \(\mathbb{P}(E)=m(E)/2\). Let \(X(\omega)=\omega\) and let \(Z=g(X)\), with \(g\) as defined above. The identity \(X\) is measurable and \(g\) is Borel measurable, so \(Z\) is measurable even though \(g\) is not continuous at \(0\).

For the event \(Z>2\), the value at \(X=0\) does not satisfy the inequality because \(g(0)=0\). For \(x\ne0\), \(1/x>2\) holds exactly when \(0<x<1/2\). Hence \(\{Z>2\}=(0,1/2)\), and

$$ \mathbb{P}(Z>2)=\frac{m((0,1/2))}{m([-1,1])} =\frac{1/2}{2} =\frac14. $$

Check: the interval \([-1,1]\) has length \(1-(-1)=2\), and \((0,1/2)\) has length \(1/2-0=1/2\). The ratio is \((1/2)/2=1/4\), as stated.

Measurability Does Not Imply a Product Rule

A common error is to confuse measurability of a joint vector with a rule for multiplying probabilities. Measurability says that the preimages of Borel sets are events; it does not say that the coordinates behave independently or that probabilities of intersections factor. For a concrete check, let \(\Omega=[0,1]\) with uniform probability and set \(X(\omega)=Y(\omega)=\omega\). Both coordinates, and hence \((X,Y)\), are measurable. The event \(\{X<1/2,\ Y<1/2\}\) is exactly \([0,1/2)\), so its probability is \(1/2\). A wrong calculation would multiply the two marginal probabilities, \(\mathbb{P}(X<1/2)=1/2\) and \(\mathbb{P}(Y<1/2)=1/2\), to get \(1/4\). That multiplication is not justified by measurability; the correct event preimage is the single interval \([0,1/2)\), of probability \(1/2\).

The practical method is therefore to identify the map and its codomain, establish measurability using the Borel-composition theorem or the coordinate criterion, and then compute an event by taking its actual preimage. Each step has a distinct purpose: measurability guarantees the preimage is an event, while the preimage calculation determines which event it is.

Check Your Understanding

For each question, identify the measurable map and the relevant preimage or coordinate criterion.

  1. If \(X\) is a real-valued random variable, explain why \(e^X\) is measurable and express \(\{e^X>3\}\) as an event involving \(X\).
  2. Suppose \(X_1,X_2,X_3\) are measurable real-valued random variables. Which theorem shows that \((X_1,X_2,X_3)\) is measurable into \(\mathbb{R}^3\)?
  3. On \([0,1]\) with uniform probability, let \(X(\omega)=\omega\). Find the preimage of \(\{X^2<1/9\}\) and its probability.
  4. For \(g(x)=1/x\) when \(x\ne0\) and \(g(0)=0\), determine the event \(\{g(X)<-2\}\) when \(X(\omega)=\omega\) on \([-1,1]\).
  5. Give an example showing why measurability of \((X,Y)\) alone does not justify multiplying \(\mathbb{P}(X\in A)\) and \(\mathbb{P}(Y\in B)\) to find \(\mathbb{P}(X\in A,Y\in B)\).