IStatistics.Confidence

Syntax

Confidence(Alpha: Double; StandartDeviation: Double; Size: Integer): Double;

Parameters

Alpha is significance level used to calculate reliability. The reliability level is 100*(1 - Alpha)%, i.e. alpha= 0.05 refers to 95% reliability level. This value should satisfy the following constraint: 0 < Alpha < 1.

StandartDeviation is the standard deviation of a universal set for a data interval, which is assumed to be known. The value must meet the constraint: StandartDeviation > 0.

Size is the sample size.

Description

The Confidence method returns a confidence interval for the population mean. A confidence interval is an interval from both sides of the sample mean.

Example

Sub Main;

Var

st: Statistics;

d0: Double;

Begin

st := New Statistics.Create;

d0 := st.Confidence(0.05,2.5,50);

Debug.WriteLine("Confidence range:" + d0.ToString);

End Sub Main;

Executing this example shows the confidence interval value in the console window:

Module execution started

Confidence interval:0.6929519121746226

Module execution finished

See also:

IStatistics