Documentation

Linglib.Core.Probability.Decision.Blackwell

Blackwell comparison of experiments #

A statistical experiment is a Markov kernel P : Kernel Θ 𝓧 generating data in 𝓧 from a parameter in Θ. Experiment P is at least as informative as P' : Kernel Θ 𝓧' when P' is a garbling of P: P' = Ξ· βˆ˜β‚– P for some Markov kernel Ξ·. The comparison theorem of [Bla53] states that P is at least as informative as P' iff, for every decision problem, the Bayes risk under P is no greater than under P'. This file proves it over ProbabilityTheory.bayesRisk for finite spaces.

Main definitions #

Main statements #

Implementation notes #

Kernel.BlackwellDominates quantifies over all decision problems and priors: dominance in a single one does not force garbling. Its action spaces live in the universe of 𝓧', which the converse uses as the action space. The development uses only mathlib's Kernel and bayesRisk, so it can serve as a Mathlib.Probability.Decision.Blackwell candidate. On the utility scale (Core.Probability.Decision.ValueOfInformation), garbling never raises the value of information, and the converse compares the value of observing classifiers.

References #

def ProbabilityTheory.Kernel.IsGarblingOf {Θ : Type u_1} {𝓧 : Type u_2} {𝓧' : Type u} [mΘ : MeasurableSpace Θ] [m𝓧 : MeasurableSpace 𝓧] [m𝓧' : MeasurableSpace 𝓧'] (P' : Kernel Θ 𝓧') (P : Kernel Θ 𝓧) :

P' is a garbling of P when a Markov kernel Ξ· post-processes P into P', so that P' = Ξ· βˆ˜β‚– P and P is at least as informative as P'.

Equations
  • P'.IsGarblingOf P = βˆƒ (Ξ· : ProbabilityTheory.Kernel 𝓧 𝓧'), ProbabilityTheory.IsMarkovKernel Ξ· ∧ P' = Ξ·.comp P
