Valid p-values and false discovery proportion
DefinitionValid p-value#✓fully proved
A real random variable X is a valid (super-uniform) p-value under μ if
μ {X ≤ t} ≤ t for every level t ∈ [0, 1]. Uniform p-values are the equality case.
def IsValidPValue (μ : Measure Ω) (X : Ω → ℝ) : Prop :=
∀ t ∈ Set.Icc (0 : ℝ) 1, μ {ω | X ω ≤ t} ≤ ENNReal.ofReal t
Used by 10
TheoremUniform p-values are valid#✓fully proved
A p-value distributed uniformly on [0, 1] is valid.
theorem isValidPValue_of_hasLaw_uniform {μ : Measure Ω} {X : Ω → ℝ}
(hX : HasLaw X (volume.restrict (Set.Icc (0 : ℝ) 1)) μ) : IsValidPValue μ X
def IsValidPValue (μ : Measure Ω) (X : Ω → ℝ) : Prop :=
∀ t ∈ Set.Icc (0 : ℝ) 1, μ {ω | X ω ≤ t} ≤ ENNReal.ofReal t
MathlibExt/Probability/Statistics/MultipleTesting/Basic.lean:57
Uses 1 · Used by 1
DefinitionNumber of p-values below a threshold#✓fully proved
The number of p-values that are at most t.
noncomputable def numBelow (p : Fin m → ℝ) (t : ℝ) : ℕ :=
(Finset.univ.filter fun i => p i ≤ t).card
Used by 15
TheoremNumber of p-values below a threshold is at most the total#✓fully proved
At most m p-values lie below any threshold.
theorem numBelow_le (p : Fin m → ℝ) (t : ℝ) : numBelow p t ≤ m
noncomputable def numBelow (p : Fin m → ℝ) (t : ℝ) : ℕ :=
(Finset.univ.filter fun i => p i ≤ t).card
MathlibExt/Probability/Statistics/MultipleTesting/Basic.lean:106
Uses 1 · Used by 1
TheoremNumber of p-values below a threshold is monotone#✓fully proved
numBelow p is monotone in the threshold.
theorem numBelow_mono (p : Fin m → ℝ) {s t : ℝ} (hst : s ≤ t) : numBelow p s ≤ numBelow p t
noncomputable def numBelow (p : Fin m → ℝ) (t : ℝ) : ℕ :=
(Finset.univ.filter fun i => p i ≤ t).card
MathlibExt/Probability/Statistics/MultipleTesting/Basic.lean:106
Uses 1 · Used by 2
DefinitionFalse discovery proportion#✓fully proved
The false discovery proportion of a rejection set R when H0 is the set of true nulls:
|R ∩ H0| / max |R| 1 (zero when nothing is rejected).
TheoremFalse discovery proportion is nonnegative#✓fully proved
The false discovery proportion is nonnegative.
theorem falseDiscoveryProportion_nonneg (H0 R : Finset (Fin m)) :
0 ≤ falseDiscoveryProportion H0 R
noncomputable def falseDiscoveryProportion (H0 R : Finset (Fin m)) : ℝ :=
((R ∩ H0).card : ℝ) / max (R.card : ℝ) 1
MathlibExt/Probability/Statistics/MultipleTesting/Basic.lean:121
Uses 1
TheoremFalse discovery proportion is at most one#✓fully proved
The false discovery proportion is at most one.
theorem falseDiscoveryProportion_le_one (H0 R : Finset (Fin m)) :
falseDiscoveryProportion H0 R ≤ 1
noncomputable def falseDiscoveryProportion (H0 R : Finset (Fin m)) : ℝ :=
((R ∩ H0).card : ℝ) / max (R.card : ℝ) 1
MathlibExt/Probability/Statistics/MultipleTesting/Basic.lean:121
Uses 1
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.