You are here: Symbol Reference > Probabilities Namespace > Functions > Probabilities.BetaPDF Function
MtxVec VCL
ContentsIndex
PreviousUpNext
Probabilities.BetaPDF Function

Beta probability density function (PDF).

Pascal
function BetaPDF(x: double; a: double; b: double): double; overload;
Parameters 
Description 
Function domain, real positive value on closed interval [0,1]. 
Shape parameter, real positive value. 
Shape parameter, real positive value. 

the beta distribution probability density function (PDF).

Calculates the beta probability density function. The beta probability density function is defined by the following equation: 

 

where B(a,b) is Beta function and it defines the interval on which the beta PDF is not zero. The beta distribution describes a family of curves that are nonzero only on the interval [0,1]. The parameters a and b must both be greater than zero and x must lie on the interval (0,1) otherwise the result is NAN.

Calculate Beta distribution (a=3 and b= 2.1) PDF and CDF for x =0.55

Uses Probabilities; procedure Example; var pdf,cdf: double; begin pdf := BetaPDF(0.55, 3.0, 2.1); cdf := BetaCDF(0.55, 3.0, 2.1); end;
#include "Probabilities.hpp" void __fastcall Example() { double pdf = BetaPDF(0.55, 3.0, 2.1); double cdf = BetaCDF(0.55, 3.0, 2.1); }
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!