The "binomial
" package provides functions to explore the binomial distribution.
- bin_variable()
will list the parameters of the binomial distribution.
- bin_choose()
will provide the number of combinations for a particular number of successes to occur in a set number of trials.
- bin_probability()
will calculate the probability of getting the number of successes specified in the number of desired trials
- bin_distribution()
will calculate probabilities of the number of successes in a fixed number of random trials performed under identical conditions
- bin_cumulative()
calculates probability distribution and the cumulative probabilities
- plot()
will plot the bin_distribution()
histogram or plot the graph of binomial cumulative distribution of bin_cumulative()
- summary()
will provide the summary of bin_variable()
- where it will detail the parameters and measurements of a binomial distribution
The "binomial
" package also includes other functionalities to examine the properties of the binomial distribution, which includes:
- bin_mean()
- bin_variance()
- bin_mode()
- bin_skewness()
- bin_kurtosis()
This package has been developed to analyze binomial random variables.
library(binomial)
#setting our binomial random variable
bin1 <- bin_variable(trials = 10, prob = 0.5)
bin1
#summary of the binomial random variable
summary(bin1)
#the number of combinations where 3 successes can occur in 5 trials
bin_choose(n = 5, k = 3)
#the binomial distribution
bin2 <- bin_distribution(trials = 10, prob = 0.5)
bin2
#plotting the histogram of the bin2
plot(bin2)
#mean of the binomial distribution
bin_mean(trials = 10, prob = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.