Mathwords logoMathwords

Measurable Function — Definition, Formula & Example

A measurable function is a function where every question of the form "which inputs give an output in this range?" has an answer set that you are allowed to measure. Because of this, you can assign a size, a probability, or an integral to the function's behavior.

Let (X,Σ)(X, \Sigma) and (Y,T)(Y, \mathcal{T}) be measurable spaces. A function f:X→Yf: X \to Y is (Σ,T)(\Sigma, \mathcal{T})-measurable if f−1(B)∈Σf^{-1}(B) \in \Sigma for every B∈TB \in \mathcal{T}. When Y=RY = \mathbb{R} carries its Borel σ\sigma-algebra, the standard choice, this condition is equivalent to requiring {x∈X:f(x)>a}∈Σ\{x \in X : f(x) > a\} \in \Sigma for every real number aa.

Key Formula

f is measurable  ⟺  {x∈X:f(x)>a}∈Σfor every a∈Rf \text{ is measurable} \iff \{x \in X : f(x) > a\} \in \Sigma \quad \text{for every } a \in \mathbb{R}
Where:
  • ff = A real-valued function on the set X
  • XX = The domain, the set of all possible inputs
  • Σ\Sigma = The sigma-algebra on X, the collection of subsets you are allowed to measure
  • aa = Any real threshold value
  • {x∈X:f(x)>a}\{x \in X : f(x) > a\} = The superlevel set, meaning all inputs whose output exceeds a

Worked Example

Problem: Let X={1,2,3,4}X = \{1, 2, 3, 4\} with σ\sigma-algebra Σ={∅,{1,2},{3,4},X}\Sigma = \{\varnothing, \{1,2\}, \{3,4\}, X\}. Define f(1)=f(2)=5f(1) = f(2) = 5, f(3)=f(4)=7f(3) = f(4) = 7, and g(1)=0g(1) = 0, g(2)=g(3)=g(4)=1g(2) = g(3) = g(4) = 1. Which of ff and gg is measurable?
Step 1: Find the superlevel sets of ff. The set depends only on where the threshold aa sits relative to the outputs 5 and 7.
{f>a}={X,a<5{3,4},5≤a<7∅,a≥7\{f > a\} = \begin{cases} X, & a < 5 \\ \{3,4\}, & 5 \le a < 7 \\ \varnothing, & a \ge 7 \end{cases}
Step 2: Each of the three possible sets, XX, {3,4}\{3,4\}, and ∅\varnothing, belongs to Σ\Sigma. So ff passes the test for every aa, and ff is measurable.
X, {3,4}, ∅∈ΣX,\ \{3,4\},\ \varnothing \in \Sigma
Step 3: Test gg with the threshold a=12a = \tfrac{1}{2}. The resulting set is not in Σ\Sigma, so one failure is enough to show gg is not measurable.
{g>12}={2,3,4}∉Σ\{g > \tfrac{1}{2}\} = \{2, 3, 4\} \notin \Sigma
Answer: ff is measurable and gg is not. The sets in Σ\Sigma cannot tell input 1 apart from input 2. Here, ff treats 1 and 2 the same way, but gg gives them different outputs, which requires information that Σ\Sigma does not contain.

Why It Matters

The Lebesgue integral in a graduate real analysis course is defined only for measurable functions, so measurability is the entry requirement for writing ∫f dμ\int f \, d\mu. In probability theory, a random variable is by definition a measurable function from a sample space to R\mathbb{R}. That is exactly what makes a probability such as P(X>3)P(X > 3) well defined.

Common Mistakes

Mistake: Checking that images of measurable sets are measurable, meaning testing whether f(A)∈Tf(A) \in \mathcal{T} for A∈ΣA \in \Sigma.
Correction: The definition uses preimages, f−1(B)f^{-1}(B), not images. Images can fail badly: even a continuous function can map a Borel set to a set that is not Borel. Always start from a set in the target space and pull it back to the domain.

Related Terms

  • Function — The basic input-output rule that measurability adds conditions to
  • Topology — Open sets generate the Borel sigma-algebra on the target
  • Closed Set — Closed-set preimages give an equivalent test for measurability
  • Measure Theory — The framework of sigma-algebras and measures that measurable functions live in
  • Random Variable — A random variable is a measurable function on outcomes
  • Integral — Measurable functions are the ones you can integrate