# visualize binomial distribution
binom_plot(10, 0.3)
# compute\/visualize probability from a given quantile
binom_prob(10, 0.3, 4, type = 'exact')
binom_prob(10, 0.3, 4, type = 'lower')
binom_prob(10, 0.3, 4, type = 'upper')
binom_prob(10, 0.3, c(4, 6), type = 'interval')
# compute\/visualize quantiles out of given probability
binom_perc(10, 0.5, 0.05)
binom_perc(10, 0.5, 0.05, "upper")
Run the code above in your browser using DataLab