prob_heads_exponential_decay: Compute the probability of heads with each flip given an...

Description Usage Arguments Value

View source: R/flipped.R

Description

Compute the probability of heads with each flip given an exponential model The model assumes 100% chance of heads before a coin is picked up and it drops exponentially each time the coin is handled.

Usage

1
prob_heads_exponential_decay(nflips, halflife)

Arguments

nflips

Total number of flips (heads and tails)

halflife

How many flips to get to 50% heads

Value

Vector of probability of heads for the first flip, second flip, etc.


bomeara/flipped documentation built on Dec. 19, 2021, 10:47 a.m.