Skip to content

Conformal decision theory (online decision risk control)

Directly calibrate an online decision parameter \(\lambda_t\) to control long-run decision loss for arbitrary non-exchangeable streams — without building intermediate prediction sets.

Use it when You control an operational decision parameter (safety margin, triage cutoff, inventory buffer) on a drifting stream with bounded realized loss \(L_t(\lambda_t) \in [0, B]\).
Guarantee Distribution-free long-run average loss \(\frac{1}{T}\sum_{t=1}^T L_t(\lambda_t) \le \alpha + O(1/T)\) for arbitrary sequences (no exchangeability required).
In the library ConformalDecisionControl, DecisionResult
Source Lekeufack, Angelopoulos, Bajcsy, Jordan and Malik (2024)
Example needs pyconformal

Long-run distribution-free decision guarantee

Updating \(\lambda_{t+1} = \lambda_t + \eta\,(L_t(\lambda_t) - \alpha)\) guarantees long-run decision risk at most \(\alpha\) on arbitrary streams whenever a safe \(\lambda\) region exists.

Minimal example

Copy, paste, run.

import numpy as np
from pyconformal import ConformalDecisionControl

rng = np.random.default_rng(0)
shocks = np.r_[np.abs(rng.normal(0.0, 1.0, 300)), np.abs(rng.normal(0.0, 3.5, 300))]

ctrl = ConformalDecisionControl(alpha=0.10, lr=0.2, B=1.0, init_lambda=1.0)
res = ctrl.run(loss_fn=lambda shock, lam: 1.0 if shock > lam else 0.0, data=shocks)
print(f"long-run mean loss: {res.mean_loss:.3f}  final lambda: {res.lambdas[-1]:.2f}")

More