Complementary probability integral for beta distribution.
Loading LOADSUB ALL FROM "IGAMMA.HTS"
or LOADSUB FROM "MATHLIB.HTS"
Usage REAL X,A,B,Y
Y=FNQ_beta(A,B,X)
Description
FNQ_betareturns the value of the complementary probability integral of the univariate beta probability density function with parametersaandb,Q(x;a,b).Q(x;a,b) is defined only fora0 andb0.
Q(x;a,b) is defined by the expression
When 0≤x≤1,Q(x;a,b) is related to the incomplete beta function returned byFNIbeta,Bx(a,b) by the expression
Q(x;a,b)
Errors
FNQ_betacauses an HTBasic error if its arguments are not all of type REAL or ifaorbis negative.