Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  RiskIncrease.lean   Sprache: Lean

 

/-
Copyright (c) 2025 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne, Lorenzo Luccioli
-/

module

public import Mathlib.Probability.Decision.Risk.Defs
public import Mathlib.Probability.Kernel.Composition.MapComap

import Mathlib.Probability.Decision.Risk.Basic

/-!
# Risk increase (or statistical information)

A way to quantify the information obtained by an experiment is to look at the increase in risk that
results from discarding the observation of that experiment.
We call that quantity the **risk increase**. It was called **information** by DeGroot
in [degroot1962uncertainty], but we opt for a more descriptive name to avoid confusion with other
notions of information in statistics and information theory.
See also [duchi2018multiclass] for properties of the risk increase and relations to statistical
divergences.

## Main definitions

* `riskIncrease ℓ P π`: the increase in risk that results from discarding the observation in
  a Bayesian estimation problem, equal to `bayesRisk ℓ (Kernel.discard �� ∘ₖ P) π - bayesRisk ℓ P π`.

## Main statements

* `riskIncrease_comp_le`: the data-processing inequality for the risk increase, which states that
  the risk increase cannot be increased by post-processing the observation (composing the
  kernel `P` with a Markov kernel): `riskIncrease ℓ (η ∘ₖ P) π ≤ riskIncrease ℓ P π`.
* `riskIncrease_map_le`: version of the data-processing inequality for a measurable function instead
  of a Markov kernel. `riskIncrease ℓ (P.map f) π ≤ riskIncrease ℓ P π`.
-/


@[expose] public section

open MeasureTheory Set Function

open scoped ENNReal NNReal

namespace ProbabilityTheory

variable {Θ �� ��' �� : Type*} {mΘ : MeasurableSpace Θ} {m�� : MeasurableSpace ��}
  {m��' : MeasurableSpace ��'} [MeasurableSpace ��]
  {π : Measure Θ} {P : Kernel Θ ��} {ℓ : Θ → �� → ℝ≥0∞}

/-- The increase in risk that results from discarding the observation in a Bayesian estimation
problem. -/

noncomputable
def riskIncrease (ℓ : Θ → �� → ℝ≥0∞) (P : Kernel Θ ��) (π : Measure Θ) : ℝ≥0∞ :=
  bayesRisk ℓ (Kernel.discard �� ∘ₖ P : Kernel Θ Unit) π - bayesRisk ℓ P π

lemma riskIncrease_eq_iInf_sub' [Nonempty ��] (hℓ : Measurable (uncurry ℓ)) (P : Kernel Θ ��)
    (π : Measure Θ) [SFinite π] :
    riskIncrease ℓ P π = (⨅ z : ��, ∫⁻ θ, P θ univ * ℓ θ z ∂π) - bayesRisk ℓ P π := by
  simp [riskIncrease, bayesRisk_of_subsingleton' hℓ, mul_comm, Kernel.comp_discard']

lemma riskIncrease_eq_iInf_sub (hℓ : Measurable (uncurry ℓ)) (P : Kernel Θ ��) [IsMarkovKernel P]
    (π : Measure Θ) [SFinite π] :
    riskIncrease ℓ P π = (⨅ z : ��, ∫⁻ θ, ℓ θ z ∂π) - bayesRisk ℓ P π := by
  simp_rw [riskIncrease, Kernel.comp_discard, bayesRisk_discard hℓ]

@[simp] lemma riskIncrease_of_isEmpty_of_isEmpty [IsEmpty ��] [IsEmpty ��] :
    riskIncrease ℓ P π = ∞ := by simp [riskIncrease]

@[simp] lemma riskIncrease_of_nonempty_of_isEmpty [Nonempty ��] [IsEmpty ��] :
    riskIncrease ℓ P π = 0 := by simp [riskIncrease]

@[simp] lemma riskIncrease_zero_left [Nonempty ��] : riskIncrease ℓ (0 : Kernel Θ ��) π = 0 := by
  simp [riskIncrease]

@[simp] lemma riskIncrease_zero_right [Nonempty ��] : riskIncrease ℓ P (0 : Measure Θ) = 0 := by
  simp [riskIncrease]

@[simp] lemma riskIncrease_const (hℓ : Measurable (uncurry ℓ))
    [SFinite π] {μ : Measure ��} [IsProbabilityMeasure μ] :
    riskIncrease ℓ (Kernel.const Θ μ) π = 0 := by simp [riskIncrease, bayesRisk_const hℓ]

lemma riskIncrease_le_iInf' [Nonempty ��] (hℓ : Measurable (uncurry ℓ)) [SFinite π] :
    riskIncrease ℓ P π ≤ ⨅ z : ��, ∫⁻ θ, P θ univ * ℓ θ z ∂π :=
  riskIncrease_eq_iInf_sub' hℓ P π ▸ tsub_le_self

lemma riskIncrease_le_iInf (hℓ : Measurable (uncurry ℓ)) [IsMarkovKernel P] [SFinite π] :
    riskIncrease ℓ P π ≤ ⨅ z : ��, ∫⁻ θ, ℓ θ z ∂π :=
  riskIncrease_eq_iInf_sub hℓ P π ▸ tsub_le_self

lemma riskIncrease_lt_top' [Nonempty ��] (hℓ : Measurable (uncurry ℓ))
    [IsFiniteMeasure π] {y : ��} (h_finite : ∫⁻ θ, P θ univ * ℓ θ y ∂π ≠ ∞) :
    riskIncrease ℓ P π < ∞ :=
  (riskIncrease_le_iInf' hℓ).trans_lt (iInf_lt_top.mpr ⟨y, h_finite.lt_top⟩)

lemma riskIncrease_lt_top (hℓ : Measurable (uncurry ℓ)) [IsMarkovKernel P] [IsFiniteMeasure π]
    {y : ��} (h_finite : ∫⁻ θ, ℓ θ y ∂π ≠ ∞) :
    riskIncrease ℓ P π < ∞ :=
  (riskIncrease_le_iInf hℓ).trans_lt (iInf_lt_top.mpr ⟨y, h_finite.lt_top⟩)

/-- **Data processing inequality** for the risk increase. -/
lemma riskIncrease_comp_le (ℓ : Θ → �� → ℝ≥0∞) (P : Kernel Θ ��) (π : Measure Θ)
    (η : Kernel �� ��') [IsMarkovKernel η] :
    riskIncrease ℓ (η ∘ₖ P) π ≤ riskIncrease ℓ P π := by
  refine tsub_le_tsub ?_ (bayesRisk_le_bayesRisk_comp _ _ _ _)
  simp [← Kernel.comp_assoc]

/-- **Data processing inequality** for the risk increase. -/
lemma riskIncrease_map_le (ℓ : Θ → �� → ℝ≥0∞) (P : Kernel Θ ��) (π : Measure Θ)
    {f : �� → ��'} (hf : Measurable f) :
    riskIncrease ℓ (P.map f) π ≤ riskIncrease ℓ P π := by
  rw [← Kernel.deterministic_comp_eq_map hf]
  exact riskIncrease_comp_le ℓ P π (Kernel.deterministic f hf)

end ProbabilityTheory

Messung
CHZG
9210010097

¤ Dauer der Verarbeitung: 0.2 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,119
#Domains=863,774