51 Probability and Statistics

Probability and statistics are built from cuts of the identity and from states.

For noncommuting cuts, the Born rule requires Gleason’s theorem in addition.

51.1 Events and probability

P1 (events). Events are cuts \(A=A^2=A^{*}\) that commute with one another. They form a Boolean algebra:

\begin{equation} A\wedge B=AB, \qquad \neg A=1-A, \qquad A\vee B=A+B-AB . \tag{1370}\end{equation}

P2 (probability). A probability is a state on these cuts, \(P(A)=\omega (A)\):

These are the Kolmogorov axioms [804]. Countable additivity is normality of the state.

P3 (splittings). For a splitting \(1=\sum _iA_i\) into orthogonal cuts, \(p_i=\omega (A_i)\ge 0\) and \(\sum _ip_i=1\): a probability distribution is a state evaluated on a splitting of the identity.

P4 (Born rule). For a density \(\rho \), \(\omega (A)=\mathrm {Tr}(\rho A)\). Conversely, every assignment additive over every splitting of the identity into projections, commuting or not, has this form in dimension at least three [1485]. Idempotency gives the axioms on each commuting family; Gleason’s theorem extends them to all cuts.

51.2 Random variables, expectation, variance

P5 (random variables). A random variable is a combination of commuting cuts,

\begin{equation} X=\sum _ix_iA_i, \qquad \mathbb E[X]=\omega (X)=\sum _ix_ip_i . \tag{1371}\end{equation}

P6 (variance).

\begin{equation} \mathrm {Var}(X)=\omega \bigl ((X-\mathbb E X)^2\bigr )=\mathbb E[X^2]-(\mathbb EX)^2\ge 0, \tag{1372}\end{equation}
nonnegative because \((X-\mathbb EX)^2\) is a square: the cone.

P7 (Bernoulli). A single cut \(X=A\) has \(X^2=X\), so with \(p=\omega (A)\),

\begin{equation} \mathbb E[X]=p, \qquad \mathbb E[X^2]=p, \qquad \mathrm {Var}(X)=p(1-p). \tag{1373}\end{equation}
The variance is the product of the weights of the two complementary cuts \(A\) and \(1-A\). It vanishes when one cut has all the weight and is largest, \(\tfrac 14\), at \(p=\tfrac 12\).

51.3 Independence and counting

P8 (independence). Independent variables live on a tensor product with a product state, \(\omega =\omega _1\otimes \omega _2\):

\begin{equation} \mathbb E[XY]=\mathbb E[X]\,\mathbb E[Y], \qquad \mathrm {Var}(X+Y)=\mathrm {Var}(X)+\mathrm {Var}(Y). \tag{1374}\end{equation}

P9 (binomial). For \(N\) independent copies of a cut \(A\) with weight \(p\), expand

\begin{equation} 1^{\otimes N}=\bigl (A+(1-A)\bigr )^{\otimes N}=\sum _{S\subseteq \{1,\ldots ,N\}}\ \bigotimes _{k\in S}A\otimes \bigotimes _{k\notin S}(1-A). \tag{1375}\end{equation}
Grouping the \(\binom Nk\) terms with \(|S|=k\),
\begin{equation} P(S_N=k)=\binom Nkp^k(1-p)^{N-k}, \qquad \mathbb E S_N=Np, \qquad \mathrm {Var}\,S_N=Np(1-p). \tag{1376}\end{equation}

P10 (other laws).

Law From
Poisson binomial with \(Np=\lambda \), \(N\to \infty \)
multinomial splitting of \(1\) into more than two cuts
geometric first success in a sequence of copies

51.4 Inequalities and the law of large numbers

P11 (Markov). For \(X\ge 0\) and \(a>0\), the cut \(A=1_{\{X\ge a\}}\) satisfies \(X-aA\ge 0\), an element of the cone. Applying the state,

\begin{equation} P(X\ge a)\le \frac {\mathbb E X}{a}. \tag{1377}\end{equation}

P12 (Chebyshev). Applying P11 to \((X-\mathbb EX)^2\),

\begin{equation} P\bigl (|X-\mathbb EX|\ge \epsilon \bigr )\le \frac {\mathrm {Var}(X)}{\epsilon ^2}. \tag{1378}\end{equation}

