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

FB DS 电面

 
🔗
n0thing233 2018-2-27 02:13:33 | 只看该作者
全局:
rochellehx 发表于 2018-1-6 05:35
2.         SQL部分
adv_info:
advertiser_id
. Χ
lz 想问你最后一问?conversion rate 10%, estimate total number of user use this feature.
是要讨论sample是否具有普遍性吗? 比如不同国家 不同年龄的人 conversion_rate可能不一样。10%不一定适用。。是这个思路吗?
回复

使用道具 举报

🔗
minghong212 2018-2-28 06:05:52 | 只看该作者
全局:
谢谢楼主 楼主太给力了!
回复

使用道具 举报

全局:
n0thing233 发表于 2018-2-26 11:57
看了很多这道题的面经,有一点不明白为啥大家都用left join 呢?
给我感觉因为已经assume了 price: The us ...

没毛病. ----
搞清楚他是要advertiser的ROI还是advertiser每个ad的ROI,这个很有必要!
回复

使用道具 举报

🔗
maohappy2013 2018-3-1 23:47:45 | 只看该作者
全局:
stonephoenix 发表于 2018-1-9 09:42
-- Q1: The fraction of advertiser has at least 1 conversion?-- Q2 What metrics would you show to adv ...
. From 1point 3acres bbs
select adv.advertiser_id,
     cost = sum(spend),. check 1point3acres for more.
     rev = sum(isnull(ad.price,0)),
     ROI = sum(spend)/sum(isnull(ad.price,0))
from adv_info adv
left join ad_info ad.info ad
on adv.ad_id = ad.ad_id
group by adv.advertiser_id
Question:
如果left join 之后table就会变成:
advertiser id  ad id spend user id price
1                   1      1000     1    5
1                   1       1000     2    10
这种情况下上面的query岂不是算了两遍 ad spend
sum(spend) = 2000 sum(price) = 15 但实际上在这个ad_id = 1上只花了1000
回复

使用道具 举报

🔗
蒸蒸日上 2018-3-17 04:50:37 | 只看该作者
全局:
stonephoenix 发表于 2018-1-9 09:42. From 1point 3acres bbs
-- Q1: The fraction of advertiser has at least 1 conversion?-- Q2 What metrics would you show to adv ...

sum() treats null as 0, so there's no need to use isnull() inside sum()
回复

使用道具 举报

🔗
budbuddy 2018-3-18 14:05:53 | 只看该作者
全局:
"Follow up: experiment 1000 user, 24 mins before, 26 mins after. Control arm 1000 user, 24 mins before, 24 mins after. What would you say about this result.
楼主脑子短路,在他提示variance是1.5mins,才反应过来这是在问hypothesis testing
. 1point 3acres
Follow up: The conversion rate for the experiment is 10%. And the engineer team rollout this feature globally, Estimate the total number of user use this feature.  "

请教楼主 HYPOTHESIS TESTING 这个只要说思路就行吧 不用算什么吧 ?
还有最后这个 我大脑平滑的认为就是 FB 一共USERS 20B 然后 *10%?=2B...这思路对么
回复

使用道具 举报

🔗
 楼主| rochellehx 2018-3-20 05:07:49 | 只看该作者
全局:
carol3344 发表于 2018-3-18 14:05
"Follow up: experiment 1000 user, 24 mins before, 26 mins after. Control arm 1000 user, 24 mins befo ...

要算呀,你得告诉他你觉得observed difference是不是significant。我答的就是你的平滑思路,不知道对不对,反正overall最后是挂了
回复

使用道具 举报

🔗
budbuddy 2018-3-21 02:38:36 | 只看该作者
全局:
rochellehx 发表于 2018-3-19 16:07
要算呀,你得告诉他你觉得observed difference是不是significant。我答的就是你的平滑思路,不知道对不对 ...

那你觉得是这个题目 没答对影响的么? 还是整体上 哪地方感觉不对劲 求分享。。
回复

使用道具 举报

🔗
蒸蒸日上 2018-3-21 10:34:08 | 只看该作者
全局:
maohappy2013 发表于 2018-3-1 23:47
select adv.advertiser_id, . .и
     cost = sum(spend),
     rev = sum(isnull(ad.price,0)),

同觉spend不能sum,只能price 上sum
回复

使用道具 举报

🔗
iamyangnan 2018-3-23 11:26:49 | 只看该作者
全局:
点击这里快速回复?
回复

使用道具 举报

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

本版积分规则

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