public class TTest
extends java.lang.Object
Among the most frequently used t tests are:
| Modifier and Type | Field and Description |
|---|---|
double |
df
The degree of freedom of t-statistic.
|
double |
pvalue
p-value
|
double |
t
t-statistic
|
| Modifier and Type | Method and Description |
|---|---|
static TTest |
pairedTest(double[] x,
double[] y)
Given the paired arrays x and y, test if they have significantly
different means.
|
static TTest |
test(double[] x,
double mean)
Independent one-sample t-test whether the mean of a normally distributed
population has a value specified in a null hypothesis.
|
static TTest |
test(double[] x,
double[] y)
Test if the arrays x and y have significantly different means.
|
static TTest |
test(double[] x,
double[] y,
boolean equalVariance)
Test if the arrays x and y have significantly different means.
|
static TTest |
test(double r,
int df)
Test whether the Pearson correlation coefficient, the slope of
a regression line, differs significantly from 0.
|
public double df
public double t
public double pvalue
public static TTest test(double[] x, double mean)
public static TTest test(double[] x, double[] y)
public static TTest test(double[] x, double[] y, boolean equalVariance)
equalVariance - true if the data arrays are assumed to be
drawn from populations with the same true variance. Otherwise, The data
arrays are allowed to be drawn from populations with unequal variances.public static TTest pairedTest(double[] x, double[] y)
public static TTest test(double r, int df)
r - the Pearson correlation coefficient.df - the degree of freedom. df = n - 2, where n is the number of samples
used in the calculation of r.