statsmodels.distributions.bernstein.BernsteinDistribution.pdf#

BernsteinDistribution.pdf(x)[source]#

pdf values evaluated at x.

Parameters:
xarray_like

Points of multivariate random variable at which pdf is evaluated. This can be a single point with length equal to the dimension of the random variable, or two dimensional with points (observations) in rows and random variables in columns. In the univariate case, a 1-dimensional x will be interpreted as different points for evaluation.

Returns:
cdf values

Notes

Warning: 2-dim x with many points can be memory intensive because currently the bernstein polynomials will be evaluated in a fully vectorized computation.