sItô takes a system of stochastic differential equations written in symbolic form, compiles a dedicated Monte Carlo program for the model and time grid, and reports both the requested outputs and their sensitivities with respect to initial values and parameters.
The hosted page runs under demo limits so requests finish interactively on a shared machine. The active bounds—and why certain high-count stops on the sliders carry a lock icon—are listed under Demo limits directly on the page. Everything below focuses on going from equations on paper to plots and numerical results in the interface. For complete grammar and primitive tables, see the sItô Reference; for the symbolic pipeline underneath, see Compiling parametric SDEs into fast Monte Carlo simulations.
Workspace and workflow
The form moves from mathematical definition down to numerical settings:
- Model: toggle between Itô and Stratonovich calculus, load any of the 37 pre-filled Examples, inspect the live typeset equations above the editor, and expand Define the model to edit variables, drift, diffusion, optional coordinate transformations, initial state, and parameters.
- Statistics: declare the outputs to record in What to compute, one expression per line, with clickable templates under Statistics you can use.
- Method: choose a discretization scheme from Strong or Weak.
- Monte Carlo: inspect the active grid summary and open Settings to choose paths, steps, horizon $T$, floating-point precision, and hardware.
Pressing Run simulation compiles the model and streams results into the panel alongside the form. Once a result appears, Share generates a URL containing the model specification; opening that link restores the form and re-runs the simulation rather than storing server-side results. Examples are not built-in special cases—each example simply fills the form so you can inspect or alter any field.
Defining an Itô or Stratonovich process
A $d$-dimensional state process $X_t$ driven by an $m$-dimensional Wiener process $W_t$ takes the form
$$ dX_t = a(t, X_t; \theta)\,dt + B(t, X_t; \theta)\,dW_t $$under the Itô toggle, or $a(t, X_t; \theta)\,dt + B(t, X_t; \theta) \circ dW_t$ under Stratonovich. Choosing Stratonovich converts the system symbolically into its equivalent Itô drift before discretization, which is essential when noise acts along a curved manifold: pure rotational noise preserves the unit circle in Stratonovich form while pushing paths outward in Itô form, as examined in Stratonovich keeps the circle and Stratonovich versus Itô for geometric Brownian motion. The pre-filled rotating-angle example lets you run both calculi side by side.

c = cos(theta), s = sin(theta)): all five simulated trajectories stay locked onto the unit circle $c^2 + s^2 = 1$. Open rotating-angle circle in sItô ↗

Inside Define the model, list comma-separated State variables such as S, v and Parameters such as mu, kappa, theta, xi, rho. The order of State variables fixes both the Drift lines and the rows of Diffusion. Drift takes one expression per line; Diffusion writes the matrix $B(t, X)$ with rows separated by ; or newlines and independent Wiener columns separated by ,. Time is always denoted t and the terminal horizon is T.
Correlated Brownian drivers enter directly via Cholesky decomposition in the diffusion columns. For the Heston model with spot S, variance v, and correlation rho:
State variables: S, v
Parameters: r, kappa, theta, xi, rho
Drift:
r * S
kappa * (theta - v)
Diffusion:
sqrt(max(v, 0)) * S, 0;
xi * sqrt(max(v, 0)) * rho, xi * sqrt(max(v, 0)) * sqrt(1 - rho^2)
The live preview updates as you type and typesets common Greek identifiers such as mu, kappa, theta, xi, and rho automatically, making dimension or transpose mistakes visible before running. Initial values and parameter numbers belong in Set initial values and parameters at the bottom of Define the model. The two-asset exchange setup in Correlated assets follows the same two-column pattern.
Coordinate transformations and Itô’s lemma
Many analytical reductions and numerical stabilizations rely on changing coordinates $Y_t = f(t, X_t)$. Expanding the Itô’s lemma block inside Define the model takes comma-separated names under Define and one smooth formula per new variable under $Y = f(t, X)$.
sItô differentiates $f$ symbolically, computes the induced diffusion and drift—including $\partial_t f$ and the second-order trace term $\frac{1}{2}\operatorname{tr}(B^\top \nabla^2 f\, B)$—and displays the derived SDE for $Y_t$ directly below the base system in the preview. Any statistic can then reference the transformed variables.
For instance, transforming geometric Brownian motion
$$ dS_t = \mu S_t\,dt + \sigma S_t\,dW_t $$with $y = \log(S)$, as in the log-transformed GBM example, yields constant-coefficient dynamics:
$$ dy_t = \left(\mu - \frac{1}{2}\sigma^2\right)dt + \sigma\,dW_t. $$More generally, choosing $y = \int dx/\sigma(x)$ flattens state-dependent volatility to unit diffusion, as derived in The Lamperti transform.

