Skip to content
AI360Xpert
Beta

Kolmogorov Extension Theorem

If your finite snapshots of a random process agree with each other when you zoom out, exactly one infinite process extends them all. Consistency builds the whole film.

Three nested finite laws project onto each other by summing out coordinates, and one infinite law extends them all
Three nested finite laws project onto each other by summing out coordinates, and one infinite law extends them all

Why Does This Exist?

Stochastic processes run forever: infinite coin tosses, lifelong sensor streams, endless text. Nobody can write down an infinite-dimensional distribution directly, so practitioners specify what they can: the law of the first toss, of the first two, of the first ten. But arbitrary finite snapshots may contradict each other, and then no infinite process matches them all.

Kolmogorov's theorem names the single check that prevents this. If snapshots agree under marginalization, exactly one infinite law extends them. Gaussian processes, Brownian motion and every autoregressive text model stand on this guarantee: finite pieces you can write down, infinite behavior you actually want. The pieces live in probability spaces; assembling independent ones uses product measures.

The one idea you need first

Marginalization sums (or integrates) out coordinates you stop tracking. If P2P_2 governs two tosses, its first-toss marginal is P2(X1=a)=∑bP2(a,b)P_2(X_1 = a) = \sum_b P_2(a, b). Consistency demands this marginal equal the directly specified P1(a)P_1(a) for every aa.

Think of It Like This

A film from matching stills

An animator draws frame 1, then frames 1 to 2, then frames 1 to 3. Each longer strip must start exactly like the shorter one it extends: same poses, same timing. If strip 3 opens differently than strip 2 did, no single film contains both.

Consistency is that matching-edges rule. Kolmogorov says matching strips splice into exactly one infinite reel. Where it stops: the theorem hands you existence on abstract sequence space, not a simulator. Sampling the infinite object efficiently is a separate engineering problem.

How It Actually Works

For each nn, specify a law PnP_n on the first nn coordinates. The family is consistent when projecting Pn+1P_{n+1} down recovers PnP_n:

Pn(A)=Pn+1(A×X)for every event A about the first n coordinatesP_n(A) = P_{n+1}(A \times \mathcal{X}) \quad \text{for every event } A \text{ about the first } n \text{ coordinates}

In plain words: Pn+1P_{n+1} is a law about n+1n+1 variables, A×XA \times \mathcal{X} ignores the last one, and consistency says the long snapshot agrees with the short one wherever they overlap. The theorem: on standard spaces (finite alphabets, Euclidean chunks), a consistent family extends to exactly one law PP on infinite sequences whose every nn-marginal is PnP_n. Uniqueness comes free because finite-cylinder events pin down the whole law.

Worked example

Fair coin tosses. P1P_1 gives heads and tails 1/21/2 each. P2P_2 gives each pair 1/41/4. Check consistency: P2(X1=H)=P2(H,H)+P2(H,T)=1/4+1/4=1/2=P1(H)P_2(X_1 = H) = P_2(H,H) + P_2(H,T) = 1/4 + 1/4 = 1/2 = P_1(H). Same for tails.

P3P_3 gives each triple 1/81/8; projecting onto two coordinates gives 1/8+1/8=1/4=P21/8 + 1/8 = 1/4 = P_2 on every pair. So the family is consistent, and Kolmogorov delivers the unique infinite fair-coin law PP. Break it instead: declare P2(H,H)=1/2P_2(H,H) = 1/2 and P2=1/6P_2 = 1/6 on the other three pairs. Then P2(X1=H)=1/2+1/6=2/3≠1/2P_2(X_1 = H) = 1/2 + 1/6 = 2/3 \ne 1/2: inconsistent, no infinite process extends both.

Code

Check marginal consistency numerically: project the two-toss law down and compare with the one-toss law.

import numpy as np

def is_consistent(p1: np.ndarray, p2: np.ndarray) -> tuple[bool, np.ndarray]:    marginal = p2.sum(axis=1)  # sum out the second toss    return bool(np.allclose(marginal, p1)), marginal

p1 = np.array([0.5, 0.5])p2 = np.full((2, 2), 0.25)print(is_consistent(p1, p2))  # -> (True, array([0.5, 0.5]))

Marginal [0.5,0.5][0.5, 0.5] matches P1P_1: consistent, so the extension exists.

Watch Out For

Assuming any finite specs extend to a process

Symptom: separately fitted n-gram tables for different nn contradict each other, and sampling drifts between contexts. Fix: build longer laws by extending shorter ones (conditionals times marginals) rather than fitting each order independently.

Forgetting the space must be standard

Symptom: consistency holds yet pathologies appear (no regular conditional, no continuous version) on exotic function spaces. Fix: stay on Polish spaces (complete separable metric) where the theorem's conclusion is watertight; that covers every ML use.

The Quick Version

  • Finite snapshots PnP_n must marginalize onto each other; that agreement is consistency.
  • Consistent families on standard spaces extend to exactly one infinite law.
  • Fair coins pass the check: 1/4+1/4=1/21/4 + 1/4 = 1/2 at every projection step.
  • Inconsistent snapshots admit no common process, which independent per-order fitting risks.
  • Gaussian processes and autoregressive models inherit their legitimacy from this theorem.