A Python function for studying correlations in symbolic sequences, by computing the Mutual Information of symbols at distance n. The result is closely related to the autocorrelation function, as described by W. Ebeling and T. Poschel in Entropy and Long-Range Correlations in Literary English, EPL (1994).