Skip to main content
. 2020 Feb 19;22(2):236. doi: 10.3390/e22020236
Algorithm A2 Check for pairwise independence
  • 1:

    functionareIndependent(X,Y,N)

  • 2:

    R=corr(X,Y)                          ▹ Pearson correlation

  • 3:

    I(P-value(R,N)<α)              ▹ true if statistically uncorrelated

  • 4:

    if I=false then

  • 5:

      H2= H2D(X,Y)                     ▹ Calculate 2D entropy

  • 6:

      if H2N0.62<0.75 then

  • 7:

       I true

  • 8:

      end if

  • 9:

    end if

  • 10:

    end function