Lemma 1.3 (Chain rule). Assuming that:

  • X1,…,Xn are random variables

Then
H[X1,…,Xn]=H[X1]+H[X2|X1]+H[X3|X1,X2]+⋯+H[Xn|X1,…,Xn−1].