Calculating probabilities with dbinom
The code you ended up with in the last exercise is displayed.
Diese Übung ist Teil des Kurses
Fundamentals of Bayesian Data Analysis in R
Interaktive Übung
Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.
# Change the code to calculate probability distribution of n_visitors
n_ads_shown <- 100
proportion_clicks <- 0.1
n_visitors <- 13
prob <- dbinom(n_visitors,
size = n_ads_shown, prob = proportion_clicks)
prob