|
JMSLTM Numerical Library 5.0.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.imsl.stat.NormOneSample
public class NormOneSample
Computes statistics for mean and variance inferences using a sample from a normal population.
The statistics for mean and variance inferences are computed by using a sample from a normal population, including methods for the confidence intervals and tests for both mean and variance. The definitions of mean and variance are given below. The summation in each case is over the set of valid observations, based on the presence of missing values in the data.
Method getMean
, returns value
Method getStandardDeviation
, returns value
The method getTTestStat
returns the t statistic
for the two-sided test concerning the population mean which is given by
where s and are given above. This
quantity has a T distribution with n - 1
degrees of freedom. The method getTTestDF
returns the
degree of freedom.
The method getChiSquaredTestStat
returns the chi-squared
statistic for the two-sided test concerning the population variance which
is given by
where s is given above. This quantity has a
distribution with n - 1
degrees of freedom. The method getChiSquaredTestDF
returns
the degrees of freedom.
Constructor Summary | |
---|---|
NormOneSample(double[] x)
Constructor to compute statistics for mean and variance inferences using a sample from a normal population. |
Method Summary | |
---|---|
double |
getChiSquaredTest()
Returns the test statistic associated with the chi-squared test for variances. |
int |
getChiSquaredTestDF()
Returns the degrees of freedom associated with the chi-squared test for variances. |
double |
getChiSquaredTestP()
Returns the probability of a larger chi-squared associated with the chi-squared test for variances. |
double |
getLowerCIMean()
Returns the lower confidence limit for the mean. |
double |
getLowerCIVariance()
Returns the lower confidence limits for the variance. |
double |
getMean()
Returns the mean of the sample. |
double |
getStdDev()
Returns the standard deviation of the sample. |
double |
getTTest()
Returns the test statistic associated with the t test. |
int |
getTTestDF()
Returns the degrees of freedom associated with the t test for the mean. |
double |
getTTestP()
Returns the probability associated with the t test of a larger t in absolute value. |
double |
getUpperCIMean()
Returns the upper confidence limit for the mean. |
double |
getUpperCIVariance()
Returns the upper confidence limits for the variance. |
void |
setChiSquaredTestNull(double chiSqrTestNull)
Sets the null hypothesis value for the chi-squared test. |
void |
setConfidenceMean(double confidenceMean)
Sets the confidence level (in percent) for a two-sided interval estimate of the mean. |
void |
setConfidenceVariance(double confidenceVariance)
Sets the confidence level (in percent) for two-sided interval estimate of the variances. |
void |
setTTestNull(double meanHypothesis)
Sets the Null hypothesis value for t test for the mean. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NormOneSample(double[] x)
x
- is a one-dimension double
array containing the observations.Method Detail |
---|
public double getChiSquaredTest()
setChiSquaredTestNull
.
double
containing the test statistic for the
chi-squared test.public int getChiSquaredTestDF()
setChiSquaredTestNull
.
int
the degrees of freedom for the
chi-squared test.public double getChiSquaredTestP()
setChiSquaredTestNull
.
double
containing the probability of a larger
chi-squared for the chi-squared test for variances.public double getLowerCIMean()
double
containing the lower confidence
limit for the mean.public double getLowerCIVariance()
double
containing the lower confidence
limits for the variance.public double getMean()
double
containing the mean.public double getStdDev()
double
containing the standard deviation
of the sample.public double getTTest()
setTTestNull
.
double
containing the test statistic for
the t test.public int getTTestDF()
setTTestNull
.
int
containing the degrees of freedom
for the t test.public double getTTestP()
setTTestNull
.
double
containing the probability for the
t test.public double getUpperCIMean()
double
containing the upper confidence
limit for the mean.public double getUpperCIVariance()
double
the upper confidence limits
for the variance.public void setChiSquaredTestNull(double chiSqrTestNull)
chiSqrTestNull
- double
containing the
null hypothesis value for the chi-squared test.public void setConfidenceMean(double confidenceMean)
confidenceMean
must be between 0.0 and 1.0 and is often 0.90, 0.95 or 0.99.
For a one-sided confidence interval with confidence level c (at least
50 percent), set confidenceMean
=1.0-2.0 * (1.0 - c
).
If the confidence mean is not specified, a 95-percent confidence interval
is computed.
confidenceMean
- double
containing the confidence
level of the mean.public void setConfidenceVariance(double confidenceVariance)
confidenceVariance
must be between 0.0 and 1.0 and is often 0.90, 0.95 or 0.99.
For a one-sided confidence interval with confidence level c (at least
50 percent), set confidenceVariance
=1.0-2.0 * (1.0 - c
).
If the confidence mean is not specified, a 95-percent confidence interval
is computed.
confidenceVariance
- double
containing the confidence
level of the variance.public void setTTestNull(double meanHypothesis)
meanHypothesis
=0.0 by default.
meanHypothesis
- double
containing the hypothesis value.
|
JMSLTM Numerical Library 5.0.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |