Calculate the probability of the occurrence of at least K-streaks out of N-events given the odds of stated streak.
Arguments
- N
integer, total number of coin tossers.
- K
integer, number of streaks.
- p
number, value between 0 & 1 representing the probability of a single streak.
Examples
prob_of_at_least_k(
N = 8,
K = 1,
p = odds_of_streak(num_coins = 5, min_heads = 3, prob_heads = 0.5)
)
#> [1] 0.8998871