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