coin {clttools} | R Documentation |
Mean and probability of flipping fair or loaded coin
coin(n, prob = NULL)
n |
number of trials |
prob |
probability assigned to each possible outcome |
The default probabilty equals to 1/n. All the assigned probabilites must between 0 and 1.
Mean value and corresponding probabilities for all possible outcomes.
coin(n = 4) coin(6, c(0.1, 0.9))