Averaging and the minimax principle for finite distributions #
Think of a two-player game in which one player picks a strategy a and the other an input b,
with loss loss a b; for an algorithm, loss a b may be whether a errs on b. Drawing the
strategy from a distribution μ and the input from a distribution ν relates the two classical
guarantees of randomized algorithms [Yao77]. Distributions appear in two forms: finitely
supported ones as points of the standard simplex (Convexity.StdSimplex), and probability mass
functions (PMF), whose supports may be infinite. On a finite type the two correspond
(Probability.PMF.ofStdSimplex, Probability.PMF.toStdSimplex).
- The averaging argument: some outcome of a distribution is at most the mean
(
Convexity.StdSimplex.exists_mem_support_le_sum_mul,Probability.PMF.exists_mem_support_le_tsum_mul). So if a strategy drawn fromμhas expected loss at mostεon every input, then for everyνsome single strategy has expected loss at mostεon inputs drawn fromν(Probability.PMF.exists_mem_support_tsum_mul_le; for the probability of failing,Probability.PMF.exists_mem_support_toOuterMeasure_le). This is the easy direction of Yao's principle. - The minimax theorem [vN28]: for finitely many strategies and inputs, the converse
holds. If against every distribution
νon the inputs some strategy has expected loss at mostε, then some distributionμon the strategies has expected loss at mostεon every input (Convexity.StdSimplex.exists_forall_sum_le_of_forall_exists_sum_le, over every linearly ordered field, from the existence of the value of a finite game,Cslib.Probability.exists_isMinimaxValue, which is proved by linear-programming duality;Probability.PMF.exists_forall_sum_mul_lefor distributions as probability mass functions). For the probability of failing, only the inputs need to be finite: strategies failing on the same inputs are interchangeable, soμcan be taken with finite support (Probability.PMF.exists_forall_toOuterMeasure_le). This is the hard direction of Yao's principle.
Main definitions #
Cslib.Probability.PMF.ofStdSimplex,Cslib.Probability.PMF.toStdSimplex: distributions on a finite type as points of the standard simplex.Convexity.StdSimplex.maxCost,Convexity.StdSimplex.errorProb,Cslib.Probability.PMF.maxCost,Cslib.Probability.PMF.errorProb: maximum cost over the support and failure probability of a randomized strategy or input distribution.
Main results #
Convexity.StdSimplex.exists_mem_support_le_sum_mul,Cslib.Probability.PMF.exists_mem_support_le_tsum_mul: some outcome is at most the mean.Cslib.Probability.PMF.exists_mem_support_sum_mul_le: some possible outcome is at least the mean of a real-valued function on a finite type.Cslib.Probability.PMF.exists_mem_support_tsum_mul_le_tsum_mul,Cslib.Probability.PMF.exists_mem_support_tsum_mul_le,Cslib.Probability.PMF.exists_mem_support_toOuterMeasure_le,Convexity.StdSimplex.exists_errorProb_le,Cslib.Probability.PMF.exists_errorProb_le: the averaging argument.Convexity.StdSimplex.exists_forall_sum_le_of_forall_exists_sum_le,Cslib.Probability.PMF.exists_forall_sum_mul_le: the minimax theorem for finite games.Convexity.StdSimplex.exists_forall_errorProb_le,Cslib.Probability.PMF.exists_forall_toOuterMeasure_le,Convexity.StdSimplex.exists_maxCost_le_and_forall_errorProb_le,Cslib.Probability.PMF.exists_maxCost_le_and_forall_errorProb_le: Yao's minimax principle for failure probabilities on finitely many inputs.
References #
Finitely supported distributions #
An average under a finitely supported distribution is at most any bound on the support.
The averaging argument: some point of the support of a finitely supported distribution is at most the average.
The minimax theorem for finite games #
The minimax theorem for finite two-player zero-sum games [vN28], over every
linearly ordered field K, in the form used by Yao's principle. A row player picks i : I, a
column player picks j : J, and the row player pays M i j. If against every mixed strategy q
of the column player some row i has expected payment at most c, then some mixed strategy p of
the row player has expected payment at most c against every column j. It follows from the
existence of the value (Cslib.Probability.exists_isMinimaxValue), so the proof is
linear-programming duality, with no topology.
Randomized strategies and distributional error on StdSimplex #
The maximum of cost over the support of a finitely supported distribution μ.
Instances For
If φ adds at most d to the cost of every strategy in the support, so does map φ.
The probability under μ that Acc fails.
Instances For
Mapping strategies by φ that preserves acceptance cannot increase the failure probability.
The averaging argument for failure probabilities under StdSimplex: if μ fails on every
input b with probability at most ε, then for every input distribution ν some strategy in the
support of μ fails on ν with probability at most ε.
Yao's minimax principle for failure probabilities on a finite input space: if against every
input distribution ν some strategy in α fails with probability at most ε, then some finitely
supported distribution μ on α fails with probability at most ε on every input. Strategies
with the same failure set on β are interchangeable, so only finitely many representative
strategies are needed even when α is infinite.
Yao's minimax principle for bounded-cost finitely supported randomized strategies on a
finite nonempty input space: if against every input distribution ν some strategy of cost at most
d fails with probability at most ε, then some finitely supported distribution μ over
strategies of cost at most d fails with probability at most ε on every input.
Probability mass functions #
Some possible outcome is at most the mean: for every distribution μ and every function
g with values in [0, ∞], some outcome a that μ can produce has g a at most the mean of g
under μ. The sample space may be infinite.
The averaging argument, the easy direction of Yao's principle: for any strategy
distribution μ, input distribution ν, and [0, ∞]-valued loss loss, some strategy in the
support of μ has ν-expected loss at most the ν-expectation of the μ-expected loss. The
sample spaces may be infinite.
The averaging argument, the easy direction of Yao's principle. Let loss a b be the loss
of a strategy a on an input b. If drawing the strategy from μ has expected loss at most ε on
every input that ν can produce, then some strategy that μ can produce has expected loss at most
ε on inputs drawn from ν. The sample spaces may be infinite.
The averaging argument for events, the easy direction of Yao's principle: if a strategy
drawn from μ fails on every input that ν can produce with probability at most ε, then some
strategy that μ can produce fails on an input drawn from ν with probability at most ε. The
sample spaces may be infinite.
The minimax theorem for probability mass functions #
The finitely supported distribution whose probabilities are the weights of a point of the
standard simplex on an arbitrary type I.
Instances For
The probability of i under ofStdSimplex p is the weight of i in p.
Every distribution obtained from StdSimplex has finite support.
The real-valued outer measure of {i | P i} under ofStdSimplex p equals
p.errorProb (fun i => ¬P i).
The point of the standard simplex whose weights are the probabilities of a distribution on a finite type.
Instances For
The weight of i in toStdSimplex μ is the probability of i, as a real number.
Passing from a distribution to the simplex and back returns the distribution.
Some possible outcome is at least the mean of a real-valued function on a finite type:
the averaging argument that fixes a choice at least as good as a random one. This is
Convexity.StdSimplex.exists_mem_support_le_sum_mul applied to -g.
The minimax theorem for finite games [vN28], for distributions. Let M i j be
the loss of a strategy i on an input j. If against every distribution ν on the inputs some
strategy has expected loss at most ε, then some distribution μ on the strategies has expected
loss at most ε on every input. This is the hard direction of Yao's principle; it is
Convexity.StdSimplex.exists_forall_sum_le_of_forall_exists_sum_le read through ofStdSimplex.
Yao's minimax principle for finite sets of inputs. Let E i j say that a strategy i
fails on an input j, where there may be infinitely many strategies but only finitely many inputs.
If against every distribution ν on the inputs some strategy fails with probability at most ε,
then some distribution μ on finitely many strategies fails with probability at most ε on every
input. This is Convexity.StdSimplex.exists_forall_errorProb_le read through ofStdSimplex.
The averaging argument in terms of errorProb: if μ errs with probability at most ε
on every input in the support of ν, then some strategy in the support of μ errs with
probability at most ε on inputs drawn from ν.
Yao's minimax principle for bounded-cost PMF strategies on a finite input domain D:
if under every distribution ν supported on D some strategy of cost at most c errs with
probability at most ε, then some distribution μ over strategies of cost at most c errs with
probability at most ε on every input of D.