MindFormal v1.0.0One Mind

MindFormal.Tools.A881RecallReports.Confidence

def MindFormal.A881RecallReports.accountMax {I : Type u_1} (Q : Finset I) (hne : Q.Nonempty) (x : I → ℝ) :
Equations
Instances For
    theorem MindFormal.A881RecallReports.account_max_error {I : Type u_1} (Q : Finset I) (hne : Q.Nonempty) (x y error : I → ℝ) (hb : ∀ i ∈ Q, |x i - y i| ≤ error i) :
    |accountMax Q hne x - accountMax Q hne y| ≤ accountMax Q hne error

    All declared competitors enter the maximum, even if its maximizer changes.

    theorem MindFormal.A881RecallReports.account_max_interval {I : Type u_1} (Q : Finset I) (hne : Q.Nonempty) (x y error : I → ℝ) (h0 : ∀ i ∈ Q, 0 ≤ x i) (hb : ∀ i ∈ Q, |x i - y i| ≤ error i) :
    (accountMax Q hne fun (i : I) => max (y i - error i) 0) ≤ accountMax Q hne x ∧ accountMax Q hne x ≤ accountMax Q hne fun (i : I) => y i + error i
    theorem MindFormal.A881RecallReports.confidence_interval {I : Type u_1} (Q : Finset I) (hne : Q.Nonempty) (x y error : I → ℝ) (event : I) (h0 : ∀ (i : I), 0 ≤ x i) (hb : ∀ (i : I), |x i - y i| ≤ error i) :
    x event - accountMax Q hne x ∈ Set.Icc (max (y event - error event) 0 - accountMax Q hne fun (i : I) => y i + error i) (y event + error event - accountMax Q hne fun (i : I) => max (y i - error i) 0)
    theorem MindFormal.A881RecallReports.confidence_category_gap (F : ℝ → ℝ) (hF : Monotone F) {zH zL loH hiL : ℝ} (hH : loH ≤ zH) (hL : zL ≤ hiL) :
    F loH - F hiL ≤ F zH - F zL