|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.statcato.statistics.inferential.HypothesisTest1Var
public class HypothesisTest1Var
A hypothesis test for 1 population variance
Constructor Summary | |
---|---|
HypothesisTest1Var(int n,
double sigma2,
double confidenceLevel,
int testType)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
criticalValue()
Returns the critical value corresponding to the given confidence level and type of test. |
double |
pValue(double s2)
Returns the p-value corresponding to s2 in a chi-square distribution. |
double |
testStatistics(double s2)
Returns the test statistics for the given sample variance s2. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HypothesisTest1Var(int n, double sigma2, double confidenceLevel, int testType)
n
- sample sizesigma2
- hypothesized varianceconfidenceLevel
- confidence leveltestType
- (as defined in HypothesisTest
)Method Detail |
---|
public double testStatistics(double s2)
X2 = (n-1)^2 * s2 / sigma2
s2
- hypothesized population variance
public java.lang.String criticalValue()
HypothesisTest
public double pValue(double s2)
s2
- variance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |