4.9.13 · D4Probability Theory & Statistics

Exercises — Conditional expectation

1,814 words8 min readBack to topic

Level 1 — Recognition

Goal: tell apart a number from a random variable, and read a definition correctly.

Recall Solution L1.1

(a) Number. No conditioning at all — a single best guess before any info. (b) Number. We fixed the value , so nothing random is left; it is one specific average. (c) Random variable. Capital stays random. It is the function , so its value changes as changes. (d) Number. The outer averages the random variable in (c) over all ; by the Tower Rule it equals .

Rule of thumb: lower-case (or a fixed event) → number; capital still inside → random variable.

Recall Solution L1.2

Given , the outcomes are , each equally likely with conditional probability . This is just the ordinary mean, but computed using the conditional distribution (only even faces survive).


Level 2 — Application

Goal: apply the Tower Rule and "take out what is known" in one clean step.

Recall Solution L2.1

Let be the coin. Condition on it: Tower Rule, weighting by :

Recall Solution L2.2

Once is known, is a constant and pulls out: using independence () to write . Take expectations (Tower Rule): For a fair die, . So

Recall Solution L2.3

The mean of a uniform on is the midpoint , so Tower:


Level 3 — Analysis

Goal: choose the conditioning variable that makes a messy problem easy, and handle mixed/continuous cases.

Recall Solution L3.1

Condition on the chosen . A geometric variable (first success) with success probability has mean : Tower Rule, equal weights : Conditioning on turned an ugly mixture into two textbook geometrics.

Recall Solution L3.2

Given , linearity of expectation gives . Hence . Tower: (This is exactly the shape of Wald's identity: when is independent of the .)

Recall Solution L3.3

Same midpoint reasoning: , so . Now , so The red line in the figure is the conditional-mean function ; averaging its height over the range of (weighted by 's uniform density) lands at .


Level 4 — Synthesis

Goal: combine tower + take-out + variance decomposition to reach a non-obvious quantity.

Recall Solution L4.1

is known once we condition on it, so pull it out: Tower: For , . Hence

Recall Solution L4.2

Within-group term. A uniform on has variance , so and Between-group term. We have , so using for a uniform on . Add: Common denominator :


Level 5 — Mastery

Goal: a full multi-stage argument mixing tower, take-out, and a limiting/degenerate check.

Recall Solution L5.1

Mean (Wald / tower). Given , , so . Tower: Variance (Eve's Law). Within-group: given , the are independent, so , i.e. . Thus Between-group: , so using for a Poisson. Add: Sanity/degenerate check. If every customer spent exactly (so ), the within-group term vanishes and — pure customer-count randomness. Our extra is precisely the spending randomness. Both effects add, as Eve's Law demands.

Recall Solution L5.2

If always, then conditioning on tells you nothing you didn't already know — every outcome already has . So the conditional distribution of equals its unconditional one: a constant random variable. Then since the expectation of a constant is itself. The Tower Rule collapses to the identity — the boundary case where "splitting into groups" makes exactly one group. This mirrors the independence collapse rule: a constant is independent of everything.


Recall Self-check: which tool for which job?

Given where is the conditioning variable — first move? ::: Take out what is known: , then apply the tower. Compound sum , want the mean? ::: Tower / Wald: . Compound sum, want the variance? ::: Eve's Law: . Conditioning variable is a constant — what happens to ? ::: It equals ; the tower becomes a trivial identity. When is "plain average of conditional means" valid? ::: Only when all are equal.


Connections