P13 (law of large numbers). For the mean \(\bar X_N=S_N/N\) of \(N\) independent copies, by P8, \(\mathrm {Var}\,\bar X_N=\sigma ^2/N\), and by P12

\begin{equation} P\bigl (|\bar X_N-\mu |\ge \epsilon \bigr )\le \frac {\sigma ^2}{N\epsilon ^2}\to 0 . \tag{1379}\end{equation}
For Bernoulli variables \(\sigma ^2=p(1-p)\). The convergence is of distributions, not of operators.

51.5 Characteristic functions and the central limit theorem

P14 (characteristic functions are characters).

\begin{equation} \varphi _X(t)=\mathbb E\bigl [e^{itX}\bigr ] \tag{1380}\end{equation}
is the expectation of the characters \(x\mapsto e^{itx}\) of \(\mathbb R\), which take values in the circle \(S^1\). For independent variables, \(\varphi _{X+Y}=\varphi _X\varphi _Y\) by P8, and \(|\varphi _X|\le 1\).

P15 (expansion). If \(\mathbb E X=\mu \) and \(\mathrm {Var}X=\sigma ^2\), the centred variable \(Y=X-\mu \) has \(\mathbb EY=0\), and

\begin{equation} \varphi _Y(t)=1-\frac {\sigma ^2t^2}{2}+o(t^2). \tag{1381}\end{equation}
The linear term is absent because of centring: \(\mathbb E[X-\mu ]=\mu -\mu =0\).

P16 (central limit theorem). For \(Z_N=(S_N-N\mu )/(\sigma \sqrt N)\), by P14 and P15,

\begin{equation} \varphi _{Z_N}(t)=\Bigl (1-\frac {t^2}{2N}+o\bigl (\tfrac 1N\bigr )\Bigr )^N\to e^{-t^2/2}. \tag{1382}\end{equation}
Terms of order \(k\ge 3\) contribute \(N\cdot O(N^{-k/2})\to 0\). By Lévy’s continuity theorem [1233], \(Z_N\) converges in distribution to the standard Gaussian. For Bernoulli variables, \(\sigma ^2=p(1-p)\).

51.6 The Gaussian

P17 (normalisation).

\begin{equation} \int _{\mathbb R}e^{-x^2/2}\,dx=\sqrt {2\pi }, \tag{1383}\end{equation}
from the square of the integral in polar coordinates, where the factor \(2\pi \) is the circumference of the circle.

P18 (characteristic function). For \(g(x)=(2\pi )^{-1/2}e^{-x^2/2}\), \(\varphi _g(t)=e^{-t^2/2}\), the limit of P16.

P19 (stability). \(e^{-\sigma _1^2t^2/2}e^{-\sigma _2^2t^2/2}=e^{-(\sigma _1^2+\sigma _2^2)t^2/2}\): sums of independent Gaussians are Gaussian, and the Gaussian is a fixed point of the normalised sum.

P20 (maximum entropy). For a density \(p\) with the mean and variance of a Gaussian \(g\), \(-\int p\log g=-\int g\log g\), since \(\log g\) is quadratic in \(x\). Hence

\begin{equation} h(g)-h(p)=D(p\,\|\,g)\ge 0 . \tag{1384}\end{equation}
The Gaussian has maximal entropy at fixed mean and variance.

51.7 Entropy and maximum entropy

P21 (Shannon). Hartley’s theorem fixes \(\log N\) for \(N\) equally likely outcomes, and grouping them into blocks of sizes \(n_i\) gives

\begin{equation} H(p)=-\sum _ip_i\log p_i, \qquad H\le \log N, \tag{1385}\end{equation}
with \(H(\tfrac 12,\tfrac 12)=\log 2\).

P22 (Gibbs). For \(\gamma =e^{-\beta H}/Z\) and any \(\rho \) with \(\mathrm {Tr}(\rho H)=\mathrm {Tr}(\gamma H)\),

\begin{equation} S(\gamma )-S(\rho )=D(\rho \,\|\,\gamma )\ge 0 . \tag{1386}\end{equation}
The Gibbs state maximises entropy at fixed mean energy [1223]. Here \(\beta \) is fixed by the energy, with \(\beta =0\) giving the normalised identity.

51.8 Conditioning and Bayes

P23 (conditioning). Given an event \(B\) with \(P(B)>0\), the conditioned state is

