Skip to contents

n risks, each claiming with probability p. Supports pmf(), cdf(), mean(), variance(), quantile() and draws().

Usage

binomial_count(n, p)

Arguments

n

Number of trials, a non-negative whole number.

p

Claim probability in [0, 1).

Value

A binomial_count object, which inherits from distribution.

See also

claim_count() to choose a count by its dispersion.

Examples

n <- binomial_count(10, 0.3)
pmf(n, 0:3)
#> [1] 0.02824752 0.12106082 0.23347444 0.26682793
mean(n)
#> [1] 3