CDF Function

Returns a value from a cumulative probability distribution.

Categories:Probability
CAS
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.

Syntax

Required Arguments

distribution

is a character constant, variable, or expression that identifies the distribution. Valid distributions are as follows:

Distribution
Argument
Bernoulli
BERNOULLI
Beta
BETA
Binomial
BINOMIAL
Cauchy
CAUCHY
Chi-Square
CHISQUARE
Conway-Maxwell-Poisson
CONMAXPOI
Exponential
EXPONENTIAL
F
F
Gamma
GAMMA
Generalized Poisson
GENPOISSON
Geometric
GEOMETRIC
Hypergeometric
HYPERGEOMETRIC
Laplace
LAPLACE
Logistic
LOGISTIC
Lognormal
LOGNORMAL
Negative binomial
NEGBINOMIAL
Normal
NORMAL|GAUSS
Normal mixture
NORMALMIX
Pareto
PARETO
Poisson
POISSON
T
T
Tweedie
TWEEDIE
Uniform
UNIFORM
Wald (inverse Gaussian)
WALD|IGAUSS
Weibull
WEIBULL
NoteExcept for T, F, and NORMALMIX, you can minimally identify any distribution by its first four characters.

quantile

is a numeric constant, variable, or expression that specifies the value of the random variable.

Optional Argument

parameter-1, … , parameter-k

are optional constants, variables, or expressions that specify the values of shape, location, or scale parameters that are 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.

Bernoulli Distribution

CDF('BERNOULLI', x, p)
Arguments

x

is a numeric constant, variable, or expression that specifies a random variable.

p

is a numeric constant, variable, or expression that specifies a probability of success.

Range0 ≤ p ≤ 1
Details
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.
Note: There are no location or scale parameters for this distribution.

Beta Distribution

CDF('BETA', x, a, b <, l, r>)
Arguments

x

is a numeric constant, variable, or expression that specifies a random variable.

a

is a numeric constant, variable, or expression that specifies a shape parameter.

Rangea > 0

b

is a numeric constant, variable, or expression that specifies a shape parameter.

Rangeb > 0

l

is a numeric constant, variable, or expression that specifies the left location parameter.

Default0

r

is a numeric constant, variable, or expression that specifies the right location parameter.

Default1
Ranger > l
Details
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:
The following relationship applies to the preceding equation:
The following relationship applies to the preceding equation:

Binomial Distribution

CDF('BINOMIAL', m, p, n)
Arguments

m

is an integer random variable that counts the number of successes.

Rangem = 0, 1, ...

p

is a numeric constant, variable, or expression that specifies a probability of success parameter.

Range 0≤p ≤1

n

is a numeric constant, variable, or expression that specifies an integer parameter that counts the number of independent Bernoulli trials.

Rangen = 0, 1, ...
Details
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.
Note: There are no location or scale parameters for the binomial distribution.

Cauchy Distribution

CDF('CAUCHY', x <,θ> <, λ>)
Arguments

x

is a numeric constant, variable, or expression that specifies a random variable.

θ

is a numeric constant, variable, or expression that specifies a location parameter.

Default0

λ

is a numeric constant, variable, or expression that specifies a scale parameter.

Default1
Rangeλ > 0
Details
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.

Chi-Square Distribution

CDF('CHISQUARE', x, df <, nc>)
Arguments

x

is a numeric constant, variable, or expression that specifies a random variable.

df

is a numeric constant, variable, or expression that specifies a degrees of freedom parameter.

Rangedf > 0

nc

is a numeric constant, variable, or expression that specifies an optional noncentrality parameter.

Rangenc ≥ 0
Details
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 the noncentrality 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 equals d f and let lamda equals n c. The following equation describes the CDF function of the chi-square distribution:
In the equation, Pc(.,.) denotes the probability from the central chi-square distribution:
In the equation, Pg(y,b) is the probability from the gamma distribution given by the equation:

Conway-Maxwell-Poisson Distribution

CDF('CONMAXPOI', y, λ,ν)
Arguments

y

is a numeric constant, variable, or expression that specifies a nonnegative integer that represents counts data.

λ

is similar to the mean, as in the Poisson distribution.

ν

is a numeric constant, variable, or expression that specifies a dispersion parameter.

