Concentration Inequalities ⭐

Tags

Convergence of Random Variables

What is a sequence of random variables? Well, maybe think about dice that come out from a dice factory. Each dice is an RV, and there may be a pattern in how the dice behave.

There are different notions of convergence.

  1. in distribution means that we converge to the same sufficient statistics
  1. in probability means that for every ϵ>0\epsilon > 0, we have p(XnX>ϵ)0p(|X_n - X| > \epsilon) → 0. Intuitively, the probability of an “unusual” outcome becomes more rare as sequence progresses. Close to the idea of a hoeffding’s inequality, useful for the law of large numbers, etc.
    1. with this inequaltiy, you can say that we asymptotically bound this property within an epsilon ball
    1. Formally: for every δ\delta, there exists some N(δ,ϵ)N(\delta,\epsilon) such that for all n>N(δ,ϵ)n > N(\delta,\epsilon), we have p(XnX>ϵ)<δp(|X_n - X| > \epsilon) < \delta. Note how this NN depends on both the delta and the epsilon.
  1. in mean square if E[XnX]20E[X_n - X]^2 → 0 as nn → \infty.
  1. with probability 1 (almost surely) if P(limXn=X)=1P(\lim X_n = X) = 1.
    1. this is different from 2) because we take the limit inside the probability.

Notation-wise, we use XndXX_n \overset d\rightarrow X for distribution, XnpXX_n \overset p \rightarrow X for probability, etc.

Understanding what convergence means

Distributional convergence makes sense. But how can the other types of convergence happen if these are random variables? Well, there are two common cases:

  1. The Xn=f(X)X_n = f(X) DIRECTLY, and fn1f_n → 1 as nn→\infty. In other words, there’s some sort of coupling between the RV’s.
  1. The XX is a constant. Here, we get some standard things like the central limit theorem, where X=E[X]X = E[X] (overload of notation), and XnX_n is the mean of the current samples.

Ways of convergence, constraint (another way of looking at this)

Asymptotic bounds: this guarantees that some XYX → Y as nn→ \infty . You might get a high probability bound of o(f(n))o(f(n)), which gives a bit more structure asympotically

High probability bounds: this guarantees that XY>ϵ|X - Y| > \epsilon chance is δ\delta. you get an interplay between ϵ,δ,n\epsilon, \delta, n. You can set two of them and the third one will be derived. Usually δ\delta is written as a function of nn, but you can easily invert

General Tail Bounds

Tail bounds are important because they limit how large your tail is in a distribution, which naturally has implications for learning algorithms that could potentially exclude the tail of a distribution

Markov’s Inequality

We can show that for any non-negative random variable XX and t>0t > 0, we have

P(Xt)E[X]tP(X \geq t) \leq \frac{E[X]}{t}

Intuitively, as we get further away from the expected value, the likelihood decreases. This is mathematically super helpful as it relates probabilities to expectations, and we will use it to build up law of large numbers.

Chebyshev’s Inequality

We can show very easily that

P(Yμ>ϵ)σ2ϵ2P(|Y - \mu| > \epsilon) \leq \frac{\sigma^2}{\epsilon^2}

where σ2,μ\sigma^2, \mu is the variance and mean of YY, respectively. This brings us closer to the idea of hoeffding’s inequaltiy and the law of large numbers.

Upshot: to show the law of large numbers for any stochastic process, it is sufficient to show that the variance of the sample goes to zero.

General Tail Bound

Claim: if XX is real, then for any t0t\geq 0,

P(X>c)E[exp(tXtc)]P(X > c) \leq E[\exp(tX -tc)]

Gaussian tail bound

Claim: if ZZ is gaussian with mean 0 and variance 1, then

P(Z>c)exp(c2/2)P(Z > |c|) \leq \exp(-c^2/2)

This gets us a stronger variant of Chebyshev’s inequality, and it is food for thought.

Hoeffding’s inequality ⭐

Hoeffding’s inequality in the general form is as follows: given X1,XnX_1, … X_n and ai<Xi<bia_i < X_i < b_i, we have

We often find a looser bound by replacing biaib_i - a_i term with σ2\sigma^2, because the range is always less than the variance.

💡
we drop the factor of 22 outside of the exponential if there is no absolute value inside the probability

Common forms include

Uses of Hoeffding’s inequality

Anytime you see some sample sum or mean, you can use Hoeffding’s inequality to establish some bounds on how far we stray from the mean

Lemma: Sample variances

The variance of 1nZi\frac{1}{n}\sum Z_i is σ2/n\sigma^2 / n

McDiarmid’s Inequality

This states that for any IID random variables x1,,xnx_1, …, x_n and any function ff that has bounded differences (i.e. substituting the ith coordinate f(x1,,xn)f(x_1, …, x_n) changes ff by at most a finite cc. Then…

P(f(x1,...,xn)E[f(x1,...,xn)]>t)exp(2t2/n)P(|f(x_1, ..., x_n) - E[f(x_1, ..., x_n)]| > t) \leq \exp(-2t^2/n)

As usual, the alternate (average) form is

P(fˉ(x1,...,xn)E[fˉ(x1,...,xn)]>t)exp(2nt2)P(|\bar{f}(x_1, ..., x_n) - E[\bar{f}(x_1, ..., x_n)]| > t) \leq \exp(-2nt^2)

Now, if ff is the summation, we get Hoeffding’s inequality.

The proof comes from Martingales, and so we will omit it here. Just know that this is a powerful inequality that bounds samples to an expectation.

CLT (Central Limit Theorem)

The CLT leverages the law of large numbers to make the claim that all RV averages are gaussian in nature.

If X1,,XnX_1, …, X_n are IID random variables from distribution XX that has covariance Σ\Sigma. Let Xˉ=1nXi\bar{X} = \frac{1}{n} \sum X_i, then

  1. XˉpE[X]\bar{X}\overset{p}\rightarrow E[X] (this is the weak law of large numbers)
  1. n(XˉE[X])dN(0,Σ)\sqrt{n}(\bar{X} - E[X]) \overset{d}→N(0, \Sigma)
    1. If you were to move this around, you’d get (XˉE[X])dN(0,Σ/n)(\bar{X} - E[X]) \overset{d}→N(0, \Sigma / n) which makes sense. You’re narrowing around the mean, which is a result of the law of large numbers

The CLT is derivable from Hoeffding’s inequality

Delta Method

Using point (2), we can apply the Delta Method and assert that for any non-zero derivative function hh, we have

This is a very helpful extension of the CLT.

Law of large numbers

The laws of large numbers can be derived from Hoeffding’s inequality: we see that the sample mean gets closer to the true mean.

The actual Law ⭐

Both the weak and strong forms of the law of large numbers state that the average of samples (denoted by XnX_n) converges to E[X]E[X].

The weak form states that the convergence happens in probability. Formally, this means that

P(1nnXnE[X]>ϵ)0P\left(\left|\frac{1}{n}\sum_nX_n - E[X]\right| > \epsilon\right) \rightarrow 0

The strong form states that it happens almost surely. Proof is omitted for now.