Idea: Count with small questions
Write a count as a sum of yes-or-no indicators, then add their means.
- An indicator's mean is its probability
- Dependence between them does not matter
Formula: Linearity of expectation
Holds for any X and Y with a finite mean, independent or not. Also E[aX + b] = aE[X] + b.
Example: Red balls in 3 draws
An urn has red and blue. Draw without replacement. How many red do you expect?
- Each draw alone is red with chance
- Add the indicators:
Idea: The long way agrees
Listing all hands takes much longer.
- hands
- Weighted count:
Idea: Pick what the indicator is on
Attach indicators to whatever makes one probability easy.
- A position, a person, a pair of neighbours, a value
- Recipe: an indicator, one probability, then add
Quick check: Idle traders
orders each go at random to one of traders. How many traders do you expect to get no order?
Show the answer
Answer:
One trader is idle with , so .
Common mistake: Linearity for products
Linearity covers sums only, not products or maxima.
Instead Both draws red: , not .
Idea: A bet is an indicator
Win with , else lose : a sure plus times a win indicator.
- Mean:
- A book of positions adds the same way; risk does not
Idea: Say it out loud
Define the indicator in a full sentence: it is if this happens to item k.
- Say why one item's probability is the same for all
- Say that dependence does not matter here
Courses / Expected value and variance