A/B Testing in R
Lauryn Burleigh
Data Scientist
Only use A/B if...
A/B test considerations
normaldist <- rnorm(10000)
datasample <- sample(normaldist, 10)
ggplot() +
aes(datasample) +
geom_histogram(bins = 8)
Calculate family-wise error rate
1 - (1-0.05)^10
1 - (0.95)^10
0.40126306076
40%
ID | Enjoyment [1-10] |
---|---|
01 | 1 |
02 | 10 |
03 | 9 |
mean(c(1, 10))
5.5
mean(c(1, 10, 9))
6.6666
A/B Testing in R