查看: 29272| 回复: 53
跳转到指定楼层
上一主题 下一主题
收起左侧

A/B testing 知识点整理

   
全局:

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x
根据地里的面经,还有网上搜索的资料做了个A/B testing的整理,会有错误,希望能得到补充和指正。地里下个资料怎么权限设那么高,也太不友好了,老是提示我用户组没资格下。。。。分享求加米。。转专业水校master统计无工作经验找工作好难,投了一两百封,就只有一两个面试。-baidu 1point3acres
不想整理格式了,另外由于有好几张思维导图,我直接附google docs 链接 https://docs.google.com/document ... WE/edit?usp=sharing   
附件图片也在docs-baidu 1point3acres

Key Assumptions For A/B testing
Units are assigned randomly
Units are Independent

1 What unit you will choose to run the test?
Usually User_id. If no login process, then use device_id or cookie.
. check 1point3acres for more.
2 Your colleague gave you two data set and told you they are test/control groups from an A/B test. What will you do to make sure the data set are appropriate to use?
A/A test.
-baidu 1point3acres
3 What will you do if you find users been assigned to both test and control group? Do you have any concern?
Delete these users to ensure units are independent.

4 What metrics do you use to measure the the effect of the change? {What to compare? How would you know the impact of your experiment? How would you make a business/product decision with your experiment?}
Ask interviewer the goal. Clarify the goal of this product and their target user.

Data Exploration
Imbalanced Assignment
Mix Assignment. 1point 3 acres
Sanity Check

1 Check for % of test/control units. Is the % matching DOE?
IF not match, need to figure out what’s the cause

2 Check for mixed assignment (same as the key assumption Question 3)
It’s hard to resolve. If # of mixed samples is small, OK to remove. If big, need to figure out what’s the cause
Follow up : What’s the problem of throwing away mixed samples?

3 Sanity Check: Are test/control similar in other factors other than treatment? (same as the key assumption Question 2)
A/A testing.

4 When we conduct random sampling, how to avoid network effect?
What is network effect (interference)? An experiment to give a better engagement. User A and User B are friends. User B is assigned to test group while User A is at control group. User B has a better experience that make him engage more. And then his engagement leads to a better engagement for user A.. 1point3acres.com
. From 1point 3acres bbs

Clustering groups with connections. Split these clusters into two parallel experiment.. 1point 3 acres

A) An individual-level experiment, where members are sorted randomly into treatment or control groups. (与AB test一样,随机取样对照试验)
B) A cluster-based experiment, where a whole cluster (i.e., community) of users is either in treatment or in control. In other words, if I am treated, a significant proportion of my connections are also treated. If I am part of the control group, a significant proportion of my connections are also under control. (依照community来安排分组, 同一个cluster 都在一个组里)

Exposure And Duration For A/B Testing
1 What is your minimum sample size? What factors would you consider? How would these factors impact your sample size?
Need: statistical power, significant level, baseline rate, minimum detectable difference

2 How long would you run your experiment?
If sample size computed by last question is 5000, the daily traffic volume for the website is 2000. Only can have 10% of the volume, then test should run 25 days. 5000/(2000*0.1) .
And also consider about the seasonality, business cycle. It should be a complete business cycle. Usually a week.

3 What will you do if your experiment take too long to run?
Increase exposure from 10% to 20%.
Based on the formula of sample size in Question 2:
Reduce the variance by Blocking –run experiment within sub-groups
. ----
4 What will you do to balance user experience and quick learning?
Don’t show A/B versions to all users. May lead to bad user experience if test version is bad.

5 What is your roll-out plan?
90-10. Starting with a small portion of their total audience and slowly increasing the sample size to a higher percentage of the audience until finally reaching 100%.

Problems When Implementing
What if your data is highly skewed or statistics is hard to approximate with CLT?
Bootstrap. Shortage computational expensive.. .и

Can you run an experiment and keep reading until the result is significant?. check 1point3acres for more.
No. Highly increase the type 1 error (false positive rate). check 1point3acres for more.

What is the chance of seeing at least one rejection having 10 tests simultaneously?
follow up last question: 1-(1-0.05)^10

What if you have multiple test groups? multivariate?
Multivariate experiment will increase the type 1 error.
Bonferroni Correction: Assume we have m test; Set significant level for each test = 0.05/m (Default significant level =0.05)
FDR Adjustments(Benjamini-Hochberg): rank p value of m test from low to high. find the largest k such that p_k<=k/m*alpha; reject 1…..,k, accept K+1……
undefined

