Exercise

Fit the model using another dataset

Let's fit the binomial model to both the video ad data (13 out of 100 clicked) and the new text ad data (6 out of a 100 clicked).

Instructions 1/2

undefined XP
    1
    2

To the right, you again have the model you developed in the last chapter. Here posterior_video is the posterior proportion of clicks for the video ad data.

  • Add a row where you calculate posterior_text in the same way as posterior_video but using the text ad data instead.
  • Plot posterior_text as a histogram just as posterior_video is plotted.