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.
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.
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)