What if your key metrics dropped by 5% on first day? What if dropped by 20%?
Doesn’t matter for 5% drop. NOT frequently check result. NOT stop once result turns significant. Wait until get minimum sample size from experiment design.
Monitor for alarming changes that 20% drop. Pause and investigate if needed
. .и
What is bootstrap? Boosting?. 1point 3 acres
A resampling method with replacement. It can be used to estimate sampling distribution of any statistics, commonly used in estimating CI & p-value & statistics with complex or no close-form estimator
The metrics of interest is 90th quantile of users’ spending. How to estimate sample mean and variance?. Waral dи,
Use bootstrap.


Decision Making
What if your result show positive impact on some metrics and negative impact on some other metrics?
Meet expectations? Yes, ready to launch. Be cautious if result is too good. May need to investigate (e.g. outliers).
Measured the importance of each metrics. How much revenue can it bring if this metric increase. How much revenue may lose?. 1point 3acres

What if your result is neutral?. From 1point 3acres bbs
Slice on sub-groups..google  и
.--
What if you result is statistically significant but the margin is very small? don’t know. Hope someone can leave comments.


productsense.jpg (365.02 KB, 下载次数: 100)

productsense.jpg

评分

参与人数 91大米 +144 收起 理由
derrickkobe + 1 很有用的信息!
kkkuaisushengji + 1 赞一个
kirakira1992 + 2 给你点个赞!
光影流转 + 3 很有用的信息!
CherryMelon + 1 给你点个赞!

查看全部评分


上一篇:弱弱的一个问题ds take home challenge里面的
下一篇:求助gadgetor select /parsing

本帖被以下淘专辑推荐:

推荐
 楼主| yjiang05 2020-8-20 12:19:07 来自APP | 只看该作者
全局:
betty93 发表于 2020-08-18 23:21:12. Waral dи,
如果有positive也有negative怎么办?这个我一直也很迷
我自己的看法,不确定对不对。就是如果面试官问的话,我会这么答:做实验,看目标 goal,哪个metrics和目标直接关联,影响比较大,都有关联 看影响的比例。每个metrics提升(减少)百分之一可以带来多少或损失的revenue,加一加确定回报率可不可。可以的话就执行,不可以就不执行。

有positive 有negative 看看 是不是这个feature影响了别的功能 导致有的metrics 提升 有的下降。
回复

使用道具 举报

推荐
 楼主| yjiang05 2020-6-11 10:07:59 | 只看该作者
全局:
孙早起 发表于 2020-6-11 09:33
感谢楼主分享。刚好最近在学A/B Testing,学完课程,在看看你整理的内容,做查漏补缺!

谢谢 如果有很重要的点,我没有提到的,能够留言回复就更好了
回复

使用道具 举报

推荐
yileihe1989 2020-7-18 13:07:57 | 只看该作者
全局:
yjiang05 发表于 2020-7-16 14:04
MDE是什么意思呀? 大于的话会怎么样?不是很懂。谢谢讲解

MDE = minimum detection effect. https://splitmetrics.com/resources/minimum-detectable-effect-mde/
想象成一个鱼网。你的detection margin 必须大于这个MDE才会被抓住。
回复

使用道具 举报

🔗
modifiedname 2020-6-11 08:37:35 | 只看该作者
全局:
很漂亮的图啊,这个是什么工具做的?
回复

使用道具 举报

🔗
孙早起 2020-6-11 09:33:51 | 只看该作者
全局:
感谢楼主分享。刚好最近在学A/B Testing,学完课程,在看看你整理的内容,做查漏补缺!
回复

使用道具 举报

🔗
 楼主| yjiang05 2020-6-11 09:50:12 来自APP | 只看该作者
全局:
K姐 发表于 2020/06/11 08:37:35
很漂亮的图啊,这个是什么工具做的?
mindmaster,也有人推荐Xmind做脑图

评分

参与人数 1大米 +1 收起 理由
dldlldld + 1 给你点个赞!

查看全部评分

回复

使用道具 举报

🔗
sleeppy 2020-6-11 13:15:21 | 只看该作者
全局:
谢谢分享!!转专业自学统计中,正需要!
回复

使用道具 举报

全局:
谢谢楼主!
回复

使用道具 举报

🔗
feeling_zz 2020-6-11 23:50:15 | 只看该作者
全局:
楼主的学习笔记非常赞,结构清楚明晰
回复

使用道具 举报

🔗
aubrey77 2020-6-12 06:00:33 | 只看该作者
全局:

谢谢楼主!笔记的框架太好了,一目了然!
回复

使用道具 举报

🔗
nihw 2020-6-12 06:23:56 来自APP | 只看该作者
全局:
感谢楼主!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表