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

Class CI2PopProp



  • public class CI2PopProp
    extends ConfidenceInterval
    Confidence interval class for two population proportions.
    Since:
    1.0
    • Constructor Summary

      Constructors 
      Constructor and Description
      CI2PopProp(double confidenceLevel, int n1, int n2, double p1, double p2)
      Constructor
    • Constructor Detail

      • CI2PopProp

        public CI2PopProp(double confidenceLevel,
                          int n1,
                          int n2,
                          double p1,
                          double p2)
        Constructor
        Parameters:
        confidenceLevel - confidence level, between 0 and 1
        n1 - sample size 1
        n2 - sample size 2
        p1 - sample proportion 1
        p2 - sample proportion 2
    • Method Detail

      • marginOfError

        public double marginOfError()
        Returns the margin of error. E = z_(alpha/2) * sqrt(p1*q1/n1 + p2*q2/n2)
        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.