Skip to content

Conformal e-prediction (e-values & valid ensembling)

Conformal e-values satisfying \(\mathbb{E}[e(S_{n+1})] \le 1\) under exchangeability — enabling valid merging of multiple conformal predictors under arbitrary dependence.

Use it when You want to combine multiple conformal predictors without Bonferroni penalties, or want anytime-valid e-calibrated thresholds.
Guarantee Exact finite-sample e-value validity \(\mathbb{E}[e(S_{n+1})] \le 1\) and Markov coverage \(\mathbb{P}(e(S_{n+1}) \ge 1/\alpha) \le \alpha\); convex combinations of valid e-values stay valid under arbitrary dependence.
In the library ConformalEPredictor (calibrator="power"|"ratio", merge_evalues)
Source Vovk and Wang (2021); Gauthier, Bach and Jordan (2025)
Example needs pyconformal

Finite-sample e-value validity

Any weighted average \(\bar{e} = \sum_k w_k e_k\) of valid conformal e-values remains a valid e-value (\(\mathbb{E}[\bar{e}] \le 1\)) even when the underlying models share training or calibration data.

Minimal example

Copy, paste, run.

import numpy as np
from pyconformal import ConformalEPredictor

rng = np.random.default_rng(0)
y_cal = rng.normal(size=500)
y_test = rng.normal(size=500)

ep_pow = ConformalEPredictor(alpha=0.1, calibrator="power", kappa=0.5).calibrate(y_pred=np.zeros(500), y=y_cal)
ep_rat = ConformalEPredictor(alpha=0.1, calibrator="ratio", random_state=0).calibrate(y_pred=np.zeros(500), y=y_cal)

e1 = ep_pow.predict_evalue(y_pred=np.zeros(500), y=y_test)
e2 = ep_rat.predict_evalue(y_pred=np.zeros(500), y=y_test)
merged = ConformalEPredictor.merge_evalues([e1, e2], weights=[0.5, 0.5])
print(f"mean merged e-value: {merged.mean():.3f}  rejection rate at 1/alpha: {(merged >= 10.0).mean():.3f}")

More