1 of 9

Bayesian Reasoning

In Data Science

Cristiano Fanelli

22/11/2022 - Lectures 21

2 of 9

Outline

2

  • Bayesian A/B Testing

3 of 9

Bayesian A/B Testing

  • Bayesian A/B Testing gained a lot of popularity in the last few years
    • Simple and easy to understand
    • Allows to calculate the probability that a “treatment” is better than a “control” (A/B testing)
    • It performs better on small sample size compared to frequentist approaches: see [2], where experiments show the required sample size to make the “right” decision can be reduced by 75%

  • A/B testing
    • Consists of a randomized experiment that usually involves two variants
    • (Airbnb, Amazon, Booking.com, Facebook, Google, LinkedIn, Lyft, Microsoft, Netflix, Twitter, Uber, and Stanford University)

3

4 of 9

Bayesian A/B Testing

  • Main steps (see Notebook):
    • Select distribution based on your metric of interest.
    • Calculate prior
    • Run experiment with Monte Carlo simulations
  • Bayesian Statistics (see Notebook):
    • Probability of being best
    • Treatment Lift
    • Expected Losss

4

5 of 9

Considerations

  • If you choose an effective prior, Bayesian A/B testing requires a smaller sample size so you can get results faster.
  • There is a tradeoff though: Bayesian methods are more computationally intensive than frequentist methods.

5

6 of 9

From Class

Uniform

6

7 of 9

Backup

8 of 9

Useful References

8

9 of 9

References of our course

9

https://cfteach.github.io/brds/referencesmd.html