makystats 0.1.0__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.
makystats/__init__.py ADDED
@@ -0,0 +1,77 @@
1
+ """
2
+ makystats
3
+ =========
4
+
5
+ Bibliothèque d'économétrie appliquée :
6
+
7
+ - ``makystats.armagarch`` : ARMA + GARCH / GJR / EGARCH / APARCH / FIGARCH (MLE)
8
+ - ``makystats.vecm`` : VECM et cointégration de Johansen
9
+
10
+ Installation
11
+ ------------
12
+ pip install makystats
13
+ pip install "makystats[numba]"
14
+ pip install "makystats[plot]"
15
+
16
+ Quick start — volatilité
17
+ ------------------------
18
+ from makystats import arma_garch, select_order
19
+
20
+ res = arma_garch(y, mean='ARMA', ar=1, ma=1, vol='GARCH').fit()
21
+ print(res.coef_table)
22
+ res.plot_diagnostics()
23
+ res.var(alpha=0.05) # ou aggregation="cumulative", h=10
24
+
25
+ Quick start — VECM
26
+ ------------------
27
+ from makystats import VECM, select_coint_rank
28
+ # ou : from makystats.vecm import VECMModel, JohansenTest, vecm, ...
29
+
30
+ rank = select_coint_rank(data, k_ar_diff=1, test_case='3')
31
+ model = VECM(data, k_ar_diff=1, coint_rank=rank.rank, det_case='3a').fit()
32
+ model.summary()
33
+ print(model.forecast(steps=5))
34
+
35
+ Sous-packages
36
+ -------------
37
+ from makystats.armagarch import arma_garch, ARMAGarch, select_order
38
+ from makystats.vecm import (
39
+ VECMModel, JohansenTest, select_coint_rank, vecm, VECM,
40
+ summarize_johansen, information_criteria_table,
41
+ mhm_pvalue, mhm_critical,
42
+ )
43
+ """
44
+ from . import armagarch
45
+ from . import vecm # sous-package (ne pas écraser ce nom)
46
+
47
+ from .armagarch import ARMAGarch, arma_garch, select_order
48
+ from .vecm import (
49
+ VECMModel,
50
+ JohansenTest,
51
+ select_coint_rank,
52
+ summarize_johansen,
53
+ information_criteria_table,
54
+ mhm_pvalue,
55
+ mhm_critical,
56
+ )
57
+ # Constructeur fluide au niveau racine sous le nom VECM uniquement.
58
+ # La fonction ``vecm`` reste accessible via ``makystats.vecm.vecm``
59
+ # pour ne pas masquer le sous-package ``makystats.vecm``.
60
+ from .vecm.core import vecm as VECM
61
+
62
+ __all__ = [
63
+ "ARMAGarch",
64
+ "arma_garch",
65
+ "select_order",
66
+ "VECM",
67
+ "VECMModel",
68
+ "JohansenTest",
69
+ "select_coint_rank",
70
+ "summarize_johansen",
71
+ "information_criteria_table",
72
+ "mhm_pvalue",
73
+ "mhm_critical",
74
+ "armagarch",
75
+ "vecm", # le sous-package
76
+ ]
77
+ __version__ = "0.1.0"