View source: R/get_likelihood.R
get_likelihood | R Documentation |
Is just binomial distributions under the hood
get_likelihood(probs, n_buckets = Inf)
probs |
a vector of the probabilities of all the independent events |
n_buckets |
the number of buckets to break the 0 to 1 probability space in and combine events falling within that bucket to speed up the processing. |
dt_success_probs = get_likelihood(
# probs = runif(100),
probs = rep(.5,100),
n_buckets = Inf
)
dt_success_probs[,plot(successes,pdf)]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.