M3-018Hard功效与样本量 · Power & sample size
什么是非劣性检验(non-inferiority)?什么场景需要?
What is a non-inferiority test and when do you need one?
💡 考场高分一句话答案:
当目标是“证明新方案不比旧方案差太多”而不是“更好”时使用;需要预设非劣性边界 δ。
Used when the goal is to show a new option is not meaningfully worse than the incumbent, rather than better. It requires a pre-specified non-inferiority margin delta.
📌 核心考察要点 (Key Points)
- 假设:$H_0:\ \mu_{\text{new}}-\mu_{\text{old}}\le -\delta$ vs $H_1:\ >-\delta$(δ 为非劣性边界)
- 场景:降成本、降延迟、简化流程的替代方案——不指望更好,但不能更差
- 边界设定:δ 应由业务决定(可接受的最大损失),不能由数据反推
- 样本量:通常比优效性检验更大,因为要排除“差一点”
- Hypotheses: $H_0:\ \mu_{\text{new}}-\mu_{\text{old}}\le -\delta$ versus $H_1:\ >-\delta$
- Applies to: cheaper, faster or simpler alternatives where you do not expect improvement but cannot accept meaningful loss
- Margin: delta must be set by the business as the largest acceptable loss, never reverse-engineered from the data
- Sample size: usually larger than a superiority test, because you must exclude a small loss
📐 第一性原理与数理推导机理
非劣性检验的 CI 判据:计算效应差的单侧 $(1-\alpha)$ 置信区间下界,若下界 $>-\delta$ 则判定非劣。注意这里用的是单侧检验,与双侧优效性检验的 α 分配不同。
⚖️ 业务权衡与取舍 (Trade-offs & Calibration)
非劣性设计最常见的错误是事后改 δ:看到结果不达标就把 δ 放宽。这在监管场景是严重问题。正确做法是 δ 在方案阶段由业务与统计共同签字确定,并写入预注册文档。
⚠️ 常见高频面试陷阱与避坑指南
- 把“不显著”当成“非劣”(完全不等于)
- δ 设定过宽,导致“劣化很多也算通过”
🔍 大厂面试官连环追问 (Follow-ups)
- 非劣性检验能否同时检验优效性?
- 如何向业务方解释 δ 的含义?
嫌字多看太累?进入苏格拉底式对话推演实验室
零打字负担,以大厂考官真实困境切入,通过点选直觉选项暴露思维盲区,手把手推导 Why。
⚡
Test muscle memory on this topic via 3-Layer Flashcards
Active Recall: Mentally formulate Prompt ➔ Math Derivation ➔ Benchmark Implementation in 3 minutes.