Places 31 to 66 of the forecasting study: error trackers, Wang and Hyndman's methods, reservoir and regime methods, ensemble CQR, HQR-WACI and plain references¶
Every method that the study ranked below 30th now runs in pyconformal, with the study's intervals.
| Use it when | You want to reproduce the study, compare your method with these, or need one of them on its own. For a first choice, start with which method, when: the top 30 do better. |
| Guarantee | Varies by method: see the table below. |
| In the library | DDCI, ECI, UPOCP, ConformalPID (quantile tracker and conformal PI), WangHyndmanSCP, WangHyndmanACP, WangHyndmanPID, ResCP, CQACP, CPTC, EnCQR, EnsCQR, HQRWACI, NaiveInterval, SeasonalNaiveInterval, MarginalInterval |
| Source | Each class's docstring names its paper; see Sources |
| Example needs | pyconformal with numba |
Why these are here¶
The study of conformal prediction for time-series forecasting (Manokhin, Nurmatov, Sreenivas and Liang 2026, doi:10.5281/zenodo.24715782) ranked 66 configurations on 50,143 series by rcWIS, the geometric mean of each method's weighted interval score over split conformal prediction's (below 1 is better than split conformal). Places 1 to 30 were already in pyconformal. This page covers the rest, so that the whole ranking can be rerun with one library, and so that the weaker methods are available as the references they are. Each one was checked against the study's code on 13 series at 11 levels with outcomes revealed in batches of 10.
| Place | Study name | rcWIS | In pyconformal | Same intervals as the study's code, to | Guarantee |
|---|---|---|---|---|---|
| 31 | DDCI | 1.283 | DDCI |
2e-14 | long-run coverage |
| 32 | ECI_cutoff | 1.287 | ECI(variant="cutoff") |
2e-14 | long-run coverage |
| 33 | QuantileTracker | 1.287 | ConformalPID(KI=0, Csat=1, unit_free=True) |
2e-14 | long-run coverage |
| 34 | ECI_integral | 1.292 | ECI(variant="integral") |
2e-14 | long-run coverage |
| 35 | ECI | 1.294 | ECI() |
2e-14 | long-run coverage |
| 36 | WH_ACP_clip | 1.350 | WangHyndmanACP(clip=True) |
1e-15 | none once clipped |
| 37 | ResCP_tuned | 1.501 | ResCP(temperature="tune") |
identical | asymptotic only |
| 38 | ResCP | 1.576 | ResCP() |
identical | asymptotic only |
| 39 | SPCI_RF | 1.629 | SPCI (already in the library) |
||
| 40 | CQACP | 1.651 | CQACP |
identical (same forest) | asymptotic only |
| 41 | CSP | 1.696 | ConformalSeasonalPool (already in the library) |
||
| 42 | SeasonalNaiveInterval | 1.710 | SeasonalNaiveInterval |
2e-14 | none (reference) |
| 43 | CPTC | 1.717 | CPTC |
1.4e-12 | long-run, under the paper's assumptions |
| 44 | EnCQR | 1.759 | EnCQR |
3e-15 | none |
| 45 | UPOCP | 1.795 | UPOCP |
2e-15 | long-run coverage |
| 46 | EnsCQR | 1.860 | EnsCQR |
2e-15 | approximate |
| 47 | CQR | 2.248 | ConformalizedQuantileRegressor (already in the library) |
||
| 48 | SplitConformal_exact | 2.463 | SplitConformalRegressor (already in the library) |
||
| 49, 50, 59, 65 | Nixtla_Split, Nixtla_NexCP, Nixtla_AgACI, Nixtla_ACI | 2.463 to 91.7 | statsforecast's versions; pyconformal's own are SplitConformalRegressor, NonexchangeableConformal, AgACI, AdaptiveConformalInference |
||
| 51 | RMCI | 3.129 | MarginalInterval(mode="rolling", study=True) |
3e-15 | exchangeable values only |
| 52 | SeMCI | 3.455 | MarginalInterval(mode="seasonal", study=True) |
7e-15 | exchangeable values only |
| 53 | WH_PID | 3.477 | WangHyndmanPID |
2e-14 | long-run coverage on each side |
| 54 | AcMCP | 3.611 | AcMCP (already in the library) |
||
| 55 | ConformalPI | 3.639 | ConformalPID(KI=max calibration score, unit_free=True) |
2e-14 | long-run coverage |
| 56 | NaiveInterval | 3.924 | NaiveInterval |
4e-15 | none (reference) |
| 57 | SMCI | 3.989 | MarginalInterval(study=True) |
5e-15 | exchangeable values only |
| 58 | WH_SCP | 5.768 | WangHyndmanSCP |
1e-15 | exchangeable errors only |
| 60, 61, 63 | DtACI_unclipped, BCACI, ACI_EnbPI_unclipped | 26.6 to 48.7 | DtACI, BCACI, AdaptiveConformalInference (already in the library, unclipped by default) |
||
| 62 | HQR_WACI | 45.1 | HQRWACI(estimators=[...], solver="statsmodels", study=True) with the study's three models; default HQRWACI() uses pyconformal's own models |
2e-15 | long-run, with infinite intervals allowed |
| 64 | WH_ACP | 89.9 | WangHyndmanACP() |
1e-15 | long-run coverage on each side |
| 66 | WH_WCP | 100.0 | WangHyndmanSCP(weighted=True) |
6e-14 | none for time series |
"Same intervals, to": the largest difference between the study's interval bounds and pyconformal's on any series, level and step, relative to the widest finite interval. "Identical" means bit for bit.
The rcWIS values far above 1 (places 58 to 66) come from infinite intervals: an unclipped method that returns an infinite interval scores an infinite WIS at that step, and the study scored it as such. That is a property of the method at that setting, not a fault in the code.
Clipping, and what it costs¶
WangHyndmanACP and WangHyndmanSCP take a quantile of the window's errors with an infinite value appended, as in
Wang and Hyndman's R package. When the level asks for more than the window can give (for example a 98% interval from
fewer than 99 errors), the margin is infinite. That is what keeps the guarantee: the interval is never too short.
clip=True replaces an infinite margin by the largest error seen on that side, as in the authors' own paper
experiments and in the study's WH_ACP_clip. The interval is then always finite and usually far better scored
(36th instead of 64th), but the method no longer promises its coverage: a clipped margin can be shorter than the
quantile the level requires. The default is clip=False.
HQRWACI has no clipping option: when its working level drops to 0 or below it returns an infinite interval, as the
reference code does. AdaptiveConformalInference, DtACI, AgACI and BCACI have clip=True with the same
trade-off; see what clipping changes.
Minimal examples¶
Copy, paste, run. One series with a noise level that changes every 400 steps, 24 lags as features, and a ridge forecast whose last 200 training errors calibrate the trackers.
import numpy as np
from pyconformal.point_models import Ridge
rng = np.random.default_rng(0)
n = 1600
t = np.arange(n)
scale = np.where((t // 400) % 2 == 0, 0.5, 1.5)
y = 10 + 2 * np.sin(2 * np.pi * t / 24) + scale * rng.normal(size=n)
X = np.column_stack([y[24 - k - 1: n - k - 1] for k in range(24)]) # the last 24 values as features
yy = y[24:]
X_train, y_train, X_test, y_test = X[:1000], yy[:1000], X[1000:], yy[1000:]
model = Ridge(alpha=1.0).fit(X_train[:800], y_train[:800])
cal_residuals = y_train[800:] - model.predict(X_train[800:])
y_pred = model.predict(X_test)
Trackers on absolute errors (the interval is y_pred ± threshold):
from pyconformal import DDCI, ECI, UPOCP, ConformalPID
for name, tracker in [("DDCI", DDCI(alpha=0.1)), ("ECI", ECI(alpha=0.1)),
("ECI, cutoff", ECI(alpha=0.1, variant="cutoff")),
("ECI, integral", ECI(alpha=0.1, variant="integral")),
("UPOCP", UPOCP(alpha=0.1)),
("quantile tracker", ConformalPID(alpha=0.1, KI=0.0, Csat=1.0, unit_free=True))]:
res = tracker.calibrate(scores=np.abs(cal_residuals)).run(scores=np.abs(y_test - y_pred), batch_size=10)
print(f"{name:17s} coverage {np.mean(np.abs(y_test - y_pred) <= res.thresholds):.3f}")
Wang and Hyndman's methods work on signed errors and give a lower and an upper margin:
from pyconformal import WangHyndmanACP, WangHyndmanPID, WangHyndmanSCP
for name, m in [("ACP, clipped", WangHyndmanACP(alpha=0.1, clip=True)), ("ACP", WangHyndmanACP(alpha=0.1)),
("SCP", WangHyndmanSCP(alpha=0.1)), ("WCP", WangHyndmanSCP(alpha=0.1, weighted=True)),
("PID", WangHyndmanPID(alpha=0.1))]:
res = m.calibrate(residuals=cal_residuals).run(residuals=y_test - y_pred, batch_size=10)
lower, upper = y_pred - res.lower_margins, y_pred + res.upper_margins
print(f"{name:13s} coverage {np.mean((y_test >= lower) & (y_test <= upper)):.3f}")
Reservoir conformal prediction and conditional quantile adjusted CP take the forecasts and several levels at once:
from pyconformal import CQACP, ResCP
res = ResCP().calibrate(residuals=cal_residuals).run(y_pred=y_pred, y=y_test, alpha=[0.1, 0.2], batch_size=10)
print("ResCP", res.intervals.shape) # (576, 2, 2)
half = Ridge(alpha=1.0).fit(X_train[:500], y_train[:500]) # CQACP: half the rows for calibration
res = CQACP(random_state=0).calibrate(residuals=y_train[500:] - half.predict(X_train[500:])).run(
y_pred=half.predict(X_test), y=y_test, alpha=[0.1], batch_size=10)
print("CQACP", res.intervals.shape) # (576, 2, 1)
Methods that fit their own models on the features:
from pyconformal import CPTC, EnCQR, EnsCQR, HQRWACI
m = CPTC(alpha=0.1, levels=(0.1, 0.2), random_state=0).fit(X_train, y_train)
print("regimes found", m.model_.K, "next interval", m.predict_interval(X_test[:1]))
print("CPTC coverage", m.run(X_test, y_test, alpha=[0.1, 0.2], batch_size=10).coverage)
print("EnCQR coverage", EnCQR(alpha=0.1, random_state=0).fit(X_train, y_train).run(X_test, y_test, batch_size=10).coverage)
print("EnsCQR coverage", EnsCQR(alpha=0.1, n_bootstraps=10, random_state=0).fit(X_train, y_train).run(
X_test, y_test, batch_size=10).coverage)
print("HQR-WACI coverage", HQRWACI(alpha=0.1).fit(X_train, y_train).run(X_test[:100], y_test[:100], batch_size=10).coverage)
The plain references, from the series alone:
from pyconformal import MarginalInterval, NaiveInterval, SeasonalNaiveInterval
history, future = y[:1200], y[1200:]
for name, m in [("naive", NaiveInterval()), ("seasonal naive", SeasonalNaiveInterval(season=24)),
("marginal", MarginalInterval()), ("marginal, rolling", MarginalInterval(mode="rolling")),
("marginal, seasonal", MarginalInterval(mode="seasonal", season=24))]:
print(f"{name:18s} coverage {m.fit(history).run(future, alpha=0.1, batch_size=10).coverage:.3f}")
Notes¶
- Study parity is opt-in (from 0.1.10). Where the study's code departs from the method as written, pyconformal's
default is the method as written and
study=Truegives the study's numbers:HQRWACI(the study's code wroteceil(n + 1) * (1 - a) / n, a misplaced parenthesis, instead ofceil((n + 1) * (1 - a))) andMarginalInterval(the study's bounds are always finite and can cover less than1 - alphaon short histories; the default bounds are the exact order statistics, infinite when the history is too short).CPTC(order="code")likewise keeps the authors' function, least probable states first; the default is the paper's order. - Margins.
ResCP,CQACPandWangHyndmanACPall returnlower_marginsandupper_marginsas distances below and above the forecast: the interval is[y_pred - lower_margins, y_pred + upper_margins](from 0.1.10; before,ResCPandCQACPreturned the lower margin with its sign). - Unified patterns. Trackers:
calibrate(scores=...)orcalibrate(residuals=...), thenrun(..., batch_size)orpredict_intervalandupdatestep by step.ResCPandCQACP:calibrate(residuals=...)andrun(y_pred=, y=, alpha=[...], batch_size). Feature-based methods (CPTC,EnCQR,EnsCQR,HQRWACI):fit(X, y),predict_interval(X, alpha),update(X, y),run(X, y, alpha, batch_size). Series-only references:fit(history),run(future, alpha, batch_size). - Batches. Every row of a batch gets the interval in force when the batch starts; the method learns from the batch's outcomes when it is revealed, one at a time, each against the interval that was played for it.
- Fixed levels.
CPTCkeeps a working level for each level it serves, so its levels are set when it is built (levels=, the study's 11 by default). - HQRWACI's width scale is the median interval width at the
alphait is built with; the study built it at 0.02 (the first of its levels), and the check above does the same. - HQRWACI needs neither scikit-learn nor statsmodels. Its default point models are pyconformal's own ridge
regression, nearest neighbours and extremely randomised trees, and its quantile regressions are statsmodels'
iterations compiled with numba (point models). On the 13 series its rcWIS is the study's
(3.394 against 3.395); single intervals differ where a coverage outcome flips, since the trees draw their own random
thresholds. The study's own three point models passed as
estimators=, withsolver="statsmodels", give the study's intervals exactly (tests/test_places31.py). - CPTC pairs the authors' conformal layer with a Markov-switching linear regression fitted by EM (2 or 3 regimes by BIC), as in the study; the authors used a trained deep switching model.
- DDCI takes its feedback in the unit of the data, as the authors' code does, so the feedback fades on series measured in small units and saturates on large ones.
Speed¶
Full protocol (11 levels, outcomes revealed in batches of 10), the study's code against pyconformal, summed over four series (hourly, five-minute, daily and monthly; 2 cores), same intervals. "Same model" means the same quantile forest, so the gain is in the conformal layer; "own model" swaps in pyconformal's quantile forest.
| Method (place) | Study's code | pyconformal | Speed-up |
|---|---|---|---|
DDCI (31) |
0.62 s | 48 ms | 13x |
ECI(variant="cutoff") (32) |
0.47 s | 43 ms | 11x |
| quantile tracker (33) | 0.17 s | 14 ms | 13x |
ECI(variant="integral") (34) |
1.22 s | 0.10 s | 12x |
ECI (35) |
0.36 s | 79 ms | 4.5x |
WangHyndmanACP(clip=True) (36) |
0.18 s | 25 ms | 7.4x |
ResCP(temperature="tune") (37) |
2.28 s | 0.70 s | 3.2x |
ResCP (38) |
0.70 s | 0.24 s | 2.9x |
CQACP (40), same model |
3.45 s | 3.36 s | 1.0x |
CQACP (40), own model |
3.40 s | 0.87 s | 3.9x |
SeasonalNaiveInterval (42) |
0.31 s | 6 ms | 54x |
CPTC (43) |
3.46 s | 0.35 s | 9.8x |
EnCQR (44), same model |
7.98 s | 7.17 s | 1.1x |
EnCQR (44), own model |
7.62 s | 1.91 s | 4.0x |
UPOCP (45) |
0.12 s | 27 ms | 4.3x |
EnsCQR (46), same model |
13.9 s | 12.8 s | 1.1x |
EnsCQR (46), own model |
13.5 s | 3.40 s | 4.0x |
MarginalInterval(mode="rolling") (51) |
0.74 s | 13 ms | 54x |
MarginalInterval(mode="seasonal") (52) |
0.77 s | 17 ms | 44x |
WangHyndmanPID (53) |
0.19 s | 73 ms | 2.6x |
| conformal PI (55) | 0.21 s | 15 ms | 15x |
NaiveInterval (56) |
0.28 s | 4 ms | 72x |
MarginalInterval() (57) |
1.72 s | 15 ms | 112x |
WangHyndmanSCP (58) |
0.21 s | 23 ms | 9.0x |
HQRWACI (62), study's models |
23.1 s | 14.4 s | 1.6x |
HQRWACI (62), own models (default) |
31.9 s | 4.7 s | 6.8x |
WangHyndmanACP (64) |
0.19 s | 23 ms | 8.0x |
WangHyndmanSCP(weighted=True) (66) |
0.31 s | 0.16 s | 1.9x |
Where the gain comes from: sorted windows instead of a sort at every step; Wang and Hyndman's methods and the weighted quantile compiled with numba; CPTC's forward-backward passes compiled and its score quantiles read off sorted lists; HQR-WACI's quantile regressions compiled and run in parallel (or, for the exact mode, in lockstep with statsmodels' arithmetic but not its covariance step), its point models pyconformal's own, and only the part of its width grid that moves updated. With the same forests the time is the forests'.
Against public code on one hourly series (benchmarks/speed_places31.py, output in
benchmarks/output_speed_places31.txt): CPTC 9x faster with numba than on the NumPy path; the weighted Wang and
Hyndman method 14x; HQRWACI 11x faster than with scikit-learn's models and statsmodels' QuantReg; with
pyconformal's forest instead of quantile-forest's, CQACP 4x, EnCQR and EnsCQR 6x to 7x. The authors of DDCI,
ECI, UPOCP and ResCP released research code built around their own experiments, not a library to time against; the
Wang and Hyndman methods are R code; CQACP and HQR-WACI's paper code is not packaged.
Sources¶
- DDCI: Du, Luo and Aickelin, arXiv 2610.26987. ECI: Wu, Ding, Xie, Ye, Fan and Hu, ICLR 2025, arXiv 2502.00818.
- Quantile tracker and conformal PI: Angelopoulos, Candès and Tibshirani, NeurIPS 2023.
- UPOCP: Liu, Dobriban and Orabona, arXiv 2602.03168.
- Wang and Hyndman: R package
conformalForecast(GPL-3), arXiv 2410.13115. - ResCP: Neglia, Cini, Bronstein and Bianchi, ICLR 2026, arXiv 2510.05060 (MIT-licensed release).
- CQACP: Yu, Zhu and Zhu, ICML 2026, PMLR 306.
- CPTC: Sun and Yu, NeurIPS 2025, arXiv 2509.02844.
- EnCQR: Jensen, Bianchi and Anfinsen, arXiv 2202.08756 (MIT-licensed code).
- EnsCQR: bagged CQR with an online correction from the conformal forecasting study (Manokhin et al. 2026; distinct from Jensen et al.'s
EnCQR). - HQR-WACI: Sebastian, González-Guillén and Juan, 2024.
More¶
- The top 30: which method, when
- The study's protocol and scoring: evaluation
- Full argument list: API reference