PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Machine Learning/TikTok

Estimate heterogeneous treatment effects with causal ML

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's competency in causal machine learning, heterogeneous treatment effect estimation, off-policy evaluation, and fairness-aware policy design using observational data.

  • hard
  • TikTok
  • Machine Learning
  • Data Scientist

Estimate heterogeneous treatment effects with causal ML

Company: TikTok

Role: Data Scientist

Category: Machine Learning

Difficulty: hard

Interview Round: Technical Screen

You have logged, observational data from an always-on promotion and want to target users to maximize incremental revenue. Propose a causal ML approach to estimate heterogeneous treatment effects (HTE) and derive a targeting policy. Specify: (a) choose among T-/S-/X-/DR-learners and justify with bias–variance and ignorability considerations; (b) model choices and cross-fitting to reduce overfitting and nuisance bias; (c) handling positivity/overlap violations and extreme propensities; (d) evaluation metrics (policy value estimation, uplift/Qini, PEHE proxy) and how to implement off-policy evaluation with IPW and doubly robust estimators; (e) fairness constraints (e.g., demographic parity of treatment) and their impact on policy; (f) how you would A/B test the learned policy safely before full deployment.

Quick Answer: This question evaluates a candidate's competency in causal machine learning, heterogeneous treatment effect estimation, off-policy evaluation, and fairness-aware policy design using observational data.

Related Interview Questions

  • Design multimodal deployment under compute limits - TikTok (easy)
  • Explain overfitting, dropout, normalization, RL post-training - TikTok (medium)
  • Write self-attention and cross-entropy pseudocode - TikTok (medium)
  • Explain FlashAttention, KV cache, and RoPE - TikTok (medium)
  • Answer ML fundamentals and diagnostics questions - TikTok (hard)
TikTok logo
TikTok
Oct 13, 2025, 9:49 PM
Data Scientist
Technical Screen
Machine Learning
3
0

Context

You are given large-scale, logged observational data from an always-on promotion. Each record contains features X (user/context), a binary treatment A (promotion shown or not), and an outcome Y (e.g., revenue in the next 7 days). Treatment assignment was not randomized and may depend on X.

Goal: Learn heterogeneous treatment effects (HTE) to target users and maximize incremental revenue with a safe, fair, and evaluable deployment plan.

Assumptions (state and justify any deviations):

  • Binary treatment A ∈ {0,1}. Outcome Y is measured over a fixed horizon after exposure and is not affected by future actions (no carryover beyond window). No interference across users. Unconfoundedness given observed X is assumed plausible.
  • If promotion has a known cost c per exposure, the policy should maximize net incremental revenue (uplift minus cost).

Task

Propose a causal ML approach that addresses the following:

(a) Choose among T-/S-/X-/DR-learners for HTE, and justify your choice using bias–variance and ignorability considerations.

(b) Specify modeling choices for nuisance functions and HTE, and how you will use cross-fitting to reduce overfitting and nuisance bias.

(c) Describe how you will handle positivity/overlap violations and extreme propensities.

(d) Define evaluation metrics (policy value estimation, uplift/Qini, PEHE proxy) and explain how to implement off-policy evaluation with IPW and doubly robust estimators.

(e) Propose fairness constraints (e.g., demographic parity of treatment) and explain how they affect the learned policy.

(f) Outline how you would A/B test the learned policy safely before full deployment.

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Machine Learning•More TikTok•More Data Scientist•TikTok Data Scientist•TikTok Machine Learning•Data Scientist Machine Learning
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.