# stationary_distribution 関数

過程が時間とともに落ち着く分布（存在する場合）。

## 書き方

### stationary_distribution(process)

2つの古典的な過程に対しては正規分布またはガンマ分布。それが成り立つ条件は注記に示されます。

**process**

ドリフトと拡散が時間に依存しない過程。式を受け取ります。

## 例題

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

  [ソルバーで開く](https://ja.hilberon.com/?q=stationary_distribution%28ornstein_uhlenbeck_process%28mu%2C%20sigma%2C%20theta%2C%20x0%29%29)
- $\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)` です。

  [ソルバーで開く](https://ja.hilberon.com/?q=stationary_distribution%28cox_ingersoll_ross_process%28mu%2C%20sigma%2C%20theta%2C%20x0%29%29)
- $\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)` です。

  [ソルバーで開く](https://ja.hilberon.com/?q=stationary_distribution%28ito_process%28%5B-x%2C%201%5D%2C%20%5Bx%2C%200%5D%2C%20t%29%29)

## 例題で使っている関数

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

  mu に向かって率 theta で引き戻され、ノイズ sigma をもち、x0 から始まる過程。
- [ito_process](https://ja.hilberon.com/library/ito_process)

  ドリフトと拡散で与えられる過程。dX = drift dt + diffusion dW。

## 関連する関数

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

  a と b の間でどこでも同じ確率密度をもつ連続分布。
- [weibull_distribution](https://ja.hilberon.com/library/weibull_distribution)

  時刻xまで生き残る確率がe^(-(x/scale)^shape)である機器の寿命です。
- [poisson_distribution](https://ja.hilberon.com/library/poisson_distribution)

  平均率 lambda で起こる事象の、ある期間における個数。
- [binomial_distribution](https://ja.hilberon.com/library/binomial_distribution)

  n回の独立な試行のうち成功する回数。各試行は確率pで成功します。
- [normal_distribution](https://ja.hilberon.com/library/normal_distribution)

  平均 mu、標準偏差 sigma の正規分布。
- [exponential_distribution](https://ja.hilberon.com/library/exponential_distribution)

  率 lambda で起こる事象の待ち時間。

---
Source: https://ja.hilberon.com/library/stationary_distribution
