回复: 18
跳转到指定楼层
上一主题 下一主题
收起左侧

脸家DS店面

全局:

2018(7-9月) 分析|数据科学类 硕士 全职@meta - 猎头 - 技术电面  | | Pass | 在职跳槽

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

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

x
借朋友账号发个脸书面经回馈地里,题目跟地里看到的非常像。


开头:
自我介绍+介绍一个工作中的project

SQL:
Table: Friending
您好!
本帖隐藏的内容需要积分高于 111 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 111 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies
您好!
本帖隐藏的内容需要积分高于 111 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 111 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies

Product:
您好!
本帖隐藏的内容需要积分高于 166 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 166 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies

求大米!

.google  и

评分

参与人数 6大米 +22 收起 理由
人的一生啊 + 3 很有用的信息!
tzuyiyen + 5 很有用的信息!
ray2018 + 3 很有用的信息!
无聊小浣熊 + 3 给你点个赞!
theflyingdot + 3 很有用的信息!

查看全部评分


上一篇:小粉车analytics家庭作业
下一篇:FB 的DS analytics 可以用Python写码吗?
推荐
mathwyc 2018-8-9 00:29:39 | 只看该作者
全局:
根据不同的理解写了两个版本的query,请大家指正:
With t1 as (
Select distinct actor_uid, target_uid
From Friending
Where action = ‘send_request’and date = ‘2018-01-01’
),-baidu 1point3acres

T2 as (
Select distinct actor_uid, target_uid
From friending
Where action = ‘accept_request’ and date = ‘2018-01-01’
)
-baidu 1point3acres
Definition 1: request and accept do not need to be the same day
-baidu 1point3acres
Select ifnull(
        (Select count(*) from t1) / (select count(*) from t2). 1point3acres
,0) as acceptance_rate. Χ

Definition 2: acceptance needs to match request

Select ifnull(count(t2.actor_id)/count(t1.acot_id), 0)
From t1 left join t2 on t1.actor_id = t2.target_id and t1.target_id = t2.actor_id
回复

使用道具 举报

推荐
keran 2018-9-6 02:18:35 | 只看该作者
全局:

.--
Q1:
1. send a request on 2018-01-01, accept anytime . 1point 3 acres
select ifnull(count(t2.*)/count(t1.*)) as acceptence_rate
(select distinct actor_uid, target_uid .
from table where action = 'send_request' where date = '2018-01-01') as t1 left join
(select distinct actor_uid, target_uid
from table where action  = 'accept_request') as t2 on t1.actor_uid = t2.target_uid and t1.target_uid = t2.actor_uid. From 1point 3acres bbs

2. send and accept on 2018-01-01:
send a request on 2018-01-01, accept anytime . 1point 3 acres
select ifnull(count(t2.*)/count(t1.*)) as acceptence_rate
(select distinct actor_uid, target_uid
from table where action = 'send_request' where date = '2018-01-01') as t1 left join
(select distinct actor_uid, target_uid
from table where action  = 'accept_request' where date = '2018-01-01') as t2 on t1.actor_uid = t2.target_uid and t1.target_uid = t2.actor_uid

. Waral dи,

Q2: .
1. check other metrics, such as send request rate, day active user number, engagement user number 是不是有很大差异
2. 页面有没有feature发生了改变影响这个
. 1point 3acres
选metrics衡量在newsfeed里面加friend recommendation这个feature好不? 以及各种follow ups, 比如如果发现test group的CTR 25%,这是好还是不好,选什么metric衡量user engagement level

crt,crp, day/monthly active user number, engagement user number
可以用假设检验么 在不在confidence interval, 算出成population是不是h很大
# of user send friend request/ # of user visit newsfeed

自己随便写的 不知道对不对。。。欢迎指正
回复

使用道具 举报

