Calculating probabilities with dbinom
The code you ended up with in the last exercise is displayed.
This exercise is part of the course
Fundamentals of Bayesian Data Analysis in R
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# 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