mi {mlf} | R Documentation |
Estimates Kullback-Leibler divergence of joint distribution and the product of two respective marginal distributions. Roughly speaking, the amount of information one variable provides about another.
mi(x, y)
x , y |
numeric or discrete data vectors |
# Sample data
a <- rnorm(25, 80, 35)
b <- rnorm(25, 100, 50)
mlf::mi(a, b)