MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch17.GumbelComparison

Unit exponential coordinates are the change of variables in (3.5).

Equations
Instances For
    theorem MindFormal.GumbelComparison.laplace (c : ℝ) (hc : 0 ≤ c) :
    ∫ (x : ℝ), Real.exp (-(c * x)) ∂unitExp = 1 / (1 + c)

    Fubini for a measurable finite-mass event, stated with real probabilities.

    theorem MindFormal.GumbelComparison.survival_integral {n : ℕ} (strict : Bool) (w : Fin n → ℝ) (hw : ∀ (j : Fin n), 0 ≤ w j) :
    (unitExp.prod (MeasureTheory.Measure.pi fun (x : Fin n) => unitExp)).real {p : ℝ × (Fin n → ℝ) | ∀ (j : Fin n), p.2 j ∈ tailSet strict (p.1 * w j)} = 1 / (1 + ∑ j : Fin n, w j)

    Integrating one exponential against all independent competitors proves the finite race formula; strict and weak comparison regions have equal mass.

    theorem MindFormal.GumbelComparison.race_probability {n : ℕ} (strict : Bool) (w : Fin (n + 1) → ℝ) (hw : ∀ (j : Fin (n + 1)), 0 < w j) (i : Fin (n + 1)) :
    (MeasureTheory.Measure.pi fun (x : Fin (n + 1)) => unitExp).real {e : Fin (n + 1) → ℝ | ∀ (j : Fin n), e (i.succAbove j) ∈ tailSet strict (e i * (w (i.succAbove j) / w i))} = w i / ∑ j : Fin (n + 1), w j

    The exponential race calculation for any nonempty finite menu.

    theorem MindFormal.GumbelComparison.weighted_le {x y a b : ℝ} (ha : 0 < a) (hb : 0 < b) :
    -y / b ≤ -x / a ↔ x * (b / a) ≤ y
    theorem MindFormal.GumbelComparison.weighted_lt {x y a b : ℝ} (ha : 0 < a) (hb : 0 < b) :
    -y / b < -x / a ↔ x * (b / a) < y
    theorem MindFormal.GumbelComparison.exponential_choice {n : ℕ} (w : Fin (n + 1) → ℝ) (hw : ∀ (j : Fin (n + 1)), 0 < w j) (i : Fin (n + 1)) :
    (MeasureTheory.Measure.pi fun (x : Fin (n + 1)) => unitExp).real {e : Fin (n + 1) → ℝ | (Quantal.winner fun (j : Fin (n + 1)) => -e j / w j) = i} = w i / ∑ j : Fin (n + 1), w j

    The fixed-priority maximum has the race probabilities, including ties.

    The score comparison law in the entry, defined independently of native innovations. Its CDF and finite choice formula are proved below.

    Equations
    Instances For
      theorem MindFormal.GumbelComparison.gumbel_le {s x z : ℝ} (hs : 0 < s) (hx : 0 < x) :
      -s * Real.log x ≤ z ↔ Real.exp (-z / s) ≤ x
      theorem MindFormal.GumbelComparison.gumbel_score_order {s x y a b : ℝ} (hs : 0 < s) (hx : 0 < x) (hy : 0 < y) :
      b - s * Real.log y ≤ a - s * Real.log x ↔ -y / Real.exp (b / s) ≤ -x / Real.exp (a / s)
      theorem MindFormal.GumbelComparison.gumbel_winner {n : ℕ} {s : ℝ} (hs : 0 < s) (b e : Fin (n + 1) → ℝ) (he : ∀ (j : Fin (n + 1)), 0 < e j) :
      (Quantal.winner fun (j : Fin (n + 1)) => b j + -s * Real.log (e j)) = Quantal.winner fun (j : Fin (n + 1)) => -e j / Real.exp (b j / s)
      theorem MindFormal.GumbelComparison.logit {n : ℕ} {s : ℝ} (hs : 0 < s) (b : Fin (n + 1) → ℝ) (i : Fin (n + 1)) :
      Quantal.response (MeasureTheory.Measure.pi fun (x : Fin (n + 1)) => gumbel s) b i = Real.exp (b i / s) / ∑ j : Fin (n + 1), Real.exp (b j / s)

      Formula (3.5), for independent common-scale Gumbel errors, with no conditional-success independence assumption.