SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.stats.test.mean
Class OneWayANOVA

java.lang.Object
  extended by com.numericalmethod.suanshu.stats.test.HypothesisTest
      extended by com.numericalmethod.suanshu.stats.test.mean.OneWayANOVA

public class OneWayANOVA
extends HypothesisTest

The One-Way ANOVA test tests for the equality of the means of several groups.

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.

See Also:

Field Summary
 int df1
          degree of freedoms
 int df2
          degree of freedoms
 
Fields inherited from class com.numericalmethod.suanshu.stats.test.HypothesisTest
k, N, pValue, testStatistics
 
Constructor Summary
OneWayANOVA(double[]... samples)
          Perform the one-way ANOVA test to test for the equality of the means of several groups.
 
Method Summary
 java.lang.String alternativeHypothesis()
          Get a description of the alternative hypothesis.
 java.lang.String nullHypothesis()
          Get a description of the null hypothesis.
 
Methods inherited from class com.numericalmethod.suanshu.stats.test.HypothesisTest
oneSidedPvalue, pValue, rejectNull, testStatistics
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

df1

public final int df1
degree of freedoms


df2

public final int df2
degree of freedoms

Constructor Detail

OneWayANOVA

public OneWayANOVA(double[]... samples)
Perform the one-way ANOVA test to test for the equality of the means of several groups.

Parameters:
samples - the samples
Method Detail

nullHypothesis

public java.lang.String nullHypothesis()
Description copied from class: HypothesisTest
Get a description of the null hypothesis.

Specified by:
nullHypothesis in class HypothesisTest
Returns:
the null hypothesis description
See Also:
Wikipedia: Null hypothesis

alternativeHypothesis

public java.lang.String alternativeHypothesis()
Description copied from class: HypothesisTest
Get a description of the alternative hypothesis.

Specified by:
alternativeHypothesis in class HypothesisTest
Returns:
the alternative hypothesis description
See Also:
Wikipedia: Alternative hypothesis

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.