WebCab Probability and Statistics Web Services for .NET v3.3 Demo

NormalHypothesis.SidePercentageDifference Method 

Performs one-sided hypothesis testing for the difference between proportions.

public bool SidePercentageDifference(
   bool greater,
   double percentage1,
   double percentage2,
   double claimedDifference,
   int size1,
   int size2,
   double significanceLevel
);

Parameters

greater
The side on which the test will be performed.
percentage1
The first sample percentage.
percentage2
The second sample percentage.
claimedDifference
The claimed difference between percentages.
size1
The first sample size.
size2
The second sample size.
significanceLevel
The significance level of the hypothesis test given in absolute terms (i.e. 99 percent = 99).

Return Value

boolean true if the null hypothesis (H0) cannot be rejected, false if the null hypothesis can be rejected

Remarks

Further Details

Having two sample proportions: one with mean `u1', size `n1' and one with size `n2' it conducts the following statistical test:

            		H0: p1-p2 >= dif
            		Ha: p1-p2 < dif   if `greater' is true
             or
            		H0: p1-p2 <= dif
            		Ha: p1-p2 > dif   if `greater' is false
at `s%' significance level, where `dif' is the claimed difference between percentages and H0, Ha represent the null and alternative hypothesis respectively.

See Also

NormalHypothesis Class | Hypothesis Namespace