Skip to main content

esg.Cir

The Cox-Ingersoll-Ross short rate, dr = a (b - r) dt + sigma sqrt(r) dW.

Usage

esg.Cir()

Parameters

a: float

As for Vasicek; r0 non-negative.

b: float

As for Vasicek; r0 non-negative.

sigma: float

As for Vasicek; r0 non-negative.

r0: float
As for Vasicek; r0 non-negative.

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()

The price of a zero-coupon bond of maturity tau at rate r.

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)