Lecture 22

Inequalities, Continuity of P


Grace Tompkins

Last modified — 02 Dec 2026

Learning Outcomes

By the end of this lecture, students are anticipated to be able to:

  • Calculate bounds of expectations and variances

  • Define and use the continuity properties of the probability function for sequences of random events

1 Inequalities

Markov’s Inequality

Let \(X\) be a random variable with \(\mathbb{P}(X \geq 0) = 1\). Then, for any \(a > 0\), \[\mathbb{P}( X \geq a ) \le \frac{\mathbb{E}[ X ] }{a}.\]

Note that this implies that for any random variable \(Y\),

\[\mathbb{P}(|Y| \geq a) \le \mathbb{E}[|Y|] / a.\]

Proof of Markov’s Inequality

Chebyshev’s1 Inequality

Let \(X\) be a random variable with finite mean \(\mu\).

Then, for any \(a > 0\), \[\mathbb{P}(| X - \mu| \geq a ) \leq \ \frac{\operatorname{Var}(X)}{a^2}.\]

Chebyshev’s1 Inequality

Comparing Markov and Chebyshev

Let \(X\) be a non-negative random variable with mean \(\mu\) and variance \(\mu\).

We want to examine the bounds on \(\mathbb{P}((X - \mu)/\mu \geq 1)\) given by Markov’s and Chebyshev’s inequalities.

Markov’s inequality gives \[\mathbb{P}((X - \mu)/\mu \geq 1) = \mathbb{P}( X \geq 2\mu ) \leq \ \frac{\mathbb{E}[X]}{2\mu} = \frac{\mu}{2\mu} = \frac{1}{2}.\]

Chebyshev’s inequality gives \[\mathbb{P}((X - \mu)/\mu \geq 1) = \mathbb{P}(X - \mu \geq \mu) \leq \mathbb{P}(|X - \mu| \geq \mu) \leq \frac{\operatorname{Var}(X)}{\mu^2} = \frac{\mu}{\mu^2} = \frac{1}{\mu}.\]

So for any random variable with mean \(\mu\) and variance \(\mu\), Chebyshev’s inequality gives a tighter bound whenever \(\mu > 2\).

Binomial Bounds

Suppose you flip a fair coin 100 times. Use Markov’s and Chebyshev’s inequalities to approximate the probability of seeing 60 or more heads.

Binomial Bounds

Far Away Stars

  • Suppose that a radio telescope can measure the distance to a star.
  • But due to atmospheric conditions, instrumental error, and movements of the earth, each measurement is a random variable with mean \(\mu\) light years (the true distance) and variance \(4\) (square) light years.
  • An astronomer plans to take \(n\) independent measurements of the distance and use their average \(\overline{X}_n\) as an estimate for the true distance.

How many measurements should the astronomer make if they want the probability of a mismeasurement larger than 1 light year to be no more than 0.01?

Hint: recall that \(\mathbb{E}[ \overline{X}_n ] = \mathbb{E}[X_1]\) and \(\operatorname{Var}( \overline{X}_n ) = \operatorname{Var}(X_1)/n\).

Far Away Stars

Cauchy Schwarz Inequality

Cauchy Schwarz for random variables

Let \(X\) and \(Y\) be two random variables with finite second moments. Then, \[|\mathbb{E}[XY]| \leq \sqrt{\mathbb{E}[X^2] \,\mathbb{E}[Y^2]}.\]

Let \(X\) and \(Y\) be two random variables with finite second moments. Then, \[|\operatorname{Cov}(X, Y)| \leq \sqrt{\operatorname{Var}(X) \, \operatorname{Var}(Y)}.\]

If, in addition, \(\operatorname{Var}(X) > 0\) and \(\operatorname{Var}(Y) > 0\), then \[|\operatorname{Corr}(X, Y)| \leq 1.\]

Jensen’s Inequality

Recall that a function \(f: {\mathbb{R}}\to {\mathbb{R}}\) is convex if for any \(x, y \in {\mathbb{R}}\) and \(\lambda \in [0, 1]\), we have \[f(\lambda x + (1 - \lambda) y) \leq \lambda f(x) + (1 - \lambda) f(y).\]

Let \(X\) be a random variable with finite mean and let \(f: {\mathbb{R}}\to {\mathbb{R}}\) be a convex function. Then, \[f(\mathbb{E}[X]) \leq \mathbb{E}[f(X)].\]

Demo: Dice Game

Let’s play a game!

  1. You pay me $49 to roll 2 standard 6-sided dice. If you see \(x\) dots, you win $\(x^2\).
  2. Repeat as many times as you like, but you have to paying $49 each time.

How many times should you play this game? Justify your answer.

Questionable Friendships

Followup on Jensen’s Inequality

Show that the variance of a random variable is always non-negative.

Followup on Jensen’s Inequality

2 Continuity of P

Convergence (Calculus)

  • In calculus, you looked at the limit of a sequence of numbers, \(a_n\), as \(n\) goes to infinity.
  • \(\lim_{n \to \infty} 1/n = 0;\)
  • \(\lim_{n \to \infty} (1 + 1/n)^n = e;\)
  • \(\lim_{n \to \infty} (1 + a/n)^n = e^a \text{ for all } a \in {\mathbb{R}};\)
  • \(\lim_{n \to \infty} (1 + a_n/n)^n = e^a \text{ if } a_n \to a.\)
  • In probability, we look at the limit of a sequence of random variables, \(X_n\), as \(n\) goes to infinity.

  • This turns out to be more complicated, because there are different modes of convergence. We will discuss 3 types of convergence to wrap up this course!

Continuity

  • We will consider a sequence of events, say \(A_1\), \(A_2\), … that are getting “closer” (in a sense) to another event \(A\).

  • It is natural to expect that \(\mathbb{P}(A_1)\), \(\mathbb{P}(A_2)\), …. are also approaching \(\mathbb{P}(A)\).

  • We can show that this is indeed true!

Continuity

Suppose events \(A_1 \subseteq A_2 \subseteq A_3 \dots\) and \(\bigcup_{n=1}^\infty A_n= A\) for some set \(A\). Then \(\lim_{n \to \infty} \mathbb{P}(A_n) = \mathbb{P}(A)\).

Suppose events \(A_1 \supseteq A_2 \supseteq A_3 \dots\) and \(\bigcap_{n=1}^\infty A_n= A\) for some set \(A\). Then \(\lim_{n \to \infty} \mathbb{P}(A_n) = \mathbb{P}(A)\).

Continuity

Consider a simple experiment where a standard 6-sided die is rolled repeatedly until we see a 6.

Let \(Z\) be the event that you eventually stop rolling. Show that \(\mathbb{P}(Z) = 1\).

Continuity

Reminders:

  • Checkpoint 7 is on Friday Dec 4 (MGFS + Conditional Expectation)