Proposition 1: the pointwise FPR has a Beta distribution
ProvedConformalOutlierTesting.fpr_beta_distributionLet the scores be continuously distributed with law , and let the calibration scores be i.i.d. with law . Let with . Then the conditional false positive rate
follows the distribution.
Its mean is , but it exceeds with non-negligible probability.
Formalization Note The paper does not restrict . For one has , and is not a distribution (the FPR is then ). For the second parameter is not positive. The hypotheses and exclude these cases.
import Mathlib import Definitions.Def_ConformalOutlierTesting_Basic open MeasureTheory ProbabilityTheory Filter Topology Set BoundedContinuousFunction
namespace ConformalOutlierTesting
theorem fpr_beta_distribution {n : ℕ} (μ : Measure ℝ) [IsProbabilityMeasure μ] [NullSingletonClass μ]
(α : ℝ) (hα1 : α < 1) (hl : 1 ≤ ⌊((n : ℝ) + 1) * α⌋₊) :
(Measure.pi fun _ : Fin n => μ).map (fun s => fpr μ s α) =
betaMeasure (⌊((n : ℝ) + 1) * α⌋₊ : ℝ) ((n : ℝ) + 1 - ⌊((n : ℝ) + 1) * α⌋₊) := by sorry
end ConformalOutlierTestingRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix a natural number (the number of calibration scores) and a Borel probability measure on . The measure is assumed to have no atoms: for every . Fix a real number satisfying two hypotheses:
- ;
- , where
the natural-number floor (which returns whenever ).
Consequences of the hypotheses. Together these force:
- , so ;
- , because for the floor of is ;
- , so both Beta parameters below are at least .
The marginal conformal p-value. For calibration scores and a point , define
The false positive rate. As a function of , define
a real number in . This is the -probability that a fresh point drawn from receives a p-value at most , with held fixed.
Claim. Let be i.i.d. with law , so that has the product law on . The theorem asserts that the image (pushforward) of under the map is exactly the Beta distribution
Here is the probability measure on with density
on and density elsewhere.
Convention for non-measurable maps. The pushforward is taken with the convention that it is the zero measure if fails to be almost-everywhere measurable with respect to . The asserted equality with a probability measure therefore also implicitly asserts that this map is a.e. measurable.
What is not assumed. No further assumptions are made on (no density or continuity beyond having no atoms). No assumption is made on beyond the two hypotheses above, and need not be an integer.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.