You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vasicek_two_factor/README.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -4,20 +4,20 @@
4
4
</b>
5
5
</h1>
6
6
7
-
A simple model for calculating the nominal interest rates. Used to add inflation to the simulation of interest rates. The model has two sources of randomnes (Two correlated Brownian motions)
7
+
A simple model for calculating the nominal interest rates. Used to add inflation to the simulation of interest rates. The model has two sources of randomness (Two correlated Brownian motions)
8
8
9
9
## Problem
10
-
When modeling the nominal rate, both the real rate of return and the inflation should be considered. The correlation between them means that one should use a multifactor model as opposed to two independent models. Additionaly, there is a robust body of literature showing that both real rates and the inflation are mean-reverting
10
+
When modelling the nominal rate, both the real rate of return and the inflation should be considered. The correlation between them means that one should use a multifactor model as opposed to two independent models. Additionally, there is a robust body of literature showing that both real rates and the inflation are mean-reverting
11
11
12
12
## Solution
13
-
The simplest model for modeling real rates and inflation together is the multifactor Vasicek model https://en.wikipedia.org/wiki/Vasicek_model. The Vasicek model is a short rate model describing the evolution of rates. Both the real rate process and the inflation rate process are assumed to follow a Vasicek model. The movement of the two curves is given by a twodimensional correlated Brownian motion
13
+
The simplest model for modelling real rates and inflation together is the multifactor Vasicek model https://en.wikipedia.org/wiki/Vasicek_model. The Vasicek model is a short rate model describing the evolution of rates. Both the real rate process and the inflation rate process are assumed to follow a Vasicek model. The movement of the two curves is given by a two-dimensional correlated Brownian motion
14
14
15
15
### Input
16
16
Vasicek model simulator:
17
17
-`r0` ... Starting annualized real rate and inflation rate. ex. if the annualized real rate is 1.4% and inflation is 6%, then r0 = [0.014, 0.06]
18
18
-`a` ... mean reversion speed for the real and inflation process. ex. if the reversion factor is 0.8 for real rates and 1 for inflation, a = [0.8, 1]
19
-
-`b` ... long term mean level for the real and inflation process. ex. if the longterm real rate is 1% and long term inflation is 1.5%, b = [0.01, 0.015]
20
-
-`sigma` ... instantaneous volatility of the real and inlfation process. ex. volatility of the real rate process is 5% and inflation process is 4%, sigma = [0.05, 0.04]
19
+
-`b` ... long term mean level for the real and inflation process. ex. if the long-term real rate is 1% and long term inflation is 1.5%, b = [0.01, 0.015]
20
+
-`sigma` ... instantaneous volatility of the real and inflation process. ex. volatility of the real rate process is 5% and inflation process is 4%, sigma = [0.05, 0.04]
21
21
-`rho` ... correlation between the stochastic noise that generates the two processess. ex. if the calculated correlation coefficient is 0.t, rho = 0.6
22
22
-`T` ... modelling time horizon. ex. if time horizon is 25 years, T = 25
23
23
-`dt` ... time increments. ex. time increments are 6 months, dt = 0.5
@@ -33,7 +33,7 @@ Vasicek model simulator:
33
33
-`interest_rate_simulation` is a pandas dataframe with one sample path generated by the model. One for the real rate process and the other for the nominal rates (real rate + inflation rate)
34
34
35
35
Vasicek model pricing:
36
-
- Price of a zero cupon bond with maturity T based on the model. The technique used is Monte Carlo with 1000 scenarios and numeric integration
36
+
- Price of a Zero-Coupon Bond with maturity T based on the model. The technique used is Monte Carlo with 1000 scenarios and numeric integration
0 commit comments