Aan de slagGa gratis aan de slag

Calculating probabilities with dbinom

The code you ended up with in the last exercise is displayed.

Deze oefening maakt deel uit van de cursus

Fundamentals of Bayesian Data Analysis in R

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# 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
Code bewerken en uitvoeren