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:

  1. 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.
  2. Statistics: declare the outputs to record in What to compute, one expression per line, with clickable templates under Statistics you can use.
  3. Method: choose a discretization scheme from Strong or Weak.
  4. 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.

Five 2D phase trajectories (c, s) staying glued to the unit circle under Stratonovich rotation Five 2D phase trajectories (c, s) staying glued to the unit circle under Stratonovich rotation
Stratonovich calculus via coordinate transformation (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ô ↗
Uncorrected Itô rotation paths in the (u, v) plane spiraling outward from (1, 0) past r = 1.2 Uncorrected Itô rotation paths in the (u, v) plane spiraling outward from (1, 0) past r = 1.2
Interpreting the same tangent vector under Itô calculus without the Stratonovich-to-Itô drift correction pushes paths radially outward past $r = 1.2$ as $\mathbb{E}[r_t^2] = e^{\sigma^2 t}$. Open uncorrected Itô rotation 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.

Stochastic Gompertz paths rising from n₀ = 0.1 to a right-skewed log-normal stationary band with median 4.56 and mean 4.72 Stochastic Gompertz paths rising from n₀ = 0.1 to a right-skewed log-normal stationary band with median 4.56 and mean 4.72
Coordinate reduction in action: applying $y_t = \ln n_t$ to nonlinear stochastic Gompertz growth yields constant-volatility Ornstein–Uhlenbeck log dynamics with strictly positive stationary bands (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:

IntentExpressionOutput view
Ensemble of paths over timePath(x)Median curve with quantile bands over $[0, T]$
Terminal distributionTerminal(x)Histogram and summary moments at $t = T$
2D or 3D phase portraitPath(x, y) or Path(x, y, z)Small bundle of sample trajectories in state space
Joint terminal lawTerminal(x, y)2D density scatter and heatmap at $t = T$
Time-indexed ensemble curveMean(x), Variance(x), Std(x), Quantile(x, 0.9)Curve over $[0, T]$ with time derivative and ∂ Sensitivities tab
Scalar summary at horizonTerminal(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:

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.

Seasonal Ornstein–Uhlenbeck path density band oscillating and peaking near t = 0.42 before declining to -0.19 at t = 1 Seasonal Ornstein–Uhlenbeck path density band oscillating and peaking near t = 0.42 before declining to -0.19 at t = 1
1-arg 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(PathMax(x)) running maximum fan rising monotonically from 1.0 with 95% quantile reaching 1.721 Path(PathMax(x)) running maximum fan rising monotonically from 1.0 with 95% quantile reaching 1.721
Path-functional 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ô ↗
2D trajectory plot of five coupled SABR paths in (F, α) phase space starting at (1.0, 0.3) 2D trajectory plot of five coupled SABR paths in (F, α) phase space starting at (1.0, 0.3)
2-arg 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ô ↗
Five simulated paths of the stochastic Lorenz system projected onto the x-z plane tracing the two lobes of the attractor Five simulated paths of the stochastic Lorenz system projected onto the x-z plane tracing the two lobes of the attractor
3-arg 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ô ↗
Left-skewed Heston terminal spot density at ρ = -0.7 with a heavy crash tail and summary lines Left-skewed Heston terminal spot density at ρ = -0.7 with a heavy crash tail and summary lines
1-arg 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ô ↗
2D joint density contours and 1500 sample scatter pairs of terminal CIR short rate r against bond discount factor B 2D joint density contours and 1500 sample scatter pairs of terminal CIR short rate r against bond discount factor B
2-arg 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ô ↗
Time curve of Quantile(x, 0.9) for geometric Brownian motion climbing along 1 + sqrt(t) scaling from 1.0 to 1.33 Time curve of Quantile(x, 0.9) for geometric Brownian motion climbing along 1 + sqrt(t) scaling from 1.0 to 1.33
Time-indexed ensemble curve (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.

Smooth pathwise AD sensitivity curves for a call spread approximation of a digital option Smooth pathwise AD sensitivity curves for a call spread approximation of a digital option
Smooth pathwise AD (∂ 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ô ↗
Finite-difference sensitivities of a discontinuous digital indicator with a 50-unit spike in d/dt Finite-difference sensitivities of a discontinuous digital indicator with a 50-unit spike in d/dt
Discontinuous finite-difference fallback: when the estimator sees 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.

Euler-Maruyama strong RMS error Std(er) climbing to 0.060 at t = 1 Euler-Maruyama strong RMS error Std(er) climbing to 0.060 at t = 1
Euler scheme (strong order 0.5, $N = 100$): RMS path error against exact GBM driven by shared Brownian increments rises to $0.060$ by $t = 1$. Open Euler error curve in sItô ↗
Milstein strong RMS error Std(er) staying below 0.025 at t = 1 Milstein strong RMS error Std(er) staying below 0.025 at t = 1
Milstein scheme (strong order 1.0, same $N = 100$ grid): including the symbolic $b b' ((\Delta W)^2 - \Delta)/2$ correction cuts pathwise RMS error below $0.025$. Open Milstein error curve in sItô ↗
Flat zero variance line when simulating Brownian motion at x₀ = 10^7 in float32 Flat zero variance line when simulating Brownian motion at x₀ = 10^7 in float32
Precision = 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ô ↗
Linear variance curve climbing smoothly from 0 to 1.002 at t = 1 in float64 Linear variance curve climbing smoothly from 0 to 1.002 at t = 1 in float64
Precision = 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ô ↗