| Functions and CALL Routines |
| Category: | Probability |
Syntax |
| CDF (distribution,quantile<,parm-1, ... ,parm-k>) |
is a character constant, variable, or expression that identifies the distribution. Valid distributions are as follows:
Note: Except for T, F, and NORMALMIX,
you can minimally identify any distribution by its first four characters. ![[cautionend]](../../../../common/63294/HTML/default/images/cautend.gif)
is a numeric constant, variable, or expression that specifies the value of the random variable.
are optional constants, variables, or expressions that specify shape, location, or scale parameters appropriate for the specific distribution.
| See: | Details for complete information about these parameters |
| Details |
The CDF function computes the left cumulative distribution function from various continuous and discrete probability distributions.
Note: The
QUANTILE function returns the quantile from a
distribution that you specify. The QUANTILE function is the inverse of the
CDF function. For more information, see QUANTILE Function
. ![[cautionend]](../../../../common/63294/HTML/default/images/cautend.gif)
Syntax |
| CDF('BERNOULLI',x,p) |
The CDF function for the Bernoulli distribution returns the probability that an observation from a Bernoulli distribution, with probability of success equal to p, is less than or equal to x. The equation follows:
![[equation]](images/deqn29.gif)
Note: There are no location or scale parameters for this distribution. ![[cautionend]](../../../../common/63294/HTML/default/images/cautend.gif)
Syntax |
| CDF('BETA',x,a,b<,l,r>) |
| Range: | a > 0 |
| Range: | b > 0 |
is the numeric left location parameter.
| Default: | 0 |
is the right location parameter.
| Default: | 1 |
| Range: | r > l |
The CDF function for the beta distribution returns the probability that an observation from a beta distribution, with shape parameters a and b, is less than or equal to v. The following equation describes the CDF function of the beta distribution:
![[equation]](images/deqn30.gif)
![[equation]](images/deqn31.gif)
![[equation]](images/deqn32.gif)
Syntax |
| CDF('BINOMIAL',m,p,n) |
is an integer random variable that counts the number of successes.
| Range: | m = 0, 1, ... |
is a numeric probability of success.
| Range: |
0 p
1 |
is an integer parameter that counts the number of independent Bernoulli trials.
| Range: | n = 0, 1, ... |
The CDF function for the binomial distribution returns the probability that an observation from a binomial distribution, with parameters p and n, is less than or equal to m. The equation follows:
![[equation]](images/deqn33.gif)
Note: There are no location or scale parameters for the binomial distribution. ![[cautionend]](../../../../common/63294/HTML/default/images/cautend.gif)
Syntax |
CDF('CAUCHY',x<, , >)
|
The CDF function for the Cauchy distribution returns
the probability that an observation from a Cauchy distribution, with the location
parameter
and the scale parameter
, is less than or equal
to x. The equation follows:
![[equation]](images/deqn34.gif)
Syntax |
| CDF('CHISQUARE',x,df <,nc>) |
is a numeric degrees of freedom parameter.
| Range: | df > 0 |
is an optional numeric non-centrality parameter.
| Range: |
nc 0 |
The CDF function for the chi-square distribution returns the probability that an observation from a chi-square distribution, with df degrees of freedom and non-centrality parameter nc, is less than or equal to x. This function accepts non-integer degrees of freedom. If nc is omitted or equal to zero, the value returned is from the central chi-square distribution. In the following equation, let $\nu$ = df and let $\lambda$ = nc. The following equation describes the CDF function of the chi-square distribution:
![[equation]](images/deqn35.gif)
![[equation]](images/deqn36.gif)
![[equation]](images/deqn37.gif)
Syntax |
CDF('EXPONENTIAL',x
<, >)
|
The CDF function for the exponential distribution
returns
the probability that an observation from an exponential distribution, with
the scale parameter
, is less than or equal to x. The
equation follows:
![[equation]](images/deqn38.gif)
Syntax |
| CDF('F',x,ndf,ddf <,nc>) |
is a numeric numerator degrees of freedom parameter.
| Range: | ndf > 0 |
is a numeric denominator degrees of freedom parameter.
| Range: | ddf > 0 |
is a numeric non-centrality parameter.
| Range: |
nc 0 |
The CDF function for the F distribution returns the probability that an observation from an F distribution, with ndf numerator degrees of freedom, ddf denominator degrees of freedom, and non-centrality parameter nc, is less than or equal to x. This function accepts non-integer degrees of freedom for ndf and ddf. If nc is omitted or equal to zero, the value returned is from a central F distribution. In the following equation, let $\nu_1$ = ndf, let $\nu_2$ = ddf, and let $\lambda$ = nc. The following equation describes the CDF function of the F distribution:
![[equation]](images/deqn39.gif)
![[equation]](images/deqn40.gif)
Note: There are no
location or scale parameters for the F distribution. ![[cautionend]](../../../../common/63294/HTML/default/images/cautend.gif)
Syntax |
CDF('GAMMA',x,a<, >)
|
The CDF function for the gamma distribution returns
the probability that an observation from a gamma distribution, with shape
parameter a and scale parameter
, is less than or equal
to x. The equation follows:
![[equation]](images/deqn41.gif)
Syntax |
| CDF('GEOMETRIC',m,p) |
is a numeric random variable that denotes the number of failures.
| Range: | m = 0, 1, ... |
is a numeric probability of success.
| Range: |
0 p
1 |
The CDF function for the geometric distribution returns the probability that an observation from a geometric distribution, with parameter p, is less than or equal to m. The equation follows:
![[equation]](images/deqn42.gif)
Note: There are no location or scale parameters for this distribution. ![[cautionend]](../../../../common/63294/HTML/default/images/cautend.gif)
Syntax |
| CDF('HYPER',x,N,R,n<,o>) |
is an integer population size parameter.
| Range: | N = 1, 2, ... |
is an integer number of items in the category of interest.
| Range: | R = 0, 1, ..., N |
is an integer sample size parameter.
| Range: | n = 1, 2, ..., N |
is an optional numeric odds ratio parameter.
| Range: | o > 0 |
The CDF function for the hypergeometric distribution returns the probability that an observation from an extended hypergeometric distribution, with population size N, number of items R, sample size n, and odds ratio o, is less than or equal to x. If o is omitted or equal to 1, the value returned is from the usual hypergeometric distribution. The equation follows:
![[equation]](images/deqn43.gif)
Syntax |
CDF('LAPLACE',x<, , >)
|
The CDF function for the Laplace distribution returns
the probability that an observation from the Laplace distribution, with the
location parameter
and the scale parameter
, is less than or
equal to x. The equation follows:
![[equation]](images/deqn44.gif)
Syntax |
CDF('LOGISTIC',x<, , >)
|
The CDF function for the logistic distribution
returns
the probability that an observation from a logistic distribution, with a location
parameter
and a scale parameter
, is less than or equal
to x. The equation follows:
![[equation]](images/deqn45.gif)
Syntax |
CDF('LOGNORMAL',x<, , >)
|
specifies a numeric log scale parameter.
(exp(
) is a scale parameter.)
| Default: | 0 |
![[lambda]](../../../../common/63294/HTML/default/images/lambdal.gif)
specifies a numeric shape parameter.
| Default: | 1 |
| Range: |
> 0 |
The CDF function for the lognormal distribution returns the probability
that an observation from a lognormal distribution, with the log scale parameter
and the shape parameter
, is less than or equal to x.
The equation follows:
![[equation]](images/deqn46.gif)
Syntax |
| CDF('NEGBINOMIAL',m,p,n) |
is a positive integer random variable that counts the number of failures.
| Range: | m = 0, 1, ... |
is a numeric probability of success.
| Range: |
0 p
1 |
is a numeric value that counts the number of successes.
| Range: | n > 0 |
The CDF function for the negative binomial distribution returns the probability that an observation from a negative binomial distribution, with probability of success p and number of successes n, is less than or equal to m. The equation follows:
![[equation]](images/deqn47.gif)
Note: There are no location or scale parameters for the negative binomial distribution. ![[cautionend]](../../../../common/63294/HTML/default/images/cautend.gif)
Syntax |
CDF('NORMAL',x<, , >)
|
The CDF function for the normal distribution returns
the probability that an observation from the normal distribution, with the
location parameter
and the scale parameter
, is less than
or equal to x. The equation follows:
![[equation]](images/deqn48.gif)
Syntax |
| CDF('NORMALMIX',x,n,p,m,s) |
is the integer number of mixtures.
| Range: | n = 1, 2, ... |
is the n proportions,
, where
.
| Range: | p = 0, 1, ... |
is the n standard deviations
.
| Range: | s > 0 |
The CDF function for the normal mixture distribution returns the probability that an observation from a mixture of normal distribution is less than or equal to x. The equation follows:
![[equation]](images/deqn49.gif)
Note: There are no location or scale parameters for the normal mixture distribution. ![[cautionend]](../../../../common/63294/HTML/default/images/cautend.gif)
Syntax |
| CDF('PARETO',x,a<,k>) |
The CDF function for the Pareto distribution returns the probability that an observation from a Pareto distribution, with the shape parameter a and the scale parameter k, is less than or equal to x. The equation follows:
![[equation]](images/deqn50.gif)
Syntax |
| CDF('POISSON',n,m) |
The CDF function for the Poisson distribution returns the probability that an observation from a Poisson distribution, with mean m, is less than or equal to n. The equation follows:
![[equation]](images/deqn51.gif)
Note: There are no location or scale parameters for the Poisson distribution. ![[cautionend]](../../../../common/63294/HTML/default/images/cautend.gif)
Syntax |
| CDF('T',t,df<,nc>) |
The CDF function for the T distribution returns the probability that an observation from a T distribution, with degrees of freedom df and non-centrality parameter nc, is less than or equal to x. This function accepts non-integer degrees of freedom. If nc is omitted or equal to zero, the value returned is from the central T distribution. In the following equation, let $\nu$ = df and let $\delta$ = nc. The equation follows:
![[equation]](images/deqn52.gif)
Note: There are no location or scale parameters for the T distribution. ![[cautionend]](../../../../common/63294/HTML/default/images/cautend.gif)
Syntax |
| CDF('UNIFORM',x<,l,r>) |
is the numeric left location parameter.
| Default: | 0 |
is the numeric right location parameter.
| Default: | 1 |
| Range: | r > l |
The CDF function for the uniform distribution returns the probability that an observation from a uniform distribution, with the left location parameter l and the right location parameter r, is less than or equal to x. The equation follows:
![[equation]](images/deqn53.gif)
Note: The default values for l and r are 0 and 1, respectively. ![[cautionend]](../../../../common/63294/HTML/default/images/cautend.gif)
Syntax |
| CDF('WALD',x,d) |
| CDF('IGAUSS',x,d) |
The CDF function for the Wald distribution returns the probability that an observation from a Wald distribution, with shape parameter d, is less than or equal to x. The equation follows:
![[equation]](images/deqn54.gif)
where
(.) denotes the probability from the standard
normal distribution.
Note: There are no location or scale parameters for the Wald distribution. ![[cautionend]](../../../../common/63294/HTML/default/images/cautend.gif)
Syntax |
CDF('WEIBULL',x,a<, >)
|
The CDF function for the Weibull distribution returns
the probability that an observation from a Weibull distribution, with the
shape parameter a and the scale parameter
is less than
or equal to x. The equation follows:
![[equation]](images/deqn55.gif)
| Examples |
| See Also |
|
Functions: |
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.