Let X=X1X2...Xn be a sequence of random variables from a finite dicrete alphabat O=o1o2...oM, then
where Xi−11=X1X2...Xi−1.