Probability mass function of the binomial distribution. Equivalent to R's dbinom(x, size, prob, log = FALSE).
dbinom(x, size, prob, log = FALSE)
Value(s) at which to evaluate: a number, number[] or Float64Array. The result has the same shape.
number[]
Float64Array
Number of trials.
Probability of success on each trial.
log (see DensityOptions).
log
The probability (or log probability).
dbinom(3, 10, 0.5); // 0.1171875dbinom([0, 5], 10, 0.5); // [0.0009765625, 0.24609375] Copy
dbinom(3, 10, 0.5); // 0.1171875dbinom([0, 5], 10, 0.5); // [0.0009765625, 0.24609375]
Probability mass function of the binomial distribution. Equivalent to R's
dbinom(x, size, prob, log = FALSE).