Given calibration scores (assumed to come from non-influential, "clean" observations) and test scores, computes marginal conformal p-values in the sense of Bates and others (2023). Larger scores indicate stronger evidence of influence, so the p-value for a test point is the calibrated rank of its score among the calibration scores.
Details
For a test score \(s\) and calibration scores \(c_1, \ldots, c_n\), the conformal p-value is $$p = \frac{1 + \#\{i : c_i \ge s\}}{n + 1}.$$ These p-values are marginally valid (super-uniform under the null that the test point is exchangeable with the calibration set) and, by the positive-dependence result of Bates and others (2023), permit Benjamini-Hochberg FDR control.