How this calculation works
Simulate a scalar Itô stochastic differential equation with Euler–Maruyama time steps and a reproducible pseudorandom seed. The calculator reports sample mean, sample variance and Monte Carlo standard error across simulated paths, plus a small set of displayed trajectories. It separates sampling variability from time-discretization error and does not interpret a single random path as an expected outcome.
X_(k+1)=X_k+a(X_k,t_k)Δt+b(X_k,t_k)√Δt Z_k; Z_k~N(0,1).A worked example
For drift zero and diffusion one, X(1) has analytic mean zero and variance one. A finite seeded ensemble does not return those moments exactly. The page reports its simulated mean, unbiased sample variance and standard error of the mean separately from the model identities.
Good to know
Scalar Ito model, time≤100, 20–2000 steps, 10–1000 paths and ≤500,000 updates. Seeded xorshift32/Box–Muller increments. Displayed standard errors quantify Monte Carlo sampling only, not time-discretization bias. Diverging paths rejected; no financial prediction or exact-path claim.
Reference: Method reference: Ito stochastic differential equation simulation calculator (opens in a new tab) ↗
Drift and diffusion play different roles
The drift contributes a term proportional to the time step. The diffusion multiplies a normal increment whose standard deviation is the square root of that step.
Using a step-sized random increment would produce the wrong noise scale. The expressions use x for the current scalar state and t for time. The equation is interpreted in the Itô sense; a Stratonovich model generally requires a drift correction before this scheme represents the same process.
Models random diffusion increments and multiple sample paths rather than a deterministic trajectory. The Maximum entropy probability distribution calculator from moment constraints offers a complementary calculation under its own stated assumptions.
The Euler–Maruyama update
Each path advances from its current value using the drift and diffusion evaluated at the beginning of the step. A standard normal draw is multiplied by the square root of the time step to form a Brownian increment.
This is a first-order weak and typically half-order strong method under appropriate regularity conditions, not a universal guarantee for arbitrary coefficients. Superlinear drift, singular diffusion or boundary-sensitive processes can require specialized numerical methods.
Worked example and mathematical rule
For drift zero and diffusion one, X(1) has analytic mean zero and variance one. A finite seeded ensemble does not return those moments exactly. The page reports its simulated mean, unbiased sample variance and standard error of the mean separately from the model identities.
X_(k+1)=X_k+a(X_k,t_k)Δt+b(X_k,t_k)√Δt Z_k; Z_k~N(0,1).
What a fixed seed guarantees
The seed initializes a deterministic pseudorandom generator, making the same entered problem reproducible in this implementation. It does not make the result exact or remove sampling error.
Changing the number of paths or time steps changes how random draws are consumed, so matched seeds do not automatically produce a carefully coupled convergence experiment. The generator is for educational simulation and is not intended for security-sensitive randomness or certified statistical sampling infrastructure.
Reading moments and standard errors
The sample variance describes variation among simulated path values. The standard error of the sample mean divides the sample standard deviation by the square root of the number of paths.
These are different quantities: increasing path count narrows mean uncertainty without making individual trajectories less random. A normal approximation interval for the mean also relies on distributional and sampling assumptions. The displayed standard error does not include the bias caused by a finite time step.
Boundaries are not enforced automatically
A continuous process may remain positive while a coarse Euler approximation crosses below zero. The tool does not silently reflect, absorb or clip negative values because those operations change the numerical scheme and often the modeled process.
If coefficients become undefined after such a crossing, the calculation fails. Choose a suitable scheme for positivity-constrained finance, population or diffusion models rather than interpreting an invalid Euler path as a physical prediction.
A sensible convergence study
First compare empirical moments with a process having known moments, such as Brownian motion with constant drift. Then increase path count to assess Monte Carlo stability and refine the time grid to assess discretization separately.
A few visually smooth paths reveal neither property. The bounded update budget limits runtime, so trading paths for steps changes which source of uncertainty is better resolved. Report both counts, the horizon, seed and exact drift-diffusion definitions with any numerical estimate.
A few questions, answered
Are the paths Itô or Stratonovich?
Itô. A Stratonovich equation generally needs conversion before using this update.
Does the standard error include time-step bias?
No. It describes sampling uncertainty in the simulated mean.
Will the tool keep a positive process positive?
Not automatically. Euler–Maruyama can violate a continuous process’s boundary behavior.
Why use a seed?
It makes this implementation’s pseudorandom simulation reproducible, not exact.