Bayesian stationary environments #
A Bayesian stationary environment is an environment that draws a parameter e : ๐ from a prior
Q before the first round and then behaves like the stationary environment
stationaryEnv (ฮบ.sectR e). Concretely, bayesStationaryEnv Q ฮบ : Environment ๐ ๐ ๐จ announces
an observation e at every round and runs against alg.comapObs (fun _ โฆ ()), for
an alg : Algorithm Unit ๐ ๐จ, an algorithm that does not use the observation.
Main definitions #
bayesStationaryEnv Q ฮบ: the environment that draws a parameter fromQbefore the first round, announces it as the observation of every round, and returns feedbackฮบ (e, a)when the parameter iseand the action isa.IsBayesAlgEnvSeq Q ฮบ alg E A Y P: states that the parameterE : ฮฉ โ ๐has lawQand that the sequences of actionsA : โ โ ฮฉ โ ๐and feedbacksY : โ โ ฮฉ โ ๐จare generated by the algorithmalg : Algorithm Unit ๐ ๐จinteracting withbayesStationaryEnv Q ฮบ, which it sees throughAlgorithm.comapObs (fun _ โฆ ()). Equivalently,AandYare generated byalginteracting with the stationary environmentstationaryEnv (ฮบ.sectR (E ฯ)).bayesTrajMeasure Q ฮบ alg: for any choice of probability measureQ : Measure ๐, Markov kernelฮบ : Kernel (๐ ร ๐) ๐จ, and algorithmalg : Algorithm Unit ๐ ๐จ, provides a probability measureP : Measure (โ โ Round ๐ ๐ ๐จ)on a space that carriesE,A, andYsuch thatIsBayesAlgEnvSeq Q ฮบ alg E A Y P.bayesTrajMeasurePosterior Q ฮบ alg n: aKernel (Hist Unit ๐ ๐จ n) ๐that represents the posterior overEgiven the history before timen(thenfirst rounds) under the priorQand the algorithmalg, assuming that the kernelฮบspecifies howEgives rise to the underlying (stationary) environment. See alsoLeanMachineLearning/SequentialLearning/AlgorithmDensityBayes.lean.
Main results #
IsAlgEnvSeq.isBayesAlgEnvSeq: a run ofalg.comapObs (fun _ โฆ ())againstbayesStationaryEnv Q ฮบis a Bayesian algorithm-environment sequence for the announced parameter.ae_IsAlgEnvSeq h: ifh : IsBayesAlgEnvSeq Q ฮบ alg E A Y P, forQ-almost everye : ๐,IsAlgEnvSeq O' A' Y' alg (stationaryEnv (ฮบ.sectR e)) (condDistrib (trajectory _ A Y) E P e)for some sequence of actionsA' : โ โ (โ โ Round Unit ๐ ๐จ) โ ๐and sequence of feedbacksY' : โ โ (โ โ Round Unit ๐ ๐จ) โ ๐จ. Intuitively, if the observable trajectory is generated by an underlying parametere : ๐, the measure that carries theIsBayesAlgEnvSeqstructure reveals a measure that carries anIsAlgEnvSeqstructure under the environmentstationaryEnv (ฮบ.sectR e)and the same algorithm. This allows transferring results from theIsAlgEnvSeqstructure to theIsBayesAlgEnvSeqstructure.
The environment that draws a parameter e : ๐ from Q before the first round, announces it as
the observation of every round, and returns a feedback drawn from ฮบ (e, a) when the action is
a. The algorithm is meant to ignore the announced parameter, that is, to run through
Algorithm.comapObs (fun _ โฆ ()).
Equations
- One or more equations did not get rendered due to their size.
Instances For
IsBayesAlgEnvSeq Q ฮบ alg E A Y P states that there is a measure P : Measure ฮฉ such
that the parameter E : ฮฉ โ ๐ has law Q and that the sequences of actions A : โ โ ฮฉ โ ๐
and feedbacks Y : โ โ ฮฉ โ ๐จ are generated by the algorithm alg : Algorithm Unit ๐ ๐จ
interacting with an underlying environment that depends on E and ฮบ
(stationaryEnv (ฮบ.sectR (E ฯ))).
This is IsAlgEnvSeq for the announcing environment bayesStationaryEnv Q ฮบ and the algorithm
alg.comapObs (fun _ โฆ ()) that ignores the announced parameter: the observation at every round
is E ฯ.
Equations
- Learning.IsBayesAlgEnvSeq Q ฮบ alg E A Y P = Learning.IsAlgEnvSeq (fun (x : โ) => E) A Y (alg.comapObs (fun (x : ๐) => ()) โฏ) (Learning.bayesStationaryEnv Q ฮบ) P
Instances For
A Bayesian algorithm-environment sequence is an algorithm-environment sequence for the
announcing environment bayesStationaryEnv Q ฮบ.
The parameter has law Q.
The action at time n has the correct conditional distribution given the parameter and the
history: it depends only on the history.
The feedback at time n has the correct conditional distribution given the history, the
parameter and the action at time n: it depends only on the parameter and the action.
The first action is independent of the parameter E, and has law alg.p0 ().
The posterior over the parameter given the empty history is the prior.
Under bayesStationaryEnv Q ฮบ, the announced parameter is almost surely the same at every
round.
A run of alg.comapObs (fun _ โฆ ()) against the announcing environment
bayesStationaryEnv Q ฮบ is a Bayesian algorithm-environment sequence for the announced
parameter.
A measure P on a measurable space that carries random variables E, A, and Y such that
IsBayesAlgEnvSeq Q ฮบ alg E A Y P. The parameter is the observation of the first round,
IT.obs 0.
Equations
- Learning.IT.bayesTrajMeasure Q ฮบ alg = Learning.trajMeasure (alg.comapObs (fun (x : ๐) => ()) โฏ) (Learning.bayesStationaryEnv Q ฮบ)
Instances For
A kernel that represents the posterior over E given the history before time n.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The posterior given the empty history is the prior.