MATHEMATICA FEATURED EXAMPLE

Use Hoeffding's D to Quantify and Test Non-monotonic Dependence

Unlike SpearmanRho, KendallTau, and Pearson's Correlation, HoeffdingD can be used to detect a wide variety of dependence structures beyond monotonic association.

    
In[9]:=
Click for copyable input
In[11]:=
Click for copyable input
Out[11]=
Test whether Hoeffding's is significantly different from zero:
In[12]:=
Click for copyable input
Out[12]=
A collection of datasets with different dependency structures:
In[13]:=
Click for copyable input
In[17]:=
Click for copyable input
Out[17]=
The Hoeffding statistics and test conclusions for the data grid:
In[18]:=
Click for copyable input
Out[18]//TableForm=
New to Mathematica? Find your learning path »
Have a question? Ask support »