<< distfun_betafitmm Beta distfun_betapdf >>

Distfun >> Distfun > Beta > distfun_betainv

distfun_betainv

Beta Inverse CDF

Calling Sequence

x = distfun_betainv ( p , a , b )
x = distfun_betainv ( p , a , b , lowertail )

Parameters

p :

a matrix of doubles, the probability. Must be in the range [0,1].

a :

a matrix of doubles, the first shape parameter, a>=0.

b :

a matrix of doubles, the second shape parameter, b>=0.

lowertail :

a 1-by-1 matrix of booleans, the tail (default lowertail=%t). If lowertail is true (the default), then considers P(X<=x) otherwise P(X>x).

x :

a matrix of doubles, the outcome

Description

Computes the Inverse Beta cumulative probability distribution function.

Any scalar input argument is expanded to a matrix of doubles of the same size as the other input arguments.

Examples

// Check expansion of a and b
p = [0.01 0.5 0.99];
x = distfun_betainv(p,10,5)
expected = [..
0.372565305114573 , ..
0.674248844713787 , ..
0.898071404278149 ..
]
//
// Check with expanded a and b
p = [0.01 0.5 0.99];
x = distfun_betainv(p,[8 9 10],[5 6 7])
expected = [..
0.302404222173137 , ..
0.604556744392119 , ..
0.833540311685497 ..
]

// See upper tail
p = [0.01 0.5 0.99];
x = distfun_betainv(p,[8 9 10],[5 6 7])
x = distfun_betainv(p,[8 9 10],[5 6 7],%f)

Authors


Report an issue
<< distfun_betafitmm Beta distfun_betapdf >>