Bayes estimator #
Let ฮ be a parameter space, ๐ง a data space, ๐จ a prediction space, P : Kernel ฮ ๐ง a
data generating kernel, ฯ a prior on the parameter space, and โ : ฮ โ ๐จ โ โโฅ0โ a loss function.
An estimator (a Kernel ๐ง ๐จ) is said to be a Bayes estimator if it attains the Bayes risk for
the estimation problem.
It can be written as a measurable function x โฆ argmin_y Pโ ฯ(x)[ฮธ โฆ โ ฮธ y]
for (P โโ ฯ)-almost every x, where Pโ ฯ is the posterior kernel, whenever we can select
the argmin in a measurable way.
Main definitions #
IsBayesEstimator: an estimator is a Bayes estimator if it attains the Bayes risk for the prior.IsArgminEstimator: a measurable functionf : ๐ง โ ๐จis an argmin estimator if for(P โโ ฯ)-almost everyxthe valuef xbelongs toargmin_y Pโ ฯ(x)[ฮธ โฆ โ ฮธ y].HasArgminEstimator: the estimation problem admits an argmin estimator. That is, we can choose the argmin of the posterior expected loss in a measurable way.
Main statements #
lintegral_iInf_posterior_le_bayesRisk: the Bayes risk with respect to a prior is bounded from below by the integral over the data (with distributionP โโ ฯ) of the infimum over the possible predictionsyof the posterior lossโซโป ฮธ, โ ฮธ y โ((Pโ ฯ) x):โซโป x, โจ y : ๐จ, โซโป ฮธ, โ ฮธ y โ((Pโ ฯ) x) โ(P โโ ฯ) โค bayesRisk โ P ฯIsArgminEstimator.isBayesEstimator: an argmin Bayes estimator is a Bayes estimator. That is, it minimizes the Bayesian risk.bayesRisk_eq_of_hasArgminEstimator: if the estimation problem admits an argmin estimator, then the Bayesian risk attains the risk lower boundโซโป x, โจ y, โซโป ฮธ, โ ฮธ y โ(Pโ ฯ) x โ(P โโ ฯ).
TODO #
Once Mathlib has measurable selection theorems, we will be able to prove HasArgminEstimator under
general conditions on the measurable spaces ๐ง and/or ๐จ.
The average risk of an estimator ฮบ with respect to a prior ฯ can be expressed as
an integral in the following way: R_ฯ(ฮบ) = ((Pโ ฯ ร ฮบ) โ P โ ฯ)[(ฮธ, y) โฆ โ ฮธ y].
An estimator is a Bayes estimator for a prior ฯ if it attains the Bayes risk for ฯ.
Equations
- ProbabilityTheory.IsBayesEstimator โ P ฮบ ฯ = (ProbabilityTheory.avgRisk โ P ฮบ ฯ = ProbabilityTheory.bayesRisk โ P ฯ)
Instances For
We say that a measurable function f : ๐ง โ ๐จ is an argmin estimator
with respect to the prior ฯ if for (P โโ ฯ)-almost every x it is of
the form x โฆ argmin_y Pโ ฯ(x)[ฮธ โฆ โ ฮธ y].
- measurable : Measurable f
Instances For
Given an argmin estimator f, we can define a deterministic kernel.
Equations
Instances For
The risk of an argmin estimator is the risk lower bound
โซโป x, โจ
z, โซโป ฮธ, โ ฮธ z โ(Pโ ฯ) x โ(P โโ ฯ).
An argmin estimator is a Bayes estimator: that is, it minimizes the Bayesian risk.
The estimation problem admits an argmin estimator with respect to the prior ฯ.
That is, we can choose the argmin of the posterior expected loss in a measurable way.
- exists_isArgminEstimator : โ (f : ๐ง โ ๐จ), IsArgminEstimator โ P ฯ f
Instances For
An estimator for an estimation problem that for (P โโ ฯ)-almost every x is of
the form x โฆ argmin_y Pโ ฯ(x)[ฮธ โฆ โ ฮธ y].
Equations
- h.argminEstimator = โฏ.choose
Instances For
If the estimation problem admits an argmin estimator, then the Bayesian risk
attains the risk lower bound โซโป x, โจ
y, โซโป ฮธ, โ ฮธ y โ((Pโ ฯ) x) โ(P โโ ฯ).