WRITE · TRACE · UNDERSTAND
Use the finite-sample conformal rank
Implement conformal_radius(residuals,alpha) with finite nonnegative residuals, nonempty input and 0<alpha<1.
Read lesson: Use the finite-sample conformal rank →
Your experiment
Implement conformal_radius(residuals,alpha) with finite nonnegative residuals, nonempty input and 0<alpha<1. Return sorted residual at one-based rank ceil((n+1)*(1-alpha)); return inf if rank>n.
Python runs in your browser. Your draft stays on this device.
What to look for
The guarantee depends on exchangeable calibration and future scores. An infinite interval honestly reports insufficient calibration information at the requested error level rather than silently overstating confidence.
Watch your code work
Ready to experimentWrite a solution or load the worked answer, then choose Trace & check.
Step through arrays, variables and training curves produced by your own Python.
