org.statcato.statistics.inferential
Class CIOnePopMeanSigmaUnknown
- java.lang.Object
-
- org.statcato.statistics.inferential.ConfidenceInterval
-
- org.statcato.statistics.inferential.CIOnePopMeanSigmaUnknown
-
public class CIOnePopMeanSigmaUnknown extends ConfidenceInterval
Confidence interval class for one population mean, sigma (population standard deviation) unknown.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor and Description CIOnePopMeanSigmaUnknown(double confidenceLevel, int n, double mean, double s)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecriticalValue()Returns the critical value corresponding to the given confidence level.doublegetN()Returns the sample size.doublegetStdev()Returns the sample standard deviation.doublemarginOfError()Returns the margin of error.-
Methods inherited from class org.statcato.statistics.inferential.ConfidenceInterval
center, lowerLimit, toString, upperLimit
-
-
-
-
Constructor Detail
-
CIOnePopMeanSigmaUnknown
public CIOnePopMeanSigmaUnknown(double confidenceLevel, int n, double mean, double s)Constructor.- Parameters:
confidenceLevel- confidence level, between 0 and 1n- sample sizemean- sample means- sample standard deviation
-
-
Method Detail
-
marginOfError
public double marginOfError()
Returns the margin of error. E = t_(alpha/2) * s / sqrt(n).- Specified by:
marginOfErrorin classConfidenceInterval- Returns:
- margin of error
-
criticalValue
public double criticalValue()
Returns the critical value corresponding to the given confidence level. Uses Student's t distribution to find t_(alpha/2), where alpha is the significance level (1 - confidence level).- Specified by:
criticalValuein classConfidenceInterval- Returns:
- critical value
-
getStdev
public double getStdev()
Returns the sample standard deviation.- Returns:
- sample standard deviation
-
getN
public double getN()
Returns the sample size.- Returns:
- sample size
-
-
DMelt 3.0 © DataMelt by jWork.ORG