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.
|
java.lang.String |
method
A character string indicating what type of test was performed.
|
double |
pvalue
p-value
|
double |
t
t-statistic
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
static TTest |
testPaired(double[] x,
double[] y)
Given the paired arrays x and y, test if they have significantly
different means.
|
java.lang.String |
toString() |
public final java.lang.String method
public final double df
public final double t
public final double pvalue
public java.lang.String toString()
toString in class java.lang.Objectpublic 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 testPaired(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.