You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Dew.Math.Units Namespace > Classes > Probabilities Class > Probabilities Methods > BetaPDF Method > Probabilities.BetaPDF Method (double, double, double)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Probabilities.BetaPDF Method (double, double, double)

Beta probability density function (PDF).

Syntax
C#
Visual Basic
public static double BetaPDF(double x, double a, double b);
Parameters 
Description 
double x 
Function domain, real positive value on closed interval [0,1]. 
double a 
Shape parameter, real positive value. 
double b 
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

using Dew.Probability; using Dew.Probability.Units; namespace Dew.Examples { void Example() { double pdf = BetaPDF(0.55, 3.0, 2.1); double cdf = BetaCDF(0.55, 3.0, 2.1); } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!