Original: Formally , the mutual information of two discrete random variables X and Y can be defined as :
Simplified: Adding all possible terms together gives the value for mutual information .