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

关于A/B testing sample size的两个问题,求解

全局:

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

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

x
正在研究experimental design,有两个问题不太懂:. 1point 3acres
1. Sample size计算的公式是什么?现在只了解sample size跟power, std error, alpha和effect size相关,但找不到formula ..
2. 计算sample size的std error是怎么计算出来的呢?是靠自己纯估计,还是先做A/A testing找出来的呢

.google  и谢谢各位大神!

评分

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

查看全部评分


上一篇:求大米,分享某bootcamp的NLP材料
下一篇:SQL概念及常见问题总结,持续更新,求大米
全局:
emmagreen1220 发表于 2020/01/03 04:09:52
多谢!. 1point 3 acres

我看课程上都是说计算SE用sqrt(p*(1-p)/N)即可,可是计算SE时我们是要算sample siz...
You are confusing concepts. Same size calculation is what you do first. You have know the following
Significance level (prob of type 1 error)
Power (prob of correctly rejecting null)
Expected standard deviation of the metric you are measuring, usually taken from historical data.--
Minimum effect size you want to measure

With the above you get sample size per group. For two groups, control and exp, you have to multiply by 2 to get the total amount of traffic required. .--
. From 1point 3acres bbs
After you collect the data you then calculate standard error. It is the standard deviation of the sampling distribution.  

评分

参与人数 1大米 +1 收起 理由
emmagreen1220 + 1 很有用的信息!

查看全部评分

回复

使用道具 举报

全局:
本帖最后由 wujiayikelly 于 2021-1-3 07:10 编辑

感觉楼主刚开始看材料哈,看到后面就会讲了,加油!

1. 这个问题之前也困扰了我。楼主看一下附件这一章,讲的很清楚,另外附上一页bittiger的课件,有公式,不过都是从原始公式推导来的。
2. Udacity的课上讲variance可以有几种算法
    1)Analytical variance: 如果有distribution的assumption,可以按照distribution计算 ..
    2)Empirical variance: 如果没有,可以用AA test或者bootstrap来计算。-baidu 1point3acres

Screen Shot 2021-01-02 at 6.06.14 PM.png (1.14 MB, 下载次数: 9)

Screen Shot 2021-01-02 at 6.06.14 PM.png

chapters_webchapter2.pdf

276.48 KB, 下载次数: 47, 下载积分: 大米 -1 颗

回复

使用道具 举报

推荐
lily789 2020-1-15 08:25:59 | 只看该作者
全局:
我们行业是director计算sample size...
回复

使用道具 举报

全局:
Have a look at Udacity ab testing course by google. Covers everything you are asking in chapter 1
回复

使用道具 举报

🔗
anna2016 2020-1-2 13:03:20 | 只看该作者
全局:
去系统上一门AB testing 课程,这些都学会了。Power analysis to calculate sample size.

如果是proportion 的话,可以如下公式
. Waral dи,
from scipy.stats import norm, zscore

def sample_power_probtest(p1, p2, power=0.8, sig=0.05):
    z = norm.isf([sig/2]) #two-sided t test
    zp = -1 * norm.isf([power])
    d = (p1-p2)-baidu 1point3acres
    s =2*((p1+p2) /2)*(1-((p1+p2) /2))
    n = s * ((zp + z)**2) / (d**2)
    return int(round(n[0]))

或者用R自带公式
power.prop.test

新年新气象,有用的话求加米。


.google  и

评分

参与人数 1大米 +1 收起 理由
emmagreen1220 + 1 很有用的信息!

查看全部评分

回复

使用道具 举报

🔗
 楼主| emmagreen1220 2020-1-3 04:09:52 | 只看该作者
全局:
anna2016 发表于 2020-1-2 13:03
去系统上一门AB testing 课程,这些都学会了。Power analysis to calculate sample size.

如果是proport ...

多谢!

我看课程上都是说计算SE用sqrt(p*(1-p)/N)即可,可是计算SE时我们是要算sample size,所以并没有开始experiment呀?那我们怎么知道SE呢?
回复

使用道具 举报

🔗
anna2016 2020-1-4 02:11:38 | 只看该作者
全局:
emmagreen1220 发表于 2020-1-3 04:09. check 1point3acres for more.
多谢!

我看课程上都是说计算SE用sqrt(p*(1-p)/N)即可,可是计算SE时我们是要算sample size,所以并没 ...
. 1point 3acres
you can get it from estimation. 估算。看看其他人怎么回复哈
回复

使用道具 举报

全局:
我最近对这个问题也很迷惑
回复

使用道具 举报

🔗
夏洛柯南 2020-1-15 07:43:02 | 只看该作者
全局:
好问题,持续关注
回复

使用道具 举报

🔗
mush 2020-1-15 10:35:14 | 只看该作者
全局:
回复

使用道具 举报

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

本版积分规则

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