esg.Inflation
Economic inflation, an Ornstein-Uhlenbeck rate,
Usage
esg.Inflation()di = kappa (mean - i) dt + sigma dW.
Parameters
kappa: float-
The speed of mean reversion, positive.
mean: float-
The long-run rate.
sigma: float-
The volatility, non-negative.
i0: float- The rate today.
Examples
>>> from prospicio.esg import Inflation
>>> round(Inflation(0.5, 0.025, 0.01, 0.03).index_mean(1.0), 6) > 1.0True
Methods
| Name | Description |
|---|---|
| index_mean() | The mean of the price index at t years. |
| log_index_mean() | The mean of the log price index at t years. |
| log_index_variance() | The variance of the log price index at t years. |
| mean() | The mean of the rate at t years. |
| stationary_variance() | The variance of the rate in the long run. |
| variance() | The variance of the rate at t years. |
index_mean()
The mean of the price index at t years.
Usage
index_mean(t)log_index_mean()
The mean of the log price index at t years.
Usage
log_index_mean(t)log_index_variance()
The variance of the log price index at t years.
Usage
log_index_variance(t)mean()
The mean of the rate at t years.
Usage
mean(t)stationary_variance()
The variance of the rate in the long run.
Usage
stationary_variance()variance()
The variance of the rate at t years.
Usage
variance(t)