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

To execute the example, add a link to the Stat system assembly.

Sub UserProc;
Var
    st: Statistics;
    d0: Double;
Begin
    st := New Statistics.Create;
    d0 := st.Confidence(0.05,2.5,50);
    Debug.WriteLine("Confidence interval:" + d0.ToString);
End Sub UserProc;

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

Unit execution started

Confidence interval:0.69295191217488

Unit execution finished

See also:

IStatistics