📣 Back to School开学季 - VIP通行证5折优惠!蓝莓、Offer多多同步优惠
查看: 9271| 回复: 3
跳转到指定楼层
上一主题 下一主题
收起左侧

DS面试中A/B test部分notes整理(干货)

   
全局:

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

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

x
大米还是不够看面经(好多要188+),附上最近整理的A/B test 部分知识点,求大米,大家一起加油,面试顺利offer多多^_^


. From 1point 3acres bbs    • not practical to run a test for every single idea, expensive, cost…
        ○ conduct quantitative analysis using historical data to obtain the opportunity sizing of each idea: like upper-bound sizing of the impact by user size
    • What is A/B test:
        ○ a.k.a controlled experiments
        ○ Widely used in industry to make product launch decisions.
        ○ It allows tech companies to evaluate a product/feature with a subset of users to infer how the product may be received by all users.. 1point 3acres
        ○ Control A with existing features; Treatment B with new features
        ○ Evaluating features with a subset of users
    • Design A/B test:. check 1point3acres for more.
        ○ How long to run a test
            § Sample size
                • The rule of thumb is that sample size n approximately equals 16 (based on α = 0.05 and β = 0.8) multiplied by sample variance divided by δ square, whereas δ is the difference between treatment and control, This formula is from Trustworthy Online Controlled Experiments by Ron Kohavi, Diane Tang and Ya Xu.
                    ® we need more samples if the sample variance is larger, and we need fewer samples if the delta is larger.
                    ® Sample variance can be obtained from the existing data
                    ® δ, i.e the difference between treatment and control, use the minimum detectable effect, i.e. 0.1% increase in revenue as the minimum detectable effect
                            .--
                        ◊ Type II error rate β or Power, because Power = 1 — β. You know one of them, you know the other.
                        ◊ Significance level α . 1point3acres.com
                        ◊ Minimum detectable effect . 1point3acres
            § Sample size -> # of days to run the experiment = sample size /# of users in each group
            § If the number is less than a week, we should run the experiment for at least seven days to capture the weekly pattern. It is typically recommended to run it for two weeks. When it comes to collecting data for a test, more is almost always better than not enough. But if need longer time:
                • short develpment cycles, incurs engineering cost, non-persistent user tracking and interactions 等。 可以找proxies, model user learning, 找 surrogates。本质上就是把长期效果用其他相关变量来代替。
        ○ Interference between variants
            § Typical design: split users randomly, users are independent assumptions
            § Assumption fails:
                • Network effect, user behaviors impacted by others, effect spillover the control group, usually more treatment effect
                • Two-sided markets, resources are shared among control & treatment: actual effect < treatment effect
            § Solution:
. .и                • Isolate users between control and treatment:
                    ® By geolocations, i.e. NY & SF
                    ® By time. check 1point3acres for more.
                    ® Create network clusters
                        ◊ Interact mostly within the clusters
                        ◊ Ego-network randomization: user either has the feature or not
                    ® Each has limitation, could combine

    • Analyzing Results
        ○ Multiple testing problem: multiple variants, so multiple testing running at same time
            § Do not use same significance level, probability of false discovery increases
            .1point3acres
            § Solution:
                • Conservative one: Bonferroni correction: significance level/# of tests = 0.05/10 = 0.005 ..
                • Control False Discovery Rate (FDR)
               
        ○ Novelty & Primacy effect
            § Primacy effect (change aversion): People are reluctant to change
            § Novelty effect: People welcome the changes and use more
            § Both effects will not last long, so if A/B test has some initial effect, may due to novelty or primacy effect
            § Solution: run tests only on new users or compare new users to old users
        ○ treatment effect与实验当中的其他变量并不独立:
            § 不同X上效果截然相反的情况。虽然现实当中不一定相反,但已经直接影响了实验的可靠性-baidu 1point3acres
            § 可以对X的不同值做分别解析。例如根据 market/country, user activity level, device & platform, time and day of week, and product specific 划分。
            § computation scale, low SNR, multiple testing, interpretable and memorable等等问题。可以用on-demand or scheduled, sparse modeling, and merge segments等方法来解决。

    • Making Decisions
        ○ contradicting results
        ○ Although various factors are taken into consideration, such as the complexity of implementation, project management effort, customer support cost, maintenance cost, opportunity cost, etc.
        ○ But, focus current objective of the Question


Reference:.
https://towardsdatascience.com/7 ... rviews-eee6428a8b63-baidu 1point3acres
https://www.optimizely.com/optim ... %20essentially%20an


评分

参与人数 29大米 +49 收起 理由
JasJas + 2 很有用的信息!
bobby2115 + 1 赞一个
jun。 + 1 给你点个赞!
yswang9024 + 2 给你点个赞!
huweiisu + 1

查看全部评分


上一篇:SQL 窗口函数LC题目和cheetsheet分享
下一篇:有没有在准备FB DS onsite的小伙伴想互相mock product
🔗
 楼主| Kiana508 2021-8-23 22:19:15 | 只看该作者
全局:
终于可以看面经了, 非常感谢🙏
回复

使用道具 举报

🔗
gallu 2021-8-23 23:02:56 | 只看该作者
全局:
谢谢分享
回复

使用道具 举报

全局:
棒棒 谢谢分享楼主
回复

使用道具 举报

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

本版积分规则

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