public class ChiSqTestResult extends Object implements TestResult<Object>
Constructor and Description |
---|
ChiSqTestResult(double pValue,
int degreesOfFreedom,
double statistic,
String method,
String nullHypothesis) |
Modifier and Type | Method and Description |
---|---|
int |
degreesOfFreedom()
Returns the degree(s) of freedom of the hypothesis test.
|
String |
method() |
String |
nullHypothesis()
Null hypothesis of the test.
|
double |
pValue()
The probability of obtaining a test statistic result at least as extreme as the one that was
actually observed, assuming that the null hypothesis is true.
|
double |
statistic()
Test statistic.
|
String |
toString()
String explaining the hypothesis test result.
|
public ChiSqTestResult(double pValue, int degreesOfFreedom, double statistic, String method, String nullHypothesis)
public double pValue()
TestResult
pValue
in interface TestResult<Object>
public int degreesOfFreedom()
TestResult
degreesOfFreedom
in interface TestResult<Object>
public double statistic()
TestResult
statistic
in interface TestResult<Object>
public String method()
public String nullHypothesis()
TestResult
nullHypothesis
in interface TestResult<Object>
public String toString()
TestResult
toString
in interface TestResult<Object>
toString
in class Object