# Pi-system

In mathematics, a π-system (or pi-system) on a set $\Omega$ is a collection $P$ of certain subsets of $\Omega ,$ such that
* $P$ is non-empty.
* If $A,B\in P$ then $A\cap B\in P.$
That is, $P$ is a non-empty family of subsets of $\Omega$ that is closed under non-empty finite intersections. The importance of π-systems arises from the fact that if two probability measures agree on a π-system, then they agree on the 𝜎-algebra generated by that π-system. Moreover, if other properties, such as equality of integrals, hold for the π-system, then they hold for the generated 𝜎-algebra as well. This is the case whenever the collection of subsets for which the property holds is a 𝜆-system. π-systems are also useful for checking independence of random variables.
This is desirable because in practice, π-systems are often simpler to work with than 𝜎-algebras. For example, it may be awkward to work with 𝜎-algebras generated by infinitely many sets $\sigma (E_{1},E_{2},\ldots ).$ So instead we may examine the union of all 𝜎-algebras generated by finitely many sets ⋃$_n$σ(E$_1$, …, E$_n$).{\textstyle \bigcup _{n}\sigma (E_{1}, \ldots , E_{n}).} This forms a π-system that generates the desired 𝜎-algebra. Another example is the collection of all intervals of the real line, along with the empty set, which is a π-system that generates the very important Borel 𝜎-algebra of subsets of the real line.

## Definitions

A π-system is a non-empty collection of sets $P$ that is closed under non-empty finite intersections, which is equivalent to $P$ containing the intersection of any two of its elements. If every set in this π-system is a subset of $\Omega$ then it is called a π-system on $\Omega .$
For any non-empty family $\Sigma$ of subsets of $\Omega ,$ there exists a π-system ${\mathcal {I}}_{\Sigma },$ called the π-system generated by ${\boldsymbol {\varSigma }}$, that is the unique smallest π-system of $\Omega$ containing every element of $\Sigma .$ It is equal to the intersection of all π-systems containing $\Sigma ,$ and can be explicitly described as the set of all possible non-empty finite intersections of elements of $\Sigma :$ $\left\{E_{1}\cap \cdots \cap E_{n}~:~1\leq n\in \mathbb {N} {\text{ and }}E_{1},\ldots ,E_{n}\in \Sigma \right\}.$
A non-empty family of sets has the finite intersection property if and only if the π-system it generates does not contain the empty set as an element.

## Examples

* For any real numbers $a$ and $b,$ the intervals $(-\infty ,a]$ form a π-system, and the intervals $(a,b]$ form a π-system if the empty set is also included.
* The topology (collection of open subsets) of any topological space is a π-system.
* Every filter is a π-system. Every π-system that doesn't contain the empty set is a prefilter (also known as a filter base).
* For any measurable function $f:\Omega \to \mathbb {R} ,$ the set ${\mathcal {I}}_{f}=\left\{f^{-1}((-\infty ,x]):x\in \mathbb {R} \right\}$ defines a π-system, and is called the π-system generated by $f.$ (Alternatively, $\left\{f^{-1}((a,b]):a,b\in \mathbb {R} ,a<b\right\}\cup \{\varnothing \}$ defines a π-system generated by $f.$)
* If $P_{1}$ and $P_{2}$ are π-systems for $\Omega _{1}$ and $\Omega _{2},$ respectively, then $\{A_{1}\times A_{2}:A_{1}\in P_{1},A_{2}\in P_{2}\}$ is a π-system for the Cartesian product $\Omega _{1}\times \Omega _{2}.$
* Every 𝜎-algebra is a π-system.

## Relationship to 𝜆-systems

A 𝜆-system on $\Omega$ is a set $D$ of subsets of $\Omega ,$ satisfying
* $\Omega \in D,$
* if $A\in D$ then $\Omega \setminus A\in D,$
* if $A_{1},A_{2},A_{3},\ldots$ is a sequence of (pairwise) disjoint subsets in $D$ then $\textstyle \bigcup \limits _{n=1}^{\infty }A_{n}\in D.$
Whilst it is true that any 𝜎-algebra satisfies the properties of being both a π-system and a 𝜆-system, it is not true that any π-system is a 𝜆-system, and moreover it is not true that any π-system is a 𝜎-algebra. However, a useful classification is that any set system which is both a 𝜆-system and a π-system is a 𝜎-algebra. This is used as a step in proving the π-𝜆 theorem.

### The π-𝜆 theorem

