CS G526: Advanced Algorithms and Complexity
Probability Review I: Foundations & Expectation
Lecture 2
|2026-08-04
Tulasimohan Molli
BITS Pilani, Hyderabad Campus
what do these terms mean to you?
E[X] = \sum_{x} x \cdot \Pr(X = x)
The average value of X over many repetitions of the experiment.
For any random variables X and Y — even dependent ones:
E[X + Y] = E[X] + E[Y]
After throwing n balls into n bins independently and uniformly at random, what is the expected number of empty bins?
Hint: define an indicator RV for each bin. Use linearity of expectation.
Probability Review II: Tail Bounds — moments & generating functions, then Markov, Chebyshev, and Chernoff bounds with proofs.
CS G526: Advanced Algorithms & ComplexityTulasimohan Molli