Statistics Toolbox
  Go to function:
    Search    Help Desk 
betainv    Examples

Inverse of the beta cumulative distribution function.

Syntax

Description

betainv(P,A,B) computes the inverse of the beta cdf with parameters A and B for the probabilities in P. The arguments P, A, and B must all be the same size except that scalar arguments function as constant matrices of the common size of the other arguments.

The parameters A and B must both be positive and P must lie on the interval
[0 1].

The beta inverse function in terms of the beta cdf is:


where


The result, x, is the solution of the integral equation of the beta cdf with parameters a and b where you supply the desired probability p.

Algorithm

We use Newton's Method with modifications to constrain steps to the allowable range for x, i.e., [0 1].

Examples



[ Previous | Help Desk | Next ]