Array-of-rewards probability space for stochastic bandits #
We build a particular probability space for stochastic bandits, called the "array model", in which
an infinite array of i.i.d. rewards is first produced for all actions. When the algorithm chooses
action a for the nth time, it receives the reward in the row a of the array and column n.
Some statements about bandit algorithms are easier to prove in this space, and can then be transferred to any other probability space using the fact that the conditional distributions of the arms and rewards specified in the bandit model determine their laws uniquely.
Main definitions #
streamMeasure ฮฝ: probability measure on the space of infinite arrays of rewards, where the rewards in each row are i.i.d. according toฮฝ.probSpace ๐ ๐ก: probability space for the array model of stochastic bandits with action space๐and reward space๐ก.arrayMeasure ฮฝ: probability measure onprobSpace ๐ ๐กfor the array model of stochastic bandits with reward kernelฮฝ.
Measure of an infinite stream of rewards from each action.
Equations
- Bandits.streamMeasure ฮฝ = MeasureTheory.Measure.infinitePi fun (x : โ) => MeasureTheory.Measure.infinitePi โฮฝ
Instances For
Under a product measure ฮผ.prod (streamMeasure ฮฝ), the entry (n, a) of the reward array has
law ฮฝ a.
Under a product measure ฮผ.prod (streamMeasure ฮฝ), the entries of the reward array are
independent.
Under a product measure ฮผ.prod (streamMeasure ฮฝ), the entry (m, a) of the reward array is
independent of the pair formed by the first coordinate and the reward array in which the entry
(m, a) is replaced by a constant x.
Probability space for the array model of stochastic bandits.
Equations
- Bandits.ArrayModel.probSpace ๐ ๐ก = ((โ โ โunitInterval) ร (โ โ ๐ โ ๐ก))
Instances For
Probability measure for the array model of stochastic bandits.
Equations
- Bandits.ArrayModel.arrayMeasure ฮฝ = (MeasureTheory.Measure.infinitePi fun (x : โ) => MeasureTheory.volume).prod (Bandits.streamMeasure ฮฝ)
Instances For
Modification of ฯ in which the rewards of action a are read only up to index m - 1:
in row a of the reward array, the entry at index i is kept if i < m and replaced by the entry
at index m + 1 + i otherwise. The result does not depend on the coordinate (m, a) of the
array.
Equations
Instances For
The next action is the image of the history and a uniform random variable by this function.
Equations
- Bandits.ArrayModel.algFunction alg n = โฏ.choose
Instances For
The initial action is the image of a uniform random variable by algFunction alg 0 default.
History of actions and rewards before time n in the array model.
Equations
- One or more equations did not get rendered due to their size.
- Bandits.ArrayModel.hist alg ฯ 0 = default
Instances For
Action taken at time n in the array model.
Equations
- Bandits.ArrayModel.action alg n ฯ = Bandits.ArrayModel.algFunction alg n (Bandits.ArrayModel.hist alg ฯ n) (ฯ.1 n)
Instances For
Reward received at time n in the array model.
Equations
- Bandits.ArrayModel.reward alg n ฯ = (Bandits.ArrayModel.hist alg ฯ (n + 1) (Fin.last n)).feedback
Instances For
The history in the array model is the history of the action and reward processes.
truncRow at the number of pulls of a before time n: the rewards of action a that have
not been observed before time n are replaced. The history before time n is measurable with
respect to this function (see measurable_hist_truncRowPullCount), and on the event
pullCount (action alg) a n = m it coincides with truncRow a m.
Equations
- Bandits.ArrayModel.truncRowPullCount alg a n ฯ = Bandits.ArrayModel.truncRow a (Learning.pullCount (Bandits.ArrayModel.action alg) a n ฯ) ฯ
Instances For
The reward ฯ.2 m a is independent of truncRow a m, which reads only other coordinates.
The conditional distribution of the reward at time n, given the history before time n,
the action at time n, and the number of times that action has been pulled before time n,
is equal to the kernel ฮฝ.
The reward at time n is conditionally independent of the history before time n,
given the action at time n and the number of times that action has been pulled before
time n.
The conditional distribution of the reward at time n, given the history before time n
and the action at time n, is equal to the kernel ฮฝ.