IMSL C Math Library
beta_inverse_cdf
Evaluates the inverse of the beta distribution function.
Synopsis
#include <imsl.h>
float imsl_f_beta_inverse_cdf (float p, float pin, float qin)
The type double function is imsl_d_beta_inverse_cdf.
Required Arguments
float p (Input)
Probability for which the inverse of the beta distribution function is to be evaluated. Argument p must be in the open interval (0.0 ,1.0).
float pin (Input)
First beta distribution parameter. Argument pin must be positive.
float qin (Input)
Second beta distribution parameter. Argument qin must be positive.
Return Value
Function imsl_f_beta_inverse_cdf evaluates the inverse distribution function of a beta random variable with parameters pin and qin.
Description
With P = p, p = pin, and q = qin, function imsl_f_beta_inverse_cdf returns x such that
where Γ() is the gamma function. The probability that the random variable takes a value less than or equal to x is P.
Example
Suppose X is a beta random variable with parameters 12 and 12. (X has a symmetric distribution.) This example finds the value x such that the probability that X  x is 0.9.
 
#include <imsl.h>
#include <stdio.h>
 
int main()
{
float p, pin, qin, x;
 
pin = 12.0;
qin = 12.0;
p = 0.9;
x = imsl_f_beta_inverse_cdf(p, pin, qin);
printf(" X is less than %6.4f with probability 0.9.\n",
x);
}
Output
 
X is less than 0.6299 with probability 0.9.