Use persistent homology over sliding windows of multi-asset returns to detect transitions between normal regime and market crises (2008, 2011, 2015, 2020). Topological descriptors feed a supervised classifier.
Classical methods for detecting regime changes in finance (rolling volatility, rolling correlations, HMMs) look at statistical moments. Topological Data Analysis proposes a complementary angle: look at the shape of the return cloud in ℝd through persistent homology, extracting invariants that are robust to reparameterization.
Idea: in a normal regime, returns form a "round" low-correlation cloud; during a crisis, the cloud collapses toward a single direction (systemic co-movement) and its topology changes. Persistence bars detect that change earlier than traditional aggregate metrics.
This project uses training in algebraic topology — a tool no other junior ML engineer will have — on a financial problem with real impact.
Log returns:
Sliding window:
Vietoris-Rips persistent homology:
Features:
05-tda-finance/ ├── README.md ├── requirements.txt ├── src/ │ ├── data.py # download prices and compute log returns │ ├── persistence.py # persistent homology over sliding windows │ ├── features.py # persistence landscapes / images / entropy │ └── classify.py # supervised classifier normal vs. crisis └── notebooks/ # historical analysis + visualizations
ROC-AUC > 0.85 separating normal regime from crisis.
Outperforms realized volatility baseline.
Temporal peaks of the "topological anomaly score" coinciding with:
subprime 2008 · European default 2011 · China selloff 2015 · COVID 2020.
Temporal score with macro events, persistence diagrams, and classifier metrics.
No results published yet.
What goes here: "topological anomaly score" time series with annotated crises, persistence diagrams across regimes, confusion matrix, and classifier AUC.