Details
The CDF function returns cumulative probability from 0 to y. For more information, see “Conway-Maxwell-Poisson” distribution in the PDF function .

Exponential Distribution

CDF('EXPONENTIAL', x <,λ>)
Arguments

x

is a numeric constant, variable, or expression that specifies a random variable.

λ

is a numeric constant, variable, or expression that specifies a scale parameter.

Default1
Rangeλ > 0
Details
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.

F Distribution

CDF('F', x, ndf, ddf <, nc>)
Arguments

x

is a numeric constant, variable, or expression that specifies a random variable.

ndf

is a numeric constant, variable, or expression that specifies a numerator degrees of freedom parameter.

Rangendf > 0

ddf

is a numeric constant, variable, or expression that specifies a denominator degrees of freedom parameter.

Rangeddf > 0

nc

is a numeric constant, variable, or expression that specifies a noncentrality parameter.

Rangenc ≥ 0
Details
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 the noncentrality parameter nc, is less than or equal to x. This function accepts noninteger 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 equals n d f, let nu 2 equals d d f, and let lamda equals n c. The following equation describes the CDF function of the F distribution:
In the equation, Pf(f,u1,u2) is the probability from the central F distribution with
and PB(x,a,b) is the probability from the standard beta distribution.
Note: There are no location or scale parameters for the F distribution.

Gamma Distribution

CDF('GAMMA', x, a <, λ>)
Arguments

x

is a numeric constant, variable, or expression that specifies a random variable.

a

is a numeric constant, variable, or expression that specifies a shape parameter.

Rangea > 0

λ

is a numeric constant, variable, or expression that specifies a scale parameter.

Default1
Rangeλ > 0
Details
The CDF function for the gamma distribution returns the probability that an observation from a gamma distribution, with the shape parameter a and the scale parameter λ, is less than or equal to x.

Generalized Poisson Distribution

CDF(‘GENPOISSON’, x, θ, η)
Arguments

x

is a numeric constant, variable, or expression that specifies an integer random variable.

θ

is a numeric constant, variable, or expression that specifies a shape parameter.

Range≤5 and >0

η

is a numeric constant, variable, or expression that specifies a shape parameter.

Range≥0 and <0.95
TipWhen η =0, the distribution is the Poisson distribution with a mean and variance of θ. When η>0, the mean is theta division-sign left-parenthesis 1 minus eta right-parenthesis and the variance is theta division-sign left-parenthesis 1 minus eta right-parenthesis cubed.
Details
The probability mass function for the generalized Poisson distribution follows:
If η =0, then the generalized Poisson distribution becomes the standard Poisson distribution with the shape parameter θ.

Geometric Distribution

CDF('GEOMETRIC', m, p)
Arguments

m

is a numeric random variable that specifies the number of failures.

Rangem = 0, 1, ...

p

is a numeric constant, variable, or expression that specifies a probability of success.

Range0 ≤ p ≤ 1
Details
The CDF function for the geometric distribution returns the probability that an observation from a geometric distribution, with the parameter p, is less than or equal to m.
Note: There are no location or scale parameters for this distribution.

Hypergeometric Distribution

CDF('HYPER', x, N, R, n <, o>)
Arguments

x

is a numeric constant, variable, or expression that specifies an integer random variable.

N

is a numeric constant, variable, or expression that specifies an integer population size parameter.

RangeN = 1, 2, ...

R

is a numeric constant, variable, or expression that specifies an integer number of items in the category of interest.

RangeR = 0, 1, ..., N

n

is a numeric constant, variable, or expression that specifies an integer sample size parameter.

Rangen = 1, 2, ..., N

o

is a numeric constant, variable, or expression that specifies an optional numeric odds ratio parameter.

Rangeo > 0
Details
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.

Laplace Distribution

CDF('LAPLACE', x <,θ, λ>)
Arguments

x

is a numeric constant, variable, or expression that specifies a random variable.

θ

is a numeric constant, variable, or expression that specifies a location parameter.

Default0

λ

is a numeric constant, variable, or expression that specifies a scale parameter.

Default1
Rangeλ > 0
Details
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.

Logistic Distribution

CDF('LOGISTIC', x <, θ, λ>)
Arguments

