esg.Cir
The Cox-Ingersoll-Ross short rate, dr = a (b - r) dt + sigma sqrt(r) dW.
Usage
esg.Cir()Parameters
Examples
>>> from prospicio.esg import Cir
>>> Cir(0.4, 0.03, 0.08, 0.02).feller()True
Methods
| Name | Description |
|---|---|
| bond_price() | The price of a zero-coupon bond of maturity tau at rate r. |
| feller() |
Whether 2 a b >= sigma^2, so the rate stays positive.
|
| mean() | The mean of the rate at t years. |
| variance() | The variance of the rate at t years. |
bond_price()
Usage
bond_price(r, tau)feller()
Whether 2 a b >= sigma^2, so the rate stays positive.
Usage
feller()mean()
The mean of the rate at t years.
Usage
mean(t)variance()
The variance of the rate at t years.
Usage
variance(t)