Given several independent probabilities of an event, return the final probability of the event.

combine_probs(...)

Arguments

...

Probability vectors.

Value

A probability vector.

Details

This function is only correct if the probabilities are independent!

Examples

(p1 <- runif(5))
#> [1] 0.080750138 0.834333037 0.600760886 0.157208442 0.007399441
(p2 <- runif(5))
#> [1] 0.4663935 0.4977774 0.2897672 0.7328820 0.7725215
combine_probs(p1, p2)
#> [1] 0.5094823 0.9167983 0.7164473 0.7748752 0.7742047