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: README.md
+20-8Lines changed: 20 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,14 +27,26 @@ carries all the relevant variables as atributes:
27
27
pip install pyacm
28
28
```
29
29
30
-
# Example
31
-
The tricky part is getting the correct data format. The model works with
32
-
annualized log-yields for zero-coupon bonds, observed at daily or monthly
33
-
frequency. Maturities must be equally spaced in monthly frequency and start
34
-
at month 1. This means that you need to construct a bootstraped curve for every
35
-
date and interpolate it at fixed monthly maturities.
36
-
37
-
MORE SOON...
30
+
31
+
# Original Article
32
+
> Adrian, Tobias and Crump, Richard K. and Moench, Emanuel,
33
+
> Pricing the Term Structure with Linear Regressions (April 11, 2013).
34
+
> FRB of New York Staff Report No. 340,
35
+
> Available at SSRN: https://ssrn.com/abstract=1362586 or http://dx.doi.org/10.2139/ssrn.1362586
36
+
37
+
The version of the article that was published by the NY FED is not 100% explicit on how the data is being manipulated,
38
+
but I found an earlier version of the paper on SSRN where the authors go deeper into the details on how everything is being estimated:
39
+
- Data for zero yields uses monthly maturities starting from month 1
40
+
- All principal components and model parameters are estiamted with data resampled to a monthly frequency, averaging observations in each month
41
+
- To get daily / real-time estimates, the factor loadings estimated from the monthly frquency are used to transform the daily data
42
+
43
+
44
+
# Usage
45
+
The tricky part of using this model is getting the correct data format:
46
+
- The model works with annualized log-yields for zero-coupon bonds
47
+
- Observations (index) must be in either monthly or daily frequency
48
+
- Maturities (columns) must be equally spaced in **monthly** frequency and start at month 1. This means that you need to construct a bootstraped curve for every date and interpolate it at fixed monthly maturities.
49
+
- Whichever maturity you want to be the longest, your input data should have one column more. For example, if you want term premium estimate up to the 10-year yield (120 months), your input data should include maturities up to 121 months. This is needed to properly compute the returns.
0 commit comments