Let $D$ be a 𝜆-system, and let ${\mathcal {I}}\subseteq D$ be a π-system contained in $D.$ The π-𝜆 theorem states that the 𝜎-algebra $\sigma ({\mathcal {I}})$ generated by ${\mathcal {I}}$ is contained in $D~:~$ $\sigma ({\mathcal {I}})\subseteq D.$
The π-𝜆 theorem can be used to prove many elementary measure theoretic results. For instance, it is used in proving the uniqueness claim of the Carathéodory extension theorem for 𝜎-finite measures.
The π-𝜆 theorem is closely related to the monotone class theorem, which provides a similar relationship between monotone classes and algebras, and can be used to derive many of the same results. Since π-systems are simpler classes than algebras, it can be easier to identify the sets that are in them while, on the other hand, checking whether the property under consideration determines a 𝜆-system is often relatively easy. Despite the difference between the two theorems, the π-𝜆 theorem is sometimes referred to as the monotone class theorem.

#### Example

Let $\mu _{1},\mu _{2}:F\to \mathbb {R}$ be two measures on the 𝜎-algebra $F,$ and suppose that $F=\sigma (I)$ is generated by a π-system $I.$ If
* $\mu _{1}(A)=\mu _{2}(A)$ for all $A\in I,$ and
* $\mu _{1}(\Omega )=\mu _{2}(\Omega )<\infty ,$
then $\mu _{1}=\mu _{2}.$ This is the uniqueness statement of the Carathéodory extension theorem for finite measures. If this result does not seem very remarkable, consider the fact that it usually is very difficult or even impossible to fully describe every set in the 𝜎-algebra, and so the problem of equating measures would be completely hopeless without such a tool.
Idea of the proof Define the collection of sets $D=\left\{A\in \sigma (I)\colon \mu _{1}(A)=\mu _{2}(A)\right\}.$ By the first assumption, $\mu _{1}$ and $\mu _{2}$ agree on $I$ and thus $I\subseteq D.$ By the second assumption, $\Omega \in D,$ and it can further be shown that $D$ is a 𝜆-system. It follows from the π-𝜆 theorem that $\sigma (I)\subseteq D\subseteq \sigma (I),$ and so $D=\sigma (I).$ That is to say, the measures agree on $\sigma (I).$

## π-Systems in probability

π-systems are more commonly used in the study of probability theory than in the general field of measure theory. This is primarily due to probabilistic notions such as independence, though it may also be a consequence of the fact that the π-𝜆 theorem was proven by the probabilist Eugene Dynkin. Standard measure theory texts typically prove the same results via monotone classes, rather than π-systems.

### Equality in distribution

The π-𝜆 theorem motivates the common definition of the probability distribution of a random variable $X:(\Omega ,{\mathcal {F}},\operatorname {P} )\to \mathbb {R}$ in terms of its cumulative distribution function. Recall that the cumulative distribution of a random variable is defined as $F_{X}(a)=\operatorname {P} [X\leq a],\qquad a\in \mathbb {R} ,$ whereas the seemingly more general law of the variable is the probability measure ${\mathcal {L}}_{X}(B)=\operatorname {P} \left[X^{-1}(B)\right]\quad {\text{ for all }}B\in {\mathcal {B}}(\mathbb {R} ),$ where ${\mathcal {B}}(\mathbb {R} )$ is the Borel 𝜎-algebra. The random variables $X:(\Omega ,{\mathcal {F}},\operatorname {P} )\to \mathbb {R}$ and $Y:({\tilde {\Omega }},{\tilde {\mathcal {F}}},{\tilde {\operatorname {P} }})\to \mathbb {R}$ (on two possibly different probability spaces) are equal in distribution (or law), denoted by $X\,{\stackrel {\mathcal {D}}{=}}\,Y,$ if they have the same cumulative distribution functions; that is, if $F_{X}=F_{Y}.$ The motivation for the definition stems from the observation that if $F_{X}=F_{Y},$ then that is exactly to say that ${\mathcal {L}}_{X}$ and ${\mathcal {L}}_{Y}$ agree on the π-system $\{(-\infty ,a]:a\in \mathbb {R} \}$ which generates ${\mathcal {B}}(\mathbb {R} ),$ and so by the example above: ${\mathcal {L}}_{X}={\mathcal {L}}_{Y}.$
A similar result holds for the joint distribution of a random vector. For example, suppose $X$ and $Y$ are two random variables defined on the same probability space $(\Omega ,{\mathcal {F}},\operatorname {P} ),$ with respectively generated π-systems ${\mathcal {I}}_{X}$ and ${\mathcal {I}}_{Y}.$ The joint cumulative distribution function of $(X,Y)$ is $F_{X,Y}(a,b)=\operatorname {P} [X\leq a,Y\leq b]=\operatorname {P} \left[X^{-1}((-\infty ,a])\cap Y^{-1}((-\infty ,b])\right],\quad {\text{ for all }}a,b\in \mathbb {R} .$
However, $A=X^{-1}((-\infty ,a])\in {\mathcal {I}}_{X}$ and $B=Y^{-1}((-\infty ,b])\in {\mathcal {I}}_{Y}.$ Because ${\mathcal {I}}_{X,Y}=\left\{A\cap B:A\in {\mathcal {I}}_{X},{\text{ and }}B\in {\mathcal {I}}_{Y}\right\}$ is a π-system generated by the random pair $(X,Y),$ the π-𝜆 theorem is used to show that the joint cumulative distribution function suffices to determine the joint law of $(X,Y).$ In other words, $(X,Y)$ and $(W,Z)$ have the same distribution if and only if they have the same joint cumulative distribution function.
In the theory of stochastic processes, two processes $(X_{t})_{t\in T},(Y_{t})_{t\in T}$ are known to be equal in distribution if and only if they agree on all finite-dimensional distributions; that is, for all $t_{1},\ldots ,t_{n}\in T,\,n\in \mathbb {N} ,$ $\left(X_{t_{1}},\ldots ,X_{t_{n}}\right)\,{\stackrel {\mathcal {D}}{=}}\,\left(Y_{t_{1}},\ldots ,Y_{t_{n}}\right).$
The proof of this is another application of the π-𝜆 theorem.

