跳转到内容

This page is also in English.

Read it in English

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

Léela en español

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

日本語で読む

stationary_distribution 函数

过程随时间趋于的分布,若存在的话。

怎么写

stationary_distribution(process)

两个经典过程的正态或伽马分布;并注明其成立的条件。

process
漂移和扩散不依赖于时间的过程。接受一个表达式。

示例

  • OU⁡(μ,σ,θ,x0)⇒X∞∼N(μ,2σ2θ)\displaystyle \operatorname{OU}(\mu, \sigma, \theta, x_{0}) \Rightarrow X_{\infty} \sim \mathcal{N}\left(\mu, \frac{\sqrt{2} \sigma}{2 \sqrt{\theta}}\right)
    stationary_distribution(ornstein_uhlenbeck_process(mu, sigma, theta, x0))

    在求解器中,stationary_distribution(ornstein_uhlenbeck_process(mu, sigma, theta, x0)) 的结果是 normal_distribution(mu, (1/2)sqrt(2)*sigma/sqrt(theta))。

    在求解器中打开
  • stationary_distribution⁡(cox_ingersoll_ross_process⁡(μ,σ,θ,x0))=gamma_distribution⁡(2μθσ2,σ22θ)\displaystyle \operatorname{stationary\_distribution}(\operatorname{cox\_ingersoll\_ross\_process}(\mu, \sigma, \theta, x_{0})) = \operatorname{gamma\_distribution}\left(\frac{2 \mu \theta}{\sigma^{2}}, \frac{\sigma^{2}}{2 \theta}\right)
    stationary_distribution(cox_ingersoll_ross_process(mu, sigma, theta, x0))

    在求解器中,stationary_distribution(cox_ingersoll_ross_process(mu, sigma, theta, x0)) 的结果是 gamma_distribution(2mu*theta/sigma^2, (1/2)sigma^2/theta)。

    在求解器中打开
  • stationary_distribution⁡(ito_process⁡([−x,1],[x,0],t))=normal_distribution⁡(0,22)\displaystyle \operatorname{stationary\_distribution}(\operatorname{ito\_process}(\left[ -x, 1 \right], \left[ x, 0 \right], t)) = \operatorname{normal\_distribution}\left(0, \frac{\sqrt{2}}{2}\right)
    stationary_distribution(ito_process([-x, 1], [x, 0], t))

    在求解器中,stationary_distribution(ito_process([-x, 1], [x, 0], t)) 的结果是 normal_distribution(0, sqrt(2)/2)。

    在求解器中打开

示例中用到的函数

  • ornstein_uhlenbeck_process

    以速率 theta 被拉向 mu、噪声为 sigma、从 x0 开始的随机过程。

  • ito_process

    由漂移项和扩散项给出的过程:dX = drift dt + diffusion dW。