public boolean isIndependent(Node x,Node y,List<Node> z){
  int n=sampleSize();
  double r=partialCorrelation(x,y,z);
  double fisherZ=Math.sqrt(n - 3 - z.size()) * 0.5 * (Math.log(1.0 + r) - Math.log(1.0 - r));
  this.fisherZ=fisherZ;
  boolean independent=Math.abs(fisherZ) < cutoff;
  return independent;
}

public boolean isIndependent ( Node x , Node y , List < Node > z ) { int n = sampleSize ( ) ; double r = partialCorrelation ( x , y , z ) ; double fisherZ = Math . sqrt ( n - 3 - z . size ( ) ) * 0.5 * ( Math . log ( 1.0 + r ) - Math . log ( 1.0 - r ) ) ; this . fisherZ = fisherZ ; boolean independent = Math . abs ( fisherZ ) < cutoff ; return independent ; }
determines whether variable x is independent of variable y given a list of conditioning variables z .
