Skip to content
BIASED

Inequalities and concentration

Block 1 of 8~2 min

How far can an average stray

The topic Conditional expectation found the best predictor m(X)=E[Y∣X]m(X) = \mathbb E[Y \mid X] and split the variance into an explained part and noise. All of it was defined through a joint distribution that we treated as known. In practice we see a distribution only through a sample, and almost every number we report is an average: the error rate on a test set, the mean loss, a conversion rate.

Here is the setup for the whole topic. Let X1,…,XnX_1, \dots, X_n be independent, each with mean μ\mu and variance σ2\sigma^2, and let their average be

Xˉn=X1+⋯+Xnn.\bar X_n = \frac{X_1 + \dots + X_n}{n}.

Linearity of expectation and the fact that variances of independent variables add (the topics Expectation and variance and Joint distributions and independence) give

E[Xˉn]=μ,Var⁡(Xˉn)=σ2n.\mathbb E[\bar X_n] = \mu, \qquad \operatorname{Var}(\bar X_n) = \frac{\sigma^2}{n}.

The running example is a classifier with an unknown true error rate μ\mu. On test example ii, let Xi=1X_i = 1 if the classifier makes a mistake and Xi=0X_i = 0 otherwise. Then Xi∼Bern⁡(μ)X_i \sim \operatorname{Bern}(\mu) with variance μ(1−μ)\mu(1 - \mu), and Xˉn\bar X_n is the measured error rate.

The variance gives the typical size of the error, but not the probability of a large one. This topic asks for a bound on

P(∣Xˉn−μ∣≥ε)P(|\bar X_n - \mu| \ge \varepsilon)

when the distribution of XiX_i is unknown and we know only its mean, its variance or its range. Each answer will be an inequality that holds for every distribution with that information. Each one asks for a little more information and gives a much better bound.

Answers are saved on the server and tied to this browser until you sign in.