全局:

  1. -- Friends sent and accept on the same day
  2. SELECT ROUND(COUNT(a.*)/NULLIF(COUNT(b.*),0)::float*100,2) AS accptance_rate
  3. FROM
  4. (SELECT DISTINCT actor_uid, target_uid, action .1point3acres
  5. FROM Friending
  6. WHERE date_trunc('day',time) = '2018-08-01' AND action = 'send_request') a
  7. LEFT JOIN
  8. (SELECT DISTINCT actor_uid, target_uid, action
  9. FROM Friending ..
  10. WHERE date_trunc('day',time) = '2018-08-01' AND action = 'accept_request') b
  11. ON a.target_uid = b.actor_uid and a.actor_uid = b.target_uid

  12. -- Friends accept on Aug 1st but send can be any day before
  13. SELECT ROUND(COUNT(a.*)/NULLIF(COUNT(b.*),0)::float*100,2) AS accptance_rate
  14. FROM. 1point 3acres
  15. (SELECT DISTINCT actor_uid, target_uid, action
  16. FROM Friending . 1point 3acres
  17. WHERE date_trunc('day',time) <= '2018-08-01' AND action = 'send_request') a
  18. LEFT JOIN. ----
  19. (SELECT DISTINCT actor_uid, target_uid, action
  20. FROM Friending
  21. WHERE date_trunc('day',time) = '2018-08-01' AND action = 'accept_request') b
  22. ON a.target_uid = b.actor_uid and a.actor_uid = b.target_uid
复制代码
回复

使用道具 举报

🔗
Hey_Qian 2018-7-27 04:50:24 | 只看该作者
全局:
请问q2 If you see the acceptance rate was 70% on 2018-01-05 and 50% on 2018-01-07, is there anything wrong? 这里是怎么回答的呀亲
回复

使用道具 举报

🔗
Jennyjennyshe 2018-7-27 06:20:02 | 只看该作者
本楼:
全局:
Thank you
回复

使用道具 举报

🔗
nancyliu0410 2018-8-8 03:39:01 | 只看该作者
全局:
赞赞赞赞赞赞赞赞赞赞
回复

使用道具 举报

🔗
mathwyc 2018-8-9 00:12:00 | 只看该作者
全局:
想请教一下这里的acceptance rate如何定义的呢?是那一天所有accept request的action除以所有send request的action吗?有要求accept的必须是这一天的request吗?
回复

使用道具 举报

🔗
holly3crane 2018-8-23 03:46:27 | 只看该作者
全局:
请问这样做对不对呀
Select sum(case when t1.actor_uid is null then 0 else 1 end) / count(t2.actor_uid)
from. 1point3acres.com
(Select distinct actor_uid, target_uid from friends
where action = ‘accept_request’and date = ‘2018-01-01’) t1 .1point3acres
right join
(Select distinct actor_uid, target_uid from friends . 1point3acres
where action = ‘send_request’and date = ‘2018-01-01’) t2
on t1.actor_uid = t2.target_uid and t2.actor_uid = t1.target_uid. check 1point3acres for more.
回复

使用道具 举报

🔗
chipmunkL 2018-8-25 00:15:15 | 只看该作者
全局:
SELECT ROUND(IFNULL(
(SELECT COUNT(*) ..
FROM (SELECT DISTINCT actor_uid, target_uid
FROM Friending
WHERE action = “accept_request”
AND date = “2018-01-01”) t1) /
(SELECT COUNT(*)
FROM (SELECT DISTINCT actor_uid, target_uid
FROM Friending
WHERE action = “send_request”
AND date = “2018-01-01”) t2)
, 0), 2) AS acceptance_rate;.
回复

使用道具 举报

🔗
daisy3104 2018-8-25 01:54:39 | 只看该作者
全局:
謝謝樓主分享
回复

使用道具 举报

🔗
hyper8866 2018-8-29 09:01:10 | 只看该作者
全局:
holly3crane 发表于 2018-8-23 23:08
不知道我的想法是不是对的,可能是整体的逻辑和沟通出了bug?比如应该先和面试官讨论 怎么定义‘好’,然 ...

哈哈 我觉得有道理。我的确说了首先定义好,不过自问自答自己说了个答案....总之全程自问自答。。anyway...
回复

使用道具 举报

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

本版积分规则

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