WebCab Probability and Statistics Web Services for .NET v3.6

NormalConfidence.PercentageConfidence Method 

Calculates the confidence interval for which to a given level of confidence a given proportion (or percentage) of the sample will lie.

public double[] PercentageConfidence(
   int size,
   double proportion,
   double confidence
);

Parameters

size
The number of elements within the sample.
proportion
The proportion (or percentage) of the sample which lies (with a given level of confidence) within the confidence interval given in absolute terms (i.e. 1 percent = 1).
confidence
The level of confidence required 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 required. 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.

See Also

NormalConfidence Class | Hypothesis Namespace