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

Class CIOnePopProp



  • public class CIOnePopProp
    extends ConfidenceInterval
    Confidence interval class for one population proportion.
    Since:
    1.0
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int BINOMIAL 
      static int NORMAL 
    • Constructor Summary

      Constructors 
      Constructor and Description
      CIOnePopProp(double confidenceLevel, int n, double p, int type)
      Constructor
    • Field Detail

      • NORMAL

        public static int NORMAL
      • BINOMIAL

        public static int BINOMIAL
    • Constructor Detail

      • CIOnePopProp

        public CIOnePopProp(double confidenceLevel,
                            int n,
                            double p,
                            int type)
        Constructor
        Parameters:
        confidenceLevel - confidence level, between 0 and 1
        n - sample size
        p - sample proportion
        type - type of distribution for calculating critical value
    • Method Detail

      • marginOfError

        public double marginOfError()
        Returns the margin of error. E = z_(alpha/2) * sqrt(p*q/n).
        Specified by:
        marginOfError in class ConfidenceInterval
        Returns:
        margin of error
      • criticalValue

        public double criticalValue()
        Returns the critical value corresponding to the given confidence level. Uses the z distribution to find z_(alpha/2), where alpha is the significance level (1 - confidence level).
        Specified by:
        criticalValue in class ConfidenceInterval
        Returns:
        critical value

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.