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

StudentConfidence.MeansDifference Method 

Calculate the confidence interval for the difference between two means (for two small samples with under 30 elements).

public double[] MeansDifference(
   int size1,
   int size2,
   double mean1,
   double mean2,
   double standardDeviation1,
   double standardDeviation2,
   double significanceLevel
);

Parameters

size1
The size of the first sample.
size2
The size of the second sample.
mean1
The mean of the first sample.
mean2
The mean of the second sample.
standardDeviation1
The standard deviation of the first sample.
standardDeviation2
The standard deviation of the second sample.
significanceLevel
The confidence level to which the confidence interval is found.

Return Value

double[] an array of length two where the first term of the array corresponds to the lower bound of the confidence interval and the second term to the upper bound of the confidence interval

Remarks

If we have two samples where the mean, standard deviation and size of each sample is known then we can calculate the confidence interval for the difference between the means of the two populations for a given confidence level.

See Also

StudentConfidence Class | Hypothesis Namespace