狠狠撸

狠狠撸Share a Scribd company logo
A/B Testing at SweetIM – the
Importance of Proper Statistical
Analysis
Slava Borodovsky
SweetIM
slavabo@gmail.com
Saharon Rosset
Tel Aviv University
saharon@post.tau.ac.il
About SweetIM
? Provides interactive content and search services for IMs and social
networks.
? More than 1,000,000 monthly new users.
? More than 100,000,000 monthly search queries.
? Every new feature and change in product pass A/B testing.
? Data driven decision making process is based on A/B testing results.
A/B testing – a buzz word?
? Standard A/B Flow
Previous works:
? KDD 2009, Microsoft experimentation platform (http://exp-platform.com/hippo.aspx)
? KDD 2010, Google team (“Overlapping Experiment Infrastructure: More, Better, Faster
Experimentation”)
LP Visit
Control
(A) – 50%
No
Change
Feature
(B) – 50%
New
Product
A/B testing at SweetIM
New Users Existing Users
LP Visit
(Cookie)
Confirmation
Page A
(Control)
Cookie A
(No Change)
Confirmation
Page B (New
Feature)
Cookie B
(New Feature)
Activity domain
(Unique ID%N)
Unique ID%2 =
0
No Change
Unique ID%2 =
1
New Feature
A/B Test on Search
Group A Group B
Does the change increase the usage of search by users (average searches per day)?
Results
Using the Poisson distribution the difference is significant, but is this
assumption appropriate in our case?
Some well known facts of internet traffic:
? Different users can have very different usage patterns
? Existence of non-human users like automatic bots and crawlers.
A B
# Users 17,287 17,295
#Activity 297,485 300,843
Average (μ) 17.21 17.39
StDev 45.83 44.03
% Difference
Poisson p-value
NB p-value
1.08%
0.00003
0.47300
Poisson assumption
? Inhomogeneous behavior of online users is not appropriate for this
distribution.
? Variance is much greater than mean.
? Not well suited for the data.
Negative binomial assumption
? Can be used as a generalization of Poisson in over dispersed cases (Var >>
Mean).
? Has been used before in other domains to analyze the count data (genetics,
traffic modeling).
? Fits well the real distribution.
Poisson
X ~ Pois(?), if:
P(X=k) = e-? ?k / k! , k=0,1,2,…
X has mean and variance both equal to the Poisson parameter ?.
Hypothesis:
H0: ?A=?B
HA: ?A<?B
Distribution of difference between means:
? ? ?~?(? ? ? ? ?,
? ?
2
?
+
? ?
2
?
)
Probability of obtaining a test statistic at least as extreme as the one that was
actually observed, assuming that the null hypothesis is true:
????? = Φ
? ??
?? ?+? / ??
? , ? - means of 2 groups, ? – Poisson parameter, ? – test duration and ?, ? – size of test groups.
Negative binomial
X ~ NB(?, ?), if:
?(?=?) =
? + ? ? 1
?
1 ? ? ?
? ?
In case of over dispersed Poisson, ? ~ Γ(α,β), X|? ~ Pois(?).
X ~ NB(α, 1/(1+β))
X has mean μ= α/β and variance σ2 = μ(μ+α)/α.
Hypothesis:
H0: ?A=?B
HA: ?A<?B
Distribution of difference between means:
? ? ?~?(? ? ? ? ?,
? ?
?
+
? ?
?
)
Probability of obtaining a test statistic at least as extreme as the one that was
actually observed, assuming that the null hypothesis is true:
? ??,? = Φ
? ??
?? ??+?
?
?+? / ??
1/2
? , ? - means of 2 groups, ?, ? – NB parameters, ? – test duration and ?, ? – size of test groups.
Results (Test 1):
The difference is not significant by NB.
Results of using the proper methodology:
? Saved production from unnecessary change
? Allow to benefit from additional features in A group
A B
# Users 17,287 17,295
#Activity 297,485 300,843
Average (μ) 17.21 17.39
StDev 45.83 44.03
% Difference
Poisson p-value
NB p-value
1.08%
0.00003
0.47300
A/B Tests on Content
Example – two sided content test.
The new feature allows users that don’t have SweetIM installed on
their computer to receive funny content from SweetIM users.
Results:
? Implementation of new feature
? Increase in application usage and user experience
A B
# Users 17,568 17,843
#Activity 770,436 930,066
Average (μ) 43.85 52.12
StDev 74.80 96.00
% Difference
Poisson p-value
NB p-value 0.00000
8.68%
0.00000
A/A Tests
Required for checking:
? The randomization algorithm and distribution system.
? The technical aspects of the A/B testing system.
? The properness of methodology, hypothesis and analysis.
? The existence of robots and crawlers.
LP Visit
Control
(A) – 50%
No
Change
Control
(A) – 50%
No
Change
A/A Tests
? A/A Test on Search
? A/A Test on Content
A B
# Users 61,719 61,608
#Activity 1,274,279 1,288,333
Average (μ) 20.65 20.91
StDev 52.77 49.69
% Difference
Poisson p-value
NB p-value
1.27%
0.00000
0.11000
A B
# Users 61,719 61,608
#Activity 3,142,766 3,165,208
Average (μ) 50.92 51.38
StDev 97.50 97.00
% Difference
Poisson p-value
NB p-value
0.98%
0.00000
0.18500
“Fraud” Detection
? It is almost impossible to filter all non-human activity on the web.
? Automatic bots and crawlers can bias the results and drive to wrong
conclusions.
? Need to be checked in every test.
Conclusions
? Overview of SweetIM A/B Testing system.
? Some insights on statistical aspects of A/B Testing methodology as related
to count data analysis.
? Suggestion to use negative binomial approach instead of incorrect Poisson
in case of over dispersed count data.
? Real-world examples of A/B and A/A tests from SweetIM.
? A word about fraud
A/B Test on Search Logo
Group A
Group B
Which one was better?
A/B Test on Search Logo
Group A
Group B
A B
# Users 19,249 19,725
#Activity 343,136 355,929
Average (μ) 17.80 18.50
StDev 45.35 47.72
% Difference
Poisson p-value
NB p-value
3.93%
0.00000
0.00780
Thank You!

More Related Content

Similar to A/B Testing at SweetIM (20)

PPTX
Towards Automated A/B Testing
Giordano Tamburrelli
?
PDF
(Spring 2012) IT 345 Posters
International Center for Biometric Research
?
PDF
Managing for Quality and Performance Excellence 10th Edition Evans Solutions ...
monotwenere1
?
PDF
?????ABT: ??? ? ?? A/B ??? ??? ?? ? ???
Jin Young Kim
?
PPTX
SBP_RM_parent) block in the chain. Timestamp: It is a system that verifie...
DattatrayNanaware2
?
PDF
[AFEL] Neighborhood Troubles: On the Value of User Pre-Filtering To Speed Up ...
Emanuel Laci?
?
PPTX
Bayesian Approaches To Improve Sample Size Webinar
nQuery
?
PPTX
Delivering The Benefits of Chemical-Biological Integration in Computational T...
US Environmental Protection Agency (EPA), Center for Computational Toxicology and Exposure
?
PDF
Data Science Popup Austin: Predicting Customer Behavior & Enhancing Customer ...
Domino Data Lab
?
PPT
Multivariate Analysis and Visualization of Proteomic Data
UC Davis
?
PDF
Vital QMS Process Validation Statistics - OMTEC 2018
April Bright
?
PDF
Saliency Based Hookworm and Infection Detection for Wireless Capsule Endoscop...
IRJET Journal
?
PPTX
Unlocking Anticipatory Text Generation- A Constrained Approach for Large Lan...
Ingeol Baek
?
PDF
increasing the action gap - new operators for reinforcement learning
Ryo Iwaki
?
PPTX
Computing Just What You Need: Online Data Analysis and Reduction at Extreme ...
Ian Foster
?
PDF
Consistent Transformation of Ratio Metrics for Efficient Online Controlled Ex...
Weitao Duan
?
PPTX
Test Coverage: An Art and a Science
TeamQualityPro
?
PDF
Learning Content and Usage Factors Simultaneously
Arnab Bhadury
?
PDF
IDA 2015: Efficient model selection for regularized classification by exploit...
George Balikas
?
Towards Automated A/B Testing
Giordano Tamburrelli
?
(Spring 2012) IT 345 Posters
International Center for Biometric Research
?
Managing for Quality and Performance Excellence 10th Edition Evans Solutions ...
monotwenere1
?
?????ABT: ??? ? ?? A/B ??? ??? ?? ? ???
Jin Young Kim
?
SBP_RM_parent) block in the chain. Timestamp: It is a system that verifie...
DattatrayNanaware2
?
[AFEL] Neighborhood Troubles: On the Value of User Pre-Filtering To Speed Up ...
Emanuel Laci?
?
Bayesian Approaches To Improve Sample Size Webinar
nQuery
?
Delivering The Benefits of Chemical-Biological Integration in Computational T...
US Environmental Protection Agency (EPA), Center for Computational Toxicology and Exposure
?
Data Science Popup Austin: Predicting Customer Behavior & Enhancing Customer ...
Domino Data Lab
?
Multivariate Analysis and Visualization of Proteomic Data
UC Davis
?
Vital QMS Process Validation Statistics - OMTEC 2018
April Bright
?
Saliency Based Hookworm and Infection Detection for Wireless Capsule Endoscop...
IRJET Journal
?
Unlocking Anticipatory Text Generation- A Constrained Approach for Large Lan...
Ingeol Baek
?
increasing the action gap - new operators for reinforcement learning
Ryo Iwaki
?
Computing Just What You Need: Online Data Analysis and Reduction at Extreme ...
Ian Foster
?
Consistent Transformation of Ratio Metrics for Efficient Online Controlled Ex...
Weitao Duan
?
Test Coverage: An Art and a Science
TeamQualityPro
?
Learning Content and Usage Factors Simultaneously
Arnab Bhadury
?
IDA 2015: Efficient model selection for regularized classification by exploit...
George Balikas
?