Instances For
    theorem ProbabilityTheory.Kernel.IsGarblingOf.refl {Θ : Type u_1} {𝓧 : Type u_2} [mΘ : MeasurableSpace Θ] [m𝓧 : MeasurableSpace 𝓧] (P : Kernel Θ 𝓧) [IsMarkovKernel P] :
    theorem ProbabilityTheory.Kernel.IsGarblingOf.trans {Θ : Type u_1} {𝓧 : Type u_2} {𝓧' : Type u} [mΘ : MeasurableSpace Θ] [m𝓧 : MeasurableSpace 𝓧] [m𝓧' : MeasurableSpace 𝓧'] {𝓧'' : Type u_3} [MeasurableSpace 𝓧''] {P'' : Kernel Θ 𝓧''} {P' : Kernel Θ 𝓧'} {P : Kernel Θ 𝓧} (hβ‚‚ : P''.IsGarblingOf P') (h₁ : P'.IsGarblingOf P) :
    def ProbabilityTheory.Kernel.BlackwellDominates {Θ : Type u_1} {𝓧 : Type u_2} {𝓧' : Type u} [mΘ : MeasurableSpace Θ] [m𝓧 : MeasurableSpace 𝓧] [m𝓧' : MeasurableSpace 𝓧'] (P : Kernel Θ 𝓧) (P' : Kernel Θ 𝓧') :

    P Blackwell-dominates P' when, for every decision problem (an action space 𝓨 with a loss β„“) and every prior Ο€, the Bayes risk under P is at most that under P'.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem ProbabilityTheory.bayesRisk_le_of_isGarblingOf {Θ : Type u_1} {𝓧 : Type u_2} {𝓧' : Type u} [mΘ : MeasurableSpace Θ] [m𝓧 : MeasurableSpace 𝓧] [m𝓧' : MeasurableSpace 𝓧'] {𝓨 : Type u} [MeasurableSpace 𝓨] (β„“ : Θ β†’ 𝓨 β†’ ENNReal) {P : Kernel Θ 𝓧} {P' : Kernel Θ 𝓧'} (h : P'.IsGarblingOf P) (Ο€ : MeasureTheory.Measure Θ) :
      bayesRisk β„“ P Ο€ ≀ bayesRisk β„“ P' Ο€
      theorem ProbabilityTheory.blackwellDominates_of_isGarblingOf {Θ : Type u_1} {𝓧 : Type u_2} {𝓧' : Type u} [mΘ : MeasurableSpace Θ] [m𝓧 : MeasurableSpace 𝓧] [m𝓧' : MeasurableSpace 𝓧'] {P : Kernel Θ 𝓧} {P' : Kernel Θ 𝓧'} (h : P'.IsGarblingOf P) :

      A garbling of P is Blackwell-dominated by P.

      The garbling polytope (finite case) #

      Over finite spaces, the Markov garblings {Ξ· βˆ˜β‚– P | Ξ· Markov} of P, encoded by their singleton masses as vectors in Θ β†’ 𝓧' β†’ ℝ, form a compact convex polytope garblingSet P. It is the linear image of the product of standard simplices β€” the stochastic matrices Ξ· β€” under garblingMap P. If encode P' lies outside the polytope, a separating functional gives a decision problem on which P' is strictly worse than P, which proves the converse; no minimax theorem is needed.

      theorem ProbabilityTheory.isGarblingOf_of_bayesRisk_uniform_le {Θ : Type u_1} {𝓧 : Type u_2} {𝓧' : Type u} [mΘ : MeasurableSpace Θ] [m𝓧 : MeasurableSpace 𝓧] [m𝓧' : MeasurableSpace 𝓧'] [Fintype Θ] [Fintype 𝓧] [Fintype 𝓧'] [Nonempty Θ] [MeasurableSingletonClass Θ] [MeasurableSingletonClass 𝓧] [MeasurableSingletonClass 𝓧'] {P : Kernel Θ 𝓧} {P' : Kernel Θ 𝓧'} [IsMarkovKernel P] [IsMarkovKernel P'] (h : βˆ€ (β„“ : Θ β†’ 𝓧' β†’ ENNReal), (βˆ€ (ΞΈ : Θ) (x' : 𝓧'), β„“ ΞΈ x' β‰  ⊀) β†’ bayesRisk β„“ P ((↑(Fintype.card Θ))⁻¹ β€’ MeasureTheory.Measure.count) ≀ bayesRisk β„“ P' ((↑(Fintype.card Θ))⁻¹ β€’ MeasureTheory.Measure.count)) :

      If P has Bayes risk at most that of P' under the uniform prior for every everywhere-finite loss, then P' is a garbling of P.

      theorem ProbabilityTheory.isGarblingOf_of_blackwellDominates {Θ : Type u_1} {𝓧 : Type u_2} {𝓧' : Type u} [mΘ : MeasurableSpace Θ] [m𝓧 : MeasurableSpace 𝓧] [m𝓧' : MeasurableSpace 𝓧'] [Fintype Θ] [Fintype 𝓧] [Fintype 𝓧'] [Nonempty Θ] [MeasurableSingletonClass Θ] [MeasurableSingletonClass 𝓧] [MeasurableSingletonClass 𝓧'] {P : Kernel Θ 𝓧} {P' : Kernel Θ 𝓧'} [IsMarkovKernel P] [IsMarkovKernel P'] (h : P.BlackwellDominates P') :

      On finite spaces with Θ nonempty, if P Blackwell-dominates P' and both are Markov kernels, then P' is a garbling of P.

      Each hypothesis is needed. With Θ empty every Bayes risk is 0, yet no Markov kernel maps a nonempty 𝓧 to an empty 𝓧'. The zero kernel has Bayes risk 0 for every loss and so dominates every P', yet Ξ· βˆ˜β‚– 0 = 0. Over a one-point sample space P' = 2 β€’ P has twice the Bayes risk of P for every loss, yet is no Markov garbling of P. Dominance in a single decision problem does not force garbling either.

      theorem ProbabilityTheory.isGarblingOf_iff_blackwellDominates {Θ : Type u_1} {𝓧 : Type u_2} {𝓧' : Type u} [mΘ : MeasurableSpace Θ] [m𝓧 : MeasurableSpace 𝓧] [m𝓧' : MeasurableSpace 𝓧'] [Fintype Θ] [Fintype 𝓧] [Fintype 𝓧'] [Nonempty Θ] [MeasurableSingletonClass Θ] [MeasurableSingletonClass 𝓧] [MeasurableSingletonClass 𝓧'] {P : Kernel Θ 𝓧} {P' : Kernel Θ 𝓧'} [IsMarkovKernel P] [IsMarkovKernel P'] :

      On finite spaces with Θ nonempty and Markov P and P', P' is a garbling of P exactly when P Blackwell-dominates P'.

      Deterministic experiments: partitions as kernels #

      A deterministic classifier f : Θ β†’ 𝓧 is the experiment Kernel.deterministic f hf, an error-free observation of the cell of ΞΈ in the partition of Θ into the fibers of f. Between deterministic experiments the garbling order is functional factoring.

      theorem ProbabilityTheory.Kernel.deterministic_isGarblingOf_deterministic_iff {Θ : Type u_1} {𝓧 : Type u_2} [mΘ : MeasurableSpace Θ] [m𝓧 : MeasurableSpace 𝓧] {𝓨 : Type u_3} [MeasurableSpace 𝓨] [Countable 𝓧] [MeasurableSingletonClass 𝓧] [MeasurableSingletonClass 𝓨] [Nonempty 𝓨] {f : Θ β†’ 𝓧} {g : Θ β†’ 𝓨} (hf : Measurable f) (hg : Measurable g) :
      (deterministic g hg).IsGarblingOf (deterministic f hf) ↔ βˆƒ (ψ : 𝓧 β†’ 𝓨), g = ψ ∘ f

      deterministic g is a garbling of deterministic f exactly when g factors through f; randomized post-processing gains nothing between deterministic experiments.