Covariance, convergence of random variables, limit theorems
This lecture note is still being edited: the text may contain typos, inaccuracies, and locally underdeveloped passages. If you find something, please let the author know (contact information on the course page).
1 Covariance, correlation
Correlation is, in a certain sense, a measure of dependence between random variables \(\xi , \eta\). Namely, if the random variables \(\xi , \eta\) are independent, then \(\operatorname {Corr}\left[ \xi , \eta \right] =0\). Conversely, if \(\operatorname {Corr}\left[ \xi , \eta \right] = \pm 1\), then the random variables are linearly dependent.
Properties of covariance
Covariance is symmetric: \(\operatorname {Cov}\left[ \xi , \eta \right] = \operatorname {Cov}\left[ \eta , \xi \right]\);
Covariance is bilinear:
\[ \begin{align} \operatorname {Cov}\left[ a_1\xi _1 + a_2\xi _2, \eta \right] & = a_1\operatorname {Cov}\left[ \xi _1, \eta \right] + a_2 \operatorname {Cov}\left[ \xi _2, \eta \right] \\ \operatorname {Cov}\left[ \xi , b_1\eta _1 + b_2\eta _2 \right] & = b_1\operatorname {Cov}\left[ \xi , \eta _1 \right] + b_2 \operatorname {Cov}\left[ \xi , \eta _2 \right] \end{align} \]
\(\operatorname {Cov}\left[ \xi , \xi \right] = \operatorname {Var}\left[\xi \right]\);
\(\operatorname {Cov}\left[ \xi , \eta \right] = \mathbb {E}\left[\xi \eta \right] - \mathbb {E}\left[\xi \right]\mathbb {E}\left[\eta \right]\);
if \(\xi , \eta\) are independent, then \(\operatorname {Cov}\left[ \xi , \eta \right]=0\);
if \(c\in \mathbb {R}\) is a constant, then \(\operatorname {Cov}\left[ \xi + c, \eta \right] = \operatorname {Cov}\left[ \xi , \eta \right]\);
\(\operatorname {Var}\left[\xi_{1}+\ldots +\xi_{n}\right]=\operatorname {Var}\left[\xi_{1}\right]+\ldots +\operatorname {Var}\left[\xi_{n}\right]+\sum_{i \neq j} \operatorname {Cov}\left[ \xi_i, \xi_j \right]\).
2 The indicator method
3 Convergence of random variables
The limit theorems that motivate this chapter (the LLN, the CLT, the law of rare events β see the next section) involve two types of convergence for sequences of random variables: convergence in probability and convergence in distribution. Let us define them using only the tools already available to us: probabilities of events and distribution functions.
3.1 Convergence in probability
Intuition: as \(n\) grows, the random variable \(\xi_n\) deviates from \(\xi\) by more than any fixed error \(\varepsilon\) less and less often. This is exactly the convergence that appears in the LLN: the sample mean \(\frac{S_n}{n}\) converges in probability to the expectation.
Note: for the expression \(\left|\xi_n - \xi \right|\) to make sense, the random variables \(\xi_n\) and \(\xi\) must be defined on the same \(\Omega\).
3.2 Convergence in distribution
The second type of convergence answers a different question: not βare the values of \(\xi_n\) and \(\xi\) close as functions on \(\Omega\)β, but βdoes the distribution of \(\xi_n\) resemble the distribution of \(\xi\)β. Thus the CLT asserts that the distribution of a normalized sum approaches the normal distribution; the random variables themselves do not βapproachβ any particular random variable β it is their distributions that converge.
A distribution on \(\mathbb {R}\) is completely described by its distribution function (see the chapter on random variables and distribution functions), so it is natural to define convergence of distributions via convergence of distribution functions. The only subtlety is at which points to require convergence. Consider an example: let \(\xi_n \equiv \frac{1}{n}\) be constant random variables. It is reasonable to expect that \(\xi_n\) converges (in any sensible sense) to \(\xi \equiv 0\). Let us look at the distribution functions:
\[ F_{\xi _n}(x) = \; \mathbb {1}_{x \geq \tfrac {1}{n}} \xrightarrow [n \to \infty ]{} \begin{cases} 1, & x > 0 \\ 0, & x \leq 0\end{cases}, \qquad \text{while} \qquad F_{\xi }(x) = \; \mathbb {1}_{x \geq 0} \]
The limits agree everywhere except at the single point \(x = 0\): \(F_{\xi_n}(0) = 0 \not\to 1 = F_{\xi }(0)\). Note that \(x=0\) is precisely the discontinuity (jump) point of the limiting distribution function. To prevent such natural examples from breaking the definition, convergence is not required at discontinuity points of the limiting \(F\).
Since only distribution functions appear in the definition, the random variables \(\xi_1, \xi_2, \ldots\) and \(\xi\) may be defined on entirely different probability spaces β unlike convergence in probability. For the same reason, instead of naming a limiting random variable one may specify the limiting distribution directly and write, for example, \(\xi_n \xrightarrow [n \to \infty ]{d} \mathscr {N}\left(0, 1\right)\) (which is exactly what we will do in the CLT).
3.3 The relationship between the two convergences
3.4 A look ahead: convergence in the language of measures (optional)
Convergence of distributions as measures, weak convergence. The definition of convergence in distribution via distribution functions is workable, but appears tied to the real line \(\mathbb {R}\): in \(\mathbb {R}^{n}\), and even more so in infinite-dimensional spaces, there is no distribution function in the familiar sense, yet convergence of distributions still needs to be defined. The βcorrectβ definition is formulated in the language of the distributions themselves, i.e., of probability measures, and relies on concepts that we will introduce rigorously only in the chapters on systems of sets and the Borel sigma-algebraβon Lebesgue measure (Borel sets, measure on a sigma-algebra). This subsection is an optional preview: on a first reading it can be skipped and revisited after the chapters on measure theory.
Suppose we have a sequence of distributions (probability measures) \(\mathbf{P}_1, \mathbf{P}_2, \ldots\) on \((\mathbb {R}, \mathscr {B}\left(\mathbb {R}\right))\). This sequence is said to converge strongly (or converge setwise, i.e., converge on every set) to a distribution \(\mathbf{P}\) if
\[ \mathbf{P}_{n}\left(B\right) \xrightarrow [n \to \infty ]{} \mathbf{P}\left(B\right), \quad \forall B \in \mathscr {B}\left(\mathbb {R}\right) \]
Notation:
\[ \mathbf{P}_n \xrightarrow [n \to \infty ]{s} \mathbf{P}, \]
from the English strong.
Strong convergence is not very convenient. For example, if \(\mathbf{P}_n = \delta_{1/n}\), i.e., unit point masses at \(\frac{1}{n}\), then this sequence does not converge strongly to anything, and in particular it does not converge to \(\delta_0\). Indeed, taking \(B = \left\{ 0\right\}\) gives
\[ \delta _{1/n}(\left\{ 0\right\} ) = 0 \not\to 1 = \delta _{0}(\left\{ 0\right\} ) \]
as \(n \to \infty\). (Compare with the example \(\xi_n \equiv \frac{1}{n}\) above: these are the very same distributions!) For this reason one introduces weak convergence. The sequence \(\mathbf{P}_1, \mathbf{P}_2, \ldots\) is said to converge weakly to \(\mathbf{P}\) if
\[ \mathbf{P}_{n}\left(B\right) \xrightarrow [n \to \infty ]{} \mathbf{P}\left(B\right), \quad \forall B \in \mathscr {B}\left(\mathbb {R}\right), \; \mathbf{P}\left(\partial B\right) = 0 \]
The difference from strong convergence is that now we only need to check convergence not on all Borel sets, but on the so-called continuity sets for \(\mathbf{P}\), i.e., sets whose boundary has limiting measure \(0\). Notation:
\[ \mathbf{P}_n \xrightarrow [n \to \infty ]{w} \mathbf{P}, \]
from the English weak.
The integrals in the second item are Lebesgue integrals with respect to the measures \(\mathbf{P}_n\), \(\mathbf{P}\); we will construct these in the chapter on the construction of the Lebesgue integral. Note the third item: it is exactly this condition that we adopted above as the definition of convergence in distribution. That is, our βelementaryβ convergence via distribution functions is precisely weak convergence of distributions:
\[ \xi _{n} \xrightarrow [n \to \infty ]{d} \xi \quad \iff \quad \mathbf{P}_{\xi _n} \xrightarrow [n \to \infty ]{w} \mathbf{P}_{\xi } \]
In terms of random variables, the theorem above can be rewritten as follows.
4 Limit theorems
4.1 The Law of Large Numbers
Let \(\xi_1, \xi_2, \ldots\) be independent and identically distributed random variables (i.i.d. for short) with expectation \(\mu := \mathbb {E}\left[\xi_1\right]\). The Law of Large Numbers (LLN) governs the convergence of their sample mean \(\frac{S_n}{n}\) to \(\mu\), where \(S_n = \xi_1 + \ldots + \xi_n\).
There are many different versions of the LLN. We will state the LLN in its simplest form.
Honesty status: we will now prove the LLN fully rigorously β with the caveat that the properties of expectation and variance used in the proof (linearity, variance of a sum of independent variables) have so far been justified only for discrete distributions (see debt @debt:expectation). After the chapter on properties of the Lebesgue integral, the proof will become honest in full generality β without a single line of it changing.
For the proof we will need the following well-known bounds.
Both inequalities will be proved in full generality in the chapter on properties of the Lebesgue integral, once expectation becomes a Lebesgue integral. For discrete random variables, however, everything can already be proved now.
Note that some of the conditions in the LLN can be relaxed.
Independence can be replaced by uncorrelatedness. Indeed, independence was needed only to write the variance of the sum as the sum of the variances. For this, pairwise uncorrelatedness suffices.
Instead of identical distribution, it suffices to require that
the expectations converge to some constant \(\mu\): \(\mathbb {E}\left[X_n\right] \to \mu\) as \(n \to \infty\)
the variances are uniformly bounded: there exists \(M > 0\) such that \(\operatorname {Var}\left[X_n\right] \leq M\) for all \(n \in \mathbb {N}\)
(check for yourself that this is indeed sufficient)
If the LLN is stated as
\[ \frac{1}{n} \left(S_n - \mathbb {E}\left[S_n\right]\right) \xrightarrow [n \to \infty ]{d,\mathbb {P}} 0 \]
then \(\frac{1}{n}\) can be replaced by \(\frac{1}{n^{\alpha }}\) for any \(\alpha > 0.5\).
4.3 The Central Limit Theorem
Let us center and normalize \(X_i\): \(Y_i := \frac{X_i - \mu }{\sigma }\) (so that \(\mathbb {E}\left[Y_i\right] = 0\), \(\operatorname {Var}\left[Y_i\right] = 1\)). Then for \(\tilde{S}_n = Y_1 + \ldots + Y_n\) the CLT takes the form:
\[ \frac{\tilde{S}_n}{\sqrt{n}} \xrightarrow [n \to \infty ]{d} \mathscr {N}\left(0, 1\right) \]
The difference between the CLT and the LLN is that in the LLN the sum \(S_n\) is scaled by \(n\), whereas in the CLT it is scaled by \(\sqrt{n}\).
Honesty status: we accept the CLT without proof, and this debt will be repaid not in our course, but in the next one β the probability theory course. The standard proof uses the machinery of characteristic functions, which is itself built on the Lebesgue integral (chapter on the construction of the Lebesgue integral) of complex-valued functions. Here the CLT serves as a showcase for us: it demonstrates the results for whose sake the entire machinery of the second part of the course is being built. Note also that the limiting object β the normal distribution \(\mathscr {N}\left(0, 1\right)\) β is a distribution with a density, so we will only be able to define it rigorously after constructing the integral (see debt @debt:densities); for now we understand \(\Phi (x)\) as βthe area under the Gaussian bell curve from \(-\infty\) to \(x\)β in the sense of the Riemann integral.
Informally: if we are given a sequence of i.i.d. random variables \(X_1,X_2, \ldots\) with expectation \(\mu\) and variance \(\sigma^2\), then
\[ \operatorname {Law}(S_n) = \mathbf{P}_{S_n} \approx \mathscr {N}\left(n\mu , n\sigma ^2\right) \]
where \(\operatorname {Law}(S_n)\), \(\mathbf{P}_{S_n}\) are different notations for the distribution of \(S_n = X_1 + X_2 + \ldots + X_n\).
4.4 The law of rare events
The Poisson theorem in short:
\[ \operatorname {Bin}(n,p_n) \xrightarrow [n \to \infty ]{w} \operatorname {Pois}(\lambda ) \quad \text{ if } \lambda := \lim _{n \to \infty }np_n > 0 \]
Honesty status: unlike the CLT, the law of rare events is fully provable already now, by elementary means β it is the only limit theorem in this chapter with no debts at all.
4.5 CLT vs. LRE
Consider the distribution \(\operatorname {Bin}(n,p)\). In which cases should one use the approximation from the CLT, and in which cases the one from the LRE (law of rare events)? For relatively large \(\lambda := np\) (typically \(\lambda > 9\)), the normal distribution is used to approximate \(\operatorname {Bin}(n,p)\):
\[ \operatorname {Bin}(n,p) \approx \mathscr {N}\left(np, np(1-p)\right) \]
For small \(\lambda = np\) (\(\lambda < 9\)), the Poisson distribution can be used for the approximation:
\[ \operatorname {Bin}(n,p) \approx \operatorname {Pois}(\lambda ) \]
5 Summary of three weeks: an inventory of debts
The first three chapters rest on an honest foundation only in part. Wherever the sample space is at most countable, our definitions and proofs are complete. But in the general case we have accumulated debts β and the entire second part of the course will be their systematic repayment:
| Debt~ \(\ref{debt:borel-lebesgue}\): what are Borel sets and Lebesgue measure (length, area)? Why canβt sets be measured? | The chapters~ β: systems of sets, measure, CarathΓ©odoryβs theorem, Lebesgue measure |
| Debt~ \(\ref{debt:measurability}\): what is measurability of a random variable? | The chapter~ : measurable functions |
| Debt~ \(\ref{debt:cdf-defines-distrib}\): why does a distribution function uniquely determine a distribution? | The chapters~ β: CarathΓ©odoryβs theorem, LebesgueβStieltjes measure |
| Debt~ \(\ref{debt:densities}\): what are densities and continuous distributions? | The chapters~ β (the Lebesgue integral) and the chapter~ (the RadonβNikodym theorem) |
| Debt~ \(\ref{debt:expectation}\): what is \(\mathbb {E}\left[\xi \right]\) for an arbitrary random variable? Why is expectation linear? | The chapters~ β: the Lebesgue integral and its properties (including Markovβs inequality in general form) |
| Debt~ \(\ref{debt:weak-convergence}\): what is convergence of distributions βfor realβ, in the language of measures? | The chapters~ β provide the language of measures; convergence of measurable functions is covered in the chapter~ |
| The CLT is accepted without proof | The next course (probability theory): characteristic functions |
Starting from the next chapter, we will set probability aside for a while and turn to the foundations: sets that can be measured, and measures on them.