BaşlayınÜcretsiz başlayın

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.

Bu egzersiz, kursun bir parçasıdır

Fundamentals of Bayesian Data Analysis in R

Kursa Göz Atın

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

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)
Kodu Düzenle ve Çalıştır