Recently uploaded (20)

PPTX
Monitoring Improvement ( Pomalaa Branch).pptx
fajarkunee
?
DOCX
COT Feb 19, 2025 DLLgvbbnnjjjjjj_Digestive System and its Functions_PISA_CBA....
kayemorales1105
?
DOCX
Udemy - data management Luisetto Mauro.docx
M. Luisetto Pharm.D.Spec. Pharmacology
?
PPTX
RESEARCH-FINAL-GROUP-3, about the final .pptx
gwapokoha1
?
PPTX
美国毕业证范本中华盛顿大学学位证书颁奥鲍学生卡购买
Taqyea
?
PPTX
一比一原版(罢鲍颁毕业证书)开姆尼茨工业大学毕业证如何办理
taqyed
?
DOCX
Starbucks in the Indian market through its joint venture.
sales480687
?
PDF
SaleServicereport and SaleServicereport
2251330007
?
PDF
NVIDIA Triton Inference Server, a game-changing platform for deploying AI mod...
Tamanna36
?
PDF
Informatics Market Insights AI Workforce.pdf
karizaroxx
?
PPT
Reliability Monitoring of Aircrfat commerce
Rizk2
?
PDF
624753984-Annex-A3-RPMS-Tool-for-Proficient-Teachers-SY-2024-2025.pdf
CristineGraceAcuyan
?
PPTX
Mynd company all details what they are doing a
AniketKadam40952
?
PDF
TCU EVALUATION FACULTY TCU Taguig City 1st Semester 2017-2018
MELJUN CORTES
?
PPTX
english9quizw1-240228142338-e9bcf6fd.pptx
rossanthonytan130
?
PDF
Predicting Titanic Survival Presentation
praxyfarhana
?
PPTX
Daily, Weekly, Monthly Report MTC March 2025.pptx
PanjiDewaPamungkas1
?
PPTX
Smart_Workplace_Assistant_Presentation (1).pptx
kiccha1703
?
PDF
Business Automation Solution with Excel 1.1.pdf
Vivek Kedia
?
PDF
Exploiting the Low Volatility Anomaly: A Low Beta Model Portfolio for Risk-Ad...
Bradley Norbom, CFA
?
Monitoring Improvement ( Pomalaa Branch).pptx
fajarkunee
?
COT Feb 19, 2025 DLLgvbbnnjjjjjj_Digestive System and its Functions_PISA_CBA....
kayemorales1105
?
Udemy - data management Luisetto Mauro.docx
M. Luisetto Pharm.D.Spec. Pharmacology
?
RESEARCH-FINAL-GROUP-3, about the final .pptx
gwapokoha1
?
美国毕业证范本中华盛顿大学学位证书颁奥鲍学生卡购买
Taqyea
?
一比一原版(罢鲍颁毕业证书)开姆尼茨工业大学毕业证如何办理
taqyed
?
Starbucks in the Indian market through its joint venture.
sales480687
?
SaleServicereport and SaleServicereport
2251330007
?
NVIDIA Triton Inference Server, a game-changing platform for deploying AI mod...
Tamanna36
?
Informatics Market Insights AI Workforce.pdf
karizaroxx
?
Reliability Monitoring of Aircrfat commerce
Rizk2
?
624753984-Annex-A3-RPMS-Tool-for-Proficient-Teachers-SY-2024-2025.pdf
CristineGraceAcuyan
?
Mynd company all details what they are doing a
AniketKadam40952
?
TCU EVALUATION FACULTY TCU Taguig City 1st Semester 2017-2018
MELJUN CORTES
?
english9quizw1-240228142338-e9bcf6fd.pptx
rossanthonytan130
?
Predicting Titanic Survival Presentation
praxyfarhana
?
Daily, Weekly, Monthly Report MTC March 2025.pptx
PanjiDewaPamungkas1
?
Smart_Workplace_Assistant_Presentation (1).pptx
kiccha1703
?
Business Automation Solution with Excel 1.1.pdf
Vivek Kedia
?
Exploiting the Low Volatility Anomaly: A Low Beta Model Portfolio for Risk-Ad...
Bradley Norbom, CFA
?
Ad

