Binomial distribution

Revision as of 01:42, 28 January 2016 by Bbecane (talk | contribs)


Binomial(n, p)

Consider an event—such as a coin coming down heads—that can be true or false in each trial—or each toss—with probability «p» -- it has a Bernoulli distribution. A binomial distribution describes the number of times an event is true -- e.g., the coin is heads -- in «n» independent trials—or tosses—where the event occurs with probability «p» on each trial.

The Binomial distribution is a non-negative discrete distribution where the probability of outcome k is given by

[math]\displaystyle{ P_{n,p}(k) = \left(\begin{array}{c}n\\k\end{array}\right) p^k (1-p)^{n-k} }[/math]

This analytic probability is computed by the library function Prob_Binomial, and the cumulative probability by CumBinomial.

The distribution has a Mean of n*p and a Variance of n*p*(1-p).

Example

An example of a binomial distribution:

BinomialDistribution.png

Library

Distributions

See Also

Comments


Marksmith

101 months ago
Score 0
It would still be useful to have a built-in function, say Binomial(n,p,k1,k2) that samples from the conditional Binomial distribution X|k1<=X<=k2. UDFs for the conditional Poisson are easier to write and operate quicker than for the conditional Binomial.

Lchrisman

78 months ago
Score 0
Mark -- Try: Truncate( Binomial(n, p), k1, k2 )

You are not allowed to post comments.