### Independent random variables

The theory of π-system plays an important role in the probabilistic notion of independence. If $X$ and $Y$ are two random variables defined on the same probability space $(\Omega ,{\mathcal {F}},\operatorname {P} )$ then the random variables are independent if and only if their π-systems ${\mathcal {I}}_{X},{\mathcal {I}}_{Y}$ satisfy for all $A\in {\mathcal {I}}_{X}$ and $B\in {\mathcal {I}}_{Y},$ $\operatorname {P} [A\cap B]~=~\operatorname {P} [A]\operatorname {P} [B],$ which is to say that ${\mathcal {I}}_{X},{\mathcal {I}}_{Y}$ are independent. This actually is a special case of the use of π-systems for determining the distribution of $(X,Y).$

#### Example

Let $Z=\left(Z_{1},Z_{2}\right),$ where $Z_{1},Z_{2}\sim {\mathcal {N}}(0,1)$ are iid standard normal random variables. Define the radius and argument (arctan) variables $R={\sqrt {Z_{1}^{2}+Z_{2}^{2}}},\qquad \Theta =\tan ^{-1}\left(Z_{2}/Z_{1}\right).$
Then $R$ and $\Theta$ are independent random variables.
To prove this, it is sufficient to show that the π-systems ${\mathcal {I}}_{R},{\mathcal {I}}_{\Theta }$ are independent: that is, for all $\rho \in [0,\infty )$ and $\theta \in [0,2\pi ],$ $\operatorname {P} [R\leq \rho ,\Theta \leq \theta ]=\operatorname {P} [R\leq \rho ]\operatorname {P} [\Theta \leq \theta ].$
Confirming that this is the case is an exercise in changing variables. Fix $\rho \in [0,\infty )$ and $\theta \in [0,2\pi ],$ then the probability can be expressed as an integral of the probability density function of $Z.$ ${\begin{aligned}\operatorname {P} [R\leq \rho ,\Theta \leq \theta ]&=\int _{R\leq \rho ,\,\Theta \leq \theta }{\frac {1}{2\pi }}\exp \left({-{\frac {1}{2}}(z_{1}^{2}+z_{2}^{2})}\right)dz_{1}\,dz_{2}\\[5pt]&=\int _{0}^{\theta }\int _{0}^{\rho }{\frac {1}{2\pi }}e^{-{\frac {r^{2}}{2}}}\;r\,dr\,d{\tilde {\theta }}\\[5pt]&=\left(\int _{0}^{\theta }{\frac {1}{2\pi }}\,d{\tilde {\theta }}\right)\;\left(\int _{0}^{\rho }e^{-{\frac {r^{2}}{2}}}\;r\,dr\right)\\[5pt]&=\operatorname {P} [\Theta \leq \theta ]\operatorname {P} [R\leq \rho ].\end{aligned}}$