dBeta

dBeta(p1, p2, x)

Probability density function of a Beta distribution on [0,1].

Parameters:
alphafloat, \alpha > 0

Parameter \alpha.

betafloat, \beta > 0

Parameter \beta.

xfloat

Location.

Returns:
pfloat

The PDF at x.

Notes

The probability density function is defined as:

p(x) = \dfrac{1}{B(\alpha, \beta)}x^{(\alpha-1)}(1-x)^{(\beta-1)} \quad x \in (0,1)

with \alpha, \beta > 0 and where \rm B denotes Euler’s beta function Beta().

Outside the open interval (0,1), the returned value is zero. This function is implemented as the exponential of logdBeta().

Examples

>>> import openturns as ot
>>> pdf = ot.DistFunc.dBeta(2.5, 3.5, 0.9)