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

NormalHypothesis.SideMeansDifference Method 

Performs one-sided hypothesis testing for the difference between the mean of two samples.

public bool SideMeansDifference(
   bool greater,
   double mean1,
   double mean2,
   double claimedDifference,
   double standardDeviation1,
   double standardDeviation2,
   int size1,
   int size2,
   double significanceLevel
);

Parameters

greater
The side on which the test will be performed.
mean1
The first sample mean.
mean2
The second sample mean.
claimedDifference
The claimed difference.
standardDeviation1
The first standard deviation.
standardDeviation2
The second standard deviation.
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 samples: one with mean `u1', standard deviation `d1' and size `n1' and one with mean `u2', standard deviation `d2' and size `n2', it conducts the following statistical test:

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

See Also

NormalHypothesis Class | Hypothesis Namespace