Penetrating the secrets of stochastic complexity

Ito Agentics

Markets look random. Randomness has structure. We search for that structure with mathematics and build trading agents on what we find.

\mathrm{d}f(t,X_t)=\left(\frac{\partial f}{\partial t}+\mu_t\,\frac{\partial f}{\partial x}+\frac{1}{2}\,\sigma_t^{2}\,\frac{\partial^{2} f}{\partial x^{2}}\right)\mathrm{d}t\brk{}+\sigma_t\,\frac{\partial f}{\partial x}\,\mathrm{d}W_t
Itô's lemma, 1951
Live

Randomness, evolving

Each picture below is a simulation running in your browser right now. Under each one is the equation it follows.

01   Chaos with noise
\mathrm{d}\!\begin{pmatrix}X\\Y\\Z\end{pmatrix}=\begin{pmatrix}\sigma(Y-X)\\X(\rho-Z)-Y\\XY-\beta Z\end{pmatrix}\mathrm{d}t+\varepsilon\,\mathrm{d}W_t,\qquad \sigma=10,\ \ \rho=28,\ \ \beta=\tfrac{8}{3},\ \ \varepsilon=1

Every line starts at the same point. Small random kicks separate them, and within seconds they spread over the whole shape. The picture restarts from a new point every 20 seconds or so.

02   Stochastic flow
\mathrm{d}X_t=\nabla^{\perp}\psi(X_t,t)\,\mathrm{d}t+\sigma\,\mathrm{d}W_t,\qquad \psi(x,y,t)=\sin(x+at)\cos y+\tfrac{1}{2}\sin(2y-x+bt)

Thousands of particles carried by a swirling current that changes over time, each one also shaken by its own noise. A particle that leaves the frame re-enters at a random point.

03   Diffusion
\mathrm{d}X_t=\mathrm{d}W_t\ \ \Longrightarrow\ \ p(x,t)=\frac{1}{2\pi t}\,e^{-|x|^{2}/2t},\qquad \mathbb{E}\,|X_t|^{2}=2t

Particles released from one point, each taking random steps. The ring has radius √(2t), their typical distance from the start. The bars count particles from left to right. The curve is the bell curve the theory predicts.

04   Eigenvalues that repel
\mathrm{d}H_t=-\tfrac{1}{2}H_t\,\mathrm{d}t+\mathrm{d}B_t\ \ \Longrightarrow\ \ \mathrm{d}\lambda_i=\mathrm{d}b_i+\bigg(\frac{1}{2}\sum_{j\neq i}\frac{1}{\lambda_i-\lambda_j}-\frac{\lambda_i}{2}\bigg)\mathrm{d}t

A 12 by 12 symmetric matrix with randomly moving entries. Its eigenvalues are computed at every step. They start together at zero, fan out, and never cross: each one pushes its neighbours away.

05   Building Brownian motion
W\!\left(\tfrac{s+t}{2}\right)=\frac{W(s)+W(t)}{2}+\frac{\sqrt{t-s}}{2}\,Z,\qquad Z\sim\mathcal{N}(0,1)

Lévy's construction. Start with a straight line. Move the midpoint of every segment by a random amount, then repeat on the smaller segments. Ten rounds give a path with 1,025 points.

06   The shape of data
\mathrm{VR}_{\varepsilon}(X)=\big\{\,\sigma\subseteq X\ :\ d(x,y)\le\varepsilon\ \ \forall\,x,y\in\sigma\,\big\},\qquad \beta_0=\#\,\text{components}

A disc of diameter ε grows around every data point. Two points are joined when their discs touch. Separate clusters merge and loops appear, then fill in. β₀ counts the pieces still separate.