public class StatisticsUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
mannWhitneyOneSidedSignificance(double[] sampleA,
double[] sampleB)
Uses the MannWhitneyU test to carry out a single-sided significance test.
|
static boolean |
mannWhitneyTwoSidedSignificance(java.util.Collection<java.lang.Double> sampleA,
java.util.Collection<java.lang.Double> sampleB)
Uses the MannWhitneyU test to determine whether the distributions of the the two given samples is significantly different (two-sided test).
|
static boolean |
mannWhitneyTwoSidedSignificance(double[] sampleA,
double[] sampleB)
Uses the MannWhitneyU test to determine whether the distributions of the the two given samples is significantly different (two-sided test).
|
static double |
mannWhitneyTwoSidedSignificanceP(double[] sampleA,
double[] sampleB)
Computes the p-value according to the MannWhitneyU test for iid. samples A and B.
|
static double |
max(java.util.Collection<? extends java.lang.Number> values)
Filters the maximum value of the given collection.
|
static double |
mean(java.util.Collection<? extends java.lang.Number> values)
Computes the mean of the given collection.
|
static double |
min(java.util.Collection<? extends java.lang.Number> values)
Filters the minimum value of the given collection.
|
static double |
standardDeviation(java.util.Collection<? extends java.lang.Number> values)
Computes the standard deviation of the given collection.
|
static double |
sum(java.util.Collection<? extends java.lang.Number> values)
Computes the sum of the given collection.
|
static boolean |
twoSampleTTestSignificance(java.util.Collection<java.lang.Double> valuesA,
java.util.Collection<java.lang.Double> valuesB)
Carries out a two sample ttest to determine whether the distributions of the two given samples are significantly different.
|
static boolean |
twoSampleTTestSignificance(double[] valuesA,
double[] valuesB)
Carries out a two sample ttest to determine whether the distributions of the two given samples are significantly different.
|
static boolean |
twoSampleTTestSignificance(double mean1,
double variance1,
double n1,
double mean2,
double variance2,
double n2)
Carries out a two sample ttest when the sampled values have already been aggregated to mean, variance, and n, to determine whether the distributions of the two given samples are significantly different.
|
static double |
variance(java.util.Collection<? extends java.lang.Number> values)
Computes the variance of the given collection.
|
static double |
wilcoxonSignedRankSumTestP(double[] sampleA,
double[] sampleB)
Computes the p-value according to the Wilcoxon signed rank test for related samples A and B.
|
static boolean |
wilcoxonSignedRankSumTestSingleSided(double[] sampleA,
double[] sampleB)
Uses the Wilcoxon Signed Rank test to carry out a single-sided significance test.
|
static boolean |
wilcoxonSignedRankSumTestTwoSided(double[] sampleA,
double[] sampleB)
Uses the Wilcoxon Signed Rank test to determine whether the difference of the distributions of the the two given samples is significantly different (two-sided test).
|
public static double max(java.util.Collection<? extends java.lang.Number> values)
values - Values to take the maximum from.public static double min(java.util.Collection<? extends java.lang.Number> values)
values - Values to take the minimum from.public static double mean(java.util.Collection<? extends java.lang.Number> values)
values - Values to take the mean of.public static double sum(java.util.Collection<? extends java.lang.Number> values)
values - Values to take the sum of.public static double variance(java.util.Collection<? extends java.lang.Number> values)
values - Values to compute the variance for.public static double standardDeviation(java.util.Collection<? extends java.lang.Number> values)
values - Values to compute the standard deviation for.public static double wilcoxonSignedRankSumTestP(double[] sampleA,
double[] sampleB)
sampleA - The first sample.sampleB - The second sample.public static boolean wilcoxonSignedRankSumTestTwoSided(double[] sampleA,
double[] sampleB)
sampleA - The first sample.sampleB - The second sample.public static boolean wilcoxonSignedRankSumTestSingleSided(double[] sampleA,
double[] sampleB)
sampleA - The first sample.sampleB - The second sample.public static double mannWhitneyTwoSidedSignificanceP(double[] sampleA,
double[] sampleB)
sampleA - The first sample.sampleB - The second sample.public static boolean mannWhitneyTwoSidedSignificance(double[] sampleA,
double[] sampleB)
sampleA - The first sample.sampleB - The second sample.public static boolean mannWhitneyTwoSidedSignificance(java.util.Collection<java.lang.Double> sampleA,
java.util.Collection<java.lang.Double> sampleB)
sampleA - The first sample.sampleB - The second sample.public static boolean mannWhitneyOneSidedSignificance(double[] sampleA,
double[] sampleB)
sampleA - The first sample.sampleB - The second sample.public static boolean twoSampleTTestSignificance(java.util.Collection<java.lang.Double> valuesA,
java.util.Collection<java.lang.Double> valuesB)
valuesA - The first sample..valuesB - The second sample.public static boolean twoSampleTTestSignificance(double[] valuesA,
double[] valuesB)
valuesA - The first sample..valuesB - The second sample.public static boolean twoSampleTTestSignificance(double mean1,
double variance1,
double n1,
double mean2,
double variance2,
double n2)
mean1 - The mean of the first sample.variance1 - The variance of the first sample.n1 - The sample size of the first sample.mean2 - The mean of the second sample.variance2 - The variance of the second sample.n2 - The sample size of the second sample.