Skip to content

More online trackers: SAOCP, SF-OGD, decaying steps, LQT, betting, Bellman, BC-ACI, rolling origin, drift, RCI

Ten more ways to turn a stream of forecast errors into the half-width of the next interval, with the interface of ACI.

Use it when You forecast a series one step at a time and want the interval to follow the errors as they change.
Guarantee Long-run coverage for any sequence: DecayOCP, LQT, ACIBet, BCACI (default, unclipped), RCI, Bellman CI. SAOCP: strongly adaptive regret. SFOGD: regret against any fixed radius. DriftOCP: training-conditional regret under its drift model. Rolling-origin CP: none (heuristic).
In the library SAOCP, SFOGD, DecayOCP, LinearQuantileTracker, ACIBet, BellmanCI, BCACI, RollingOriginCP, DriftOCP, RCI
Source Bhatnagar et al. (2023); Angelopoulos, Barber and Bates (2024); Areces et al. (2025); Podkopaev, Xu and Lee (2024); Yang, Candès and Lei (2024); Lade et al. (2026); Halkiewicz (2026); Liang, Ren and Chen (2026); Feldman, Ringel, Bates and Romano (2023)
Example needs pyconformal

Why these are here

The large-scale study of conformal prediction for time-series forecasting ranked 66 configurations on 50,143 series from 158 public datasets, by the weighted interval score relative to split conformal prediction (rcWIS) — Manokhin, Nurmatov, Sreenivas and Liang (2026), doi:10.5281/zenodo.24715782. Ten configurations from these trackers sit in the study's top 20 (plus SFOGD at 26th); pyconformal includes all 66 configurations. Each was checked against the study's implementation: the same radius at every step, at batch sizes 1 and 10, to 1e-13.

Class Study column (place of 66) rcWIS in the study
RCI RCI (4) 0.796
BCACI(clip=True) BCACI_clip (7) 0.825
RollingOriginCP RollingOriginCP (9) 0.840
LinearQuantileTracker(lr_type="decaying") LQT_decay (10) 0.843
ACIBet ACIBet (11) 0.850
DriftOCP DriftOCP (13) 0.861
LinearQuantileTracker(lr_type="fixed") LQT_fixed (14) 0.867
BellmanCI BellmanCI (15) 0.876
SAOCP SAOCP (16) 0.900
DecayOCP DecayOCP (17) 0.965
SFOGD SFOGD (26) 1.114

Below 1 means a smaller interval score than split conformal prediction on the same point forecasts.

Minimal examples

Copy, paste, run. The same data for every method: a forecast, the outcomes, and errors seen before going online.

import numpy as np

rng = np.random.default_rng(0)
T = 1200
scale = np.exp(np.cumsum(rng.normal(0, 0.02, T)))        # the size of the errors drifts
forecasts = np.sin(np.arange(T) / 30)
actuals = forecasts + scale * rng.normal(size=T)
cal_errors = actuals[:300] - forecasts[:300]               # errors seen before going online
f_test, y_test = forecasts[300:], actuals[300:]

Rolling conformal inference (RCI):

from pyconformal import RCI

res = RCI(alpha=0.1).calibrate(residuals=cal_errors).run(y_pred=f_test, y=y_test)
print("RCI coverage", round(res.coverage, 3), "intervals", res.intervals.shape)

Bias-corrected ACI; clip=True is the study's column, without the guarantee:

from pyconformal import BCACI

res = BCACI(alpha=0.1).calibrate(residuals=cal_errors).run(y_pred=f_test, y=y_test)
res_clip = BCACI(alpha=0.1, clip=True).calibrate(residuals=cal_errors).run(y_pred=f_test, y=y_test)
print("BCACI coverage", round(res.coverage, 3), "clipped", round(res_clip.coverage, 3))

Rolling-origin conformal prediction (window chosen by Winkler cross-validation):

from pyconformal import RollingOriginCP

t = RollingOriginCP(alpha=0.1).calibrate(residuals=cal_errors)
print("window chosen", t.m_, "coverage", round(t.run(y_pred=f_test, y=y_test).coverage, 3))

Linear quantile tracker, decaying or fixed step, setting chosen on the calibration errors:

from pyconformal import LinearQuantileTracker

