powered by
Creates all the possibilities and then add them up. union_probability Assumes independence between the probabilities to calculate the final size.
union_probability
union_probability(p)length_probability(p, size)
length_probability(p, size)
A numeric value of the probability of the given size.
Numeric vector of probabilities.
Integer value of the size of the selected values.
multiply_probabilities() and length_set()
multiply_probabilities()
length_set()
length_probability(c(0.5, 0.75), 2) length_probability(c(0.5, 0.75, 0.66), 1) length_probability(c(0.5, 0.1, 0.3, 0.5, 0.25, 0.23), 2) union_probability(c(0.5, 0.1, 0.3))
Run the code above in your browser using DataLab