4.9.13 · D3Probability Theory & Statistics

Worked examples — Conditional expectation

2,741 words12 min readBack to topic

Before anything else, three reminders so every symbol on this page is earned:

Recall What the notation means (from the parent)

::: your best single-number guess for before any info — a plain number. ::: your guess after learning took the specific value — still a plain number, one per . (capital ) ::: leave unknown → the guess is itself a random variable, the function fed the random . Tower Rule ::: — average the group-averages, weighted by group sizes.


The scenario matrix

Every conditional-expectation problem lands in one of these cells. The examples below are labelled by cell.

Cell Case class What makes it tricky Example
A Discrete, condition on an event must renormalise by Ex 1
B Discrete, condition on a variable ; use Tower must weight by Ex 2
C Continuous, then integrate inner density Ex 3
D Degenerate: knowing changes nothing Ex 4
E Take-out-what-is-known with don't fuse rules Ex 5
F Real-world word problem (random count) Wald-style sum Ex 6
G Exam twist: recover a hidden mean by tower reverse the tower Ex 7
H Limiting/edge: , or near boundary check it stays sane Ex 8

Cell A — condition on an event


Cell B — condition on a variable, then Tower


Cell C — continuous


Cell D — degenerate: independence


Cell E — take out what is known (don't fuse rules)


Cell F — real-world word problem (random count)


Cell G — exam twist: run the tower backwards


Cell H — limiting / edge behaviour


Figure — Conditional expectation
Figure — Left panel (Cells A & H): the blue faded bars are the fair die's original ; conditioning on crosses out faces 1 and 2 (yellow X's) and the pink bars show the survivors renormalised to , whose balance point (yellow dashed line) sits at . Right panel (Cells B & G): two bars whose heights are the group means ( pink, blue) and whose widths are the crowd weights ( and ); the yellow dashed line is the width-weighted blend — the tower is literally "average the heights, weighted by the widths".

The chalkboard above shows the two workhorse pictures: left, Cell A/H — conditioning as slicing off outcomes and renormalising; right, Cell B/G — the tower as weighted bars whose blended height is the overall mean.



Connections

Scenario Map

The flowchart below is not a restatement of the matrix table — it is a decision procedure: read it top-to-bottom to pick which technique a fresh problem needs (divide by ? weight by ? integrate? collapse?), then jump to the labelled example. The table classifies; this diagram routes.

fixed set

all values

divide by P of B

weight by P of Y

density inside

integrate g of Y

no new info

guess unchanged

Wald style

count times mean

check boundaries

Which scenario

Condition on an event B

Condition on a variable Y

Continuous inner density

X independent of Y

Random count sum

Limiting or degenerate

Ex 1 and Ex 8

Ex 2 and Ex 7

Ex 3 and Ex 5

Ex 4

Ex 6