|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.statcato.statistics.inferential.HypothesisTest1MeanSigmaKnown
public class HypothesisTest1MeanSigmaKnown
A hypothesis test for 1 population mean, population standard deviation known.
Constructor Summary | |
---|---|
HypothesisTest1MeanSigmaKnown(int n,
double mu,
double sigma,
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 z 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 HypothesisTest1MeanSigmaKnown(int n, double mu, double sigma, double confidenceLevel, int testType)
n
- sample sizemu
- hypothesized meansigma
- population standard deviationconfidenceLevel
- confidence leveltestType
- (as defined in HypothesisTest
)Method Detail |
---|
public double testStatistics(double xBar)
z = (xBar - mu) / (sigma / sqrt(n))
xBar
- sample mean
public java.lang.String criticalValue()
HypothesisTest
public double pValue(double xBar)
xBar
- x bar value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |