Skip to main content

esg.HullWhite

The Hull-White one-factor short rate, fitted to an initial curve.

Usage

esg.HullWhite()

Parameters

a: float

The speed of mean reversion, positive.

sigma: float

The volatility, positive.

maturities: list of float

The initial curve as annually compounded spot rates by maturity.

rates: list of float

The initial curve as annually compounded spot rates by maturity.

svensson: Svensson
The initial curve as a Svensson curve, instead of maturities and rates.

Examples

>>> from prospicio.esg import HullWhite
>>> hw = HullWhite(0.1, 0.01, maturities=[1.0, 10.0], rates=[0.03, 0.04])
>>> round(hw.discount(1.0), 6)

0.970874

Methods

Name Description
discount() The initial curve’s discount factor at t years.
forward() The initial curve’s instantaneous forward rate at t years.

discount()

The initial curve’s discount factor at t years.

Usage

discount(t)

forward()

The initial curve’s instantaneous forward rate at t years.

Usage

forward(t)