# geometric_brownian_motion_process function

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

## How to write it

### geometric_brownian_motion_process(mu, sigma, x0)

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

**mu**

The growth rate: dX = mu X dt + sigma X dW. Takes an expression.

**sigma**

The relative noise, above 0. Takes an expression.

**x0**

The starting value. Takes an expression.

## Examples

- $\displaystyle E[X_{t}],\ X \sim \operatorname{GBM}(\mu, \sigma, x_{0}) = x_{0} e^{\mu t}$

  `mean(geometric_brownian_motion_process(mu, sigma, x0), t)`

  In the solver, `mean(geometric_brownian_motion_process(mu, sigma, x0), t)` gives `x0*e^(mu*t)`.

  [Open in the solver](https://hilberon.com/?q=mean%28geometric_brownian_motion_process%28mu%2C%20sigma%2C%20x0%29%2C%20t%29)
- $\displaystyle \operatorname{Var}(X_{t}),\ X \sim \operatorname{GBM}(\mu, \sigma, x_{0}) = x_{0}^{2} e^{2 \mu t} (e^{\sigma^{2} t}-1)$

  `variance(geometric_brownian_motion_process(mu, sigma, x0), t)`

  In the solver, `variance(geometric_brownian_motion_process(mu, sigma, x0), t)` gives `x0^2*e^(2mu*t)*(e^(sigma^2*t) - 1)`.

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

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

  The path of dX = mu X dt + sigma X dW, as a function of the Wiener process's value w at time t.
- [ito_process](https://hilberon.com/library/ito_process)

  A process given by its drift and diffusion: dX = drift dt + diffusion dW.
- [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.
- [fit](https://hilberon.com/library/fit)

  The least-squares fit of a combination of functions through points.
- [ito_formula](https://hilberon.com/library/ito_formula)

  Itô's lemma: the differential of an expression of states that follow an Itô process.

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