Documentation

LeanMachineLearning.SequentialLearning.AlgorithmDensityBayes

Algorithm density under Bayesian stationary environments #

This file provides results about Algorithm.density for the Bayesian stationary environment setting.

Main results #

Let h : IsBayesAlgEnvSeq Q κ alg E A Y P, h₀ : IsBayesAlgEnvSeq Q κ alg₀ E₀ A₀ Y₀ P₀, and hc : alg ≪ₐ alg₀.

theorem Learning.IsBayesAlgEnvSeq.condDistrib_history_eq_condDistrib_hist_withDensity {𝓐 : Type u_1} {𝓨 : Type u_2} [MeasurableSpace 𝓐] [MeasurableSpace 𝓨] {𝓔 : Type u_3} [MeasurableSpace 𝓔] [StandardBorelSpace 𝓐] [Nonempty 𝓐] [StandardBorelSpace 𝓨] [Nonempty 𝓨] {Q : MeasureTheory.Measure 𝓔} {κ : ProbabilityTheory.Kernel (𝓔 × 𝓐) 𝓨} [ProbabilityTheory.IsMarkovKernel κ] {Ω : Type u_4} [MeasurableSpace Ω] {E : Ω𝓔} {A : Ω𝓐} {Y : Ω𝓨} {alg : Algorithm 𝓐 𝓨} {P : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure P] {Ω₀ : Type u_5} [MeasurableSpace Ω₀] {E₀ : Ω₀𝓔} {A₀ : Ω₀𝓐} {Y₀ : Ω₀𝓨} {alg₀ : Algorithm 𝓐 𝓨} {P₀ : MeasureTheory.Measure Ω₀} [MeasureTheory.IsProbabilityMeasure P₀] (h : IsBayesAlgEnvSeq Q κ alg E A Y P) (h₀ : IsBayesAlgEnvSeq Q κ alg₀ E₀ A₀ Y₀ P₀) (hc : alg.AbsolutelyContinuous alg₀) (n : ) :
𝓛[history A Y n | E; P] =ᵐ[Q] (𝓛[history A₀ Y₀ n | E₀; P₀].withDensity fun (x : 𝓔) => alg.density alg₀ n)
theorem Learning.IsBayesAlgEnvSeq.hasLaw_history_withDensity {𝓐 : Type u_1} {𝓨 : Type u_2} [MeasurableSpace 𝓐] [MeasurableSpace 𝓨] {𝓔 : Type u_3} [MeasurableSpace 𝓔] [StandardBorelSpace 𝓐] [Nonempty 𝓐] [StandardBorelSpace 𝓨] [Nonempty 𝓨] {Q : MeasureTheory.Measure 𝓔} {κ : ProbabilityTheory.Kernel (𝓔 × 𝓐) 𝓨} [ProbabilityTheory.IsMarkovKernel κ] {Ω : Type u_4} [MeasurableSpace Ω] {E : Ω𝓔} {A : Ω𝓐} {Y : Ω𝓨} {alg : Algorithm 𝓐 𝓨} {P : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure P] {Ω₀ : Type u_5} [MeasurableSpace Ω₀] {E₀ : Ω₀𝓔} {A₀ : Ω₀𝓐} {Y₀ : Ω₀𝓨} {alg₀ : Algorithm 𝓐 𝓨} {P₀ : MeasureTheory.Measure Ω₀} [MeasureTheory.IsProbabilityMeasure P₀] (h : IsBayesAlgEnvSeq Q κ alg E A Y P) (h₀ : IsBayesAlgEnvSeq Q κ alg₀ E₀ A₀ Y₀ P₀) (hc : alg.AbsolutelyContinuous alg₀) (n : ) :
theorem Learning.IsBayesAlgEnvSeq.hasCondDistrib_env_history {𝓐 : Type u_1} {𝓨 : Type u_2} [MeasurableSpace 𝓐] [MeasurableSpace 𝓨] {𝓔 : Type u_3} [MeasurableSpace 𝓔] [StandardBorelSpace 𝓐] [Nonempty 𝓐] [StandardBorelSpace 𝓨] [Nonempty 𝓨] {Q : MeasureTheory.Measure 𝓔} {κ : ProbabilityTheory.Kernel (𝓔 × 𝓐) 𝓨} [ProbabilityTheory.IsMarkovKernel κ] {Ω : Type u_4} [MeasurableSpace Ω] {E : Ω𝓔} {A : Ω𝓐} {Y : Ω𝓨} {alg : Algorithm 𝓐 𝓨} {P : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure P] {Ω₀ : Type u_5} [MeasurableSpace Ω₀] {E₀ : Ω₀𝓔} {A₀ : Ω₀𝓐} {Y₀ : Ω₀𝓨} {alg₀ : Algorithm 𝓐 𝓨} {P₀ : MeasureTheory.Measure Ω₀} [MeasureTheory.IsProbabilityMeasure P₀] [StandardBorelSpace 𝓔] [Nonempty 𝓔] [MeasureTheory.IsProbabilityMeasure Q] (h : IsBayesAlgEnvSeq Q κ alg E A Y P) (h₀ : IsBayesAlgEnvSeq Q κ alg₀ E₀ A₀ Y₀ P₀) (hc : alg.AbsolutelyContinuous alg₀) (n : ) :
ProbabilityTheory.HasCondDistrib E (history A Y n) 𝓛[E₀ | history A₀ Y₀ n; P₀] P