makystats GitHub PyPI FR · EN

ARMA–GARCH

Maximum de vraisemblance jointe d’une moyenne linéaire (ARMA / ARX / HAR / …) et d’une variance conditionnelle (GARCH, GJR, EGARCH, APARCH, FIGARCH) sous innovations normale, Student-t, skew-t ou GED.

README : makystats/armagarch/README.md · Guide technique : DOCUMENTATION.md

Démarrage rapide

from makystats import arma_garch, select_order
res = arma_garch(y, mean="AR", ar=1, ma=1, vol="GARCH", trend="c").fit()
print(res.coef_table)
print(res.forecast(h=5))
res.plot_diagnostics(lags=20)
tab = select_order(ylog, p_range=range(0, 3), q_range=range(0, 2),
                   r_range=[1], s_range=[1], d=1,
                   seasonal_order=(0, 1, 1, 12), criterion="aic")

API en bref

ArgumentRôle
meanConstant, Zero, AR, ARX, ARMAX, HAR, LS, …
in_meanGARCH-M : sigma / var / log (coef archm)
trendn / c / t / ct
volGARCH, GJR, EGARCH, APARCH, FIGARCH, …
distnormal, t, skewt, ged
ar / maOrdres ou listes de lags
d, seasonal_orderDifférences et saisonnalité de moyenne

VaR / ES

res.var(alpha=0.05, h=1)
res.expected_shortfall(alpha=0.05)
res.var_series(alpha=0.05)
res.var_backtest(alpha=0.05)
res.plot_var(alphas=(0.05, 0.01))
BFGS non contraint + reparamétrisation ; écarts-types OPG par défaut. Détail technique : DOCUMENTATION.md.