|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.statcato.statistics.inferential.GoodnessOfFitTest
public class GoodnessOfFitTest
A Chi-square goodness-of-fit test.
| Constructor Summary | |
|---|---|
GoodnessOfFitTest(int k,
double confidence)
Constructor. |
|
| Method Summary | |
|---|---|
double |
criticalValue()
Returns the critical value corresponding to the significance level and degrees of freedom. |
int |
DOF()
Returns the degrees of freedom. |
double |
pValue(double ts)
Returns the p-Value corresponding to the given test statistic in a chi-square distribution. |
double |
testStatistic(java.util.Vector<java.lang.Double> observedFreq,
java.util.Vector<java.lang.Double> expectedFreq)
Computes the chi-square test statistic for goodness-of-fit test in multinomial experiment, given the observed and expected frequencies. |
java.util.Vector<java.lang.Double> |
testStatisticContribution(java.util.Vector<java.lang.Double> observedFreq,
java.util.Vector<java.lang.Double> expectedFreq)
Returns a vector of each observed frequency's contribution to the chi-square test statistic. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GoodnessOfFitTest(int k,
double confidence)
k - number of categoriesconfidence - confidence level| Method Detail |
|---|
public java.util.Vector<java.lang.Double> testStatisticContribution(java.util.Vector<java.lang.Double> observedFreq,
java.util.Vector<java.lang.Double> expectedFreq)
observedFreq - vector of observed frequenciesexpectedFreq - vector of expected frequencies
public double testStatistic(java.util.Vector<java.lang.Double> observedFreq,
java.util.Vector<java.lang.Double> expectedFreq)
observedFreq - a vector of observed frequenciesexpectedFreq - a vector of expected frequencies
public int DOF()
public double criticalValue()
public double pValue(double ts)
ts -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||