Doob martingales
The Balls and bins example is a typical Doob martingale. In general, Doob martingales are processes in which we obtain a sequence of improved estimates of the value of a random variable as information about it is revealed progressively. More precisely, suppose that is a random variable that is a function of random variables . As we observe the sequence of random variables , we improve our estimates of . The sequence of the mean estimates
form a martingale with respect to the sequence (provided that the ’s are bounded). Indeed, when we argued that the balls and bins process is a martingale, we used no property of the experiment, therefore the following holds in general