# Bernoulli scheme

In mathematics, the Bernoulli scheme or Bernoulli shift is a generalization of the Bernoulli process to more than two possible outcomes. Bernoulli schemes appear naturally in symbolic dynamics, and are thus important in the study of dynamical systems. Many important dynamical systems (such as Axiom A systems) exhibit a repellor that is the product of the Cantor set and a smooth manifold, and the dynamics on the Cantor set are isomorphic to that of the Bernoulli shift. This is essentially the Markov partition. The term shift is in reference to the shift operator, which may be used to study Bernoulli schemes. The Ornstein isomorphism theorem shows that Bernoulli shifts are isomorphic when their entropy is equal.

## Definition

A Bernoulli scheme is a discrete-time stochastic process where each independent random variable may take on one of N distinct possible values, with the outcome i occurring with probability $p_{i}$, with i = 1, ..., N, and
    $\sum _{i=1}^{N}p_{i}=1.$
The sample space is usually denoted as
    $X=\{1,\ldots ,N\}^{\mathbb {Z} }$
as a shorthand for
    $X=\{x=(\ldots ,x_{-1},x_{0},x_{1},\ldots ):x_{k}\in \{1,\ldots ,N\}\;\forall k\in \mathbb {Z} \}.$
The associated measure is called the Bernoulli measure
    $\mu =\{p_{1},\ldots ,p_{N}\}^{\mathbb {Z} }$
The σ-algebra ${\mathcal {A}}$ on X is the product sigma algebra; that is, it is the (countable) direct product of the σ-algebras of the finite set {1, ..., N}. Thus, the triplet
    $(X,{\mathcal {A}},\mu )$
is a measure space. A basis of ${\mathcal {A}}$ is the cylinder sets. Given a cylinder set $[x_{0},x_{1},\ldots ,x_{n}]$, its measure is
    $\mu \left([x_{0},x_{1},\ldots ,x_{n}]\right)=\prod _{i=0}^{n}p_{x_{i}}$
The equivalent expression, using the notation of probability theory, is
    $\mu \left([x_{0},x_{1},\ldots ,x_{n}]\right)=\mathrm {Pr} (X_{0}=x_{0},X_{1}=x_{1},\ldots ,X_{n}=x_{n})$
for the random variables $\{X_{k}\}$
The Bernoulli scheme, as any stochastic process, may be viewed as a dynamical system by endowing it with the shift operator T where
    $T(x_{k})=x_{k+1}.$
Since the outcomes are independent, the shift preserves the measure, and thus T is a measure-preserving transformation. The quadruplet
    $(X,{\mathcal {A}},\mu ,T)$
is a measure-preserving dynamical system, and is called a Bernoulli scheme or a Bernoulli shift. It is often denoted by
    $BS(p)=BS(p_{1},\ldots ,p_{N}).$
The N = 2 Bernoulli scheme is called a Bernoulli process. The Bernoulli shift can be understood as a special case of the Markov shift, where all entries in the adjacency matrix are one, the corresponding graph thus being a clique.

## Matches and metrics

The Hamming distance provides a natural metric on a Bernoulli scheme. Another important metric is the so-called ${\overline {f}}$ metric, defined via a supremum over string matches.
Let $A=a_{1}a_{2}\cdots a_{m}$ and $B=b_{1}b_{2}\cdots b_{n}$ be two strings of symbols. A match is a sequence M of pairs $(i_{k},j_{k})$ of indexes into the string, i.e. pairs such that $a_{i_{k}}=b_{j_{k}},$ understood to be totally ordered. That is, each individual subsequence $(i_{k})$ and $(j_{k})$ are ordered: $1\leq i_{1}<i_{2}<\cdots <i_{r}\leq m$ and likewise $1\leq j_{1}<j_{2}<\cdots <j_{r}\leq n.$
The ${\overline {f}}$-distance between $A$ and $B$ is
    ${\overline {f}}(A,B)=1-{\frac {2\sup |M|}{m+n}}$
where the supremum is being taken over all matches $M$ between $A$ and $B$. This satisfies the triangle inequality only when $m=n,$ and so is not quite a true metric; despite this, it is commonly called a "distance" in the literature.

## Generalizations

Most of the properties of the Bernoulli scheme follow from the countable direct product, rather than from the finite base space. Thus, one may take the base space to be any standard probability space $(Y,{\mathcal {B}},\nu )$, and define the Bernoulli scheme as
    $(X,{\mathcal {A}},\mu )=(Y,{\mathcal {B}},\nu )^{\mathbb {Z} }$
This works because the countable direct product of a standard probability space is again a standard probability space.
As a further generalization, one may replace the integers $\mathbb {Z}$ by a countable discrete group $G$, so that
    $(X,{\mathcal {A}},\mu )=(Y,{\mathcal {B}},\nu )^{G}$
For this last case, the shift operator is replaced by the group action
    $gx(f)=x(g^{-1}f)$
for group elements $f,g\in G$ and $x\in Y^{G}$ understood as a function $x:G\to Y$ (any direct product $Y^{G}$ can be understood to be the set of functions $[G\to Y]$, as this is the exponential object). The measure $\mu$ is taken as the Haar measure, which is invariant under the group action:
    $\mu (gx)=\mu (x).\,$
These generalizations are also commonly called Bernoulli schemes, as they still share most properties with the finite case.

## Properties

Ya. Sinai demonstrated that the Kolmogorov entropy of a Bernoulli scheme is given by
    $H=-\sum _{i=1}^{N}p_{i}\log p_{i}.$
This may be seen as resulting from the general definition of the entropy of a Cartesian product of probability spaces, which follows from the asymptotic equipartition property. For the case of a general base space $(Y,{\mathcal {B}},\nu )$ (i.e. a base space which is not countable), one typically considers the relative entropy. So, for example, if one has a countable partition $Y'\subset Y$ of the base Y, such that $\nu (Y')=1$, one may define the entropy as
    $H_{Y'}=-\sum _{y'\in Y'}\nu (y')\log \nu (y').$
In general, this entropy will depend on the partition; however, for many dynamical systems, it is the case that the symbolic dynamics is independent of the partition (or rather, there are isomorphisms connecting the symbolic dynamics of different partitions, leaving the measure invariant), and so such systems can have a well-defined entropy independent of the partition.

## Ornstein isomorphism theorem

The Ornstein isomorphism theorem states that two Bernoulli schemes with the same entropy are isomorphic. The result is sharp, in that very similar, non-scheme systems, such as Kolmogorov automorphisms, do not have this property.
The Ornstein isomorphism theorem is in fact considerably deeper: it provides a simple criterion by which many different measure-preserving dynamical systems can be judged to be isomorphic to Bernoulli schemes. The result was surprising, as many systems previously believed to be unrelated proved to be isomorphic. These include all finite stationary stochastic processes, subshifts of finite type, finite Markov chains, Anosov flows, and Sinai's billiards: these are all isomorphic to Bernoulli schemes.
For the generalized case, the Ornstein isomorphism theorem still holds if the group G is a countably infinite amenable group.

## Bernoulli automorphism

An invertible, measure-preserving transformation of a standard probability space (Lebesgue space) is called a Bernoulli automorphism if it is isomorphic to a Bernoulli shift.

## Loosely Bernoulli

A system is termed "loosely Bernoulli" if it is Kakutani-equivalent to a Bernoulli shift; in the case of zero entropy, if it is Kakutani-equivalent to an irrational rotation of a circle.