Skip to main content

esg.Vasicek

The Vasicek short rate, dr = a (b - r) dt + sigma dW.

Usage

esg.Vasicek()

Parameters

a: float

The speed of mean reversion, positive.

b: float

The long-run mean.

sigma: float

The volatility, positive.

r0: float
The rate today.

Examples

>>> from prospicio.esg import Vasicek
>>> v = Vasicek(0.3, 0.04, 0.01, 0.02)
>>> round(v.mean(1.0), 6)

0.025184

Methods

Name Description
bond_price() The price of a zero-coupon bond of maturity tau when the rate is
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 when the rate is

Usage

bond_price(r, tau)

r.


mean()

The mean of the rate at t years.

Usage

mean(t)

variance()

The variance of the rate at t years.

Usage

variance(t)