A/B Testing at SweetIM

  • 1. A/B Testing at SweetIM – the Importance of Proper Statistical Analysis Slava Borodovsky SweetIM slavabo@gmail.com Saharon Rosset Tel Aviv University saharon@post.tau.ac.il
  • 2. About SweetIM ? Provides interactive content and search services for IMs and social networks. ? More than 1,000,000 monthly new users. ? More than 100,000,000 monthly search queries. ? Every new feature and change in product pass A/B testing. ? Data driven decision making process is based on A/B testing results.
  • 3. A/B testing – a buzz word? ? Standard A/B Flow Previous works: ? KDD 2009, Microsoft experimentation platform (http://exp-platform.com/hippo.aspx) ? KDD 2010, Google team (“Overlapping Experiment Infrastructure: More, Better, Faster Experimentation”) LP Visit Control (A) – 50% No Change Feature (B) – 50% New Product
  • 4. A/B testing at SweetIM New Users Existing Users LP Visit (Cookie) Confirmation Page A (Control) Cookie A (No Change) Confirmation Page B (New Feature) Cookie B (New Feature) Activity domain (Unique ID%N) Unique ID%2 = 0 No Change Unique ID%2 = 1 New Feature
  • 5. A/B Test on Search Group A Group B Does the change increase the usage of search by users (average searches per day)?
  • 6. Results Using the Poisson distribution the difference is significant, but is this assumption appropriate in our case? Some well known facts of internet traffic: ? Different users can have very different usage patterns ? Existence of non-human users like automatic bots and crawlers. A B # Users 17,287 17,295 #Activity 297,485 300,843 Average (μ) 17.21 17.39 StDev 45.83 44.03 % Difference Poisson p-value NB p-value 1.08% 0.00003 0.47300
  • 7. Poisson assumption ? Inhomogeneous behavior of online users is not appropriate for this distribution. ? Variance is much greater than mean. ? Not well suited for the data.
  • 8. Negative binomial assumption ? Can be used as a generalization of Poisson in over dispersed cases (Var >> Mean). ? Has been used before in other domains to analyze the count data (genetics, traffic modeling). ? Fits well the real distribution.
  • 9. Poisson X ~ Pois(?), if: P(X=k) = e-? ?k / k! , k=0,1,2,… X has mean and variance both equal to the Poisson parameter ?. Hypothesis: H0: ?A=?B HA: ?A<?B Distribution of difference between means: ? ? ?~?(? ? ? ? ?, ? ? 2 ? + ? ? 2 ? ) Probability of obtaining a test statistic at least as extreme as the one that was actually observed, assuming that the null hypothesis is true: ????? = Φ ? ?? ?? ?+? / ?? ? , ? - means of 2 groups, ? – Poisson parameter, ? – test duration and ?, ? – size of test groups.
  • 10. Negative binomial X ~ NB(?, ?), if: ?(?=?) = ? + ? ? 1 ? 1 ? ? ? ? ? In case of over dispersed Poisson, ? ~ Γ(α,β), X|? ~ Pois(?). X ~ NB(α, 1/(1+β)) X has mean μ= α/β and variance σ2 = μ(μ+α)/α. Hypothesis: H0: ?A=?B HA: ?A<?B Distribution of difference between means: ? ? ?~?(? ? ? ? ?, ? ? ? + ? ? ? ) Probability of obtaining a test statistic at least as extreme as the one that was actually observed, assuming that the null hypothesis is true: ? ??,? = Φ ? ?? ?? ??+? ? ?+? / ?? 1/2 ? , ? - means of 2 groups, ?, ? – NB parameters, ? – test duration and ?, ? – size of test groups.
  • 11. Results (Test 1): The difference is not significant by NB. Results of using the proper methodology: ? Saved production from unnecessary change ? Allow to benefit from additional features in A group A B # Users 17,287 17,295 #Activity 297,485 300,843 Average (μ) 17.21 17.39 StDev 45.83 44.03 % Difference Poisson p-value NB p-value 1.08% 0.00003 0.47300
  • 12. A/B Tests on Content Example – two sided content test. The new feature allows users that don’t have SweetIM installed on their computer to receive funny content from SweetIM users. Results: ? Implementation of new feature ? Increase in application usage and user experience A B # Users 17,568 17,843 #Activity 770,436 930,066 Average (μ) 43.85 52.12 StDev 74.80 96.00 % Difference Poisson p-value NB p-value 0.00000 8.68% 0.00000
  • 13. A/A Tests Required for checking: ? The randomization algorithm and distribution system. ? The technical aspects of the A/B testing system. ? The properness of methodology, hypothesis and analysis. ? The existence of robots and crawlers. LP Visit Control (A) – 50% No Change Control (A) – 50% No Change
  • 14. A/A Tests ? A/A Test on Search ? A/A Test on Content A B # Users 61,719 61,608 #Activity 1,274,279 1,288,333 Average (μ) 20.65 20.91 StDev 52.77 49.69 % Difference Poisson p-value NB p-value 1.27% 0.00000 0.11000 A B # Users 61,719 61,608 #Activity 3,142,766 3,165,208 Average (μ) 50.92 51.38 StDev 97.50 97.00 % Difference Poisson p-value NB p-value 0.98% 0.00000 0.18500
  • 15. “Fraud” Detection ? It is almost impossible to filter all non-human activity on the web. ? Automatic bots and crawlers can bias the results and drive to wrong conclusions. ? Need to be checked in every test.
  • 16. Conclusions ? Overview of SweetIM A/B Testing system. ? Some insights on statistical aspects of A/B Testing methodology as related to count data analysis. ? Suggestion to use negative binomial approach instead of incorrect Poisson in case of over dispersed count data. ? Real-world examples of A/B and A/A tests from SweetIM. ? A word about fraud
  • 17. A/B Test on Search Logo Group A Group B Which one was better?
  • 18. A/B Test on Search Logo Group A Group B A B # Users 19,249 19,725 #Activity 343,136 355,929 Average (μ) 17.80 18.50 StDev 45.35 47.72 % Difference Poisson p-value NB p-value 3.93% 0.00000 0.00780