sItô compiles a system of stochastic differential equations into a Monte Carlo program and differentiates the resulting simulation with respect to the model parameters.
Model and discretization
A state process $X_t \in \mathbb{R}^d$ driven by an $m$-dimensional Wiener process $W_t$ is specified by its drift $a(t, X_t; \theta)$ and diffusion $b(t, X_t; \theta)$:
$$ dX_t = a(t, X_t; \theta)\,dt + b(t, X_t; \theta)\,dW_t . $$Models can be written in Itô or Stratonovich form; Stratonovich equations are converted symbolically to their Itô equivalent before discretization. From the symbolic expressions for $a$ and $b$, the compiler applies the operators $L^0$ and $L^j$ to construct the chosen discretization—Euler, Milstein, strong Taylor 1.5, weak Euler, or weak Taylor 2.0—and generates machine code for that specific model, scheme, and time grid. Compilation and execution are separate: a model is compiled once and can then be run repeatedly with different initial values, parameter vectors $\theta$, and seeds.
Outputs and sensitivities
A small specification language defines pathwise transforms—such as running integrals, maxima, and first-passage times—and declares which summaries (Path, Terminal, Mean) to record. Only requested quantities are accumulated during a run, so memory scales with the requested output rather than the full path matrix.
Because parameters $\theta$ stay symbolic through discretization and code generation, automatic differentiation on the compiled program yields pathwise sensitivities
$$ \partial_{\theta_i}\,\mathbb{E}\,f(X_T^\theta) = \mathbb{E}\,\partial_{\theta_i} f(X_T^\theta) $$for Lipschitz payoffs and smooth schemes. Discontinuous payoffs (such as digital options) and higher-order derivatives of piecewise-linear payoffs fall outside pathwise differentiation.
Scope and documentation
The live sItô demo enforces resource limits and restricts strong higher-order schemes to one-dimensional or diagonal noise, where iterated Lévy areas are not required.
For a practical walkthrough from equations to plots and sensitivities, start with Using sItô. Exact identifier rules, supported functions, statistics grammar, and scheme applicability are gathered in the sItô Reference, while the symbolic pipeline, discretization schemes, and automatic differentiation design are derived in Compiling parametric SDEs into fast Monte Carlo simulations. Measured CPU and GPU timings across problem sizes, schemes, and sensitivity methods are reported in CPU and GPU simulation performance and sensitivity calculation performance. Worked case studies in the notes examine Stratonovich noise on manifolds, the Lamperti transform, multi-noise Milstein limits, and pathwise vs. bumped Greeks.