for lr_type in ("decaying", "fixed"):
    t = LinearQuantileTracker(alpha=0.1, lr_type=lr_type).calibrate(residuals=cal_errors)
    print("LQT", lr_type, t.setting_, round(t.run(y_pred=f_test, y=y_test).coverage, 3))

ACI by betting:

from pyconformal import ACIBet

print("ACIBet", round(ACIBet(alpha=0.1).calibrate(residuals=cal_errors).run(y_pred=f_test, y=y_test).coverage, 3))

Online conformal prediction with drift detection:

from pyconformal import DriftOCP

t = DriftOCP(alpha=0.1).calibrate(residuals=cal_errors)
res = t.run(y_pred=f_test, y=y_test)
print("DriftOCP", round(res.coverage, 3), "drifts detected", t.n_drifts_)

Bellman conformal inference:

from pyconformal import BellmanCI

res = BellmanCI(alpha=0.1).calibrate(residuals=cal_errors).run(y_pred=f_test, y=y_test)
print("BellmanCI", round(res.coverage, 3), "working level at the end", round(res.alphas[-1], 3))

Strongly adaptive online conformal prediction:

from pyconformal import SAOCP

print("SAOCP", round(SAOCP(alpha=0.1).calibrate(residuals=cal_errors).run(y_pred=f_test, y=y_test).coverage, 3))

Scale-free online gradient descent (one SAOCP expert that never retires; 26th in the study, same radii as its code to 1e-14):

from pyconformal import SFOGD

print("SFOGD", round(SFOGD(alpha=0.1).calibrate(residuals=cal_errors).run(y_pred=f_test, y=y_test).coverage, 3))

Decaying step sizes:

from pyconformal import DecayOCP

print("DecayOCP", round(DecayOCP(alpha=0.1).calibrate(residuals=cal_errors).run(y_pred=f_test, y=y_test).coverage, 3))

One step at a time, and outcomes revealed in batches of ten, work the same way for all of them:

t = RCI(alpha=0.1).calibrate(residuals=cal_errors)
interval = t.predict_interval(y_pred=f_test[:1])            # (1, 2)
missed = t.update(y_pred=f_test[:1], y=y_test[:1])
batched = RCI(alpha=0.1).calibrate(residuals=cal_errors).run(y_pred=f_test, y=y_test, batch_size=10)

Notes

  • BCACI re-centres the interval on a running bias, so it needs signed errors (residuals=, or y_pred= with y).
  • SAOCP is scale-free in exact arithmetic, but its experts switch on and off at zero weight, so changes at the level of rounding (other units, predictions made in batches) can move later radii by 10% to 25%. Coverage is not affected.
  • DecayOCP, LQT, ACIBet and RCI are unit-free by default: their steps scale with the calibration errors.

Speed

Time per online step on 5,000 calibration errors, one step at a time, 2 cores, numba installed (benchmarks/speed_trackers.py, output in benchmarks/output_speed_trackers.txt; calibration and tuning are not timed):

Method pyconformal Authors' code Speed-up
SAOCP 7.5 µs salesforce/online_conformal: 896 µs 119x
DtACI (clip=True) 91 µs salesforce/online_conformal FACI: 1,278 µs 14x
LinearQuantileTracker 3.0 µs conformalopt 0.1.0: 8.4 µs 2.8x
RollingOriginCP 2.9 µs no public code
DecayOCP, ACIBet, RCI 1.7 to 1.8 µs no public code
DriftOCP 14 µs no public code
BCACI (clip=True) 36 µs no public code
WeightedQuantileConformal (window 5,000) 74 µs no public code
BellmanCI 126 µs no public code
ACI (clip=True, window 5,000) 10 µs
AgACI (clip=True, window 5,000) 98 µs

Against the study's own implementations of the same rules (same numbers), the speed-ups are 12x for RollingOriginCP, 27x for ACI with clipping, 82x for AgACI with clipping, 4x for the weighted quantile, 2x to 3x for DtACI, BellmanCI, BCACI and DriftOCP, and about 1x to 2x for SAOCP (the study also compiles it), DecayOCP and LQT. Where the speed comes from: sorted windows with NumPy's exact quantile arithmetic (an insertion per step instead of a sort), compiled kernels for SAOCP and BCACI when numba is installed, and plain floats for the one tuned LQT setting. ACIBet and RCI cost one Python call per step: a bare loop of the formula is faster, but the method object adds intervals, batching and checks.

More