maths2u
Tier
⌕ Search ⌘K
Theorem

Chebyshev's inequality

T-038Home MU-106Threads chance
Statement

Let \((\Omega,\mathcal{F},\mathbb{P})\) be a probability space and let \(X:\Omega\to\mathbb{R}\) be a random variable with \(\mathbb{E}[X^2] \lt \infty\) (so that the mean \(\mu = \mathbb{E}[X]\) and the variance \(\sigma^2 = \operatorname{Var}(X) = \mathbb{E}[(X-\mu)^2]\) both exist and are finite). Then for every real \(k \gt 0\), \[ \mathbb{P}\bigl(|X-\mu| \geq k\bigr) \;\leq\; \frac{\sigma^2}{k^2}. \] Equivalently, in standardised form: for every \(t \gt 0\), \(\mathbb{P}(|X-\mu| \geq t\sigma) \leq 1/t^2\) (provided \(\sigma \gt 0\)).

Why it matters

Chebyshev's inequality is the first genuinely distribution-free concentration result a probabilist meets: it converts a single number you can often compute — the variance — into a quantitative bound on how likely a random variable is to stray from its mean. No knowledge of the distribution's shape, symmetry, or smoothness is required; only that a second moment exists.

Its most important consequence is the weak law of large numbers: applied to a sample mean, whose variance shrinks like \(1/n\), it forces the sample mean to concentrate near the true mean. Historically this is the route by which Chebyshev (1867) — and before him Bienaymé (1853) — first made the law of large numbers rigorous for general distributions, and it remains the template for the whole modern theory of concentration inequalities.

Hypotheses
Finite second moment, \(\mathbb{E}[X^2] \lt \infty\).The standard Cauchy distribution, with density \(\frac{1}{\pi(1+x^2)}\), has no mean at all, so the statement cannot even be formulated; a Pareto variable with density \(\alpha x^{-\alpha-1}\) on \([1,\infty)\) for \(\alpha \in (1,2]\) has a finite mean but infinite variance, and the right-hand side \(\sigma^2/k^2\) degenerates to \(\infty\) — the inequality becomes vacuously true but carries no information. Finiteness of \(\sigma^2\) is what makes the bound a bound.
Strictly positive threshold, \(k \gt 0\).For \(k = 0\) the right-hand side is undefined (division by zero), and the left-hand side \(\mathbb{P}(|X-\mu|\geq 0)=1\) shows no inequality of this shape can hold; for \(k \lt 0\) the event is again all of \(\Omega\). Positivity of \(k\) is exactly what lets us divide by \(k^2\) in the proof.
\(X\) is measurable (a genuine random variable) and centred at its own mean \(\mu\).Measurability guarantees \(\{|X-\mu|\geq k\}\in\mathcal{F}\), so the left-hand side is defined. Centring matters: the inequality bounds deviation from \(\mu=\mathbb{E}[X]\), not from an arbitrary point \(c\). For deviation from a general \(c\) the correct bound is \(\mathbb{P}(|X-c|\geq k)\leq \mathbb{E}[(X-c)^2]/k^2 = (\sigma^2+(\mu-c)^2)/k^2\), which is strictly weaker whenever \(c\neq\mu\); quoting \(\sigma^2/k^2\) for \(c \neq \mu\) is simply false (take \(X \equiv 0\), \(c = 1\), \(k = 1/2\): left side is \(1\), the false bound is \(0\)).
Proof

The proof factors through Markov's inequality, which we prove in full rather than cite blind. Throughout, \(\mathbf{1}_A\) denotes the indicator function of the event \(A\).

