21.01.2013 Views

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Back to Other Functions.<br />

Statistical Distribution Functions<br />

The statistical distribution functions described below are all implemented in <strong>QlikView</strong> using the Cephes<br />

library. For references and details on algorithms used, accuracy etc, please see http://www.netlib.org/cephes/.<br />

The Cephes function library is used by permission.<br />

chidist (value, degrees_freedom)<br />

returns the one-tailed probability of the chi2 distribution. The Chi2 distribution is associated with a Chi2<br />

test. Value is the value at which you want to evaluate the distribution. Value must not be negative.<br />

Degrees_freedom is a positive integer stating the number of degrees of freedom. Both arguments must be<br />

numeric, else null will be returned. This function is related to the chiinv function in the following way:<br />

If prob = chidist(value,df), then chiinv(prob, df) = value.<br />

Example:<br />

chidist( 8, 15 ) returns 0.9237827<br />

chiinv (prob, degrees_freedom)<br />

returns the inverse of the one-tailed probability of the chi2 distribution. Prob is a probability associated with<br />

the chi2 distribution. It must be a number between 0 and 1. Degrees_freedom is an integer stating the<br />

number of degrees of freedom. Both arguments must be numeric, else null will be returned. This function is<br />

related to the chidist (value, degrees_freedom) (page 314) function in the following way:<br />

If prob = chidist(value,df), then chiinv(prob, df) = value.<br />

Example:<br />

chiinv(0.9237827, 15 ) returns 8.0000001<br />

normdist (value, mean, standard_dev)<br />

returns the cumulative normal distribution for the specified mean and standard deviation. Value is the value<br />

at which you want to evaluate the distribution. Mean is a value stating the arithmetic mean for the distribution.<br />

Standard_dev is a positive value stating the standard deviation of the distribution. All arguments<br />

must be numeric, else null will be returned. If mean = 0 and standard_dev = 1, the function returns the standard<br />

normal distribution. This function is related to the norminv (prob, mean, standard_dev) (page 314) function<br />

in the following way:<br />

If prob = normdist(value, m, sd), then norminv(prob, m, sd) = value.<br />

Example:<br />

chdist( 0.5, 0, 1 ) returns 0.6914625<br />

norminv (prob, mean, standard_dev)<br />

returns the inverse of the normal cumulative distribution for the specified mean and standard deviation. Prob<br />

is a probability associated with the normal distribution. It must be a number between 0 and 1. Mean is a<br />

value stating the arithmetic mean for the distribution. Standard_dev is a positive value stating the standard<br />

deviation of the distribution. All arguments must be numeric, else null will be returned. This function is<br />

related to the normdist (value, mean, standard_dev) (page 314) function in the following way:<br />

If prob = normdist(value, m, sd), then norminv(prob, m, sd) = value.<br />

Example:<br />

norminv( 0.6914625, 0, 1 ) returns 0.4999717<br />

tdist (value, degrees_freedom, tails)<br />

314

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!