\begin{equation} \omega _B(X)=\frac {\omega (BXB)}{\omega (B)}, \qquad P(A|B)=\frac {\omega (BAB)}{\omega (B)} . \tag{1387}\end{equation}

P24 (Bayes is commutativity). For commuting cuts, \(BAB=AB=BA=ABA\), so

\begin{equation} P(A|B)\,P(B)=\omega (AB)=\omega (BA)=P(B|A)\,P(A). \tag{1388}\end{equation}

P25 (failure for noncommuting cuts). If \(AB\neq BA\), then \(\omega (BAB)\) and \(\omega (ABA)\) generally differ, and the order of conditioning matters. In quantum mechanics there is no joint distribution for incompatible observables, and Bayes’ rule holds only within a commuting family.

51.9 Statistics

P26 (estimation). The sample mean is unbiased, \(\mathbb E\bar X_N=\mu \), with variance \(\sigma ^2/N\) (P8).

P27 (maximum likelihood is minimum relative entropy). For data with empirical distribution \(\hat p\) and a model \(q_\theta \),

\begin{equation} \frac 1N\sum _k\log q_\theta (x_k)=-H(\hat p)-D(\hat p\,\|\,q_\theta ), \tag{1389}\end{equation}
so maximising the likelihood minimises \(D(\hat p\|q_\theta )\).

P28 (Cramér–Rao). Let \(s=\partial _\theta \log q_\theta \) be the score, with \(\mathbb E s=0\) and \(\mathbb Es^2=I(\theta )\), the Fisher information. For an unbiased estimator \(\hat \theta \), \(\mathbb E[(\hat \theta -\theta )s]=1\). The Gram matrix of \((\hat \theta -\theta ,\,s)\) is positive, and its determinant gives

\begin{equation} \mathrm {Var}(\hat \theta )\ge \frac {1}{I(\theta )} \tag{1390}\end{equation}
[1234, 1235].

P29 (Markov chains). A stochastic matrix maps distributions to distributions, preserving the cone and the normalisation. A stationary distribution is a fixed point, \(\pi T=\pi \), and relative entropy to it does not increase along the chain, by data processing.

51.10 The chain

Steps Result From the identity
P1–P4 events, Kolmogorov axioms, Born rule commuting cuts, state; Gleason
P5–P7 expectation, variance, Bernoulli combinations of cuts; \(\Pi ^2=\Pi \)
P8–P10 independence, binomial product state; splitting \(1^{\otimes N}\)
P11–P13 Markov, Chebyshev, LLN positivity of the cone
P14–P16 characteristic functions, CLT characters \(e^{itx}\); centring
P17–P20 Gaussian circle, stability, \(D\ge 0\)
P21–P22 Shannon, Gibbs Hartley, grouping, \(D\ge 0\)
P23–P25 conditioning, Bayes commutativity of cuts
P26–P29 estimation, ML, Cramér–Rao, Markov chains Gram matrix, \(D\), cone

51.11 The character \(x\mapsto e^{itx}\)

The character \(x\mapsto e^{itx}\), used in time evolution, Fourier analysis and characteristic functions, has four ingredients, each built from the identity:

Ingredient Built as
\(i\) the swap of a pair followed by the sign on one place, \(J^2=-1\)
\(e\) the limit of joining \(N\) small steps, \((1+x/N)^N\)
the circle \(\{z\bar z=1\}\), covered by the line with fibre \(\mathbb Z\)
\(t\) the label of a continuous homomorphism from the line to the circle

Pontryagin duality, which sends a group to its characters, is an involution, and the Fourier transform is the change between two splittings of the identity whose matrix elements are the characters.

X1 (\(i\) from the swap). On pairs \((a,b)\), let \(\sigma (a,b)=(b,a)\) be the swap and \(\nu (a,b)=(-a,b)\) the sign on the first place, both involutions. Their composite

\begin{equation} J=\nu \circ \sigma , \qquad J(a,b)=(-b,a), \qquad J^2(a,b)=(-a,-b), \tag{1391}\end{equation}
satisfies \(J^2=-1\). \(J\) is the quarter turn, and its square, the half turn, is the sign. Writing \((a,b)=a+bi\), \(J\) is multiplication by \(i\).

