open source · github · symbolic-regression · hawkes-processes · backtesting · conformal-prediction
Four GitHub repos, all free and open source. A formula finder from an astrophysicist, a Hawkes process library from École polytechnique, an Oxford econometrician's toolkit, and a scikit-learn add-on for prediction intervals.
Each one does a research job a quant fund pays people to do: find the model, model the order flow, check the backtest isn't luck, and put an honest range around the forecast.
For each one: what it does, the research behind it, and the link. At the end: how the four fit into one research loop.
You give PySR data and it searches for an actual formula that fits, built from operators you allow. What comes out is an equation you can read, not a black box. Miles Cranmer, now at Cambridge's Institute of Astronomy, built it for science.
In March 2026 Martin Keller-Ressel and Hannes Nikulski at TU Dresden pointed it at S&P 500 implied volatility from January 2005 to December 2023. Their benchmark was SVI, the smile formula devised at Merrill Lynch in 1999, which writes total implied variance as a function of log-moneyness :
PySR found formulas that fit the smile better than SVI and are simpler. SVI scores 15 on PySR's complexity count. The simplest formula that beat it scores 10.
Open it: PySR
A Hawkes process is a model where every event makes the next one more likely for a while. The rate of events at time is a base rate plus a bump from each past event:
Seismologists use the same model for aftershocks. Order flow behaves in a similar way, since one order triggers the next.
tick, from École polytechnique's Data Science Initiative, fits these models fast. Its own paper fits both an earthquake catalogue and the Bund futures order book. On the Bund, the fitted kernels show which events trigger which: price moves up, price moves down, and market orders at the bid or ask that don't move the price.
Open it: tick
arch is named after the ARCH and GARCH volatility models it fits, and that's what it is known for. Its bootstrap module also answers the question every backtest ends on: did your best strategy beat the benchmark, or did it just get lucky?
Try 500 parameter combinations and some will look great by chance. Hansen's SPA test, Romano and Wolf's StepM and the Model Confidence Set all correct for how many you tried. Kevin Sheppard, a financial econometrician at Oxford, maintains it.
So I gave it 500 strategies with no edge at all, ten years of pure noise each.

The best one had a Sharpe ratio of 0.99 and a single-test p-value of 0.0009. 39 of the 500 pass a 5% test on their own. SPA gives the best one a p-value of 0.32, and StepM finds no strategy that beat holding cash.
Open it: arch
MAPIE wraps any scikit-learn model and gives you a range instead of a single number, built to contain the real value a set share of the time. The method underneath, conformal prediction, normally assumes tomorrow looks like the past.
Market data breaks that, so MAPIE has time series methods, EnbPI and ACI, that adjust the range based on recent misses. ACI's whole update is one line. With the target miss rate and when the last range missed:
A miss lowers , which widens the next range, so the range widens after a shock. Isaac Gibbs and Emmanuel Candès, who wrote ACI, tested it on the stock volatility of Nvidia, AMD, BlackBerry and Fannie Mae. The non-adaptive version failed to cover Fannie Mae's volatility.
Open it: MAPIE
Line them up and they make one research loop. PySR proposes the model, tick models the order flow it trades in, arch checks the result isn't luck, and MAPIE puts a range on the forecast that stays honest when the market shifts.
None of them hands you a strategy. They make the research honest, and the edge is still your job.
Two of the foundations are on QuantFrame. The Poisson process that a Hawkes process extends is in Stochastic Processes, and the multiple testing trap that arch's tests fix is in Statistical Computing, where twenty noise signals produce a fake winner in front of you.
The repos are free. When you want the maths to use them properly, your roadmap is waiting at quantframe.io.
Found this useful?
Likes decide what gets written next.Sign in to like
QuantFrame teaches you the math, code, and projects to break into quant. Plus a personalized roadmap built for your background and goals.