Expectation, Moments, and Key Inequalities
Expectation as the Lebesgue integral of a random variable, its moments, and the Markov, Chebyshev, Jensen, and Cauchy-Schwarz inequalities that power all of probability.
Leads to: Chebyshev drives the weak law (7.5); Jensen underlies risk-averse pricing and the CLT scaling.
Learning Objectives
Click a status chip to cycle: Not started → In progress → Studied → Practiced → Needs review → Mastered.
- Define expectation as an integral and compute it from a density or PMF.
- Derive variance and the moment structure, and interpret higher moments (skew, kurtosis).
- Prove Markov and Chebyshev inequalities and use them to bound tail probabilities.
- State and apply Jensen and Cauchy-Schwarz, distinguishing convex from concave cases.
Key Vocabulary
- Expectation
- \(\E[X]=\int_\Omega X\,d\Prob=\int_\R x\,d\mu_X\); the Lebesgue integral / probability-weighted average.
- Variance
- \(\Var(X)=\E[(X-\E X)^2]=\E[X^2]-(\E X)^2\); mean-squared spread.
- Moment
- \(\E[X^k]\) (raw) or \(\E[(X-\mu)^k]\) (central); the \(k\)-th shape descriptor.
- Markov inequality
- For \(X\ge0\), \(\Prob(X\ge a)\le \E[X]/a\).
- Chebyshev inequality
- \(\Prob(|X-\mu|\ge k\sigma)\le 1/k^2\); a distribution-free spread bound.
- Jensen inequality
- For convex \(\varphi\), \(\varphi(\E X)\le \E[\varphi(X)]\); reversed for concave \(\varphi\).
Intuition & Motivation
Expectation and moments
Expectation is linear: \(\E[aX+bY]=a\E X+b\E Y\), always (independence not required). The variance is the second central moment,
Higher central moments describe shape: the third gives skewness (asymmetry), the fourth kurtosis (tail heaviness) - both central to modeling fat-tailed asset returns.
The four inequalities
Interactive: convexity and Jensen
Plot a convex function and compare \(\varphi(\E X)\) with \(\E[\varphi(X)]\). The gap is the Jensen premium - the mathematical origin of why volatility has value.
- Assuming \(\E[g(X)]=g(\E X)\). This holds only for affine \(g\); Jensen shows the gap for convex/concave \(g\).
- Using \(\Var(X+Y)=\Var X+\Var Y\) without independence - the cross term \(2\Cov(X,Y)\) is generally present.
- Applying Markov to a variable that can be negative; it requires \(X\ge0\).
- Reading Chebyshev as tight; it is a worst-case bound and is usually very conservative.
- A concave utility plus Jensen is the whole content of risk aversion: \(\E[u(W)]\le u(\E W)\).
- For option payoffs (convex), Jensen implies more dispersion in the underlying raises expected payoff - vega is positive.
- When you know only a mean and variance, Chebyshev gives an honest, if loose, guarantee.
Practice this in the Euler Lab
Computational problems that exercise exactly this technique. Each opens in the Euler Lab with a Python workbench, a progressive hint ladder, and answer checking. Tier A/B run at full scale in the browser.
Warm-up:
#59 XOR Decryption (4%, tier A) #79 Passcode Derivation (7%, tier A) #102 Triangle Containment (8%, tier A) #54 Poker Hands (9%, tier A)
Applied:
#938 Exhausting a Colour (16%, tier B) #816 Shortest Distance Among Points (17%, tier B) #323 Bitwise-OR Operations on Random In (18%, tier B)
Challenge:
#375 Minimum of Subsequences (41%, tier C) #666 Polymorphic Bacteria (41%, tier C)
124 Project Euler problems in total are mapped to this lesson. Open the Euler Lab to filter them all.
Knowledge Check
Practical Exercise
Let \(X\) be exponential with rate \(\lambda\), so \(f_X(x)=\lambda e^{-\lambda x}\) on \(x\ge0\). (a) Compute \(\E[X]\) and \(\Var(X)\). (b) Use Markov to bound \(\Prob(X\ge 3/\lambda)\) and compare to the exact value.
(a) \(\E[X]=\int_0^\infty x\lambda e^{-\lambda x}dx=1/\lambda\). \(\E[X^2]=\int_0^\infty x^2\lambda e^{-\lambda x}dx=2/\lambda^2\), so \(\Var(X)=2/\lambda^2-1/\lambda^2=1/\lambda^2\).
(b) Markov with \(a=3/\lambda\): \(\Prob(X\ge3/\lambda)\le \E[X]/a=(1/\lambda)/(3/\lambda)=1/3\).
Exact: \(\Prob(X\ge3/\lambda)=e^{-\lambda\cdot3/\lambda}=e^{-3}\approx0.0498\). Markov’s \(1/3\) is valid but very loose - typical of a mean-only bound.
Lesson Summary
Formula Sheet Additions
- Did I confirm \(X\ge0\) before invoking Markov?
- Did I add the covariance term when computing \(\Var(X+Y)\)?
- Did I get the direction of Jensen right for convex vs concave?
Retrieval Practice
Close the lesson and answer from memory before checking. This is deliberate, effortful recall - the single highest-yield study action.
A: Apply Markov to \((X-\mu)^2\ge0\) at level \(k^2\sigma^2\): \(\Prob((X-\mu)^2\ge k^2\sigma^2)\le \E[(X-\mu)^2]/(k^2\sigma^2)=1/k^2\).
A: Jensen for concave \(u\): the certainty of the mean is preferred to the gamble, which is exactly risk aversion.
A: \((\E[XY])^2\le\E[X^2]\E[Y^2]\); hence \(|\Cov(X,Y)|\le\sqrt{\Var X\,\Var Y}\), i.e. \(|\rho|\le1\).
Flashcards
Click to flip. These feed the site-wide spaced-repetition queue.
Completion Checklist
- I can explain the core ideas in my own words
- I worked the derivations/examples by hand
- I completed the interactive workbench(es)
- I passed the knowledge check
Source References
This lesson synthesizes and paraphrases concepts from the sources below. No copyrighted text, problem sets, or solutions are reproduced. Return to the originals for full depth.
- Probability: Theory and Examples (Rick Durrett, 5th ed.) current - Ch. 1-2 - Ch. 1-2: integration, expectation, moment inequalities.
- Measure, Integration & Real Analysis (Sheldon Axler, GTM 282) current - Ch. 3 - Lebesgue integral and its properties underlying expectation.