bin_probability: Bin Probability

Description Usage Arguments Value Examples

Description

A function to calculate the probability of getting k successes in n trials given p probability.

Usage

1
bin_probability(success, trials, prob)

Arguments

success

an integer or vector of numbers, the value of successes

trials

an integer, the number of trials

prob

an integer of the probability of success for one trial

Value

a double, the probability of getting the specified number of successes within given trials assuming the give probability of success

Examples

1
bin_probability(4,7,0.5)

Dyang11/binomial documentation built on June 1, 2019, 4:56 a.m.