|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.statcato.statistics.inferential.HypothesisTestMatchedPairs
public class HypothesisTestMatchedPairs
A hypothesis test for matched pairs,
| Constructor Summary | |
|---|---|
HypothesisTestMatchedPairs(int n,
double mu,
double s,
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 dBar)
Returns the p-value corresponding to dBar in a t distribution. |
double |
testStatistics(double dBar)
Returns the test statistics for the given sample mean of differences between matched pairs, dBar. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HypothesisTestMatchedPairs(int n,
double mu,
double s,
double confidenceLevel,
int testType)
n - sample size of differences between matched pairsmu - hypothesized mean of differences between matched pairss - sample standard deviation of differences between matched pairsconfidenceLevel - confidence leveltestType - (as defined in HypothesisTest)| Method Detail |
|---|
public double testStatistics(double dBar)
t = (dBar - mu) / (s / sqrt(n))
dBar - sample mean
public java.lang.String criticalValue()
HypothesisTestpublic double pValue(double dBar)
dBar -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||