|
JMSLTM Numerical Library 5.0.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.imsl.stat.KolmogorovOneSample
public class KolmogorovOneSample
The class KolmogorovOneSample
performs a Kolmogorov-Smirnov
goodness-of-fit test in one sample.
The hypotheses tested follow:
The theoretical CDF is assumed to be continuous.
If the CDF is not continuous,
the statistics will not be computed correctly.
Estimation of parameters in the theoretical CDF from the sample data will tend to make the p-values associated with the test statistics too liberal. The empirical CDF will tend to be closer to the theoretical CDF than it should be.
No attempt is made to check that all points in the sample are in the support of the theoretical CDF. If all sample points are not in the support of the CDF, the null hypothesis must be rejected.
Constructor Summary | |
---|---|
KolmogorovOneSample(CdfFunction cdf,
double[] x)
Constructs a Kolmogorov-Smirnov goodness-of-fit test. |
Method Summary | |
---|---|
double |
getMaximumDifference()
Returns ![]() |
double |
getMinimumDifference()
Returns ![]() |
int |
getNumberMissing()
Returns the number of missing values in the data. |
int |
getNumberOfTies()
Returns the number of ties in the data. |
double |
getOneSidedPValue()
Probability of the statistic exceeding D under the null hypothesis of equality and against the one-sided alternative. |
double |
getTestStatistic()
Returns ![]() |
double |
getTwoSidedPValue()
Probability of the statistic exceeding D under the null hypothesis of equality and against the two-sided alternative. |
double |
getZ()
Returns the normalized D statistic without the continuity correction applied. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KolmogorovOneSample(CdfFunction cdf, double[] x)
cdf
- is the cdf function, x
- is a double
array containing the observations.Method Detail |
---|
public double getMaximumDifference()
public double getMinimumDifference()
public int getNumberMissing()
public int getNumberOfTies()
public double getOneSidedPValue()
public double getTestStatistic()
public double getTwoSidedPValue()
getOneSidedPValue
,
(or 1.0 if
public double getZ()
|
JMSLTM Numerical Library 5.0.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |