# ito_process function

A process given by its drift and diffusion: dX = drift dt + diffusion dW.

## How to write it

### ito_process(process_or_coefficients, state, time)

Stands for itself; mean, variance, pdf and stationary_distribution read it.

**process_or_coefficients**

The pair \[drift, diffusion\], written with the state variable. Takes a list.

**state**

The state variable, or \[x, x0\] with its starting value. Takes an expression.

**time**

The time variable, or \[t, t0\] with its starting time. Takes an expression.

### ito_process(process_or_coefficients)

Writes a named process with its drift and diffusion.

**process_or_coefficients**

A named process such as geometric_brownian_motion_process(mu, sigma, x0). Takes an expression.

## Examples

- $\displaystyle \operatorname{mean}(\operatorname{ito\_process}(\left[ a x, b x \right], \left[ x, x_{0} \right], t), 2) = x_{0} e^{2 a}$

  `mean(ito_process([a*x, b*x], [x, x0], t), 2)`

  In the solver, `mean(ito_process([a*x, b*x], [x, x0], t), 2)` gives `x0*e^(2a)`.

  [Open in the solver](https://hilberon.com/?q=mean%28ito_process%28%5Ba*x%2C%20b*x%5D%2C%20%5Bx%2C%20x0%5D%2C%20t%29%2C%202%29)
- $\displaystyle \operatorname{variance}(\operatorname{ito\_process}(\left[ -x, 1 \right], \left[ x, 0 \right], t), 2) = \frac{1}{2}-\frac{1}{2 e^{4}}$

  `variance(ito_process([-x, 1], [x, 0], t), 2)`

  In the solver, `variance(ito_process([-x, 1], [x, 0], t), 2)` gives `1/2 - (1/2)/e^4`.

  [Open in the solver](https://hilberon.com/?q=variance%28ito_process%28%5B-x%2C%201%5D%2C%20%5Bx%2C%200%5D%2C%20t%29%2C%202%29)
- $\displaystyle \operatorname{ito\_process}(\operatorname{GBM}(\mu, \sigma, x_{0})) = \operatorname{ito\_process}(\left[ \mu X, \sigma X \right], \left[ X, x_{0} \right], t)$

  `ito_process(geometric_brownian_motion_process(mu, sigma, x0))`

  In the solver, `ito_process(geometric_brownian_motion_process(mu, sigma, x0))` gives `ito_process([mu*X, sigma*X], [X, x0], t)`.

  [Open in the solver](https://hilberon.com/?q=ito_process%28geometric_brownian_motion_process%28mu%2C%20sigma%2C%20x0%29%29)

## Functions its examples use

- [mean](https://hilberon.com/library/mean)

  The average of a list of numbers, or the expected value of a distribution.
- [variance](https://hilberon.com/library/variance)

  The sample variance of a list of numbers, or the variance of a distribution.
- [geometric_brownian_motion_process](https://hilberon.com/library/geometric_brownian_motion_process)

  A process that grows at rate mu with relative noise sigma, started at x0.

## Related functions

- [ito_integral](https://hilberon.com/library/ito_integral)

  The Itô integral of an expression of the Wiener value w and the time s, from 0 to t.
- [ito_formula_data](https://hilberon.com/library/ito_formula_data)

  The certified record behind ito_formula: its result, validity, certificate and theorem.
- [ito_formula](https://hilberon.com/library/ito_formula)

  Itô's lemma: the differential of an expression of states that follow an Itô process.
- [ornstein_uhlenbeck_process](https://hilberon.com/library/ornstein_uhlenbeck_process)

  A process pulled toward mu at rate theta, with noise sigma, started at x0.
- [wiener_process](https://hilberon.com/library/wiener_process)

  Brownian motion with drift mu and noise sigma, started at 0.
- [median](https://hilberon.com/library/median)

  The middle value of a list of numbers, or the mean of the two middle ones.

---
Source: https://hilberon.com/library/ito_process