1
\[ \text{Set } Y = (X-\mu)^2. \text{ Then } Y \geq 0 \text{ everywhere and } \mathbb{E}[Y] = \sigma^2 \lt \infty. \]
\(Y\) is a composition of the measurable map \(X\) with the continuous map \(x \mapsto (x-\mu)^2\), hence measurable; non-negativity is pointwise obvious; \(\mathbb{E}[Y]=\sigma^2\) is the definition of variance, finite by hypothesis. A
2
\[ \{|X-\mu| \geq k\} \;=\; \{Y \geq k^2\}. \]
For real numbers \(a \geq 0\), \(b \gt 0\): \(a \geq b \iff a^2 \geq b^2\), because \(x \mapsto x^2\) is strictly increasing on \([0,\infty)\). Apply with \(a = |X(\omega)-\mu|\), \(b = k\), pointwise for each \(\omega \in \Omega\). This is the key reduction: a two-sided deviation event becomes a one-sided event for a non-negative variable. B
3
\[ \text{(Markov's inequality.) For any non-negative random variable } Y \text{ and any } a \gt 0: \quad Y \;\geq\; a\,\mathbf{1}_{\{Y \geq a\}} \text{ pointwise.} \]
Case check on each \(\omega\): if \(Y(\omega) \geq a\) the right side equals \(a\) and the inequality is the defining condition of the event; if \(Y(\omega) \lt a\) the right side equals \(0\) and the inequality is just \(Y(\omega) \geq 0\). This pointwise domination is the entire content of Markov's inequality — everything after is bookkeeping. B
4
\[ \mathbb{E}[Y] \;\geq\; \mathbb{E}\bigl[a\,\mathbf{1}_{\{Y\geq a\}}\bigr] \;=\; a\,\mathbb{P}(Y \geq a). \]
Monotonicity of expectation: if \(U \geq V\) pointwise and both expectations exist, then \(\mathbb{E}[U] \geq \mathbb{E}[V]\) — a standard consequence of the construction of the Lebesgue integral (positivity plus linearity applied to \(U - V \geq 0\)). Then linearity pulls out the constant \(a\), and \(\mathbb{E}[\mathbf{1}_A] = \mathbb{P}(A)\) by definition of the integral of an indicator. Note both sides are finite since \(\mathbb{E}[Y] = \sigma^2 \lt \infty\). C
5
\[ \mathbb{P}(Y \geq a) \;\leq\; \frac{\mathbb{E}[Y]}{a} \quad \text{for every } a \gt 0. \]
Divide the inequality of Step 4 by \(a \gt 0\); the direction of the inequality is preserved because \(a\) is strictly positive. This completes the proof of Markov's inequality. A
6
\[ \mathbb{P}\bigl(|X-\mu| \geq k\bigr) \;=\; \mathbb{P}(Y \geq k^2) \;\leq\; \frac{\mathbb{E}[Y]}{k^2} \;=\; \frac{\sigma^2}{k^2}. \]
First equality: Step 2 says the two events are literally the same subset of \(\Omega\), so they have the same probability. The inequality: Markov (Step 5) applied to \(Y=(X-\mu)^2\) with \(a = k^2 \gt 0\), legal since \(k \gt 0\). Final equality: Step 1. \(\blacksquare\) A
Result
\[ \mathbb{E}[X^2] \lt \infty,\; k \gt 0 \;\;\Longrightarrow\;\; \mathbb{P}\bigl(|X - \mathbb{E}[X]| \geq k\bigr) \;\leq\; \frac{\operatorname{Var}(X)}{k^2} \]

Reading. Whatever the distribution, the chance of landing \(k\) or more away from the mean is at most the variance divided by \(k^2\). In standard-deviation units: the chance of being \(t\) standard deviations out is at most \(1/t^2\) — so at most \(25\%\) beyond \(2\sigma\), at most about \(11\%\) beyond \(3\sigma\), for any distribution with finite variance.

Scope. Applies to every real random variable with a finite second moment, on any probability space — discrete, continuous, or neither; no independence, symmetry, or unimodality is assumed. It says nothing when \(\sigma^2 = \infty\), and it is uninformative (bound \(\geq 1\)) whenever \(k \leq \sigma\). The inequality is sharp in general (equality is attained by a three-point distribution), but for specific families such as the Gaussian it is far from tight.

Corollaries & converses
  • Standardised form. If \(\sigma \gt 0\), then \(\mathbb{P}(|X-\mu| \geq t\sigma) \leq 1/t^2\) for all \(t \gt 0\) (substitute \(k = t\sigma\)).
  • Weak law of large numbers. If \(X_1, X_2, \ldots\) are i.i.d. with mean \(\mu\) and variance \(\sigma^2 \lt \infty\), then \(\bar{X}_n = \frac{1}{n}\sum_{i=1}^n X_i\) satisfies \(\mathbb{P}(|\bar{X}_n - \mu| \geq \varepsilon) \leq \sigma^2/(n\varepsilon^2) \to 0\); i.e. \(\bar{X}_n \to \mu\) in probability. (Only pairwise uncorrelatedness is actually used.)
  • Zero variance forces constancy. If \(\sigma^2 = 0\), take \(k = 1/n\) and let \(n \to \infty\): \(\mathbb{P}(|X-\mu| \gt 0) = \lim_n \mathbb{P}(|X-\mu| \geq 1/n) = 0\), so \(X = \mu\) almost surely.
  • Converse fails (tightness). Small tails do not mean Chebyshev is accurate: for \(X \sim N(0,1)\), \(\mathbb{P}(|X| \geq 3) \approx 0.0027\), while Chebyshev gives only \(1/9 \approx 0.111\) — off by a factor of \(40\).
  • Converse fails (moments). A tail bound of Chebyshev type does not imply finite variance: the density \(f(x) = |x|^{-3}\) for \(|x| \geq 1\) (suitably normalised) satisfies \(\mathbb{P}(|X| \geq k) = \mathcal{O}(1/k^2)\), yet \(\mathbb{E}[X^2] = \int_{|x|\geq 1} x^2 |x|^{-3}\,dx = \infty\). The borderline decay \(1/k^2\) is not summable against \(x^2\).
Fails without
  • Infinite variance. Let \(X\) have the Pareto density \(f(x) = \frac{3}{2} x^{-5/2}\) on \([1,\infty)\). Then \(\mu = \mathbb{E}[X] = 3\) but \(\mathbb{E}[X^2] = \int_1^\infty \frac{3}{2} x^{-1/2}\,dx = \infty\). The tails decay only like \(\mathbb{P}(X \geq k) = k^{-3/2}\), strictly slower than any \(C/k^2\): no inequality of the form \(\mathbb{P}(|X-\mu| \geq k) \leq C/k^2\) can hold for all \(k\), for any finite constant \(C\). The conclusion, not merely the proof, genuinely fails.
  • No mean at all. For the standard Cauchy distribution, \(\mathbb{E}[|X|] = \infty\), so \(\mu\) does not exist and the statement is meaningless; moreover \(\mathbb{P}(|X| \geq k) = 1 - \frac{2}{\pi}\arctan k \sim \frac{2}{\pi k}\), a tail of order \(1/k\), which violates every bound of order \(1/k^2\).
  • Replacing \(\mu\) by another centre. Take \(X\) with \(\mathbb{P}(X = 0) = 1\), so \(\mu = 0\), \(\sigma^2 = 0\). "Chebyshev about \(c = 1\)" would claim \(\mathbb{P}(|X - 1| \geq \frac{1}{2}) \leq \sigma^2/(\frac{1}{2})^2 = 0\); the true probability is \(1\). The variance controls spread about the mean only.
Common errors
  • Dividing by \(k\) instead of \(k^2\). \(\sigma^2/k\) is Markov applied to the wrong variable; the squaring in Step 2 is what produces \(k^2\).
  • Confusing \(k\) with "number of standard deviations". \(\mathbb{P}(|X-\mu| \geq k) \leq \sigma^2/k^2\) has \(k\) in the original units; the \(1/t^2\) form requires \(k = t\sigma\). Mixing the two forms silently rescales the bound by \(\sigma^2\).
  • Expecting a two-sided bound to serve one-sided needs efficiently. Chebyshev bounds \(\mathbb{P}(X - \mu \geq k)\) only via \(\mathbb{P}(|X-\mu| \geq k)\); the sharper one-sided bound is Cantelli's \(\sigma^2/(\sigma^2 + k^2)\) (Problem 5), and halving Chebyshev's bound for a one-sided tail is invalid without a symmetry assumption.
  • Treating the bound as an approximation. \(\sigma^2/k^2\) is a worst-case ceiling attained only by extremal three-point distributions; using it as an estimate for, say, Gaussian tails overstates them enormously.
  • Worrying about strict vs. non-strict inequality. Since \(\{|X-\mu| \gt k\} \subseteq \{|X-\mu| \geq k\}\), the same bound holds for the strict-inequality event by monotonicity of \(\mathbb{P}\); but students sometimes claim the reverse containment, which is false when \(\mathbb{P}(|X-\mu| = k) \gt 0\).
  • Applying it when \(k \leq \sigma\) and reporting a "probability" larger than \(1\). The bound is correct but vacuous there; the honest statement is \(\mathbb{P} \leq \min(1, \sigma^2/k^2)\).
Discussion

Chebyshev's inequality is the archetype of a moment method: pass from an event to a non-negative random variable dominating its indicator, and take expectations. Markov's inequality is the raw form (first moment, one-sided variable); Chebyshev is Markov applied to \((X-\mu)^2\). The same template with \((X-\mu)^{2p}\) gives bounds of order \(\mathbb{E}[(X-\mu)^{2p}]/k^{2p}\), and with \(e^{\lambda(X-\mu)}\) it gives the Chernoff bound \(\mathbb{P}(X - \mu \geq k) \leq e^{-\lambda k}\,\mathbb{E}[e^{\lambda(X-\mu)}]\), whose optimisation over \(\lambda \gt 0\) yields exponential tail bounds (Hoeffding, Bernstein) when the moment generating function exists. Chebyshev is thus the second rung of an infinite ladder, and the weakest bound on it that is still strong enough to prove the weak law of large numbers.

Historically the inequality was published by Irénée-Jules Bienaymé in 1853 and rediscovered — with the application to the law of large numbers — by Pafnuty Chebyshev in 1867; the name "Bienaymé–Chebyshev inequality" is common in the French tradition. Chebyshev's motivation was to free the law of large numbers from the Bernoulli/de Moivre setting of binomial variables: his proof works for arbitrary uncorrelated summands with bounded variances, an enormous generalisation for its time. His students Markov and Lyapunov pushed the moment method further, to Markov's inequality in its modern form and to the central limit theorem respectively.

The inequality is sharp: for fixed \(\sigma^2\) and \(k\) with \(\sigma \leq k\), the distribution \(\mathbb{P}(X = \pm k) = \frac{\sigma^2}{2k^2}\), \(\mathbb{P}(X = 0) = 1 - \frac{\sigma^2}{k^2}\) has mean \(0\), variance exactly \(\sigma^2\), and achieves \(\mathbb{P}(|X| \geq k) = \sigma^2/k^2\) with equality. So no distribution-free improvement is possible. Improvements require extra structure: unimodality gives the Vysochanskij–Petunin inequality \(\mathbb{P}(|X-\mu| \geq t\sigma) \leq \frac{4}{9t^2}\) for \(t \gt \sqrt{8/3}\), and one-sided information gives Cantelli's inequality.

From a modern viewpoint, Chebyshev's inequality is a statement about the embedding \(L^2(\Omega) \subseteq L^{2,\infty}(\Omega)\): it says precisely that the weak-\(L^2\) quasinorm of \(X - \mu\) is controlled by its \(L^2\) norm, \(\sup_{k \gt 0} k^2\, \mathbb{P}(|X-\mu| \geq k) \leq \lVert X-\mu \rVert_{L^2}^2\). This is the probabilistic instance of the general Chebyshev–Markov inequality of measure theory, valid on any measure space, and it is the standard entry point to interpolation theory (Marcinkiewicz) and to the maximal-function estimates of harmonic analysis. The counterexample density \(|x|^{-3}\) above is exactly a function in weak-\(L^2\) but not in \(L^2\): the gap between the two spaces is the gap between the converse and the theorem.

Common misconceptions. Chebyshev does not say deviations of more than \(t\) standard deviations are "impossible" or even "rare" in an absolute sense — for \(t \leq 1\) it says nothing at all. It is not an approximation to the true tail probability, and it does not require (or become an equality under) normality; for a Gaussian it is very loose. Finally, the "\(68\)–\(95\)–\(99.7\)" rule is a Gaussian fact, not a consequence of Chebyshev, which guarantees only "\(0\)–\(75\)–\(88.9\)" in the same units.

Worked examples

Example 1 (coin tossing). A fair coin is tossed \(100\) times; let \(S\) be the number of heads. Bound the probability that \(S\) differs from \(50\) by at least \(10\).

1
\[ S \sim \mathrm{Bin}(100, \tfrac{1}{2}), \qquad \mu = np = 50, \qquad \sigma^2 = np(1-p) = 100 \cdot \tfrac{1}{2} \cdot \tfrac{1}{2} = 25. \]
Mean and variance of the binomial: \(S = \sum_{i=1}^{100} B_i\) with \(B_i\) independent Bernoulli\((\frac{1}{2})\); linearity of expectation and additivity of variance over independent summands. A
2
\[ \mathbb{P}(|S - 50| \geq 10) \;\leq\; \frac{\sigma^2}{10^2} \;=\; \frac{25}{100} \;=\; \frac{1}{4}. \]
Chebyshev's inequality with \(k = 10 \gt 0\); the second moment is finite because \(S\) is bounded. A
3
Comparison: the exact value is \(\mathbb{P}(|S-50| \geq 10) = 2\,\mathbb{P}(S \geq 60) \approx 0.057\), and the normal approximation gives \(\approx 2(1 - \Phi(1.9)) \approx 0.057\) with the continuity correction.
Exact value by summing binomial probabilities (or a table); the point is pedagogical — Chebyshev's \(0.25\) is a valid ceiling but roughly \(4\times\) the truth, as expected for a near-Gaussian variable. A
\[ \mathbb{P}(|S - 50| \geq 10) \;\leq\; \frac{1}{4} \]

Reading. Without any distributional computation, at most a quarter of all \(100\)-toss experiments land outside \([41, 59]\) heads; the true figure is about \(5.7\%\).

Scope. The bound needed only \(\mu\) and \(\sigma^2\); it would apply verbatim to any variable with mean \(50\) and variance \(25\), however skewed.

Example 2 (sample-size design via the weak law). Measurements \(X_1, \ldots, X_n\) are i.i.d. with unknown mean \(\mu\) and known variance \(\sigma^2 = 1\). How large must \(n\) be so that the sample mean \(\bar{X}_n\) satisfies \(\mathbb{P}(|\bar{X}_n - \mu| \geq 0.1) \leq 0.05\)?

1
\[ \mathbb{E}[\bar{X}_n] = \mu, \qquad \operatorname{Var}(\bar{X}_n) = \frac{1}{n^2}\sum_{i=1}^n \operatorname{Var}(X_i) = \frac{\sigma^2}{n} = \frac{1}{n}. \]
Linearity of expectation; \(\operatorname{Var}(aY) = a^2 \operatorname{Var}(Y)\); variance of a sum of independent (indeed, merely uncorrelated) variables is the sum of variances. A
2
\[ \mathbb{P}\bigl(|\bar{X}_n - \mu| \geq 0.1\bigr) \;\leq\; \frac{\operatorname{Var}(\bar{X}_n)}{(0.1)^2} \;=\; \frac{1}{n \cdot 0.01} \;=\; \frac{100}{n}. \]
Chebyshev's inequality applied to the random variable \(\bar{X}_n\), whose mean is \(\mu\) and whose variance was computed in Step 1; \(k = 0.1 \gt 0\). B
3
\[ \frac{100}{n} \leq 0.05 \iff n \geq \frac{100}{0.05} = 2000. \]
Solve the inequality for \(n\); both sides positive, so the manipulation is order-preserving. A
\[ n \geq 2000 \;\Longrightarrow\; \mathbb{P}\bigl(|\bar{X}_n - \mu| \geq 0.1\bigr) \leq 0.05 \]

Reading. Two thousand samples guarantee \(95\%\) confidence of estimating \(\mu\) to within \(0.1\) — with no assumption whatsoever on the shape of the distribution.

Scope. The guarantee is distribution-free and hence conservative: if the \(X_i\) were known to be Gaussian, \(n \approx 385\) would suffice via the exact normal tail. Chebyshev trades sharpness for universality.

Problems
  1. Let \(X \sim \mathrm{Unif}[0,1]\). Compute the Chebyshev bound on \(\mathbb{P}\bigl(|X - \frac{1}{2}| \geq \frac{1}{4}\bigr)\), compute the exact probability, and comment.
    Solution For the uniform distribution on \([0,1]\), \(\mu = \frac{1}{2}\) and \(\sigma^2 = \int_0^1 (x - \frac{1}{2})^2\,dx = \frac{1}{12}\). Chebyshev with \(k = \frac{1}{4}\) gives \[ \mathbb{P}\Bigl(\bigl|X - \tfrac{1}{2}\bigr| \geq \tfrac{1}{4}\Bigr) \;\leq\; \frac{1/12}{1/16} \;=\; \frac{4}{3}. \] The exact probability is \(\mathbb{P}(X \leq \frac{1}{4}) + \mathbb{P}(X \geq \frac{3}{4}) = \frac{1}{4} + \frac{1}{4} = \frac{1}{2}\). The bound \(\frac{4}{3} \gt 1\) is correct but vacuous: since here \(k = \frac{1}{4} \lt \sigma = \frac{1}{\sqrt{12}} \approx 0.289\), we are inside the regime \(k \leq \sigma\) where Chebyshev can say nothing. Moral: the inequality only bites for deviations exceeding one standard deviation.
  2. Prove the standardised form: if \(\operatorname{Var}(X) = \sigma^2 \in (0, \infty)\), then \(\mathbb{P}(|X - \mu| \geq t\sigma) \leq \frac{1}{t^2}\) for all \(t \gt 0\). Deduce a bound on the probability that any random variable with finite variance lies more than \(5\) standard deviations from its mean.
    Solution Since \(\sigma \gt 0\) and \(t \gt 0\), the number \(k = t\sigma\) is strictly positive, so Chebyshev's inequality applies with this \(k\): \[ \mathbb{P}(|X - \mu| \geq t\sigma) \;\leq\; \frac{\sigma^2}{(t\sigma)^2} \;=\; \frac{\sigma^2}{t^2 \sigma^2} \;=\; \frac{1}{t^2}. \] With \(t = 5\): \(\mathbb{P}(|X - \mu| \geq 5\sigma) \leq \frac{1}{25} = 0.04\). Every distribution with finite variance — however heavy-tailed or skewed — puts at most \(4\%\) of its mass beyond \(5\) standard deviations. (Compare the Gaussian value \(\approx 5.7 \times 10^{-7}\): universality costs sharpness.)
  3. Show that Chebyshev's inequality is sharp: for every \(\sigma^2 \gt 0\) and every \(k \geq \sigma\), construct a random variable with variance \(\sigma^2\) for which \(\mathbb{P}(|X - \mu| \geq k) = \frac{\sigma^2}{k^2}\) exactly.
    Solution Let \(p = \frac{\sigma^2}{2k^2}\); since \(k \geq \sigma \gt 0\) we have \(0 \lt p \leq \frac{1}{2}\), so we may define \[ \mathbb{P}(X = k) = \mathbb{P}(X = -k) = p, \qquad \mathbb{P}(X = 0) = 1 - 2p \geq 0. \] By symmetry \(\mu = \mathbb{E}[X] = k p + (-k)p + 0 = 0\). The variance is \[ \operatorname{Var}(X) = \mathbb{E}[X^2] = k^2 p + k^2 p = 2k^2 \cdot \frac{\sigma^2}{2k^2} = \sigma^2, \] as required. Finally \[ \mathbb{P}(|X - \mu| \geq k) = \mathbb{P}(X = k) + \mathbb{P}(X = -k) = 2p = \frac{\sigma^2}{k^2}, \] which is exactly the Chebyshev bound. Hence no inequality of the form \(\mathbb{P}(|X-\mu| \geq k) \leq c\,\sigma^2/k^2\) with \(c \lt 1\) can hold for all distributions: the constant \(1\) is optimal. (Tracing the proof, equality forces \((X-\mu)^2\) to be supported on \(\{0, k^2\}\) — precisely the three-point shape used here.)
  4. (Weak law of large numbers.) Let \(X_1, X_2, \ldots\) be pairwise uncorrelated random variables with common mean \(\mu\) and variances \(\operatorname{Var}(X_i) \leq C\) for a uniform constant \(C\). Prove that \(\bar{X}_n = \frac{1}{n}\sum_{i=1}^n X_i \to \mu\) in probability, i.e. \(\mathbb{P}(|\bar{X}_n - \mu| \geq \varepsilon) \to 0\) for every \(\varepsilon \gt 0\).
    Solution Fix \(\varepsilon \gt 0\). By linearity, \(\mathbb{E}[\bar{X}_n] = \mu\). For pairwise uncorrelated summands the variance is additive — expanding, \(\operatorname{Var}\bigl(\sum_i X_i\bigr) = \sum_i \operatorname{Var}(X_i) + \sum_{i \neq j} \operatorname{Cov}(X_i, X_j)\) and every covariance term vanishes — so \[ \operatorname{Var}(\bar{X}_n) = \frac{1}{n^2} \sum_{i=1}^n \operatorname{Var}(X_i) \;\leq\; \frac{nC}{n^2} = \frac{C}{n}. \] In particular \(\bar{X}_n\) has finite variance, so Chebyshev's inequality applies with \(k = \varepsilon\): \[ \mathbb{P}\bigl(|\bar{X}_n - \mu| \geq \varepsilon\bigr) \;\leq\; \frac{\operatorname{Var}(\bar{X}_n)}{\varepsilon^2} \;\leq\; \frac{C}{n \varepsilon^2} \;\xrightarrow[n \to \infty]{}\; 0. \] Since \(\varepsilon \gt 0\) was arbitrary, \(\bar{X}_n \to \mu\) in probability. Note that full independence was never used — pairwise uncorrelatedness suffices, which is exactly the strength of the variance method.
  5. (Cantelli's one-sided inequality.) Let \(X\) have mean \(\mu\) and variance \(\sigma^2 \lt \infty\). Prove that for every \(k \gt 0\), \( \mathbb{P}(X - \mu \geq k) \leq \frac{\sigma^2}{\sigma^2 + k^2}, \) and verify that this improves on the naive one-sided use of Chebyshev whenever \(k \gt \sigma\).
    Solution Write \(Z = X - \mu\), so \(\mathbb{E}[Z] = 0\) and \(\mathbb{E}[Z^2] = \sigma^2\). For any \(u \gt 0\), on the event \(\{Z \geq k\}\) we have \(Z + u \geq k + u \gt 0\), hence \[ \{Z \geq k\} \subseteq \{(Z+u)^2 \geq (k+u)^2\}, \] because \(x \mapsto x^2\) is increasing on \([0, \infty)\) and \(Z + u \geq k + u\) with both sides positive there. Applying Markov's inequality (Steps 3–5 of the main proof) to the non-negative variable \((Z+u)^2\) with threshold \((k+u)^2 \gt 0\): \[ \mathbb{P}(Z \geq k) \;\leq\; \frac{\mathbb{E}[(Z+u)^2]}{(k+u)^2} \;=\; \frac{\sigma^2 + 2u\,\mathbb{E}[Z] + u^2}{(k+u)^2} \;=\; \frac{\sigma^2 + u^2}{(k+u)^2}, \] using linearity of expectation and \(\mathbb{E}[Z] = 0\). This holds for every \(u \gt 0\); we minimise the right-hand side. Setting \(g(u) = \frac{\sigma^2 + u^2}{(k+u)^2}\), \[ g'(u) = \frac{2u(k+u)^2 - 2(k+u)(\sigma^2 + u^2)}{(k+u)^4} = \frac{2\bigl(uk - \sigma^2\bigr)}{(k+u)^3}, \] which vanishes at \(u^* = \sigma^2/k\), is negative before and positive after, so \(u^*\) is the global minimiser on \((0,\infty)\). Substituting \(u^* = \sigma^2/k\): \[ g(u^*) = \frac{\sigma^2 + \sigma^4/k^2}{(k + \sigma^2/k)^2} = \frac{\sigma^2 (k^2 + \sigma^2)/k^2}{(k^2 + \sigma^2)^2 / k^2} = \frac{\sigma^2}{\sigma^2 + k^2}. \] Hence \(\mathbb{P}(X - \mu \geq k) \leq \frac{\sigma^2}{\sigma^2 + k^2}\). Comparison: the naive one-sided use of Chebyshev is \(\mathbb{P}(X - \mu \geq k) \leq \mathbb{P}(|X - \mu| \geq k) \leq \frac{\sigma^2}{k^2}\), and \[ \frac{\sigma^2}{\sigma^2 + k^2} \lt \frac{\sigma^2}{k^2} \iff k^2 \lt \sigma^2 + k^2, \] which is always true — Cantelli is strictly better for every \(k \gt 0\), and unlike \(\sigma^2/k^2\) it is a genuine probability bound (below \(1\)) for all \(k \gt 0\). At \(k = \sigma\) it gives \(\frac{1}{2}\) where Chebyshev gives the vacuous \(1\).