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
Adding, subtracting, multiplying, dividing, and comparing rates is supported.
84
+
85
85
Yield models can also be composed. Here is an example of fitting rates and spread separately and then adding the two models together:
86
86
87
87
```julia-repl
@@ -106,6 +106,29 @@ julia> discount(0.04,3)
106
106
0.8889963586709148
107
107
```
108
108
109
+
!!! warning "Caution with Spreads"
110
+
111
+
It is fairly common to see spreads and rates provided separately where both are quoted in par convention. For example, US Treasury par rates with the associated par risk spreads. Because par rates are dependent on the amount and path of rates preceeding the given tenor, **it is not valid to construct a "spread curve" with par rates and then use it in composition with a "rate curve"**.
112
+
113
+
That is, while the zero rates and spreads in the preceeding example allow for additive or subtractive composition, it is not the case for par rates and spreads. Note the different discount factors produced:
0 commit comments