What does Conformal Intervals for Orders conclude, in numbers, about “The Correct Rank: Why "Plus One" Matters and Where the Finite-Sample Guarantee Comes From”?
Answer: Chapter 2 proves that the rank must be the calibration size plus one, times one minus alpha, rounded up; without the plus one, twenty calibration values cover only 0.9048.
Scope of the numbers: Parameters are illustrative; all calculations are generated by the book's programs; the book is general business analysis, not individualised business advice. Marked boxes separate published evidence, runnable Python calculations (23 programs), classical sources and the author's hypotheses.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 0.9048
| alpha = 0.05; exact coverage = k / (m + 1) | |||||
| m | k | level k/m | coverage | bound 1-a+1/(m+1) | naive cov |
| 10 | 11 | infinite interval (k > m) | |||
| 19 | 19 | 1.0000 | 0.9500 | 1.0000 | 0.9500 |
| 20 | 20 | 1.0000 | 0.9524 | 0.9976 | 0.9048 |
| 30 | 30 | 1.0000 | 0.9677 | 0.9823 | 0.9355 |
| 39 | 38 | 0.9744 | 0.9500 | 0.9750 | 0.9500 |
| 50 | 49 | 0.9800 | 0.9608 | 0.9696 | 0.9412 |
| 99 | 95 | 0.9596 | 0.9500 | 0.9600 | 0.9500 |
| 100 | 96 | 0.9600 | 0.9505 | 0.9599 | 0.9406 |
| 199 | 190 | 0.9548 | 0.9500 | 0.9550 | 0.9500 |
| 999 | 950 | 0.9510 | 0.9500 | 0.9510 | 0.9500 |
| smallest m with a finite interval: 19 | |||||
| for alpha = 0.10: 9; for alpha = 0.01: 99 |
Show the full program
# Chapter 2. p21: the correct rank k = ceil((m + 1)(1 - alpha)).
# Model: m exchangeable calibration scores with no ties. The new
# score is equally likely to fall in any of the m + 1 gaps, so the
# interval built from the k-th smallest score covers with probability
# exactly k / (m + 1), computed here as a Fraction. The naive rank
# ceil(m (1 - alpha)) ignores the new point and can fall short.
import math
from fractions import Fraction
def rank(m, alpha):
return math.ceil((m + 1) * (1 - alpha))
if __name__ == "__main__":
alpha = Fraction(5, 100)
print("alpha = 0.05; exact coverage = k / (m + 1)")
print(" m k level k/m coverage bound 1-a+1/(m+1) naive cov")
for m in (10, 19, 20, 30, 39, 50, 99, 100, 199, 999):
k = rank(m, alpha)
k0 = math.ceil(m * (1 - alpha))
if k > m:
print("{:4d} {:3d} infinite interval (k > m)".format(m, k))
continue
cov = Fraction(k, m + 1)
top = 1 - alpha + Fraction(1, m + 1)
print("{:4d} {:3d} {:.4f} {:.4f} {:.4f} {:.4f}"
.format(m, k, k / m, float(cov), float(top),
k0 / (m + 1)))
print("smallest m with a finite interval: {}".format(
min(m for m in range(1, 200) if rank(m, alpha) <= m)))
print("for alpha = 0.10: {}; for alpha = 0.01: {}".format(
min(m for m in range(1, 999) if rank(m, Fraction(1, 10)) <= m),
min(m for m in range(1, 999) if rank(m, Fraction(1, 100)) <= m)))Single source and citation
Fan, Y. (2026). Conformal Prediction and Distribution-Free Intervals: Finite-Sample Coverage Guarantees for Order Counts and Order Values (Version 1.0.0), Chapter 2: The Correct Rank: Why "Plus One" Matters and Where the Finite-Sample Guarantee Comes From. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-306 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026306,
author = {Fan, Yafu},
title = {Conformal Prediction and Distribution-Free Intervals: Finite-Sample Coverage Guarantees for Order Counts and Order Values},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · The Coverage Gap of Normal Intervals: Heavy-Tailed Orders Push Every Miss to the Right
- Chapter 3 · The Price of the Guarantee: Interval Width, the Shape of the Score and the Extra Paid When Normality Holds
- Chapter 4 · How Large a Calibration Set: Coverage Given the Calibration Set Follows a Beta Law
- Chapter 5 · Marginal Is Not Conditional: Traffic Bands, Customer Segments and Intervals Too Wide to Use
- Chapter 6 · When Exchangeability Breaks: Weekend Effects, Growth Drift, Promotion Shocks and Three Repairs
- Chapter 7 · Classical Sources East and West: Guo Shoujing's "The Calendar Rests on Measurement" and Neyman's Confidence Intervals
- Chapter 8 · Closing the Loop: the Weekly Order-Count Interval Sheet, the Conformal Interval Calculator and a Pre-Registered Test