|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.stats.test.HypothesisTest
com.numericalmethod.suanshu.stats.test.variance.F
public class F
The F-test tests whether two normal populations have the same variance. This test is sensitive to the assumption that the variables are normally distributed.
The R equivalent function isvar.test.
| Constructor Summary | |
|---|---|
F(double[] sample1,
double[] sample2)
Perform the F-test to test for equal variance of two normal populations. |
|
F(double[] sample1,
double[] sample2,
double ratio)
Perform the F-test to test for equal variance of two normal populations. |
|
| Method Summary | |
|---|---|
double[] |
confidenceInterval(double confidence)
Compute the confidence interval. |
java.lang.String |
getAlternativeHypothesis()
Get the description of the alternative hypothesis. |
java.lang.String |
getNullHypothesis()
Get a description of the null hypothesis. |
double |
leftConfidenceInterval(double confidence)
Compute the one sided left confidence interval, [0, a] |
double |
leftOneSidedPvalue()
Get the left, one-sided p-value. |
double |
pValue()
Get the p-value for the test statistics. |
double |
rightConfidenceInterval(double confidence)
Compute the one sided right confidence interval, [a, ∞) |
double |
rightOneSidedPvalue()
Get the right, one-sided p-value. |
double |
statistics()
Get the test statistics. |
| Methods inherited from class com.numericalmethod.suanshu.stats.test.HypothesisTest |
|---|
isNullRejected, nGroups, nObs, oneSidedPvalue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public F(double[] sample1,
double[] sample2)
sample1 - sample 1sample2 - sample 2
public F(double[] sample1,
double[] sample2,
double ratio)
sample1 - sample 1sample2 - sample 2ratio - the hypothesized ratio of the population variances of samples 1 and 2| Method Detail |
|---|
public java.lang.String getNullHypothesis()
HypothesisTest
getNullHypothesis in class HypothesisTestpublic java.lang.String getAlternativeHypothesis()
HypothesisTest
getAlternativeHypothesis in class HypothesisTestpublic double statistics()
HypothesisTest
statistics in class HypothesisTestpublic double pValue()
HypothesisTest
pValue in class HypothesisTestpublic double rightOneSidedPvalue()
public double leftOneSidedPvalue()
public double[] confidenceInterval(double confidence)
confidence - the confidence level, e.g., for a 2-sided 95% confidence interval, we use 0.975 because 1 - 0.95 = 2 * (1 - 0.025)
public double rightConfidenceInterval(double confidence)
confidence - the confidence level, e.g., 0.95 for 95% confidence interval
public double leftConfidenceInterval(double confidence)
confidence - the confidence level, e.g., 0.95 for 95% confidence interval
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||