Slide 19
Slide 19 text
Re:たくさんやってみる(A/A)
simulate_test <- function(i) {
1
control <- get_control_data(95) %>%
2
summarise(imp = sum(impressions),
3
click = sum(clicks),
4
.by = user_id)
5
treat <- get_control_data(95) %>%
6
summarise(imp = sum(impressions),
7
click = sum(clicks),
8
.by = user_id)
9
mean_c <- sum(control$click)/sum(control
10
mean_t <- sum(treat$click)/sum(treat$imp
11
var_c <- var_delta(control$click, contro
12
var_t <- var_delta(treat$click, treat$im
13
tmp <- delta_test(mean_c, mean_t, var_c,
14
tmp$p_value
15
}
16
17
p_values_aa <- future_map_dbl(1:1000,
18
simulate_test,
19
.options = furr
20
,.progress = TR
21
概ね一様分布していそうに見える
少なくともさっきよりはマシ