Seyed Masoud Hosseini · Overview · Study log · Weekly summaries · Ideas · Search · Transcript · RSS feed
Probability · Lecture 44 of 76 · 47:53
12. Iterated Expectations
Study guide
What this lecture covers
This lecture closes out the core probability theory material of MIT 6.041 by reframing two familiar ideas, conditional expectation and conditional variance, as random variables rather than fixed numbers. It answers the question of how to compute the mean and variance of a random variable by breaking the problem into simpler conditional pieces and recombining them, an approach that becomes essential once you sum a random number of random variables.
The lecture follows the stick-breaking example from the previous class and precedes a specific application to sums with a random number of terms. After watching, you should be able to treat E[X|Y] and Var(X|Y) as random variables that are functions of Y, apply the law of iterated expectations, and use the law of total variance to split overall variability into within-group and between-group components.
Key ideas
- Conditional expectation as a random variable:
E[X|Y]is a function of the random variable Y, taking the numerical valueE[X|Y=y]whenever Y equals y; before the experiment, its value is unknown. - Law of iterated expectations:
E[E[X|Y]] = E[X], which is the total expectation theorem restated in random-variable notation. - Conditional variance as a random variable:
Var(X|Y)is likewise a function of Y, equal to the variance of X computed inside the conditional universe where Y is known. - Law of total variance:
Var(X) = E[Var(X|Y)] + Var(E[X|Y]), unlike expectation this needs two terms, not justE[Var(X|Y)]alone. - Interpreting the two variance terms:
E[Var(X|Y)]captures variability within each conditional scenario (such as within a section);Var(E[X|Y])captures variability between scenarios (such as differing section averages). - Divide-and-conquer variance calculation: splitting a continuous random variable's support into pieces and defining an auxiliary discrete random variable can make a variance calculation easier by working in each conditional piece separately.
- Sum of a random number of random variables: for i.i.d.
X_1, ..., X_Nindependent of N,E[Y] = E[N] * E[X]andVar(Y) = E[N] * Var(X) + Var(N) * (E[X])^2, whereY = X_1 + ... + X_N.
Walkthrough
Conditional expectation reframed as a random variable (1:02)
Using the stick-breaking example (break a stick at uniform point Y, then break the remainder at a uniform point X between 0 and Y), the lecture shows that E[X|Y=y] = y/2 is a number once y is fixed, but before the experiment E[X|Y] must be treated as a random variable depending on the unknown Y.
Law of iterated expectations (7:06)
The lecture shows that the expectation of the conditional expectation, E[E[X|Y]], equals the unconditional E[X], and identifies this as the total expectation theorem in abstract notation. It applies this to recover E[X] = l/4 in the stick-breaking example.
Conditional variance and the law of total variance (11:15)
The lecture defines Var(X|Y) analogously as a random variable, then derives (via an algebraic proof) that Var(X) = E[Var(X|Y)] + Var(E[X|Y]), noting that, unlike expectation, a single term is not enough.
Quiz scores example: within-section and between-section variance (19:25)
Using a class split into two sections with different sizes and score averages, the lecture computes the overall mean via the law of iterated expectations and the overall variance via the law of total variance, interpreting the two variance terms as within-section spread and between-section spread respectively.
Divide-and-conquer variance for a continuous variable (30:40)
A piecewise-uniform density is split into two regions using an auxiliary discrete variable Y, and the lecture computes the overall variance of X by combining the conditional means and conditional variances within each region.
Sum of a random number of random variables (35:50)
Using a bookstore-shopping example (visiting a random number N of stores and spending a random amount at each), the lecture derives E[Y] = E[N]*E[X] and Var(Y) = E[N]*Var(X) + Var(N)*(E[X])^2 for Y equal to the sum of N i.i.d. terms independent of N, by conditioning on N and applying the laws developed earlier.
Before you watch
- Review the stick-breaking example and the total expectation theorem from the previous lecture on derived distributions.
- Be comfortable with the ordinary (unconditional) formulas for expectation and variance.
Check your understanding
- Why is
E[X|Y]a random variable before the experiment, but a number once Y is observed? - Why does the law of total variance require two terms instead of one, unlike the law of iterated expectations?
- In the quiz scores example, what does each of the two variance terms represent?
- Derive why
E[Y] = E[N] * E[X]when Y is the sum of N i.i.d. terms independent of N. - Why does
Var(Y)for a random sum include a term involving(E[X])^2rather than justVar(N) * Var(X)?
Vocabulary
- conditional expectation (phrase)
- The average value of one variable, calculated given a known value of another variable.
Conditional expectation E[X|Y] depends on the value of Y. - conditional variance (phrase)
- How spread out one variable is, calculated given a known value of another variable.
Conditional variance measures spread within one known scenario. - law of iterated expectations (phrase)
- The rule that averaging a conditional expectation over all cases gives the plain overall expectation.
The law of iterated expectations says E[E[X|Y]] equals E[X]. - law of total variance (phrase)
- A rule for splitting overall variance into a within-group part and a between-group part.
The law of total variance needs two separate terms, unlike expectation. - within-group (adjective)
- Relating to differences inside a single group or scenario.
Within-group variance measures spread inside one section. - between-group (adjective)
- Relating to differences across different groups or scenarios.
Between-group variance measures how much section averages differ. - divide-and-conquer (phrase)
- A strategy that solves a hard problem by breaking it into easier smaller pieces.
The divide-and-conquer approach splits the variable's range into pieces. - auxiliary (adjective)
- Extra and helpful, but not the main object of study.
An auxiliary discrete variable helps organize the calculation. - hierarchy (noun)
- A structure with levels, where some things depend on others above them.
The bookstore example has a hierarchy: spending depends on number of stores visited. - abstract notation (phrase)
- Symbols used to represent a general idea rather than a specific number.
The law is stated first in abstract notation before a concrete example. - random variable (phrase)
- A quantity whose value depends on the outcome of a random experiment.
E[X|Y] is treated here as a random variable, not a fixed number. - reframe (verb)
- To look at something in a new, more useful way.
The lecture reframes conditional expectation as a random variable. - recombine (verb)
- To join pieces back together after separating them.
We break the problem into pieces and recombine them at the end. - i.i.d. (phrase)
- Short for independent and identically distributed: separate variables that follow the same probability pattern and don't affect each other.
X1, ..., XN are i.i.d. random variables independent of N. - algebraic proof (phrase)
- A step-by-step argument using symbols and equations to show a result is true.
An algebraic proof shows why Var(X) needs two terms. - spread (noun)
- How widely values are scattered around their average.
Variance measures the spread of a random variable. - component (noun)
- One part of a larger whole.
Each variance term is a separate component of the total spread. - weighting (noun)
- Giving more or less importance to different parts based on how likely they are.
The overall mean uses a weighting by section size. - term (noun)
- One separate part of a sum or expression.
Y is the sum of N i.i.d. terms. - theorem (noun)
- A statement in math that has been proven to be true.
The law of iterated expectations restates a familiar theorem. - total expectation theorem (phrase)
- The rule that the overall average can be found by combining averages from each separate case.
The law of iterated expectations is the total expectation theorem in random-variable form. - proof (noun)
- A logical argument that shows a statement must be true.
The lecture gives a short proof for the law of total variance. - restate (verb)
- To say something again in a different or clearer way.
The lecture restates the total expectation theorem using new notation. - analogous (adjective)
- Similar in a useful way to something already known.
Conditional variance is defined analogously to conditional expectation. - scenario (noun)
- One possible situation being considered.
Each section of the class is a different scenario in the example.
Chapters
From the YouTube description
MIT 6.041 Probabilistic Systems Analysis and Applied Probability, Fall 2010
View the complete course: http://ocw.mit.edu/6-041F10
Instructor: John Tsitsiklis
License: Creative Commons BY-NC-SA
More information at http://ocw.mit.edu/terms
More courses at http://ocw.mit.edu
← The Sum of Discrete and Continuous Random Variables · The Variance in the Stick Breaking Problem →
