# Σ-algebra

In mathematical analysis and in probability theory, a **σ-algebra** (also **σ-field**) on a set *X* is a collection Σ of subsets of *X* that includes the empty subset, is closed under complement, and is closed under countable unions and countable intersections. The pair (*X*, Σ) is called a measurable space.

A σ-algebra is a type of set algebra. An algebra of sets needs only to be closed under the union or intersection of *finitely* many subsets, which is a weaker condition.^{[1]}

The main use of σ-algebras is in the definition of measures; specifically, the collection of those subsets for which a given measure is defined is necessarily a σ-algebra. This concept is important in mathematical analysis as the foundation for Lebesgue integration, and in probability theory, where it is interpreted as the collection of events which can be assigned probabilities. Also, in probability, σ-algebras are pivotal in the definition of conditional expectation.

In statistics, (sub) σ-algebras are needed for the formal mathematical definition of a sufficient statistic,^{[2]} particularly when the statistic is a function or a random process and the notion of conditional density is not applicable.

A more useful example is the set of subsets of the real line formed by starting with all open intervals and adding in all countable unions, countable intersections, and relative complements and continuing this process (by transfinite iteration through all countable ordinals) until the relevant closure properties are achieved (a construction known as the Borel hierarchy).

There are at least three key motivators for σ-algebras: defining measures, manipulating limits of sets, and managing partial information characterized by sets.

A measure on *X* is a function that assigns a non-negative real number to subsets of *X*; this can be thought of as making precise a notion of "size" or "volume" for sets. We want the size of the union of disjoint sets to be the sum of their individual sizes, even for an infinite sequence of disjoint sets.

One would like to assign a size to *every* subset of *X*, but in many natural settings, this is not possible. For example, the axiom of choice implies that when the size under consideration is the ordinary notion of length for subsets of the real line, then there exist sets for which no size exists, for example, the Vitali sets. For this reason, one considers instead a smaller collection of privileged subsets of *X*. These subsets will be called the measurable sets. They are closed under operations that one would expect for measurable sets, that is, the complement of a measurable set is a measurable set and the countable union of measurable sets is a measurable set. Non-empty collections of sets with these properties are called σ-algebras.

Many uses of measure, such as the probability concept of almost sure convergence, involve limits of sequences of sets. For this, closure under countable unions and intersections is paramount. Set limits are defined as follows on σ-algebras.

In much of probability, especially when conditional expectation is involved, one is concerned with sets that represent only part of all the possible information that can be observed. This partial information can be characterized with a smaller σ-algebra which is a subset of the principal σ-algebra; it consists of the collection of subsets relevant only to and determined only by the partial information. A simple example suffices to illustrate this idea.

Imagine you and another person are betting on a game that involves flipping a coin repeatedly and observing whether it comes up Heads (*H*) or Tails (*T*). Since you and your opponent are each infinitely wealthy, there is no limit to how long the game can last. This means the sample space Ω must consist of all possible infinite sequences of *H* or *T*:

However, after *n* flips of the coin, you may want to determine or revise your betting strategy in advance of the next flip. The observed information at that point can be described in terms of the 2^{n} possibilities for the first *n* flips. Formally, since you need to use subsets of Ω, this is codified as the σ-algebra

