IStatistics.CritBinom

Syntax

CritBinom(Trials: Integer; Probability: Double; Alpha: Double): Integer;

Parameters

Trials. The number of Bernoulli trials.

Probability. Success probability for each trial.

Alpha. Criterion value.

Description

The CritBinom method returns the least value for which integral binomial distribution is greater or equal to the specified criterion. This function is used in quality control applications.

Comments

Value of the Trials parameter must be greater of equal to zero.

Tolerance range of the Probability parameter: [0; 1].

Tolerance range of the Alpha parameter: [0; 1].

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.CritBinom(
60.5,0.75);
    
If st.Status <> 0 Then
        Debug.WriteLine(st.Errors);
    
Else
        Debug.WriteLine(
"Least value: " + d0.ToString);
    
End If;
End Sub UserProc;

After executing the example the console window displays the least value.

See also:

IStatistics