median 4.53, mean 4.74). Open Gompertz growth in sItô ↗Because Itô’s lemma requires classical partial derivatives, discontinuous constructs such as Indicator cannot appear in $Y = f(t, X)$. Discontinuous payoffs and path-dependent functionals belong in Statistics, leaving the smooth state dynamics intact.
Statistics and graphical views
What to compute controls both the numerical reductions compiled into the simulation loop and how the results panel renders them:
| Intent | Expression | Output view |
|---|---|---|
| Ensemble of paths over time | Path(x) | Median curve with quantile bands over $[0, T]$ |
| Terminal distribution | Terminal(x) | Histogram and summary moments at $t = T$ |
| 2D or 3D phase portrait | Path(x, y) or Path(x, y, z) | Small bundle of sample trajectories in state space |
| Joint terminal law | Terminal(x, y) | 2D density scatter and heatmap at $t = T$ |
| Time-indexed ensemble curve | Mean(x), Variance(x), Std(x), Quantile(x, 0.9) | Curve over $[0, T]$ with time derivative and ∂ Sensitivities tab |
| Scalar summary at horizon | Terminal(Mean(x)), Mean(Terminal(PathMax(x))) | Single estimated value and parameter sensitivities |
Path functionals turn each trajectory into a derived process without modifying the SDE:
PathMax(x)andPathMin(x)track running extrema, connecting directly to the continuous hitting law in The reflection principle and the running-maximum example.Integral(x)computes $\int_0^t x_s\,ds$, enabling time-averaged payoffs such asTerminal(max(Integral(x)/T - k, 0))in Asian call by Monte Carlo and the Asian option example.FirstPassageTime(x < b)records the first grid time at which the condition holds, giving the crossing-time distribution studied in Default as a first passage and the default-time example.Indicator(cond)evaluates to $1$ wherecondholds and $0$ otherwise, soMean(Indicator(x > k))estimates $\mathbb{P}(X_t > k)$.
Whenever every line in Statistics is a two- or three-argument Path(...), such as Path(x, y, z) on the Lorenz system, the simulator switches automatically to a trajectory run—tracing a small bundle of paths finely in phase space rather than thousands of coarse ensemble samples. Adding any other statistic restores the full Monte Carlo ensemble grid.

Path(x) (path fan): ensemble density heatmap over $t \in [0, 1]$ with solid mean, dotted median, and dashed $5\% / 95\%$ quantile bands for the seasonal OU model. Open seasonal OU in sItô ↗

Path(y) where y = PathMax(x): accumulating the running supremum inline during path generation floors every trajectory at $1.0$ while the upper quantile steps monotonically upward. Open running maximum in sItô ↗

Path(f, alpha) (2D trajectory run): five paths integrated over 1,000 steps in $(F_t, \alpha_t)$ phase space, marking each origin with a dot and each endpoint with a ring. Open SABR 2D trajectories in sItô ↗

Path(x, y, z) (3D trajectory run): five 4,000-step Lorenz trajectories projected onto the $x$–$z$ plane alongside selectable pairwise and time projections. Open stochastic Lorenz in sItô ↗

Terminal(s): final-time kernel density estimate with mean ($1.053$), median ($1.078$), and $5\% / 95\%$ quantile lines for Heston spot under $\rho = -0.7$. Open Heston terminal distribution in sItô ↗

