stats_cdf_beta

(PECL stats >= 1.0.0)

stats_cdf_betaCalcula qualquer parâmetro da distribuição beta, dados os valores dos outros

Descrição

stats_cdf_beta(
    float $par1,
    float $par2,
    float $par3,
    int $which
): float

Retorna a função distribuição acumulada, sua inversa ou um de seus parâmetros, da distribuição beta. Os tipos do valor de retorno e dos parâmetros (par1, par2 e par3) são determinados por which.

A tabela a seguir lista o valor de retorno e os parâmetros em relação a which. FDA, x, alfa e beta denotam a função distribuição acumulada, o valor da variável aleatória e os parâmetros de forma da distribuição beta, respectivamente.

Valor de retorno e parâmetros
which Valor de retorno par1 par2 par3
1 FDA x alfa beta
2 x FDA alfa beta
3 alfa x FDA beta
4 beta x FDA alfa

Parâmetros

par1

O primeiro parâmetro

par2

O segundo parâmetro

par3

O terceiro parâmetro

which

O sinalizador para determinar o que deve ser calculado

Valor Retornado

Retorna FDA, x, alfa ou beta, determinado por which.

adicione uma nota

Notas Enviadas por Usuários (em inglês) 2 notes

up
1
Anonymous
15 years ago
Additional Notes, taken from source.
WHICH --> Integer indicating which of the next four argument
values is to be calculated from the others.
Legal range: 1..4
iwhich = 1 : Calculate P and Q from X,Y,A and B
iwhich = 2 : Calculate X and Y from P,Q,A and B
iwhich = 3 : Calculate A from P,Q,X,Y and B
iwhich = 4 : Calculate B from P,Q,X,Y and A

P <--> The integral from 0 to X of the chi-square
distribution.
Input range: [0, 1].

Q <--> 1-P.
Input range: [0, 1].
P + Q = 1.0.

X <--> Upper limit of integration of beta density.
Input range: [0,1].
Search range: [0,1]

Y <--> 1-X.
Input range: [0,1].
Search range: [0,1]
X + Y = 1.0.

A <--> The first parameter of the beta density.
Input range: (0, +infinity).
Search range: [1D-100,1D100]

B <--> The second parameter of the beta density.
Input range: (0, +infinity).
Search range: [1D-100,1D100]
up
-1
n15m0_jk
8 years ago
Decided to dive into the source code and provide a simple explanation:

Parameters:
int $which - Select which parameter to use in the CDF Binomial calculation, based on what the prior 3 parameters are.

where $which is 4:
$arg1 = p
$arg2 = sn
$arg3 = xn
returns pr

$which = 3
$arg1 = p
$arg2 = sn
$arg3 = pr
returns xn

$which = 2
$arg1 = p
$arg2 = xn
$arg3 = pr
returns sn

$which = 1
$arg1 = sn
$arg2 = xn
$arg3 = pr
returns p
To Top