Adding a prior to the model
You're not so sure that your ad will get clicked on exactly 10% of the time. Instead of assigning proportion_clicks a single value you are now going to assign it a large number of values drawn from a probability distribution.
Este exercício faz parte do curso
Fundamentals of Bayesian Data Analysis in R
Exercício interativo prático
Experimente este exercício completando este código de exemplo.
n_samples <- 100000
n_ads_shown <- 100
# Update proportion_clicks
proportion_clicks <- 0.1
n_visitors <- rbinom(n = n_samples, size = n_ads_shown, prob = proportion_clicks)