Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Stochastic Differential Equations: A Crash Course

This section provides a theoretical foundation for understanding Stochastic Differential Equations (SDEs) and introduces the concepts needed for the practical tutorial. This content is adapted from Appendix B of the corresponding publication Seifner et al. (2025).

Mathematical Foundation

A dd-dimensional stochastic process x(t)x(t) follows an Itô stochastic differential equation (SDE) if it satisfies:

xi(t)=xi(t)+ttfi(x(t),t)dt+jmttGij(x(t),t)dWj(t)x_i(\overline{t})=x_i(\underline{t})+\int_{\underline{t}}^{\overline{t}} f_i(x(t'),t')dt'+\sum_{j}^{m}\int_{\underline{t}}^{\overline{t}} G_{ij}(x(t'),t')dW_j(t')

for all id, tti\leq d,\ \underline{t}\leq \overline{t} and some vector-valued drift function f:Rd×R+Rdf:\mathbb{R}^d\times \mathbb{R}^+\to\mathbb{R}^d and diffusion matrix G:Rd×R+Rd×mG:\mathbb{R}^d\times\mathbb{R}^+\to\mathbb{R}^{d\times m}, where W:R+RmW:\mathbb{R}^+\to\mathbb{R}^m is a standard mm-dimensional Wiener process.

In differential notation, this is commonly written as:

dx(t)=f(x(t),t)dt+G(x(t),t)dW(t)dx(t)=f(x(t),t)dt+G(x(t),t)dW(t)

Model Capabilities and Assumptions

Our Foundation Inference Model (FIM) for SDEs can estimate both the drift function ff and diffusion function GG in a zero-shot manner directly from observed trajectory data. The model assumes diagonal diffusion, i.e.

G(x)=diag(g1(x),,gd(x)) G(x)=\text{diag}(\sqrt{g_1(x)},\dots,\sqrt{g_d(x)})

and therefore returns the vector field (g^1(x),,g^d(x))(\sqrt{\hat{g}_1(x)},\dots,\sqrt{\hat{g}_d(x)}).

Furthermore this model assumes purely state-dependent drift and diffusion!

References
  1. Seifner, P., Cvejoski, K., Berghaus, D., Ojeda, C., & Sánchez, R. J. (2025). In-Context Learning of Stochastic Differential Equations with Foundation Inference Models. The Thirty-Ninth Annual Conference on Neural Information Processing Systems. https://openreview.net/forum?id=ceCJPoZOKJ