A/B testing

Statistical Thinking in Python (ตอนที่ 2)

Justin Bois

Lecturer at the California Institute of Technology

การออกแบบใหม่มีประสิทธิภาพหรือไม่?

ch4-1.002.png

Statistical Thinking in Python (ตอนที่ 2)

การออกแบบใหม่มีประสิทธิภาพหรือไม่?

ch4-1.003.png

Statistical Thinking in Python (ตอนที่ 2)

สมมติฐานว่าง

  • อัตราการคลิกผ่านไม่ได้รับผลจากการออกแบบใหม่
Statistical Thinking in Python (ตอนที่ 2)

การทดสอบ Permutation สำหรับการคลิกผ่าน

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)
Statistical Thinking in Python (ตอนที่ 2)

การทดสอบ Permutation สำหรับการคลิกผ่าน

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
Statistical Thinking in Python (ตอนที่ 2)

A/B test

  • องค์กรใช้เพื่อตรวจสอบว่าการเปลี่ยนแปลงกลยุทธ์ให้ผลลัพธ์ที่ดีขึ้นหรือไม่
Statistical Thinking in Python (ตอนที่ 2)

สมมติฐานว่างของ A/B test

  • ค่าสถิติทดสอบไม่ได้รับผลจากการเปลี่ยนแปลง
Statistical Thinking in Python (ตอนที่ 2)

มาฝึกกันเถอะ!

Statistical Thinking in Python (ตอนที่ 2)

Preparing Video For Download...