Simulations
Simulations
The Wiener Process
The Wiener process is the scaling limit of a random walk, characterized by four properties:
- a.s.
- Independent increments: for .
- Gaussian increments: .
- Continuous paths a.s.
The Wiener process can be constructed via the Karhunen-Loève expansion:
where are i.i.d. The series converges uniformly on a.s.
Despite being continuous, is nowhere differentiable. The graph has Hausdorff dimension ; the path in dimensions fills space with dimension . The self-similarity is behind its appearance across scales in physics and finance.
The Ising Model
Spins on a lattice , with Hamiltonian
and Gibbs measure .
In there is a critical temperature . Above correlations decay exponentially (paramagnetic phase). Below the system magnetizes spontaneously.
For sufficiently low temperatures in 2D, the ordered state is stable. A domain wall of length costs energy , while the number of such contours grows as . The probability of a contour is bounded by , which is summable for large .
Near (Onsager), observables follow power laws: , . The exponents depend on dimension but not on lattice details (universality).
The Galton Board
Each ball bounces left or right with at every peg. The final position is , a sum of independent Bernoulli trials.
As :
In the continuum limit, the particle density satisfies the heat equation . The Gaussian is its Green’s function — the density that maximizes entropy subject to a variance constraint.
Geodesics on Curved Manifolds
On a Riemannian manifold , a geodesic satisfies the equation
where are the Christoffel symbols of the Levi-Civita connection. On surfaces of constant positive curvature (), geodesics are great circles. On the torus , Gaussian curvature changes sign, positive on the outer equator, negative on the inner, zero at top and bottom. On a saddle (hyperbolic paraboloid), everywhere and geodesics diverge.
Vertices are colored by Gaussian curvature, warm tones for and cool tones for .
Weather-Driven Flow
A particle system with drift and diffusion set by live weather from Chapel Hill, NC (Open-Meteo API). Wind velocity determines the mean drift, temperature scales the diffusion coefficient , precipitation adds a gravitational component, and cloud cover modulates particle density.
Ornstein-Uhlenbeck on Live Forecast
The 24-hour temperature forecast for Chapel Hill serves as the mean function for a time-inhomogeneous Ornstein-Uhlenbeck process:
The stationary variance gives the confidence band. The forecast curve is deterministic, the sample paths are stochastic. Real data from Open-Meteo.
Bayesian Visitor Profile
A Dirichlet prior over six interest categories, updated from scroll position and visible content. Each observation increments the corresponding and the posterior mean concentrates as evidence accumulates, with credible intervals narrowing at . State persists in localStorage.