Ansicht
Dokumentation

QF10_CDF_BINOMIAL - Binomial distribution function

QF10_CDF_BINOMIAL - Binomial distribution function

BAL Application Log Documentation   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

Function

This function module calculates proportions of the binomial distribution.

Description

The binomial distribution describes random sampling with replacement. If a random experiment with probability of success p is repeated n times, the number of successes is binomially distributed with the parameters n and p. The individual probabilities have the form
g(j) = n! / (j!*(n-j)!) * p**j * (1-p)**(n-j).
This function modules calculates the sum of the probabilities
F(k) = g(0) + ... + g(k)
(distribution function).

Example (probability of no more than one six when throwing 3 dice)

  DATA:
    EINZEL_W       TYPE F VALUE '0.16666666667',
    ANZAHL_WUERFEL TYPE I VALUE 3,
    ANZAHL_ERFOLGE TYPE I VALUE 1,
    SUMMEN_W.

  CALL FUNCTION 'QF10_CDF_BINOMIAL'
    EXPORTING P = EINZEL_W
              N = ANZAHL_WUERFEL
              K = ANZAHL_ERFOLGE
    IMPORTING PROBABILITY = SUMMEN_W.





Parameters

K
N
P
PROBABILITY

Exceptions

INVALID_N
INVALID_P

Function Group

QF10

rdisp/max_wprun_time - Maximum work process run time   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 1586 Date: 20240523 Time: 124805     sap01-206 ( 22 ms )