Tutorials › Statistical Learning (Graduate) › Measurable Feature and Response Spaces

Statistical Experiments and Targets · Tutorial 18 of 989

Measurable Feature and Response Spaces

Specify the measurable structure on feature and response values, and see how it determines which events can be assigned probabilities.

Beginner 10 min read

What You'll Learn

  • Define measurable spaces and measurable random elements.
  • Explain why measurable structure is needed to make probability statements.
  • Identify the Borel measurable space used for real-valued features and responses.
  • Specify the standard measurable structure for finite response labels.
  • Prove how sublevel events characterize measurability of real-valued random variables.
  • Construct the distribution of a random element and verify its probability-measure properties.

Why Feature and Response Spaces Need Measurable Structure

A statistical experiment records feature values and responses, then makes probability statements about them. For example, we may ask for the probability that a feature lies in a particular region, or that a response belongs to a particular set of labels. To define such probabilities, it is not enough to name the set of possible values: we must also specify which subsets count as measurable events.

This distinction matters even when the possible values look familiar. Real-valued measurements have a standard measurable structure, while a finite set of class labels has another simple standard structure. More generally, the measurable structure determines which questions about a feature or response can be expressed as events in the underlying probability model.

Definition: A measurable space is a pair \((S,\mathcal S)\), where \(S\) is a set and \(\mathcal S\) is a sigma-algebra of subsets of \(S\). A sigma-algebra contains \(S\), is closed under complements relative to \(S\), and is closed under countable unions. Its members are called measurable sets.

The set \(S\) specifies the possible values; \(\mathcal S\) specifies the subsets of values to which probability statements may directly refer. A measurable space by itself does not assign probabilities. For that, we use a probability space \((\Omega,\mathcal F,P)\): \(\Omega\) is the set of outcomes of the experiment, \(\mathcal F\) is a sigma-algebra of events, and \(P\) is a probability measure on \(\mathcal F\).

Definition: A map \(X:\Omega\to S\) is a measurable random element from \((\Omega,\mathcal F,P)\) to \((S,\mathcal S)\) if \(X^{-1}(A)=\{\omega\in\Omega:X(\omega)\in A\}\in\mathcal F\) for every \(A\in\mathcal S\). When \(S=\mathbb R\) with its usual measurable structure, \(X\) is called a real-valued random variable.

The requirement says that every measurable question about the value of \(X\) corresponds to an event in \(\mathcal F\). Only then can \(P(X\in A)\) be defined as \(P(X^{-1}(A))\). Thus the measurable structure is part of the specification of the experiment, not an optional decoration added after probabilities have been calculated.

Standard Feature and Response Spaces

For real-valued features and responses, the standard choice is the Borel sigma-algebra \(\mathcal B(\mathbb R)\), generated by the open subsets of the real line. For a real vector in \(\mathbb R^p\), the standard choice is likewise the Borel sigma-algebra \(\mathcal B(\mathbb R^p)\) generated by its usual topology. These choices make familiar sets, such as intervals and open regions, measurable.

For a finite label set \(\mathcal Y=\{1,\ldots,K\}\), the standard choice is its power set \(2^{\mathcal Y}\), containing every subset of labels. Then events such as “the response is class 1 or class 3” are measurable. The labels need not be numbers: labels such as “control,” “mild,” and “severe” are just as suitable.

A feature space and a response space need not have the same form. A feature may be a real vector while a response is a finite label; alternatively, a feature might itself be a category and the response a real measurement. The spaces describe the possible values, while their sigma-algebras say which subsets of those values support probability statements.

Worked Example: A Real-Valued Feature and an Interval Event

Let \(\Omega=(0,1)\), let \(\mathcal F\) be the Borel sigma-algebra on \((0,1)\), and let \(P\) be the uniform probability measure on this interval. Take the feature space to be \((\mathbb R,\mathcal B(\mathbb R))\), and define \(X(\omega)=\omega\).

For any Borel set \(A\subseteq\mathbb R\), the preimage is \(X^{-1}(A)=A\cap(0,1)\), which is Borel in \((0,1)\). Therefore \(X\) is a measurable random element. For the interval \(A=[1/4,3/4]\), the preimage is \([1/4,3/4]\), so \(P(X\in[1/4,3/4])=3/4-1/4=1/2\).

