code: public static double getSignificance(double[] sample1, double[] sample2) throws IllegalArgumentException, MathException {
          double alpha = TestUtils.pairedTTest(sample1, sample2);
          boolean significance = TestUtils.pairedTTest(sample1, sample2, .30);
          System.err.println("sig: " + significance);
          return alpha;
      }
docs: Uses a paired t-test to test whether the correlation value computed from these datasets is significant.
  @param sample1 The first dataset vector.
  @param sample2 The second dataset vector.
  @return The significance value p.
  @throws MathException
  @throws IllegalArgumentException