Description Usage Arguments Value
Compute the probability of heads with each flip given a linear change model.
1 | prob_heads_linear(nflips, preflip_prob = 0.5, slope = 0.1)
|
nflips |
Total number of flips (heads and tails) |
preflip_prob |
Probability of heads before the coin is handled |
slope |
How much the probability changes each time the coin is flipped |
Vector of probability of heads for the first flip, second flip, etc.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.