# wiener_process function

Brownian motion with drift mu and noise sigma, started at 0.

## How to write it

### wiener_process(mu, sigma)

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

**mu**

The drift: X(t) = mu t + sigma W(t). Takes an expression.

**sigma**

The noise, above 0. Takes an expression.

### wiener_process()

With no arguments, the standard Wiener process W(t).

## Examples

- $\displaystyle \operatorname{mean}(\operatorname{wiener\_process}(\mu, \sigma), t) = \mu t$

  `mean(wiener_process(mu, sigma), t)`

  In the solver, `mean(wiener_process(mu, sigma), t)` gives `mu*t`.

  [Open in the solver](https://hilberon.com/?q=mean%28wiener_process%28mu%2C%20sigma%29%2C%20t%29)
- $\displaystyle \operatorname{variance}(\operatorname{wiener\_process}(\mu, \sigma), t) = \sigma^{2} t$

  `variance(wiener_process(mu, sigma), t)`

  In the solver, `variance(wiener_process(mu, sigma), t)` gives `sigma^2*t`.

  [Open in the solver](https://hilberon.com/?q=variance%28wiener_process%28mu%2C%20sigma%29%2C%20t%29)
- $\displaystyle \operatorname{variance}(\operatorname{wiener\_process}(), t) = t$

  `variance(wiener_process(), t)`

  In the solver, `variance(wiener_process(), t)` gives `t`.

  [Open in the solver](https://hilberon.com/?q=variance%28wiener_process%28%29%2C%20t%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.

## Related functions

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

  A process pulled toward mu at rate theta, with noise sigma, started at x0.
- [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.
- [ito_process](https://hilberon.com/library/ito_process)

  A process given by its drift and diffusion: dX = drift dt + diffusion dW.
- [affine_sde_moments](https://hilberon.com/library/affine_sde_moments)

  The mean and variance at time t of dX = (a + b X) dt + sigma dW, started at x0.
- [weibull_distribution](https://hilberon.com/library/weibull_distribution)

  The lifetime of a unit whose chance of surviving to time x is e^(-(x/scale)^shape).
- [binomial_distribution](https://hilberon.com/library/binomial_distribution)

  The number of successes in n independent trials that each succeed with chance p.

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