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

Class CIMatchedPairs



  • public class CIMatchedPairs
    extends ConfidenceInterval
    Confidence interval class for matched pairs.
    Since:
    1.0
    • Constructor Detail

      • CIMatchedPairs

        public CIMatchedPairs(double confidenceLevel,
                              int n,
                              double mu,
                              double s)
        Constructor.
        Parameters:
        confidenceLevel - confidence level, between 0 and 1
        n - sample size (number of matched pairs)
        mu - sample mean of differences
        s - sample standard deviation of differences
    • Method Detail

      • marginOfError

        public double marginOfError()
        Returns the margin of error. E = t_(alpha/2) * s / sqrt(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 t distribution to find t_(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.