Random Sampling #
Implementation of the Random Sampling algorithm, which samples from a fixed probability measure at each iteration.
Main definitions #
randomSampling: The random sampling algorithm that samples from a fixed distribution at each iteration.
Main statements #
hasLaw_action: Each action follows the distribution μ.iIndep_action: Actions are mutually independent across time steps.
noncomputable def
Learning.randomSampling
{š : Type u_1}
{š : Type u_2}
{šØ : Type u_3}
{mš : MeasurableSpace š}
{mš : MeasurableSpace š}
{mšØ : MeasurableSpace šØ}
(μ : MeasureTheory.Measure š)
[MeasureTheory.IsProbabilityMeasure μ]
:
Algorithm š š šØ
The Random Sampling algorithm, which samples from a fixed probability measure at each iteration.
Equations
- Learning.randomSampling μ = { policy := fun (x : ā) => ProbabilityTheory.Kernel.const (Learning.Hist š š šØ x Ć š) μ, isMarkovKernel_policy := ⯠}
Instances For
@[simp]
theorem
Learning.randomSampling_policy
{š : Type u_1}
{š : Type u_2}
{šØ : Type u_3}
{mš : MeasurableSpace š}
{mš : MeasurableSpace š}
{mšØ : MeasurableSpace šØ}
(μ : MeasureTheory.Measure š)
[MeasureTheory.IsProbabilityMeasure μ]
(xā : ā)
:
(randomSampling μ).policy xā = ProbabilityTheory.Kernel.const (Hist š š šØ xā Ć š) μ
theorem
Learning.randomSampling.hasLaw_action
{š : Type u_1}
{š : Type u_2}
{šØ : Type u_3}
{Ī© : Type u_4}
{mš : MeasurableSpace š}
{mš : MeasurableSpace š}
{mšØ : MeasurableSpace šØ}
{mΩ : MeasurableSpace Ω}
{μ : MeasureTheory.Measure š}
[MeasureTheory.IsProbabilityMeasure μ]
{P : MeasureTheory.Measure Ī©}
[MeasureTheory.IsProbabilityMeasure P]
{O : ā ā Ī© ā š}
{A : ā ā Ī© ā š}
{Y : ā ā Ī© ā šØ}
{env : Environment š š šØ}
(h : IsAlgEnvSeq O A Y (randomSampling μ) env P)
(n : ā)
:
ProbabilityTheory.HasLaw (A n) μ P
Each action follows the distribution μ.
theorem
Learning.randomSampling.iIndep_action
{š : Type u_1}
{š : Type u_2}
{šØ : Type u_3}
{Ī© : Type u_4}
{mš : MeasurableSpace š}
{mš : MeasurableSpace š}
{mšØ : MeasurableSpace šØ}
{mΩ : MeasurableSpace Ω}
{μ : MeasureTheory.Measure š}
[MeasureTheory.IsProbabilityMeasure μ]
{P : MeasureTheory.Measure Ī©}
[MeasureTheory.IsProbabilityMeasure P]
{O : ā ā Ī© ā š}
{A : ā ā Ī© ā š}
{Y : ā ā Ī© ā šØ}
{env : Environment š š šØ}
(h : IsAlgEnvSeq O A Y (randomSampling μ) env P)
:
Actions are mutually independent.