Skip to contents

The probability, under a Poisson with mean expected, of a count at least as far from it as observed on the side observed: P(N >= n) when n >= expected, P(N <= n) below it.

Usage

poisson_tail(expected, observed)

Arguments

expected

The Poisson mean.

observed

A whole number.

Value

A probability.

Examples

poisson_tail(3, 0) # exp(-3)
#> [1] 0.04978707