Skip to content

Add MAMean (MA(q)) model with volatility & forecasting support #778

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

premdev1234
Copy link

This PR introduces an implementation of the Moving Average (MA) mean model—MAMean—as a new subclass of ARCHModel.
It fills a longstanding gap in ARCH’s mean model suite, enabling direct modeling of MA(q) dynamics in return series.


Key Features

  • New Model: MAMean, supporting flexible lag order q, with optional constant term.
    -API: .fit(), .simulate(), .forecast(), .resids
    -Volatility support: Tested with GARCH(1,1) (others welcome)
  • Public API Ready: Registered via __init__.py and __all__

🧪 Testing

  • Tested pipeline: MAMean + GARCH(1,1):
  • Smoke‑tested simulation, forecasting, and residual pipelines.
  • Coverage :
    • Parameter handling (lags, bounds)
    • Simulation pipeline
    • Forecast integration

📝 Notes

  • 🔍 Currently validated only against GARCH(1,1) and Future tests with EGARCH, APARCH is encouraged
  • 📐 Design mirrors ARX/HARX, making future extensions trivial
  • 🙌 Happy to iterate on interface, test depth, or documentation if requested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant