Binomial CDF VI
- Updated2025-07-30
- 2 minute(s) read
Computes the discrete cumulative distribution function (CDF), or the probability that the random variate X, where X describes the selected distribution type, takes on a value less than or equal to x. You must manually select the polymorphic instance to use.

Inputs/Outputs
x
—
x is the number of successes and must be in the interval [0,n].
n
—
n is the number of independent Bernoulli trials.
p
—
p is the probability of success of each Bernoulli trial and must be in the interval [0,1].
cdf(x)
—
cdf(x) returns the cumulative probability that the random variate X, where X describes the selected distribution type, has a value less than or equal to x.
error
—
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
When you use the Bernoulli instance of this function, X represents a Bernoulli-distributed variate with one of two possible outcomes: success (x = 1) or failure (x = 0). The Bernoulli probability parameter p is the probability of success of a single trial or experiment.
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Mathematics\Probability and Statistics\Display Discrete Probability Distributions.vi
x
—
n
—
cdf(x)
—
error
—