Visualize how changes in number of trials and the probability of success affect the shape of the binomial distribution. Compute & visualize probability from a given quantile and quantiles out of given probability.

dist_binom_plot(n, p)

dist_binom_prob(n, p, s, type = c("lower", "upper", "exact", "interval"))

dist_binom_perc(n, p, tp, type = c("lower", "upper"))

## Arguments

n Number of trials. Aggregate probability. Number of success. Lower/upper/exact/interval. Probability of success in a trial.

## Value

A list containing the following components:

avg

Mean of the binomial distribution,

stdev

Standard deviation of the binomial distribution.

prob

Probability of success.

Binomial
# visualize binomial distribution
dist_binom_plot(10, 0.3)#> Warning: dist_binom_plot() has been soft deprecated and will be removed in the next version of descriptr. Please use the vistributions package for visualizing probability distributions.
dist_binom_prob(10, 0.3, 4, type = 'exact')#> Warning: dist_binom_prob() has been soft deprecated and will be removed in the next version of descriptr. Please use the vistributions package for visualizing probability distributions.dist_binom_prob(10, 0.3, 4, type = 'lower')#> Warning: dist_binom_prob() has been soft deprecated and will be removed in the next version of descriptr. Please use the vistributions package for visualizing probability distributions.dist_binom_prob(10, 0.3, 4, type = 'upper')#> Warning: dist_binom_prob() has been soft deprecated and will be removed in the next version of descriptr. Please use the vistributions package for visualizing probability distributions.dist_binom_prob(10, 0.3, c(4, 6), type = 'interval')#> Warning: dist_binom_prob() has been soft deprecated and will be removed in the next version of descriptr. Please use the vistributions package for visualizing probability distributions.
dist_binom_perc(10, 0.5, 0.05)#> Warning: dist_binom_perc() has been soft deprecated and will be removed in the next version of descriptr. Please use the vistributions package for visualizing probability distributions.dist_binom_perc(10, 0.5, 0.05, "upper")#> Warning: dist_binom_perc() has been soft deprecated and will be removed in the next version of descriptr. Please use the vistributions package for visualizing probability distributions.