From these properties, it follows that the σ-algebra is also closed under countable intersections (by applying De Morgan's laws).

Elements of the *σ*-algebra are called measurable sets. An ordered pair (*X*, Σ), where *X* is a set and Σ is a *σ*-algebra over *X*, is called a **measurable space**. A function between two measurable spaces is called a measurable function if the preimage of every measurable set is measurable. The collection of measurable spaces forms a category, with the measurable functions as morphisms. Measures are defined as certain types of functions from a *σ*-algebra to [0, ∞].

A σ-algebra is both a π-system and a Dynkin system (λ-system). The converse is true as well, by Dynkin's theorem (below).

This theorem (or the related monotone class theorem) is an essential tool for proving many results about properties of specific σ-algebras. It capitalizes on the nature of two simpler classes of sets, namely the following.

Dynkin's π-λ theorem says, if *P* is a π-system and *D* is a Dynkin system that contains *P* then the σ-algebra σ(*P*) generated by *P* is contained in *D*. Since certain π-systems are relatively simple classes, it may not be hard to verify that all sets in *P* enjoy the property under consideration while, on the other hand, showing that the collection *D* of all subsets with the property is a Dynkin system can also be straightforward. Dynkin's π-λ Theorem then implies that all sets in σ(*P*) enjoy the property, avoiding the task of checking it for an arbitrary set in σ(*P*).

One of the most fundamental uses of the π-λ theorem is to show equivalence of separately defined measures or integrals. For example, it is used to equate a probability for a random variable *X* with the Lebesgue-Stieltjes integral typically associated with computing the probability:

A *σ*-algebra Σ is just a *σ*-ring that contains the universal set *X*.^{[4]} A *σ*-ring need not be a *σ*-algebra, as for example measurable subsets of zero Lebesgue measure in the real line are a *σ*-ring, but not a *σ*-algebra since the real line has infinite measure and thus cannot be obtained by their countable union. If, instead of zero measure, one takes measurable subsets of finite Lebesgue measure, those are a ring but not a *σ*-ring, since the real line can be obtained by their countable union yet its measure is not finite.

A separable measure space has a natural pseudometric that renders it separable as a pseudometric space. The distance between two sets is defined as the measure of the symmetric difference of the two sets. Note that the symmetric difference of two distinct sets can have measure zero; hence the pseudometric as defined above need not to be a true metric. However, if sets whose symmetric difference has measure zero are identified into a single equivalence class, the resulting quotient set can be properly metrized by the induced metric. If the measure space is separable, it can be shown that the corresponding metric space is, too.

Let *F* be an arbitrary family of subsets of *X*. Then there exists a unique smallest σ-algebra which contains every set in *F* (even though *F* may or may not itself be a σ-algebra). It is, in fact, the intersection of all σ-algebras containing *F*. (See intersections of σ-algebras above.) This σ-algebra is denoted σ(*F*) and is called **the σ-algebra generated by F**.

There are many families of subsets that generate useful σ-algebras. Some of these are presented here.

A function *f* from a set *X* to a set *Y* is measurable with respect to a σ-algebra Σ of subsets of *X* if and only if σ(*f*) is a subset of Σ.

One common situation, and understood by default if *B* is not specified explicitly, is when *Y* is a metric or topological space and *B* is the collection of Borel sets on *Y*.

If *f* is a function from *X* to **R**^{n} then σ(*f*) is generated by the family of subsets which are inverse images of intervals/rectangles in **R**^{n}:

A useful property is the following. Assume *f* is a measurable map from (*X*, Σ_{X}) to (*S*, Σ_{S}) and *g* is a measurable map from (*X*, Σ_{X}) to (*T*, Σ_{T}). If there exists a measurable map *h* from (*T*, Σ_{T}) to (*S*, Σ_{S}) such that *f*(*x*) = *h*(*g*(*x*)) for all *x*, then σ(*f*) ⊂ σ(*g*). If *S* is finite or countably infinite or, more generally, (*S*, Σ_{S}) is a standard Borel space (e.g., a separable complete metric space with its associated Borel sets), then the converse is also true.^{[7]} Examples of standard Borel spaces include **R**^{n} with its Borel sets and **R**^{∞} with the cylinder σ-algebra described below.

An important example is the Borel algebra over any topological space: the σ-algebra generated by the open sets (or, equivalently, by the closed sets). Note that this σ-algebra is not, in general, the whole power set. For a non-trivial example that is not a Borel set, see the Vitali set or Non-Borel sets.

On the Euclidean space **R**^{n}, another σ-algebra is of importance: that of all Lebesgue measurable sets. This σ-algebra contains more sets than the Borel σ-algebra on **R**^{n} and is preferred in integration theory, as it gives a complete measure space.

The Borel σ-algebra for **R**^{n} is generated by half-infinite rectangles and by finite rectangles. For example,