pyacm 0.2__py3-none-any.whl → 0.3__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-0.2.dist-info → pyacm-0.3.dist-info}/METADATA +12 -1
- pyacm-0.3.dist-info/RECORD +8 -0
- pyacm-0.2.dist-info/RECORD +0 -8
- {pyacm-0.2.dist-info → pyacm-0.3.dist-info}/LICENSE +0 -0
- {pyacm-0.2.dist-info → pyacm-0.3.dist-info}/WHEEL +0 -0
- {pyacm-0.2.dist-info → pyacm-0.3.dist-info}/top_level.txt +0 -0
pyacm/acm.py
CHANGED
|
@@ -130,7 +130,7 @@ class NominalACM:
|
|
|
130
130
|
|
|
131
131
|
self.n_factors = n_factors
|
|
132
132
|
self.curve = curve
|
|
133
|
-
self.curve_monthly = curve.resample('
|
|
133
|
+
self.curve_monthly = curve.resample('M').mean()
|
|
134
134
|
self.t = self.curve_monthly.shape[0] - 1
|
|
135
135
|
self.n = self.curve_monthly.shape[1]
|
|
136
136
|
self.rx_m, self.rf_m = self._get_excess_returns()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyacm
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3
|
|
4
4
|
Summary: ACM Term Premium
|
|
5
5
|
Author: Tobias Adrian, Richard K. Crump, Emanuel Moench
|
|
6
6
|
Maintainer: Gustavo Amarante
|
|
@@ -33,6 +33,7 @@ carries all the relevant variables as atributes:
|
|
|
33
33
|
- Yields fitted by the model
|
|
34
34
|
- Risk-neutral yields
|
|
35
35
|
- Term premium
|
|
36
|
+
- Historical in-sample expected returns
|
|
36
37
|
- Expected return loadings
|
|
37
38
|
- Hypothesis testing (Not sure if correct, more info observations below)
|
|
38
39
|
|
|
@@ -42,6 +43,16 @@ carries all the relevant variables as atributes:
|
|
|
42
43
|
pip install pyacm
|
|
43
44
|
```
|
|
44
45
|
|
|
46
|
+
# Examples
|
|
47
|
+
The estimates for the US are available on the [NY FED website](https://www.newyorkfed.org/research/data_indicators/term-premia-tabs#/overview).
|
|
48
|
+
|
|
49
|
+
The jupyter notebook [`example_br`](https://github.com/gusamarante/pyacm/blob/main/example_br.ipynb)
|
|
50
|
+
contains an example application to the Brazilian DI futures curve that showcases all the available methods.
|
|
51
|
+
|
|
52
|
+
<p align="center">
|
|
53
|
+
<img src="https://raw.githubusercontent.com/gusamarante/pyacm/refs/heads/main/images/DI%20term%20premium.png" alt="DI Term Premium"/>
|
|
54
|
+
<img src="https://raw.githubusercontent.com/gusamarante/pyacm/refs/heads/main/images/DI%20observed%20vs%20risk%20neutral.png" alt="Observed VS Risk Neutral"/>
|
|
55
|
+
</p>
|
|
45
56
|
|
|
46
57
|
# Original Article
|
|
47
58
|
> Adrian, Tobias and Crump, Richard K. and Moench, Emanuel,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
pyacm/__init__.py,sha256=pRFuR3Au_ybQAmkJduGrLMKGJd1pxjhGfhsfsjlK-mU,66
|
|
2
|
+
pyacm/acm.py,sha256=5UxKhc5lptSE-K99Uo3b6hMkIfM-5y1P01qeb_K5xW0,14491
|
|
3
|
+
pyacm/utils.py,sha256=-PmH9L3LpzqUP-QU5BHisoLSBYrq-3PaPgR-W1sS1z8,904
|
|
4
|
+
pyacm-0.3.dist-info/LICENSE,sha256=YbUXx25Z6PzP4k4rsbs6tN58NiCwGIIrTMzql4iTeDs,1073
|
|
5
|
+
pyacm-0.3.dist-info/METADATA,sha256=8LVgeznDzDLl2RHaGEoLH_gAb5eZg05w-J6L1HlP4Po,4015
|
|
6
|
+
pyacm-0.3.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
7
|
+
pyacm-0.3.dist-info/top_level.txt,sha256=xQy7q1eSKCnRtTnwb-Iz_spT0UDNdTyzKd43yz-ffrI,6
|
|
8
|
+
pyacm-0.3.dist-info/RECORD,,
|
pyacm-0.2.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
pyacm/__init__.py,sha256=pRFuR3Au_ybQAmkJduGrLMKGJd1pxjhGfhsfsjlK-mU,66
|
|
2
|
-
pyacm/acm.py,sha256=sUtw0NMEDfrpCtRWmVTryvJqMQXFvXo6m9tRAH1PGEA,14492
|
|
3
|
-
pyacm/utils.py,sha256=-PmH9L3LpzqUP-QU5BHisoLSBYrq-3PaPgR-W1sS1z8,904
|
|
4
|
-
pyacm-0.2.dist-info/LICENSE,sha256=YbUXx25Z6PzP4k4rsbs6tN58NiCwGIIrTMzql4iTeDs,1073
|
|
5
|
-
pyacm-0.2.dist-info/METADATA,sha256=UUo-0gkeAL5nudUKju0UQlsUCs5VCzrfrFGvbVkNLFE,3286
|
|
6
|
-
pyacm-0.2.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
7
|
-
pyacm-0.2.dist-info/top_level.txt,sha256=xQy7q1eSKCnRtTnwb-Iz_spT0UDNdTyzKd43yz-ffrI,6
|
|
8
|
-
pyacm-0.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|