The calculation uses both pieces of the specification: the interval is measurable in the feature space, and its preimage is an event in \(\mathcal F\). The probability is assigned to that event in the outcome space.

Worked Example: A Finite-Label Response

Suppose \(\Omega=\{a,b,c,d\}\), \(\mathcal F=2^\Omega\), and the outcome probabilities are \(P(\{a\})=0.1\), \(P(\{b\})=0.2\), \(P(\{c\})=0.3\), and \(P(\{d\})=0.4\). Define a response \(Y:\Omega\to\{0,1,2\}\) by \(Y(a)=0\), \(Y(b)=1\), \(Y(c)=1\), and \(Y(d)=2\). Give the response space the power-set sigma-algebra.

Every subset of \(\{0,1,2\}\) is measurable. For instance, the event that the response is in \(\{0,2\}\) has preimage \(Y^{-1}(\{0,2\})=\{a,d\}\). Its probability is \(0.1+0.4=0.5\). Similarly, \(Y^{-1}(\{1\})=\{b,c\}\), so \(P(Y=1)=0.2+0.3=0.5\).

The numerical form of the labels is not essential. The same calculation works if \(0,1,2\) are replaced by three category names, because the power set makes every group of labels measurable.

Measurability and Probability Laws

Once a random element is measurable, its distribution on the value space is defined by transferring probabilities of value sets back to events in the outcome space. This construction is often called the pushforward distribution.

Definition: If \(X:\Omega\to S\) is measurable and \(A\in\mathcal S\), define the distribution of \(X\), denoted \(P_X\), by \(P_X(A)=P(X^{-1}(A))\). This is a probability measure on \((S,\mathcal S)\).
Proposition: For a measurable \(X\), the set function \(P_X\) defined above is a probability measure on \((S,\mathcal S)\).

Proof. First, \(X^{-1}(S)=\Omega\), so \(P_X(S)=P(\Omega)=1\). Also \(X^{-1}(\varnothing)=\varnothing\), giving \(P_X(\varnothing)=0\). Let \(A_1,A_2,\ldots\) be pairwise disjoint members of \(\mathcal S\). Their preimages are pairwise disjoint: if an outcome belonged to \(X^{-1}(A_i)\cap X^{-1}(A_j)\), its image would belong to \(A_i\cap A_j=\varnothing\). Preimages also commute with unions, so

$$ P_X\left(\bigcup_{i=1}^{\infty} A_i\right) =P\left(X^{-1}\left(\bigcup_{i=1}^{\infty} A_i\right)\right) =P\left(\bigcup_{i=1}^{\infty}X^{-1}(A_i)\right) =\sum_{i=1}^{\infty}P(X^{-1}(A_i)) =\sum_{i=1}^{\infty}P_X(A_i). $$

The final equality follows from countable additivity of \(P\), since the preimages are disjoint events in \(\mathcal F\). Thus \(P_X\) is nonnegative, has total mass one, and is countably additive on \(\mathcal S\); it is a probability measure. \(\square\)

Worked Example: Calculating a Finite Response Distribution

For the response in the preceding finite-label example, compute its distribution on the label set. The preimages of the three singleton labels are \(Y^{-1}(\{0\})=\{a\}\), \(Y^{-1}(\{1\})=\{b,c\}\), and \(Y^{-1}(\{2\})=\{d\}\). Therefore

$$ P_Y(\{0\})=0.1,\qquad P_Y(\{1\})=0.2+0.3=0.5,\qquad P_Y(\{2\})=0.4. $$

These probabilities sum to \(0.1+0.5+0.4=1\). For a larger label set, probabilities of any subset are obtained by adding the probabilities of its labels; for example, \(P_Y(\{0,2\})=0.1+0.4=0.5\).

A Useful Test for Real-Valued Random Variables

For real-valued \(X\), a commonly used way to check measurability is to examine the events \(\{X\le t\}\). The following result explains why checking these threshold events is enough, provided they are measurable for every real threshold.