X2 (\(t\) and the line). The line is \((\mathbb R,+)\), built by completion from the integers, with \(0\) the additive identity. A parameter \(t\) is a point of this group.

X3 (\(e\) from joining small steps). Joining \(N\) steps of size \(1+x/N\) gives \((1+x/N)^N\). For \(x>0\) the sequence increases and is bounded, so by completeness

\begin{equation} \exp (x)=\lim _{N\to \infty }\Bigl (1+\frac xN\Bigr )^N, \qquad e=\exp (1). \tag{1392}\end{equation}
Since \((1+\tfrac xN)(1+\tfrac yN)=1+\tfrac {x+y}N+\tfrac {xy}{N^2}\) and the last term contributes nothing in the limit,
\begin{equation} \exp (x+y)=\exp (x)\exp (y), \qquad \exp (0)=1 . \tag{1393}\end{equation}
The additive identity goes to the multiplicative identity. In the dual numbers, \(\exp (\varepsilon )=1+\varepsilon \), so \(\exp '=\exp \).

X4 (the complex exponential). With \(J\) in place of \(x\),

\begin{equation} \exp (\theta J)=\lim _{N\to \infty }\Bigl (1+\frac {\theta J}{N}\Bigr )^N . \tag{1394}\end{equation}
Each step has squared norm \(1+\theta ^2/N^2\), and \((1+\theta ^2/N^2)^N\to 1\), so \(\exp (i\theta )\) has norm one: joining many quarter-turn-sized nudges produces a rotation.

X5 (the circle). \(S^1=\{z:\ z\bar z=1\}\) is a group, and \(\theta \mapsto e^{i\theta }\) maps \((\mathbb R,+)\) onto it. The first positive zero of \(\cos =\mathrm {Re}\,e^{i\theta }\) is \(\pi /2\), the kernel is \(2\pi \mathbb Z\), and

\begin{equation} \mathbb Z\to \mathbb R\xrightarrow {\ \theta \mapsto e^{i\theta }\ }S^1: \tag{1395}\end{equation}
the line covers the circle, with fibre \(\mathbb Z\).

X6 (the univalent circle). In homotopy type theory, \(S^1\) is generated by a point and one self-identification \(\mathsf {loop}\). The helix \(S^1\to \mathcal U\) sends the point to \(\mathbb Z\) and transports along \(\mathsf {loop}\) by the successor. Its total space is contractible, and

\begin{equation} \Omega S^1\simeq \mathbb Z \tag{1396}\end{equation}
[1247]. This is X5 without analysis: the helix is the covering line, and one winding of the loop is \(e^{2\pi i}=1\).

X7 (characters and \(t\)). A continuous homomorphism \(\chi :(\mathbb R,+)\to S^1\) is

\begin{equation} \chi (x)=e^{itx} \tag{1397}\end{equation}
for a unique real \(t\), by the Cauchy equation for its local logarithm (Section 52, E12). The parameter \(t\) is the name of the character.

X8 (Pontryagin duality).

Group \(G\) Dual \(\widehat G\) Characters
\(\mathbb R\) \(\mathbb R\) \(e^{itx}\)
\(S^1\) \(\mathbb Z\) \(e^{in\theta }\)
\(\mathbb Z\) \(S^1\) \(n\mapsto z^n\)
\(\mathbb Z/n\) \(\mathbb Z/n\) roots of unity

Duality applied twice returns the group, \(\widehat {\widehat G}\cong G\): an involution on groups. Compact groups have discrete duals, and conversely.

X9 (Fourier transform). Positions and characters give two splittings of the same identity on \(L^2(\mathbb R)\):

\begin{equation} 1=\int dx\,|x\rangle \langle x|=\int \frac {dk}{2\pi }\,|k\rangle \langle k|, \qquad \langle x|k\rangle =e^{ikx}. \tag{1398}\end{equation}
The Fourier transform is the change from one splitting to the other. Plancherel’s theorem states that it is unitary, because both are splittings of one identity.

X10 (uses).

Use Character
time evolution \(e^{-iEt/\hbar }\) on each energy line
plane waves, momentum \(e^{ipx/\hbar }\)
characteristic functions \(\mathbb E[e^{itX}]\)
path integral phases \(e^{iS/\hbar }\)
Fourier series \(e^{in\theta }\) on \(S^1\)