Summary
Binomial probability density function (PDF).
Unit
Probabilities
Declaration
Procedure BinomPDF(X: TDenseMtxVec; n: Integer; P: TSample; Res: TDenseMtxVec);
Description
Calculates the binomial PDF for vector X using the parameter n. The results are stored in vector Res. The Res Length and Complex properties are adjusted automatically. If vector X is complex, an exception is raised.
Declaration
Function BinomPDF(x: Integer; n: integer; p: TSample): TSample;
| Parameter | Description |
|---|
| x | Defines distribution parameter, valid on [0,n] closed interval. |
| n | Defines number of trials. n must be a positive integer. |
| p | Defines success probability. p must lie on the [0,1] closed interval. |
Result
the binomial probability density function (PDF). The parameter n must be a positive integer and parameter p (probability) must lie on the interval [0,1]. The result of BinomPDF is the probability of observing x successes in n independent trials and where the probability of success in any given trial is p.
Note:To recognize a situation that involves a binomial random variable, following assumptions must be met:
- The experiment consists of a fixed number, n, of Bernoulli trials that result in either success or failure.
- The trials are identical and independent and therefore the probability of success p, remains the same from trial to trial.
- The random variable x denotes the number of successes obtained in the n trials.
Description
Calculates the binomial probability density function. The binomial probability density function is defined by the following equation:

where q=1-p and I is the discrete interval [0,1,...n] on which the binomial CDF is not zero.
Parameters:Support: x: [0,n]
Categories
Discrete probabilities| Copyright 2008 Dew Research |
http://www.dewresearch.com