English

tsbootstrap: Distribution-Free Uncertainty Quantification and Conformal Prediction for Time Series

Methodology 2026-07-07 v1 Artificial Intelligence Mathematical Software Statistical Finance Applications

Abstract

Finance, sensing, and demand streams violate the exchangeability that IID conformal prediction and the IID bootstrap assume, and existing libraries implement either a general resampling engine or conformal calibration without the other. tsbootstrap provides block, residual, sieve, and wild resampling, classical bootstrap confidence intervals, and adaptive conformal calibrators (EnbPI, ACI, NexCP, AgACI) through a single typed API in which a specification object selects each method. In a controlled coverage study the IID bootstrap undercovers sharply under dependence; dependence-aware methods reduce the coverage deficit, the sieve nearest to nominal under short-memory linear dependence. On the shared fixed-statistic path a compiled backend runs several times faster than arch, and a streaming reduce avoids materializing the O(Bn)O(Bn) replicate tensor, limiting peak extra memory to O(B)O(B) for the statistic array. The software is MIT licensed (v0.6.1).

Cite

@article{arxiv.2607.06690,
  title  = {tsbootstrap: Distribution-Free Uncertainty Quantification and Conformal Prediction for Time Series},
  author = {Sankalp Gilda},
  journal= {arXiv preprint arXiv:2607.06690},
  year   = {2026}
}

Comments

4 + 2 pages. Code: https://github.com/astrogilda/tsbootstrap