|
Algorithm A2 Check for pairwise independence |
-
1:
functionareIndependent(X,Y,N)
-
2:
corr(X,Y) ▹ Pearson correlation
-
3:
(P-value) ▹ true if statistically uncorrelated
-
4:
if
I=false then
-
5:
H2D() ▹ Calculate 2D entropy
-
6:
if
then
-
7:
true
-
8:
end if
-
9:
end if
-
10:
end function
|