Test A/B

Pensiero statistico in Python (Parte 2)

Justin Bois

Lecturer at the California Institute of Technology

Il tuo redesign è efficace?

ch4-1.002.png

Pensiero statistico in Python (Parte 2)

Il tuo redesign è efficace?

ch4-1.003.png

Pensiero statistico in Python (Parte 2)

Ipotesi nulla

  • Il CTR non è influenzato dal redesign
Pensiero statistico in Python (Parte 2)

Test di permutazione dei click-through

import numpy as np
# clickthrough_A, clickthrough_B: arr. of 1s and 0s

def diff_frac(data_A, data_B): frac_A = np.sum(data_A) / len(data_A) frac_B = np.sum(data_B) / len(data_B) return frac_B - frac_A
diff_frac_obs = diff_frac(clickthrough_A, clickthrough_B)
Pensiero statistico in Python (Parte 2)

Test di permutazione dei click-through

perm_replicates = np.empty(10000)
for i in range(10000):
     perm_replicates[i] = permutation_replicate(
                clickthrough_A, clickthrough_B, diff_frac)

p_value = np.sum(perm_replicates >= diff_frac_obs) / 10000
p_value
0.016
Pensiero statistico in Python (Parte 2)

Test A/B

  • Usato per verificare se un cambio di strategia dà risultati migliori
Pensiero statistico in Python (Parte 2)

Ipotesi nulla di un test A/B

  • La statistica del test non è influenzata dal cambiamento
Pensiero statistico in Python (Parte 2)

Passiamo alla pratica !

Pensiero statistico in Python (Parte 2)

Preparing Video For Download...