public class F extends HypothesisTest
The R equivalent function is var.test.
| Modifier and Type | Field and Description |
|---|---|
double |
df1
the degree of freedoms
|
double |
df2
the degree of freedoms
|
double |
estimate
the estimate of the ratio of two variances
|
ProbabilityDistribution |
F
the associated FDistribution distribution
|
double |
pValue1SidedGreater
right, one-sided p-value
|
double |
pValue1SidedLess
left, one-sided p-value
|
k, N, pValue, testStatistics| Constructor and Description |
|---|
F(double[] sample1,
double[] sample2)
Perform the FDistribution test to test for equal variance of two normal populations.
|
F(double[] sample1,
double[] sample2,
double ratio)
Perform the FDistribution test to test for equal variance of two normal populations.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
confidenceInterval(double confidence)
Compute the confidence interval.
|
java.lang.String |
getAlternativeHypothesis()
Get a 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 |
rightConfidenceInterval(double confidence)
Compute the one sided right confidence interval, [a, ∞)
|
isNullRejected, oneSidedPvalue, pValue, statisticspublic final double df1
public final double df2
public final double estimate
public final double pValue1SidedLess
public final double pValue1SidedGreater
public final ProbabilityDistribution F
public F(double[] sample1,
double[] sample2)
sample1 - sample 1sample2 - sample 2public F(double[] sample1,
double[] sample2,
double ratio)
sample1 - sample 1sample2 - sample 2ratio - the hypothesized ratio of the population variances of samples 1 and 2public java.lang.String getNullHypothesis()
HypothesisTestgetNullHypothesis in class HypothesisTestpublic java.lang.String getAlternativeHypothesis()
HypothesisTestgetAlternativeHypothesis in class HypothesisTestpublic 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 intervalpublic double leftConfidenceInterval(double confidence)
confidence - the confidence level, e.g., 0.95 for 95% confidence interval