📣 独立日限时特惠: VIP通行证立减$68
楼主: rochellehx
跳转到指定楼层
上一主题 下一主题
收起左侧

FB DS 电面

 
🔗
gatescao 2018-12-17 13:37:22 | 只看该作者
全局:
rochellehx 发表于 2018-1-6 05:35
2.         SQL部分
**** 本内容被作者隐藏 ****
Follow up: The conversion rate for the experiment is ...
. check 1point3acres for more.
For the close friend notification question, I think we can break down the answer to three steps. . From 1point 3acres bbs

First, if the feature were successful, would it be good for Facebook? That is, would it move the key metric to the right direction? If we use engagement (time spent on Facebook, number of actions) as the metric, then the answer is yes. Sending text notification will potentially make people spend more time on Facebook and perform more actions (react to friends' posts).

Second, also the key to this question, is that we need to find a proxy for demand for this feature based on what users are doing today. The safest way for a data scientist to drive new features is to look at the data. If you find a demand for that feature (maybe users are going to friend's profile page to check for updates), then you can incentivize this behavior by simplifying the process. Sending text messages is a good way to do this.

Third, once you establish that the feature is good for Facebook's target metric and there's a demand for that today, we can run an A/B test to decide if we want to add it.

评分

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

查看全部评分

回复

使用道具 举报

🔗
huixingzhijia 2018-12-17 23:39:29 | 只看该作者
全局:
很有用信息
回复

使用道具 举报

🔗
lydia31358 2019-1-26 09:43:23 | 只看该作者
全局:
starfoe 发表于 2018-5-30 07:49
不知道对不对啊求指正!

假设检验

2/sqrt(4.5/1000)

这里的4.5是不是错了?应该是3?
variance=1.5

补充内容 (2019-4-1 07:40):
上面的写错了,应该是2/sqrt(1.5/2000)

补充内容 (2019-4-1 07:45):
不好意思刚才又写错了。。。最后的更正: 2/sqrt(1.5/500)
回复

使用道具 举报

🔗
yalicezhou 2019-2-7 13:43:05 | 只看该作者
全局:
maohappy2013 发表于 2018-3-1 23:47. ----
select adv.advertiser_id,
     cost = sum(spend),
     rev = sum(isnull(ad.price,0)),

同意,应该先aggregate再join啊。
ROI:
select sum(revenue)/sum(spend) as ROI
from .1point3acres
        (select ads_id, sum(spend) as spend
        from adv_info  a
        where date= current_date()
        group by 1
        ) s
left join . 1point3acres
        (select ads_id, sum(user_spend) as revenue. 1point3acres.com
        from ad_info b
        where date = current_date()
        group by 1
        ) r
on s.ads_id = r.ads_id
回复

使用道具 举报

🔗
fiibb 2019-9-16 07:05:10 | 只看该作者
全局:
感觉做hypothesis testing的时候应该是H0: diff in time spent control = diff in time spent treatment vs. HA:diff in time spent control = diff in time spent treatment.

而不是用mean?不然给的before and after就没什么意义了吧
回复

使用道具 举报

🔗
crystalcc 2019-10-22 06:01:39 | 只看该作者
全局:
fiibb 发表于 2019-9-16 07:05
感觉做hypothesis testing的时候应该是H0: diff in time spent control = diff in time spent treatment vs ...

我觉得没错诶,h0是launch feature (treatment group) 不会导致significant difference in mean time spent (compared with control group)
回复

使用道具 举报

🔗
biubiula 2019-11-8 10:32:14 | 只看该作者
全局:
starfoe 发表于 2018-5-30 06:13
第一问:. 1point 3 acres
select count(distinct adv.advertiser_id)/(select count(distinct advertiser_id from adv_inf ...

. 1point3acreshi! 想问一下你的
select count(distinct adv.advertiser_id)/(select count(distinct advertiser_id from adv_info)
from adv_info adv join ad_info ad on adv.ad_id = ad.ad_id

里面加粗的部分用法叫什么呀?我之前从没见过,但是google又搜不到,所以想请教一下。谢谢!
回复

使用道具 举报

🔗
starfoe 2019-11-18 03:13:13 | 只看该作者
全局:
biubiula 发表于 2019-11-8 10:32
hi! 想问一下你的
select count(distinct adv.advertiser_id)/(select count(distinct advertiser_id fr ...
. 1point 3 acres
嗯。。可能那个括号的位置需要调整. ----


(select count(distinct advertiser_id)from adv_info). 1point 3acres
这样看会不会容易理解一些?

计算adv_info中不重复的advertiser_id,是外层表达式的分母
回复

使用道具 举报

🔗
biubiula 2019-11-18 05:13:50 | 只看该作者
全局:
starfoe 发表于 2019-11-18 03:13
嗯。。可能那个括号的位置需要调整

谢谢回复!我能看懂那一段,但是我以前没用过这种可以直接把select from another table套在calculation里的用法,我试了一下好像也有syntax error,可能是不同的database用法不一样把~
回复

使用道具 举报

🔗
biubiula 2019-11-19 09:16:50 | 只看该作者
全局:
starfoe 发表于 2019-11-18 03:13
嗯。。可能那个括号的位置需要调整
. 1point 3 acres
啊楼主 我今天试了一下 发现是可以用那种用法的 哈哈 还是谢谢啦
回复

使用道具 举报

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

本版积分规则

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