WebCab Probability and Statistics for COM v3.3 Demo

NormalConfidence.PercentageDifference Method 

Evaluates the confidence interval of the difference between proportions of two (large) samples of the same underlying population.

public double[] PercentageDifference(
   int size1,
   int size2,
   double proportion1,
   double proportion2,
   double confidence
);

Parameters

size1
The size of the first sample.
size2
The size of the second sample.
proportion1
The proportion of the first sample given in absolute terms (i.e. 1 percent = 1). Recall, that the proportion of a sample is the percentage of items within the entire population which are contained within the sample considered.
proportion2
The proportion of the second sample given in absolute terms (i.e. 1 percent = 1). Recall, that the proportion of a sample is the percentage of items within the entire population which are contained within the sample considered.
confidence
The confidence level with which the confidence interval is constructed. The confidence is given in absolute terms (i.e. 1 percent = 1).

Return Value

double[] an array of length two corresponding to the upper and lower boundaries of the confidence interval. The first term of the array returned corresponds to the lower bound of the boundary and the second terms to the upper bound of the boundary of the confidence interval.

Remarks

Further Details

Given two sample proportions with known sizes we can calculate the confidence interval of the difference between the proportions of the two populations to a given level of confidence. The confidence interval represents the interval in which the difference between the proportions of the two samples is believed to lie to a given level of confidence.

See Also

NormalConfidence Class | WebCab.COM.Statistics.Hypothesis Namespace