org.statcato.statistics.inferential
Class HypothesisTest2Var
- java.lang.Object
-
- org.statcato.statistics.inferential.HypothesisTest2Var
-
public class HypothesisTest2Var extends java.lang.ObjectA hypothesis test for 2 population variances.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor and Description HypothesisTest2Var(int n1, int n2, double var1, double var2, double confidenceLevel, int testType)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.intDOF1()Returns the degree of freedom 1.intDOF2()Returns the degree of freedom 2.doublepValue()Returns the p-value in a F distribution.doubletestStatistics()Returns the test statistics F = var1 / var2.
-
-
-
Constructor Detail
-
HypothesisTest2Var
public HypothesisTest2Var(int n1, int n2, double var1, double var2, double confidenceLevel, int testType)Constructor- Parameters:
n1- sample size 1n2- sample size 2var1- sample variance 1var2- sample variance 2confidenceLevel- confidence leveltestType- type of test (as defined inHypothesisTest)
-
-
Method Detail
-
testStatistics
public double testStatistics()
Returns the test statistics F = var1 / var2.- Returns:
- test statistic F
-
DOF1
public int DOF1()
Returns the degree of freedom 1.- Returns:
- degree of freedom 1
-
DOF2
public int DOF2()
Returns the degree of freedom 2.- Returns:
- degree of freedom 2
-
criticalValue
public java.lang.String criticalValue()
Returns the critical value corresponding to the given confidence level and type of test. Uses the F distribution.- Returns:
- critical value
- See Also:
HypothesisTest
-
pValue
public double pValue()
Returns the p-value in a F distribution.- Returns:
- p-value
-
-
DMelt 3.0 © DataMelt by jWork.ORG