Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

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

  • E[Xt], X∼GBM⁡(μ,σ,x0)=x0eμt\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
  • Var⁡(Xt), X∼GBM⁡(μ,σ,x0)=x02e2μt(eσ2t−1)\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

Functions its examples use

  • mean

    The average of a list of numbers, or the expected value of a distribution.

  • variance

    The sample variance of a list of numbers, or the variance of a distribution.

  • 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

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

  • ornstein_uhlenbeck_process

    A process pulled toward mu at rate theta, with noise sigma, started at x0.

  • wiener_process

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

  • fit

    The least-squares fit of a combination of functions through points.

  • ito_formula

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