x

is a numeric constant, variable, or expression that specifies a random variable.

θ

is a numeric constant, variable, or expression that specifies a location parameter.

Default0

λ

is a numeric constant, variable, or expression that specifies a scale parameter.

Default1
Rangeλ > 0
Details
The CDF function for the Logistic distribution returns the probability that an observation from a Logistic distribution, with the location parameter θ and the scale parameter λ, is less than or equal to x.

Lognormal Distribution

CDF('LOGNORMAL', x <, θ, λ>)
Arguments

x

is a numeric constant, variable, or expression that specifies a random variable.

θ

is a numeric constant, variable, or expression that specifies a log scale parameter. e(θ) is a scale parameter.

Default0

λ

is a numeric constant, variable, or expression that specifies a shape parameter.

Default1
Rangeλ > 0
Details
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.

Negative Binomial Distribution

CDF('NEGBINOMIAL', m, p, n)
Arguments

m

is a numeric constant, variable, or expression that specifies a positive integer random variable that counts the number of failures.

Rangem = 0, 1, ...

p

is a numeric constant, variable, or expression that specifies a probability of success.

Range0 ≤ p ≤ 1

n

is a numeric constant, variable, or expression that specifies a value that counts the number of successes.

Rangen > 0
Details
The CDF function for the negative binomial distribution returns the probability that an observation from a negative binomial distribution, with the probability of success p and the number of successes n, is less than or equal to m.
Note: There are no location or scale parameters for the negative binomial distribution.

Normal Distribution

CDF('NORMAL', x <, θ, λ>)
Arguments

x

is a numeric constant, variable, or expression that specifies a random variable.

θ

is a numeric constant, variable, or expression that specifies a location parameter.

Default0

λ

is a numeric constant, variable, or expression that specifies a scale parameter.

Default1
Rangeλ > 0
Details
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.

Normal Mixture Distribution

CDF('NORMALMIX', x, n, p, m, s)
Arguments

x

is a numeric constant, variable, or expression that specifies a random variable.

n

is a numeric constant, variable, or expression that specifies the number of mixtures.

Rangen = 1, 2, ...

p

is a numeric constant, variable, or expression that specifies the n proportions, p 1 comma p 2 comma ellipsis comma p Subscript n Baseline, where normal upper Sigma Underscript i equals 1 Overscript i equals n Endscripts p Subscript i Baseline equals 1.

Rangep = 0, 1, ...

m

is a numeric constant, variable, or expression that specifies the n means m 1 comma m 2 comma ellipsis comma m Subscript n Baseline.

s

is a numeric constant, variable, or expression that specifies the n standard deviations s 1 comma s 2 comma ellipsis comma s Subscript n Baseline.

Ranges > 0
Details
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.
Weights for the Normal Mixture distribution must be nonnegative. If the sum of the weights does not equal 1, then the weights are treated as relative weights and adjusted so that the sum equals 1.
Note: There are no location or scale parameters for the Normal Mixture distribution.

Pareto Distribution

CDF('PARETO', x, a <, k>)
Arguments

x

is a numeric constant, variable, or expression that specifies a random variable.

a

is a numeric constant, variable, or expression that specifies a shape parameter.

Rangea > 0

k

is a numeric constant, variable, or expression that specifies a scale parameter.

Default1
Rangek > 0
Details
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.

Poisson Distribution

CDF('POISSON', n, m)
Arguments

n

is a numeric constant, variable, or expression that specifies an integer random variable.

Rangen = 0, 1, ...

m

is a numeric constant, variable, or expression that specifies a mean parameter.

Rangem > 0
Details
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.
Note: There are no location or scale parameters for the Poisson distribution.

T Distribution

CDF('T', t, df <, nc>)
Arguments

t

is a numeric constant, variable, or expression that specifies a random variable.

df

is a numeric constant, variable, or expression that specifies the degrees of freedom.

Rangedf > 0

nc

is a numeric constant, variable, or expression that specifies an optional noncentrality parameter.

Details
The CDF function for the T distribution returns the probability that an observation from a T distribution, with degrees of freedom df and the noncentrality parameter nc, is less than or equal to x. This function accepts noninteger 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 equals d f and let delta equals n c.
Note: There are no location or scale parameters for the T distribution.

