Derivation of the Law of Total Variance