Using mathematical functions 163
normald_icdf Inverse cumulative normal distribution function. Returns
the cumulative normal distribution value associated with
the lower-tail probability, p, given the mean, μ and
standard deviation, σ of a normal distribution. If only a
single value (x) is supplied, assumes μ=0 and σ=1.
normald_cdf([μ, σ,] p)
Example:
normald_icdf(0, 1, 0.841344746069) returns 1.
binomial Binomial probability density function. Computes the
probability of k successes out of n trials, each with a
probability of success, p. Returns Comb(n,k) if there is no
third argument. Note that n and k are integers with .
binomial(n, k, p)
Example:
binomial(4, 2, 0.5) returns 0.375.
binomial_cdf Cumulative binomial distribution function. Returns the
probability of k or fewer successes out of n trials, with a
probability of success, p for each trial. Note that n and k
are integers with .
binomial_cdf(n, p, k)
Example:
binomial_cdf(4, 0.5, 2) returns 0.6875.
binomial_icdf Inverse cumulative binomial distribution function. Returns
the number of successes, k out of n trials, each with a
probability of p, such that the probability of k or fewer
successes is q.
binomial_icdf(n, p, q)
Example:
binomial_icdf(4, 0.5, 0.6875) returns 2.