Define, Compile, Simulate and Analyze your Itô process.

About sItô

sItô compiles the parametric stochastic differential equations you define into Monte Carlo simulations. You define a system of parametric, multi-dimensional Itô or Stratonovich equations by their drift and diffusion. You can then define new processes as smooth functions of this base process, and Itô's lemma is derived automatically for your definition. You define the objects of your interest in a small language: fans of paths over time, the distribution of the final values, averages, quantiles, and their sensitivities to the parameters (the Greeks). One of five established discretization schemes can be applied automatically to your transformed process to generate executable Monte Carlo code.

The models under Examples are not built into the program. Each one is only a filled-in form: its equations, parameters and statistics appear in the fields, where you can change anything before you run. They show what you can write. To start from nothing, open Define the model and type your own.

Read more about sItô. Made by . apply.

Examples

These are examples, not built-in models. Pick one to fill the form, change what you like, then run.

Finance

Equity and FX

Rates and bonds

Commodities

Path-dependent options and credit

Physics

Biology

Demo limits

These are the restrictions of this demo. They keep each request cheap on a shared server.

Paths
250 to 10000
Time steps
100 to 4000, and paths × steps at most 1,000,000: a run costs about the same time for the same product, whatever the horizon.
Horizon T
1, 2, 5, 10, 20, 40. The time step is T / steps: a coarse step is yours to judge, with a hint when it is large for Euler.
Locked stops
A stop with a lock on a slider is shown but not available in this demo.
Trajectory run
When every statistics line is a Path of two or three expressions: 5 paths and 1000, 2000, 4000 steps, without derivatives.
State variables
up to 3
Noise terms
up to 3 (the columns of the diffusion matrix)
Parameters
up to 8
Statistics
up to 4 lines
Size of a formula
500 characters per field and 200 operations per expression
Cost and memory
a request whose estimated memory is above 300 MB, or whose cost is too high, is refused with the figures. The derivatives of a statistic with a step cost one run for the model and two for each input; when that is too high they are left out and the rest is run.
Queue
one simulation at a time for each visitor and a queue of 5; a simulation is stopped after 30 s

Help

How to use the page. It assumes you know the mathematics.

Examples
The models under Examples are not built in. Each is a filled-in form: pick one, change anything, run.
The model
Define the model opens the fields, in this order: state variables and parameters, drift, diffusion, the transformation, and last the initial values and parameter values. The equations above it update as you type. State variables and parameters are comma-separated names. The drift is one line per state, the coefficient of dt. The diffusion is one row per state, rows separated by ;, one entry per noise term, separated by ,. Use + - * / ^ and functions such as exp, log, sqrt, sin, abs, max and min.
Time
t is the current time (the time variable) and T is the horizon, set in Settings (Monte Carlo). Both can be used in any formula.
Names
A name you declare is yours. A name you do not declare is an error, except T. These names mean a number unless you declare them: e Euler's number; E Euler's number; I the imaginary unit; pi the number pi; oo infinity; zoo complex infinity; nan not a number; EulerGamma the Euler-Mascheroni constant; Catalan Catalan's constant; GoldenRatio the golden ratio.
Transformation
Under Define, name the new variables; then write them as smooth functions of the time and the state, Y = f(t, X). Their equations are derived for you, and statistics can use them. A step such as Indicator is not smooth and is refused here.
Statistics
One per line. Path(x) shows all paths over time and Terminal(x) the final value. Mean, Variance, Std and Quantile(x, 0.9) average over the paths; the median is Quantile(x, 0.5) and a probability is Mean(Indicator(x > k)). With two or three arguments, Path(x, y) and Terminal(x, y) draw a plane. PathMax, PathMin, Integral, FirstPassageTime and Indicator act along each path. The list under the statistics field has the common forms, not all of them.
Method
The scheme is a choice in two groups. Strong (Euler, Milstein, Taylor 1.5) follows single paths; Weak (Euler, Taylor 2.0) is right for averages. The order is under each name.
Monte Carlo
One line says what will run. Settings opens paths, time steps, horizon, precision and hardware, chosen from fixed stops; a stop with a lock is not available in this demo.
Derivatives
Every average comes with its derivatives with respect to the initial values and the parameters, from the same run. A statistic with a step (an indicator, a comparison, floor) has no derivative along the path, so the run bumps each input and revalues instead; if that is too expensive for this demo, the run is made without derivatives and says so.
Limits
This is a demo with limits on size and cost. .
Sharing
Share is available once there is a result. It copies a link to the model as it stands, not to the results; opening the link runs it.
More
Methodology Tutorial Reference
Model
Define the model

Itô's lemma

Set initial values and parameters
Initial state
Parameters
Statistics
Statistics you can use
  • every path, drawn as a distribution
  • the value at the final time, one per path
  • two states against each other: a few paths in the plane
  • two final values together: their joint distribution
  • ∂average over paths, per time
  • ∂variance over paths, per time
  • ∂standard deviation over paths
  • ∂a quantile over paths
  • ∂a single number
  • running maximum of each path
  • running minimum of each path
  • time integral along each path
  • time each path first meets a condition
  • ∂share of paths meeting a condition

has derivatives

Method
Strong
Weak
Monte Carlo

Settings
1K
100
1

Precision
Hardware

Running…

Model loaded successfully.