Linear measures, such as the Pearson correlation, can easily capture the relationship between A and B in the top plot, but for nonlinear relationships, such as the one shown in the bottom plot, a measure such as mutual information (MI) is more informative.