Learn R Programming

BaseSet (version 0.9.0)

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)

Value

A numeric value of the probability.

Arguments

p

Numeric vector of probabilities.

i

Numeric integer index of the complementary probability.

See Also

length_probability()

Examples

Run this code
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))

Run the code above in your browser using DataLab