R 中的 A/B 測試
Lauryn Burleigh
Data Scientist
只有在以下情況才用 A/B:
A/B 測試重點
normaldist <- rnorm(10000)
datasample <- sample(normaldist, 10)
ggplot() +
aes(datasample) +
geom_histogram(bins = 8)




計算家族錯誤率
1 - (1-0.05)^101 - (0.95)^10
0.40126306076
40%
| ID | 喜好度 [1-10] |
|---|---|
| 01 | 1 |
| 02 | 10 |
| 03 | 9 |
mean(c(1, 10))
5.5
mean(c(1, 10, 9))
6.6666
R 中的 A/B 測試