## esg.Vasicek


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


Usage


``` python
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

``` python
>>> 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()](#bond_price) | The price of a zero-coupon bond of maturity [tau](esg.Svensson.md#prospicio.esg.Svensson.tau) when the rate is |
| [mean()](#mean) | The mean of the rate at [t](distributions.Pareto.md#prospicio.distributions.Pareto.t) years. |
| [variance()](#variance) | The variance of the rate at [t](distributions.Pareto.md#prospicio.distributions.Pareto.t) years. |

------------------------------------------------------------------------


#### bond_price()


The price of a zero-coupon bond of maturity [tau](esg.Svensson.md#prospicio.esg.Svensson.tau) when the rate is


Usage


``` python
bond_price(r, tau)
```


[r](distributions.NegativeBinomial.md#prospicio.distributions.NegativeBinomial.r).


------------------------------------------------------------------------


#### mean()


The mean of the rate at [t](distributions.Pareto.md#prospicio.distributions.Pareto.t) years.


Usage


``` python
mean(t)
```


------------------------------------------------------------------------


#### variance()


The variance of the rate at [t](distributions.Pareto.md#prospicio.distributions.Pareto.t) years.


Usage


``` python
variance(t)
```
