public class OneWayANOVA extends HypothesisTest
ANOVAs are helpful because they possess an advantage over a two-sample t-test. Doing multiple two-sample t-tests would result in an increased chance of committing a type I error. For this reason, ANOVAs are useful in comparing three or more means.
The R equivalent function is aov.
| Modifier and Type | Field and Description |
|---|---|
int |
df1
degree of freedoms
|
int |
df2
degree of freedoms
|
k, N, pValue, testStatistics| Constructor and Description |
|---|
OneWayANOVA(double[]... samples)
Perform the one-way ANOVA test to test for the equality of the means of several groups.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlternativeHypothesis()
Get a description of the alternative hypothesis.
|
java.lang.String |
getNullHypothesis()
Get a description of the null hypothesis.
|
isNullRejected, oneSidedPvalue, pValue, statisticspublic final int df1
public final int df2
public OneWayANOVA(double[]... samples)
samples - the samplespublic java.lang.String getNullHypothesis()
HypothesisTestgetNullHypothesis in class HypothesisTestpublic java.lang.String getAlternativeHypothesis()
HypothesisTestgetAlternativeHypothesis in class HypothesisTest