Skip to content
VenkateswarluNagineniPublic

About

Probabilistic financial risk forecasting: XGBoost/LightGBM/ARIMA + conformal prediction intervals + walk-forward backtesting

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

19 Commits

Folders and files

Repository files navigation

QuantRisk — Probabilistic Financial Risk Forecasting Service

CI Python 3.11 License: MIT

Forecasting service for market volatility and credit risk that ships calibrated uncertainty, not just point predictions. Gradient-boosted models and ARIMA are wrapped with conformal prediction for distribution-free prediction intervals, validated by a walk-forward backtesting harness, and served behind a FastAPI risk-scorecard API.

Why it exists: a risk number without a confidence interval is dangerous. QuantRisk treats calibrated uncertainty and honest backtesting as first-class, the way a risk desk actually needs.

Architecture

flowchart LR
    D[Market & credit data<br/>prices, fundamentals] --> FE[Feature engineering<br/>returns, vol, lags, TA]
    FE --> M{Model zoo}
    M --> X[XGBoost]
    M --> L[LightGBM]
    M --> AR[ARIMA / GARCH]
    X & L & AR --> C[Conformal layer<br/>split / Mondrian intervals]
    C --> BT[Walk-forward<br/>backtest harness]
    C --> ML[(MLflow<br/>experiments + registry)]
    BT --> SC[Risk scorecards<br/>+ analyst notebooks]
    C --> API[FastAPI<br/>forecast + interval + scorecard]
    API --> DASH[Dashboard]
Loading

What makes it different

Typical portfolio project QuantRisk
Output Point prediction Prediction + calibrated interval (conformal)
Validation Random train/test split Walk-forward backtest (no leakage)
Tracking A notebook MLflow experiments + model registry
Delivery A plot FastAPI risk scorecards + analyst reports
Models One model XGBoost / LightGBM / ARIMA-GARCH + TimesFM 2.5 foundation model

Tech stack

Python 3.11 · XGBoost · LightGBM · statsmodels (ARIMA/GARCH) · TimesFM 2.5 (zero-shot foundation model) · conformal prediction (MAPIE-style) · MLflow · FastAPI · pandas · Docker

Status

🚧 Built in public, in phases — see ROADMAP.md. Every phase ships tested code + a design note in docs/.

Quickstart

pip install -e ".[dev]"
pytest

License

MIT © Venkateswarlu Nagineni

About

Probabilistic financial risk forecasting: XGBoost/LightGBM/ARIMA + conformal prediction intervals + walk-forward backtesting

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages