M5-004Medium漏斗与留存 · Funnels & retention

如何计算 DAU / MAU(stickiness)?口径上要注意什么?

How do you compute DAU / MAU (stickiness), and what definitions matter?
💡 考场高分一句话答案:

DAU = 当日去重活跃用户数,MAU = 近 30 天去重活跃用户数,比值即 stickiness;关键是去重口径与时间窗一致。

DAU is distinct active users that day, MAU distinct active users in the trailing 30 days, and the ratio is stickiness. The dedup definition must match across both.

🧭 Playbook 核心提示 / Actionable Calibration:

相关子查询在 BigQuery 里对每一天都扫一遍,成本很高。生产写法通常用自连接 + 窗口,或预聚合到日粒度后再滚动求和(近似)。面试里说明这个权衡是加分项。

📌 核心考察要点 (Key Points)

  • 去重:COUNT(DISTINCT user_id),且 user_id 需跨设备合并
  • 时间窗:MAU 用滚动 30 天(不是自然月),否则月初月末不可比
  • 活跃定义:必须有明确定义(打开 App / 有有效交互 / 完成核心动作)
  • 陷阱:DAU/MAU 上升可能是 MAU 萎缩导致,必须同时看绝对量
  • Dedup: COUNT(DISTINCT user_id) with cross-device identity merged
  • Window: use a rolling 30 days, not the calendar month, otherwise month boundaries are not comparable
  • Activity: must be explicitly defined — app open, valid interaction, or core action
  • Trap: stickiness can rise because MAU is shrinking, so always report the absolute levels

🔍 大厂面试官连环追问 (Follow-ups)

  • 如何用窗口函数近似计算滚动 MAU?
  • DAU/MAU 适合衡量什么类型的产品?

嫌字多看太累?进入苏格拉底式对话推演实验室

零打字负担,以大厂考官真实困境切入,通过点选直觉选项暴露思维盲区,手把手推导 Why。

💬 开启对话式破冰 ➔
⚡
想检验本题的肌肉记忆?进入 3 阶闪卡主动回忆盲测
隐藏答案遮罩,自测:审题锚点 ➔ 数理公式机理 ➔ 工业标杆代码与连环追问。3 分钟攻破认知盲区!
🎯 立即在闪卡中盲测此题➔