<< bino_rnd Supplementary distibution functions chis_rnd >>

Grocer >> Supplementary distibution functions > chis_pdf

chis_pdf

chi-squared probability distribution

CALLING SEQUENCE

[f]=chis_pdf(x,a)

PARAMETERS

Input

* x = a (nxm) matrix

* a = a scalar or a (nxm) matrix

 

Output

* f = a matrix of pdf at each element of x from chisq(a) or chisq(same element of a) distribution

DESCRIPTION

Returns the pdf at x of the chi-squared(n) distribution. NOTE: chis_pdf(x,n) = gamm_pdf(x/2,n/2)/2

EXAMPLE

y=chis_pdf([1:4],2)
// Provides the (1x4) vectors of probabilities that a chi-square is greater than 1, 2, 3 and 4 respectively.
y=chis_pdf([1:4],2*ones(1,4))
// Do exactly the same thing

AUTHOR

Eric Dubois 2002

Report an issue
<< bino_rnd Supplementary distibution functions chis_rnd >>