Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

multiply_probabilities

Probability of a vector of probabilities


Description

Calculates the probability that all probabilities happened simultaneously. independent_probabilities just multiply the probabilities of the index passed.

Usage

multiply_probabilities(p, i)

independent_probabilities(p, i)

Arguments

p

Numeric vector of probabilities.

i

Numeric integer index of the complementary probability.

Value

A numeric value of the probability.

See Also

Examples

multiply_probabilities(c(0.5, 0.1, 0.3, 0.5, 0.25, 0.23), c(1, 3))
independent_probabilities(c(0.5, 0.1, 0.3, 0.5, 0.25, 0.23), c(1, 3))

BaseSet

Working with Sets the Tidy Way

v0.0.16
MIT + file LICENSE
Authors
Lluís Revilla Sancho [aut, cre] (<https://orcid.org/0000-0001-9747-2570>), Zebulun Arendsee [rev], Jennifer Chang [rev]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.