I was going through the posts that describe the difference between covariance and MI and came across following from Quora
The covariance of two random variables measures the strength of the linear relationship between them, but it's possible for it to be undefined if either random variable doesn't have a well-defined mean.
mutual information between two random variables is always defined, and it measures how much information either carries about the other. The reason that we don't use it widely is simply that it's difficult to estimate.
So my questions are:
- How is covariance measuring "linear relationship"? The formula $\operatorname{Cov}(X,Y) = E(XY) - E(X)E(Y)$ seems to only measure the deviation from full independence of rv's in the distribution. So where is the concept of linear relation?
- Also what exactly does it mean that mutual information measures how much information one rv carries about the other. So isnt it essentially same as correlation where knowing an increase in value of one rv tells whether the value of other rv will also increase if correlation is positive. So technically isnt that one rv providing an information of the other rv?
Formula for MI copy/pasted from this SE post $I(X,Y) = E\left (\ln \frac{p(x,y)}{p(x)p(y)}\right)=\sum_{x,y}p(x,y)\left[\ln p(x,y)-\ln p(x)p(y)\right]$