Skip to contents

P(all of k independent events, each of probability p) = p^k. The k = 2 and k = 3 cases are the pairwise and triple intersection terms of the book's inclusion-exclusion dice example.

Usage

PiidInt(p, k = 2)

Arguments

p

common event probability, in [0, 1].

k

number of events, >= 0.

Value

list(p, k, p_intersection).

References

Morin, D. J. (2016). Probability: For the Enthusiastic Beginner. Createspace. Eqs. (2.93)-(2.96).

Examples

PiidInt(1 / 6, 3)$p_intersection
#> [1] 0.00462963