Theorem: A map \(X:\Omega\to\mathbb R\) is measurable as a map into \((\mathbb R,\mathcal B(\mathbb R))\) if and only if \(\{\omega:X(\omega)\le t\}\in\mathcal F\) for every \(t\in\mathbb R\).

Proof. If \(X\) is measurable, then \((-\infty,t]\) is Borel for every \(t\), so \(X^{-1}((-\infty,t])=\{\omega:X(\omega)\le t\}\) belongs to \(\mathcal F\).

Conversely, suppose every such threshold event belongs to \(\mathcal F\). Define \(\mathcal C=\{B\in\mathcal B(\mathbb R):X^{-1}(B)\in\mathcal F\}\). More generally, the same preimage condition defines a sigma-algebra on all subsets of \(\mathbb R\): preimages preserve complements and countable unions, and \(\mathcal F\) is a sigma-algebra. By assumption, this sigma-algebra contains every ray \((-\infty,t]\). These rays generate \(\mathcal B(\mathbb R)\): for example, \((-\infty,b)=\bigcup_{q\in\mathbb Q,\ q<b}(-\infty,q]\), and \((a,b)=(-\infty,b)\cap((-\infty,a])^c\). Open intervals generate the open sets using the countable rational interval basis, and open sets generate the Borel sigma-algebra. Hence the preimage of every Borel set belongs to \(\mathcal F\), which is exactly measurability of \(X\). \(\square\)

This criterion is useful because it turns a requirement over all Borel sets into a check of a familiar family of threshold events. It is a criterion for measurability, not a claim that every event of interest must itself be a threshold event.

Why the Choice of Sigma-Algebra Matters

The power set is a natural choice for a finite label space because it allows every group of labels to be discussed. On more general sets, a sigma-algebra may deliberately include fewer subsets. If a proposed value space has a limited sigma-algebra, probability statements about omitted subsets are not defined through that space.

Worked Example: A Measurable Map With a Limited Value Space

Let \(\Omega=\{a,b\}\), let \(\mathcal F=2^\Omega\), and assign probability \(1/2\) to each outcome. Let \(S=\{u,v\}\), but equip \(S\) with the sigma-algebra \(\mathcal S=\{\varnothing,S\}\), which does not contain either singleton. Define \(X(a)=u\) and \(X(b)=v\).

The map is measurable: the only sets in \(\mathcal S\) are \(\varnothing\) and \(S\), whose preimages are \(\varnothing\) and \(\Omega\), both in \(\mathcal F\). But \(\{u\}\notin\mathcal S\), so the measurable-space specification does not provide the event “\(X=u\)” as a measurable value-set event. In particular, one cannot define \(P_X(\{u\})\) using the distribution on \((S,\mathcal S)\), even though the underlying outcome event \(\{a\}\) has probability \(1/2\).

If \(S\) is intended to represent two distinguishable response labels, the power-set sigma-algebra is the appropriate standard choice. With that choice, \(\{u\}\) is measurable and its probability is \(P(X=u)=1/2\).

Common Pitfall

Wrong reasoning: “The value space is a set of possible responses, so any subset of responses can automatically be assigned a probability.” A set of possible values alone does not supply a sigma-algebra, and even a specified sigma-algebra may omit some subsets.

Correction: State the measurable space for the feature and response values, and check that the maps from outcomes into those spaces are measurable. Then probability statements about measurable value sets are defined by taking their preimages. For real-valued measurements, use the Borel sigma-algebra; for a finite label set, the power set is the standard choice.

Feature and response spaces make the kinds of value-based questions in a statistical experiment precise. The distribution of a feature or response is a probability measure on its specified measurable space. More complicated objects, such as an entire observed dataset, require a measurable structure on the combined values; that construction is a separate step.

Check Your Understanding

Answer each question using the definitions and results in this tutorial.

  1. What are the two parts of a measurable space, and what role does each part play?
  2. For a map \(X:\Omega\to S\), state the condition that makes \(X\) a measurable random element.
  3. Why is the power-set sigma-algebra a standard choice for a finite response-label set?
  4. State the criterion for measurability of a real-valued map in terms of the events \(\{X\le t\}\).
  5. In the limited-space example, why is \(X\) measurable even though the event “\(X=u\)” is not represented by a measurable value set?
Clinical Biostats