Documentation of 'org.statcato.statistics.inferential.HypothesisTest1MeanSigmaKnown' Java class
HypothesisTest1MeanSigmaKnown
org.statcato.statistics.inferential

Class HypothesisTest1MeanSigmaKnown



  • public class HypothesisTest1MeanSigmaKnown
    extends java.lang.Object
    A hypothesis test for 1 population mean, population standard deviation known.
    Since:
    1.0
    • Constructor Summary

      Constructors 
      Constructor and Description
      HypothesisTest1MeanSigmaKnown(int n, double mu, double sigma, double confidenceLevel, int testType)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HypothesisTest1MeanSigmaKnown

        public HypothesisTest1MeanSigmaKnown(int n,
                                             double mu,
                                             double sigma,
                                             double confidenceLevel,
                                             int testType)
        Constructor.
        Parameters:
        n - sample size
        mu - hypothesized mean
        sigma - population standard deviation
        confidenceLevel - confidence level
        testType - (as defined in HypothesisTest)
    • Method Detail

      • testStatistics

        public double testStatistics(double xBar)
        Returns the test statistics for the given sample mean xBar.

        z = (xBar - mu) / (sigma / sqrt(n))

        Parameters:
        xBar - sample mean
        Returns:
        test statistic z score
      • criticalValue

        public java.lang.String criticalValue()
        Returns the critical value corresponding to the given confidence level and type of test. Uses the z distribution.
        Returns:
        critical value
        See Also:
        HypothesisTest
      • pValue

        public double pValue(double xBar)
        Returns the p-value corresponding to xBar in a z distribution.
        Parameters:
        xBar - x bar value
        Returns:
        p-value corresponding to xBar

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.