# geometric_brownian_motion_process 函数

以速率 mu 增长、相对噪声为 sigma、从 x0 出发的过程。

## 怎么写

### geometric_brownian_motion_process(mu, sigma, x0)

代表它自身；mean、variance、pdf 和 ito_process 会读取它。

**mu**

增长率：dX = mu X dt + sigma X dW。接受一个表达式。

**sigma**

相对噪声，大于 0。接受一个表达式。

**x0**

起始值。接受一个表达式。

## 示例

- $\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)`

  在求解器中，`mean(geometric_brownian_motion_process(mu, sigma, x0), t)` 的结果是 `x0*e^(mu*t)`。

  [在求解器中打开](https://zh.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)`

  在求解器中，`variance(geometric_brownian_motion_process(mu, sigma, x0), t)` 的结果是 `x0^2*e^(2mu*t)*(e^(sigma^2*t) - 1)`。

  [在求解器中打开](https://zh.hilberon.com/?q=variance%28geometric_brownian_motion_process%28mu%2C%20sigma%2C%20x0%29%2C%20t%29)

## 示例中用到的函数

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

  一组数的平均值，或分布的期望值。
- [variance](https://zh.hilberon.com/library/variance)

  一组数的样本方差，或一个分布的方差。

## 相关函数

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

  dX = mu X dt + sigma X dW 的路径，表示为维纳过程在时刻 t 的取值 w 的函数。
- [ito_process](https://zh.hilberon.com/library/ito_process)

  由漂移项和扩散项给出的过程：dX = drift dt + diffusion dW。
- [ornstein_uhlenbeck_process](https://zh.hilberon.com/library/ornstein_uhlenbeck_process)

  以速率 theta 被拉向 mu、噪声为 sigma、从 x0 开始的随机过程。
- [wiener_process](https://zh.hilberon.com/library/wiener_process)

  带漂移 mu 和噪声 sigma、从 0 开始的布朗运动。
- [fit](https://zh.hilberon.com/library/fit)

  用若干函数的组合对点集作最小二乘拟合。
- [ito_formula](https://zh.hilberon.com/library/ito_formula)

  Itô 引理：对服从 Itô 过程的状态所构成表达式的微分。

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