Skip to content

7.7.10.2 Discrete Distributions ​

The following discrete distributions are available:

Function: __PDF.BERNOULLI ( x) Function: __CDF.BERNOULLI ( x, p) Function: __RV.BERNOULLI ( p)

Bernoulli distribution with probability of success p. Constraints: x = 0 or 1, 0 <= p <= 1.

Function: __PDF.BINOM ( x, n, p) Function: __CDF.BINOM ( x, n, p) Function: __RV.BINOM ( n, p)

Binomial distribution with n trials and probability of success p. Constraints: integer n > 0, 0 <= p <= 1, integer x <= n.

Function: __PDF.GEOM ( x, n, p) Function: __CDF.GEOM ( x, n, p) Function: __RV.GEOM ( n, p)

Geometric distribution with probability of success p. Constraints: 0 <= p <= 1, integer x > 0.

Function: __PDF.HYPER ( x, a, b, c) Function: __CDF.HYPER ( x, a, b, c) Function: __RV.HYPER ( a, b, c)

Hypergeometric distribution when b objects out of a are drawn and c of the available objects are distinctive. Constraints: integer a > 0, integer b <= a, integer c <= a, integer x >= 0.

Function: __PDF.LOG ( x, p) Function: __RV.LOG ( p)

Logarithmic distribution with probability parameter p. Constraints: 0 <= p < 1, x >= 1.

Function: __PDF.NEGBIN ( x, n, p) Function: __CDF.NEGBIN ( x, n, p) Function: __RV.NEGBIN ( n, p)

Negative binomial distribution with number of successes parameter n and probability of success parameter p. Constraints: integer n >= 0, 0 < p <= 1, integer x >= 1.

Function: __PDF.POISSON ( x, mu) Function: __CDF.POISSON ( x, mu) Function: __RV.POISSON ( mu)

Poisson distribution with mean mu. Constraints: mu > 0, integer x >= 0.

基于 GNU PSPP 2.0.1 手册与入门教程整理