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

NormalHypothesis.MeansDifference Method 

Performs hypothesis testing for the differences between the means of two samples.

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

Parameters

mean1
The mean for the first sample.
mean2
The mean for the second sample.
claimedDifference
The claimed difference between means.
standardDeviation1
The standard deviation for the first sample.
standardDeviation2
The standard deviation for the second sample.
size1
The size for the first sample.
size2
The size for the second sample.
significanceLevel
The significance level of the hypothesis test given in absolute terms (i.e. 99 percent = 99).

Return Value

boolean a boolean value is returned which is true if we cannot reject the null hypothesis (H0) or false if the null hypothesis can be rejected

Remarks

Further Details

This hypothesis test is performed on the difference between the means of two samples. That is, if we have two samples: one with mean `mean1', standard deviation `standardDeviation1' and size 'size1'; and the other with mean `mean2', standard deviation `standardDeviation2' and size `size2'. Then we conduct the following statistical test:

where `dif' is the claimed difference between the two means and H0, Ha represent the null and alternative hypothesis respectively.

See Also

NormalHypothesis Class | Hypothesis Namespace