Skip to content

Commit 11c4d52

Browse files
Update README.md
1 parent 1b4708b commit 11c4d52

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

vasicek_one_factor/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ The stochastic differential equation (SDE) of the Vasicek model is shown on the
1919

2020
### Input
2121

22-
- `r0` ... float, starting interest rate of the Vasicek process.
23-
- `a` ... float, speed of reversion" parameter that characterizes the velocity at which such trajectories will regroup around b in time.
24-
- `lam` ... float, long term mean level. All future trajectories of r will evolve around this mean level in the long run.
25-
- `sigma` ... float, instantaneous volatility measures instant by instant the amplitude of randomness entering the system.
26-
- `T` ... integer, end modelling time. From 0 to T the time series runs.
27-
- `dt` ... float, increment of time that the process runs on. Ex. dt = 0.1 then the time series is 0, 0.1, 0.2,...
22+
- `r0` (float): starting interest rate of the Vasicek process.
23+
- `a` (float): speed of reversion" parameter that characterizes the velocity at which such trajectories will regroup around b in time.
24+
- `lam` (float): long term mean level. All future trajectories of r will evolve around this mean level in the long run.
25+
- `sigma` (float): instantaneous volatility measures instant by instant the amplitude of randomness entering the system.
26+
- `T` (integer): end modelling time. From 0 to T the time series runs.
27+
- `dt` (float): increment of time that the process runs on. Ex. dt = 0.1 then the time series is 0, 0.1, 0.2,...
2828

2929
### Output
3030

31-
- `interest_rate_simulation` N x 2 DataFrame with a sample path as values and modelling time as index.
31+
- N x 2 Pandas DataFrame with a sample path as values and modelling time as index.
3232

3333
## Getting started
3434

@@ -38,11 +38,11 @@ import pandas as pd
3838
from Vasicek_one_factor import simulate_Vasicek_One_Factor
3939

4040
r0 = 0.1 # The starting interest rate
41-
a = 1.0 # speed of reversion parameter
42-
lam = 0.1 # long-term mean interest rate level correction
43-
sigma = 0.2 # instantaneous volatility
44-
T = 52 # end modelling time
45-
dt = 0.1 # increments of time
41+
a = 1.0 # Speed of reversion parameter
42+
lam = 0.1 # Long-term mean interest rate level correction
43+
sigma = 0.2 # Instantaneous volatility
44+
T = 52 # End modelling time
45+
dt = 0.1 # Increments of time
4646

4747
print(simulate_Vasicek_One_Factor(r0, a, lam, sigma, T, dt))
4848
```

0 commit comments

Comments
 (0)