Mathematical Functions

This appendix provides the definition of several mathematical functions used throughout the manual.

Beta

The beta function, B(a,b), computes the normalizing constant for the beta distribution, and is defined for a>0 and b>0 by B(a,b) = 01ua1(1u)b1du = Γ(a)Γ(b)Γ(a+b), where Γ(x) is the Gamma function.

Incomplete beta

The incomplete beta function, B(x;a,b), is defined for x[0,1] and a,b0 such that a+b0 by B(x;a,b) = 0xua1(1u)b1du, where B(a,b) is the beta function defined in appendix. If x=1, the incomplete beta function reduces to the beta function, B(1;a,b)=B(a,b).

The regularized incomplete beta function divides the incomplete beta function by the beta function, Ix(a,b) = B(x;a,b)B(a,b).

Gamma

The gamma function, Γ(x), is the generalization of the factorial function to continuous variables, defined so that for positive integers n, Γ(n+1)=n! Generalizing to all positive numbers and non-integer negative numbers, Γ(x)=0ux1exp(u)du.

Digamma

The digamma function Ψ is the derivative of the logΓ function, Ψ(u) = ddulogΓ(u) = 1Γ(u) dduΓ(u).

Back to top