TL;DR
Indicator Variables: Turn complex counting into simple sums by assigning 0/1 random variables to events. This concept is essential for quantitative trading interviews and is frequently tested at top firms.
By Valenke Exam Prep Team·Last updated 2026-06-01
Probability
Indicator Variables
Turn complex counting into simple sums by assigning 0/1 random variables to events.
Prerequisites
An indicator variable (or indicator random variable) is a random variable that equals 1 when an event occurs and 0 otherwise:
The key insight: The expected value of an indicator is just the probability of the event: . Do you see why? It is .
Concrete example: How many fixed points does a random permutation of elements have on average? Define . Then the total number of fixed points is . By linearity of expectation:
Observe that we never needed the to be independent — linearity of expectation works regardless.
When to use: Whenever a problem asks "how many objects satisfy some property on average," decompose into indicators. This is the go-to technique for expected value problems involving counts — random permutations, hash collisions, coupon collector variants, and graph properties.
Power move: For variance, note , so . For sums of indicators, you need covariance terms: .
Ready to practice for the Valenke Finance Exam?
Adaptive practice powered by Item Response Theory targets your weak areas. Start with 3 free sessions.
Start free practice →