org.statcato.statistics.inferential
Class HypothesisTest2MeanSigmaUnknown
- java.lang.Object
-
- org.statcato.statistics.inferential.HypothesisTest2MeanSigmaUnknown
-
public class HypothesisTest2MeanSigmaUnknown extends java.lang.ObjectA hypothesis test for 2 population means (population standard deviations sigmas unknown).- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor and Description HypothesisTest2MeanSigmaUnknown(int n1, int n2, double xBar1, double xBar2, double s1, double s2, double diff, double confidenceLevel, int testType, boolean varEqual)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringcriticalValue()Returns the critical value corresponding to the given confidence level and type of test.intDOF()Returns the degree of freedom.doublepValue()Returns the p-value.doubletestStatistics()Returns the test statistics.
-
-
-
Constructor Detail
-
HypothesisTest2MeanSigmaUnknown
public HypothesisTest2MeanSigmaUnknown(int n1, int n2, double xBar1, double xBar2, double s1, double s2, double diff, double confidenceLevel, int testType, boolean varEqual)Constructor.- Parameters:
n1- sample size 1n2- sample size 2xBar1- sample mean 1xBar2- sample mean 2s1- sample standard deviation 1s2- sample standard deviation 2diff- hypothesized difference in population meanconfidenceLevel- confidence leveltestType- type of test (as defined inHypothesisTest)varEqual- whether population variances are assumed equal
-
-
Method Detail
-
testStatistics
public double testStatistics()
Returns the test statistics.- Returns:
- test statistic t score
-
DOF
public int DOF()
Returns the degree of freedom.- Returns:
- degree of freedom
-
criticalValue
public java.lang.String criticalValue()
Returns the critical value corresponding to the given confidence level and type of test. Uses the Student's t distribution.- Returns:
- critical value
- See Also:
HypothesisTest
-
pValue
public double pValue()
Returns the p-value.- Returns:
- p-value
-
-
DMelt 3.0 © DataMelt by jWork.ORG