Terminal(r, B) (joint terminal law): 1,500 sampled final-time pairs overlaid with $50\%$, $80\%$, and $95\%$ probability contours and the sample mean cross under the CIR bond model. Open CIR bond joint law in sItô ↗

Value tab of Quantile(x, 0.9)): tracking the $90\%$ cross-sectional quantile of geometric Brownian motion across all $100$ steps from $1.0$ toward $1.33$. Open Quantile(x, 0.9) curve in sItô ↗Parameter sensitivities
Results for expectation, variance, standard deviation, and quantile statistics expose two tabs: Value and ∂ Sensitivities. The sensitivity tab reports partial derivatives with respect to every initial state and model parameter alongside the curve or scalar value.
When a statistic uses smooth operations such as Mean(max(x - K, 0)), Variance(x), or Quantile(x, 0.9), sensitivities are computed by pathwise automatic differentiation inside the same compiled run, propagating parameter derivatives step by step along each trajectory.
When a statistic contains a jump—such as Indicator(x > K), comparisons, floor, or FirstPassageTime—the pathwise derivative vanishes almost everywhere and misses the probability mass crossing the threshold. sItô detects the discontinuity and switches automatically to central finite-difference bumping using common random numbers across parameters. Pathwise Greeks and the digital payoff, Black–Scholes by simulation, and Common random numbers compare pathwise and bumped estimators alongside the call-greeks example, while runtime overhead and barrier behavior across CPU and GPU are measured in sensitivity performance benchmarks.

∂ Sensitivities tab): smoothing a digital payoff into a Lipschitz call spread ($\varepsilon = 2$) yields low-variance automatic derivatives for $\partial/\partial x_0$, $\partial/\partial k$, $\partial/\partial r$, $\partial/\partial \sigma$, and $d/dt$. Open call-spread AD Greeks in sItô ↗

Indicator(x > k), sItô labels the footer note and perturbs every parameter up and down with common random numbers (d/dt spikes to 50 near $t = 0$). Open digital CRN Greeks in sItô ↗Discretization, grids, and precision
Under Method, schemes divide according to whether individual trajectories or ensemble averages require higher accuracy:
- Strong schemes—Euler at order 0.5, Milstein at order 1.0, and Taylor 1.5 at order 1.5—approximate paths driven by the same Brownian increments. Strong order matters for path-dependent functionals, phase portraits, and comparisons against exact trajectories on shared noise.
- Weak schemes—Euler at order 1.0 and Taylor 2.0 at order 2.0—match expectations $\mathbb{E}[f(X_T)]$ accurately without requiring pathwise convergence, making them well suited to European payoffs and moments as shown in Weak and strong convergence.
Higher-order schemes—Milstein, Taylor 1.5, and Weak Taylor 2.0—need mixed iterated stochastic integrals whenever multiple noise terms interact non-commutatively. In the demo they are restricted to scalar-noise models and diagonal diffusion matrices with $m$ independent noises acting row by row; general coupled multi-noise systems use Euler or Weak Euler, as examined in Several noise terms.
Under Monte Carlo → Settings, discrete stops control Paths, Time steps, and Horizon $T$, setting step size $\Delta t = T / \text{steps}$. Larger horizons with coarse steps increase discretization bias, so keep an eye on the $\Delta t$ indicator below the sliders when integrating stiff mean-reverting drifts. Precision toggles between float32 for speed and float64 for standard double precision, compared numerically in float32 against float64 and timed across schemes and backends in CPU and GPU simulation performance.



float32 at $X_0 = 10^7$: when unit steps round away beneath float32 significand spacing, simulated Brownian motion freezes completely (Var(X_t) ≡ 0). Open float32 freeze in sItô ↗

float64 at $X_0 = 10^7$: double precision preserves every increment and recovers exact Brownian variance growth $\operatorname{Var}(X_t) = t$ (1.002 at $t = 1$). Open float64 run in sItô ↗