Simulations

Simulations

Interactive explorations of stochastic processes and phase transitions. Below are three fundamental systems in statistical physics, accompanied by their rigorous mathematical descriptions.


1. The Wiener Process (Brownian Motion)

The Wiener process WtW_t is the scaling limit of a random walk. It is the fundamental object in stochastic calculus and is characterized by:

  1. Starts at 0: W0=0W_0 = 0 almost surely.
  2. Independent Increments: WtWsFsW_t - W_s \perp \mathcal{F}_s for t>st > s.
  3. Gaussian Increments: WtWsN(0,ts)W_t - W_s \sim \mathcal{N}(0, t-s).
  4. Continuity: Paths tWtt \mapsto W_t are continuous almost surely.
Theorem (Lévy's Construction).

The Wiener process can be constructed as a random Fourier series (Karhunen-Loève expansion):

Wt=tπZ0+n=12πnZnsin(nπt)W_t = \frac{t}{\sqrt{\pi}} Z_0 + \sum_{n=1}^\infty \frac{\sqrt{2}}{\pi n} Z_n \sin(n \pi t)

where ZnN(0,1)Z_n \sim \mathcal{N}(0, 1) are i.i.d. This series converges uniformly on [0,1][0, 1] almost surely, proving existence.

Fractal Properties: While continuous, WtW_t is nowhere differentiable. It is a fractal with Hausdorff dimension transition 1.51.5 (for the graph) and 22 (for the path in 2\ge 2 dimensions). The process is Self-Similar: 1cWct=dWt\frac{1}{\sqrt{c}} W_{ct} \stackrel{d}{=} W_t. This scale invariance explains why it emerges universally in diverse multi-scale systems.

Fig 1.1: 2D Brownian Motion (Wiener Process)

2. The Ising Model & Universality

The Ising Model is the “hydrogen atom” of statistical mechanics—the simplest system exhibiting a phase transition. Consider a lattice Λ\Lambda of spins σi{1,+1}\sigma_i \in \{-1, +1\}. The Hamiltonian is:

H(σ)=Ji,jσiσjH(\sigma) = -J \sum_{\langle i, j \rangle} \sigma_i \sigma_j

The probability of a configuration is given by the Gibbs measure μ(σ)=1ZeβH(σ)\mu(\sigma) = \frac{1}{Z} e^{-\beta H(\sigma)}.

Phase Transition: In d2d \ge 2, there exists a critical temperature TcT_c (Curie point).

Theorem (Peierls Argument (1936)).

For sufficiently low temperatures in 2D, the ordered state is stable. Proof Sketch: A domain wall (boundary between + and - spins) of length LL costs energy 2JL2JL. The number of such contours grows as 3L3^L. The probability is bounded by (3e2βJ)L\sum (3 e^{-2\beta J})^L. For large β\beta (low TT), this sum is small, implying that global order is practically strictly enforced.

Critical Exponents: Near Tc2.269T_c \approx 2.269 (Onsager’s solution), observables follow power laws: m(TcT)βm \sim (T_c - T)^\beta, χTTcγ\chi \sim |T - T_c|^{-\gamma}. These exponents depend only on dimension, not lattice details—a phenomenon called Universality.

Temperature: 2.27Critical
Fig 1.2: 2D Ising Model (Draw to Magnetize)

3. The Galton Board & The Heat Equation

The Galton Board demonstrates the Central Limit Theorem physically. Balls bounce left or right with p=0.5p=0.5. The final position is the sum of independent Bernoulli trials: X=i=1NBiX = \sum_{i=1}^N B_i.

Theorem (De Moivre-Laplace Theorem).

As NN \to \infty, the probability mass function of the Binomial distribution converges to the Gaussian PDF:

(Nk)pk(1p)Nk12πNp(1p)exp((kNp)22Np(1p))\binom{N}{k} p^k (1-p)^{N-k} \approx \frac{1}{\sqrt{2\pi N p(1-p)}} \exp \left( - \frac{(k - Np)^2}{2 N p(1-p)} \right)

Connection to PDEs: Let u(x,t)u(x, t) be the density of particles. The discrete random walk converges to the diffusion equation (Heat Equation):

ut=DΔu\frac{\partial u}{\partial t} = D \Delta u

The Gaussian distribution is simply the Green’s function (fundamental solution) of the heat equation. It represents the entropy-maximizing spreading of mass over time.

Fig 1.3: Galton Board (Central Limit Theorem)