Tweedie Distribution

CDF (‘TWEEDIE’, y, p <, µ, φ>)
Arguments

y

is a numeric constant, variable, or expression that specifies a random variable.

Rangey ≥0
NotesThis argument is required.
When p>1, y is numeric. When p=1, y is an integer.

p

is a numeric constant, variable, or expression that specifies the power parameter.

Rangep ≥1
NoteThis argument is required.

µ

is a numeric constant, variable, or expression that specifies the mean parameter.

Default1
Rangeµ>0

φ

is a numeric constant, variable, or expression that specifies the dispersion parameter.

Default1
Rangeφ>0
Details
The CDF function for the Tweedie distribution returns an exponential dispersion model with variance and mean related by the equation varianceequals phi times mu Superscript p.
The following relationship applies to the preceding equation:
Note: The accuracy of computed Tweedie probabilities is highly dependent on the location in parameter space. Ten digits of accuracy are usually available except when p is near 2 or phi is near 0. In that case, the accuracy might be as low as six digits.

Uniform Distribution

CDF('UNIFORM', x <, l, r>)
Arguments

x

is a numeric constant, variable, or expression that specifies a random variable.

l

is a numeric constant, variable, or expression that specifies the left location parameter.

Default0

r

is a numeric constant, variable, or expression that specifies the right location parameter.

Default1
Ranger > l
Details
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.
Note: The default values for l and r are 0 and 1, respectively.

Wald (Inverse Gaussian) Distribution

CDF('WALD', x, λ <, µ>)
CDF('IGAUSS', x, λ <, µ>)
Arguments

x

is a numeric constant, variable, or expression that specifies a random variable.

λ

is a numeric constant, variable, or expression that specifies a shape parameter.

Rangeλ > 0

µ

is a numeric constant, variable, or expression that specifies the mean parameter.

Default1
Rangeµ > 0
Details
The CDF function for the Wald distribution returns the probability that an observation from a Wald distribution, with the shape parameter λ, is less than or equal to x.
In the equation, normal upper Phi(.) is the standard normal cumulative distribution function. When x≤0, CDF is 0.

Weibull Distribution

CDF('WEIBULL', x, a <, λ>)
Arguments

x

is a numeric constant, variable, or expression that specifies a random variable.

a

is a numeric constant, variable, or expression that specifies a shape parameter.

Rangea > 0

λ

is a numeric constant, variable, or expression that specifies a scale parameter.

Default1
Rangeλ > 0
Details
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.

Example

The following SAS statements produce these results:
SAS Statement
Result
y=cdf('BERN', 0, .25);
0.75
y=cdf('BETA', 0.2, 3, 4);
0.09888
y=cdf('BINOM', 4, .5, 10);
0.37695
y=cdf('CAUCHY', 2);
0.85242
y=cdf('CHISQ', 11.264, 11);
0.57858
y=cdf('CONMAXPOI', 5, 2.3, .4);
0.2445411535
y=cdf('EXPO', 1);
0.63212
y=cdf('F', 3.32, 2, 3);
0.82639
y=cdf('GAMMA', 1, 3);
0.080301
y=cdf('GENPOISSON', 9, 1, .7);
0.906162963
y=cdf('HYPER', 2, 200, 50, 10);
0.52367
y=cdf('LAPLACE', 1);
0.81606
y=cdf('LOGISTIC', 1);
0.73106
y=cdf('LOGNORMAL', 1);
0.5
y=cdf('NEGB', 1, .5, 2);
0.5
y=cdf('NORMAL', 1.96);
0.97500
y=cdf('NORMALMIX',2.3, 3,.33, .33, .34, 
       .5, 1.5, 2.5, .79, 1.6, 4.3);
 
0.7181
y=cdf('PARETO', 1 ,1);
0
y=cdf('POISSON', 2, 1);
0.91970
y=cdf('T', .9, 5);
0.79531
y=cdf('TWEEDIE', .8, 5);
0.5917629164
y=cdf('UNIFORM', 0.25);
0.25
y=cdf('WALD', 1, 2);
0.62770
y=cdf('WEIBULL', 1, 2);
0.63212
Last updated: March 16, 2017