/** * @see org.apache.commons.math3.stat.inference.TTest#pairedTTest(double[], double[], double) */ public static boolean pairedTTest(final double[] sample1, final double[] sample2, final double alpha) throws NullArgumentException, NoDataException, DimensionMismatchException, NumberIsTooSmallException, OutOfRangeException, MaxCountExceededException { return T_TEST.pairedTTest(sample1, sample2, alpha); }
/** * @see org.apache.commons.math3.stat.inference.TTest#pairedTTest(double[], double[]) */ public static double pairedTTest(final double[] sample1, final double[] sample2) throws NullArgumentException, NoDataException, DimensionMismatchException, NumberIsTooSmallException, MaxCountExceededException { return T_TEST.pairedTTest(sample1, sample2); }
return pairedTTest(sample1, sample2) < alpha;
/** * @see org.apache.commons.math3.stat.inference.TTest#pairedTTest(double[], double[]) */ public static double pairedTTest(final double[] sample1, final double[] sample2) throws NullArgumentException, NoDataException, DimensionMismatchException, NumberIsTooSmallException, MaxCountExceededException { return T_TEST.pairedTTest(sample1, sample2); }
/** * @see org.apache.commons.math3.stat.inference.TTest#pairedTTest(double[], double[], double) */ public static boolean pairedTTest(final double[] sample1, final double[] sample2, final double alpha) throws NullArgumentException, NoDataException, DimensionMismatchException, NumberIsTooSmallException, OutOfRangeException, MaxCountExceededException { return T_TEST.pairedTTest(sample1, sample2, alpha); }
return pairedTTest(sample1, sample2) < alpha;
return pairedTTest(sample1, sample2) < alpha;
double pval = tTest.pairedTTest(samples1, samples2); tuple.put("t-statistic", tstat); tuple.put("p-value", pval);
double p = test.pairedTTest(c1d, c2d); double r = ApproximateRandomization.test(1000, c1d, c2d); LOGGER.info("{} ---> t-test {}", file.getName(), formatter.format(p));
/** * Returns the result of a two-tailed paired t-test. * Since n should always be greater 30, normality can be assumed. * @param otherAlgorithm - * @return the p-value result of a paired t-test */ public double getTTestPValue(HypothesisTestableMetric otherAlgorithm){ return new TTest().pairedTTest(getDetailedResults().toDoubleArray(), otherAlgorithm.getDetailedResults().toDoubleArray()); }
p = tTestImpl.pairedTTest(val0, val1); testStat = tTestImpl.pairedT(val0, val1); p = adjustedPValue(p, testStat);