pyacm 1.0__py3-none-any.whl → 1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyacm/acm.py +1 -1
- {pyacm-1.0.dist-info → pyacm-1.1.dist-info}/METADATA +13 -5
- pyacm-1.1.dist-info/RECORD +7 -0
- {pyacm-1.0.dist-info → pyacm-1.1.dist-info}/WHEEL +1 -1
- pyacm-1.0.dist-info/RECORD +0 -7
- {pyacm-1.0.dist-info → pyacm-1.1.dist-info/licenses}/LICENSE +0 -0
- {pyacm-1.0.dist-info → pyacm-1.1.dist-info}/top_level.txt +0 -0
pyacm/acm.py
CHANGED
|
@@ -445,7 +445,7 @@ class NominalACM:
|
|
|
445
445
|
# Historical estimate
|
|
446
446
|
exp_ret = (self.B @ (self.lambda1 @ self.pc_factors_d.T + self.lambda0.reshape(-1, 1))).values
|
|
447
447
|
conv_adj = np.diag(self.B @ self.Sigma @ self.B.T) + self.omega[0, 0]
|
|
448
|
-
er_hist = (exp_ret
|
|
448
|
+
er_hist = (exp_ret - 0.5 * conv_adj[:, None]).T
|
|
449
449
|
er_hist_d = pd.DataFrame(
|
|
450
450
|
data=er_hist,
|
|
451
451
|
index=self.pc_factors_d.index,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pyacm
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.1
|
|
4
4
|
Summary: ACM Term Premium
|
|
5
5
|
Author: Tobias Adrian, Richard K. Crump, Emanuel Moench
|
|
6
6
|
Maintainer: Gustavo Amarante
|
|
@@ -17,6 +17,7 @@ Dynamic: author
|
|
|
17
17
|
Dynamic: description
|
|
18
18
|
Dynamic: description-content-type
|
|
19
19
|
Dynamic: keywords
|
|
20
|
+
Dynamic: license-file
|
|
20
21
|
Dynamic: maintainer
|
|
21
22
|
Dynamic: maintainer-email
|
|
22
23
|
Dynamic: requires-dist
|
|
@@ -70,10 +71,13 @@ date and interpolate it at fixed monthly maturities
|
|
|
70
71
|
|
|
71
72
|
|
|
72
73
|
# Examples
|
|
73
|
-
|
|
74
|
+
Updated estimates for the US are available on the [NY FED website](https://www.newyorkfed.org/research/data_indicators/term-premia-tabs#/overview).
|
|
75
|
+
The file [`example_us`](https://github.com/gusamarante/pyacm/blob/main/example_us.py) reproduces the original outputs using the same
|
|
76
|
+
dataset as the authors.
|
|
74
77
|
|
|
75
78
|
The jupyter notebook [`example_br`](https://github.com/gusamarante/pyacm/blob/main/example_br.ipynb)
|
|
76
|
-
contains an example application to the Brazilian DI futures curve that
|
|
79
|
+
contains an example application to the Brazilian DI futures curve that
|
|
80
|
+
showcases all the available methods and attributes.
|
|
77
81
|
|
|
78
82
|
<p align="center">
|
|
79
83
|
<img src="https://raw.githubusercontent.com/gusamarante/pyacm/refs/heads/main/images/DI%20term%20premium.png" alt="DI Term Premium"/>
|
|
@@ -86,5 +90,9 @@ contains an example application to the Brazilian DI futures curve that showcases
|
|
|
86
90
|
> FRB of New York Staff Report No. 340,
|
|
87
91
|
> Available at SSRN: https://ssrn.com/abstract=1362586 or http://dx.doi.org/10.2139/ssrn.1362586
|
|
88
92
|
|
|
89
|
-
I would like to thank Emanuel Moench for
|
|
93
|
+
I would like to thank Emanuel Moench for sharing his original MATLAB code in
|
|
90
94
|
order to perfectly replicate these results.
|
|
95
|
+
|
|
96
|
+
# Citation
|
|
97
|
+
> Gustavo Amarante (2025). pyacm: Python Implementation of the ACM Term Premium
|
|
98
|
+
> Model. Retrieved from https://github.com/gusamarante/pyacm
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
pyacm/__init__.py,sha256=pRFuR3Au_ybQAmkJduGrLMKGJd1pxjhGfhsfsjlK-mU,66
|
|
2
|
+
pyacm/acm.py,sha256=mpcGjZR5reW25jkkyt_u2g2h_JOGmc1BD4FnBe1M5zQ,15528
|
|
3
|
+
pyacm-1.1.dist-info/licenses/LICENSE,sha256=YbUXx25Z6PzP4k4rsbs6tN58NiCwGIIrTMzql4iTeDs,1073
|
|
4
|
+
pyacm-1.1.dist-info/METADATA,sha256=kTyQaKG5q0VwGEoRK1Vj32BDm_tgfHY5XSds5SmHYck,3524
|
|
5
|
+
pyacm-1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
6
|
+
pyacm-1.1.dist-info/top_level.txt,sha256=xQy7q1eSKCnRtTnwb-Iz_spT0UDNdTyzKd43yz-ffrI,6
|
|
7
|
+
pyacm-1.1.dist-info/RECORD,,
|
pyacm-1.0.dist-info/RECORD
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
pyacm/__init__.py,sha256=pRFuR3Au_ybQAmkJduGrLMKGJd1pxjhGfhsfsjlK-mU,66
|
|
2
|
-
pyacm/acm.py,sha256=cIjn4AGYUmRwHZTYmJ4QobVgz1lMFJRQ0BPDiTIuyCU,15522
|
|
3
|
-
pyacm-1.0.dist-info/LICENSE,sha256=YbUXx25Z6PzP4k4rsbs6tN58NiCwGIIrTMzql4iTeDs,1073
|
|
4
|
-
pyacm-1.0.dist-info/METADATA,sha256=YzI_izcpgkAdi1MH24zpff6gk_Kwv-ZgaJ-PTEDADhM,3172
|
|
5
|
-
pyacm-1.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
6
|
-
pyacm-1.0.dist-info/top_level.txt,sha256=xQy7q1eSKCnRtTnwb-Iz_spT0UDNdTyzKd43yz-ffrI,6
|
|
7
|
-
pyacm-1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|