Ansicht
Dokumentation

QF00_BETAI - Incomplete beta integral

QF00_BETAI - Incomplete beta integral

Addresses (Business Address Services)   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

Task

The function module calculates the incomplete beta integral.

Example (Binomial distribution)

  DATA:
    N         TYPE I,
    K         TYPE I,
    P         TYPE F,
    PROB_BIN  TYPE F,
    V1        TYPE F,
    W1        TYPE F,

  V1 = K.
  W1 = N - K + 1.

  CALL FUNCTION 'QF00_BETAI'
    EXPORTING V      = V1
              W      = W1
              X      = P
    IMPORTING BETAI  = PROB_BIN.

Description

The incomplete beta integral is defined for v > 0 and w > 0 by the formula

BETAI(v,w,x) = INTEGRAL(0..x, t**(v-1) * (1-t)**(w-1) dt) / BETA(v.w)

This integral occurs in the calculation of t-distribution F-distribution, beta distribution and binomial distribution statistics.

Reference

W.H.Press, B.P.Flannery, S.A.Teukolsky, W.T.Vetterling, Numerical Recipes in C. Cambridge University Press, Cambridge 1988





Parameters

BETAI
ITERATIONEN
V
W
X

Exceptions

INVALID_X
NOT_POSITIVE

Function Group

QF00

CL_GUI_FRONTEND_SERVICES - Frontend Services   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 1936 Date: 20240523 Time: 130021     sap01-206 ( 17 ms )