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 ; }
Uses a paired t - test to test whether the correlation value computed from these datasets is significant .