cdfBeta

Purpose

Computes the incomplete Beta function (i.e., the cumulative distribution function of the Beta distribution).

Format

p = cdfBeta(x, a, b)
Parameters:
  • x (NxK matrix) – Values at which to evaluate the Beta cdf. \(0 \leq x \leq 1\)

  • a (LxM matrix) – ExE conformable with x. \(a > 0\)

  • b (PxQ matrix) – ExE conformable with x and a. \(b > 0\)

Returns:

p (matrix, max(N,L,P) by max(K,M,Q)) – p is the integral from 0 to x of the beta distribution with parameters a and b. A -1 is returned for those elements with invalid inputs.

Examples

// Values
x = { 0.0506, 0.1886, 0.3781, 0.5763 };

// Beta parameters
a = 0.5;
b = 0.3;

// Total probabilities
p = cdfBeta(x, a, b);
print "p = "         p;

After running above code,

p =
  0.1000
  0.2000
  0.3000
  0.4000

See also

Functions cdfChic(), cdfFc(), cdfN(), cdfNc(), cdfTc(), gamma()