Binomial Distribution

These functions give you access to the Binomial distribution. For more information about Fathom's distribution functions, click here.

 

binomialProbability(x, n, p, min, max)

binomialCumulative(x, n, p, min, max)

binomialQuantile(x, n, p, min, max)

 n = number of trials
p
= probability of success [0,1]
min
= minimum
max
= maximum

The probability, cumulative, and quantile functions for the binomial distribution. The probability distribution is the probability that, in n trials, each with a chance p of success, you have exactly x successes.

The n parameter is required and must be >= 1. The value of p, if included, must be in [0,1]. If you include min or max, the distribution describes the probabilities of getting the n+1 different values, evenly spaced from min to max.

defaults: p = 0.5, min = 0, max = n.

You may also draw random values from this distribution:

randomBinomial(n, p, min, max)

A random value drawn from that distribution.

 

The "density" function here is a genuine probability function because the variable is discrete. As a result, it doesn't always plot (since for most values--nonintegers--the probability is zero). You can use round( ) to get the desired effect:

 

See also statistical functions (for mean( ) and its cousins).