Sampling number of visitors: Binomial distribution

column=450x

column=450x

The probable number of visitors you’ve got earlier assumes that the ads get clicked on exactly 10% of the time. But, are you sure this is a good assumption? Click-through rate could be as low as 0% or as high as 20%. This uncertainty about the underlying proportion of clicks can be modeled in statistical terms with a uniform probability distribution to reflect the range between 0% and 20%. So here let’s incorporate this other unknown parameter to the model. This really changes the game! Getting no clicks at all becomes way more real if you add the uncertain click-through rate to the model.

Adding a prior

column=450x

Once you actually ran your ad campaign, 13 people clicked and visited your site when the ad was shown a 100 times. This new information can now be used to update the Bayesian model and see how it influences the proportion of clicks you’re likely to get next.

column=450x

Thanks to this updated parameter, now you can predict how many visitors you would get if you reran the ad campaign. Specifically, you are replacing the prior knowledge you had with the updated posterior (which is now your new prior). It now looks pretty likely that there would be more than 5 visitors following the campaign, with a probability over 97%.

[1] 0.9877997

Changing the model: Poisson distribution

What if the offer refers to clicks per day instead of clicks per ad? When you put up a banner on a site you got 19 clicks in a day, so how many daily clicks should you expect this banner to generate on average? This type of analytical data question requires a Poisson distribution to model the mean number of visitors per day, based on a prior uniform distribution of 0 to 80 clicks per day possible. With this approach, the average number of clicks you’d most probably get is somewhere between 15 and 25. As an example, it now looks like there is over 80% probability to have more than 15 daily clicks following the banner approach.

[1] 0.81344