Scripts for calculating mutual information between variables