← TikTok Interview Insights

TikTok·Data Scientist·Technical Phone Screen·Senior

Senior
May 2026

Summary

TikTok data science interview that went deep into causal inference territory. The whole session was basically one long PSM question broken into six parts, and if you haven't touched Rosenbaum bounds recently you will feel it.

Questions Asked (6)

Q1

You have observational data where users self-select into a feature. Walk through how you'd implement propensity score matching to estimate the average treatment effect on the treated for 7-day retention, starting with your choice of propensity model and why.

A/B Testing & ExperimentationTechnical Trade-offs
Author's notes

I went with logistic regression first and framed it as the default when you want interpretability and your covariates are well-behaved.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by framing the causal inference problem: self-selection creates confounding, so you need to balance observed covariates between treated and control groups. Walk through the full PSM pipeline—propensity model choice, estimation, matching, balance diagnostics, and ATT calculation—while emphasizing assumptions and sensitivity checks. Tie each decision back to the business context of 7-day retention at TikTok.

Pro tip: Don't just say 'logistic regression'—explain why it's often preferred for propensity scores (calibration, interpretability, stable odds) and mention that you'd validate with balance metrics like standardized mean differences, not AUC. Also, proactively note that PSM only addresses observed confounding, and suggest a sensitivity analysis (e.g., Rosenbaum bounds) to show maturity.

1. Define estimand and assumptions

Clarify that you're estimating ATT: the effect of the feature on 7-day retention for those who used it. State key assumptions: conditional independence (no unobserved confounding), positivity, and SUTVA.

2. Choose and fit propensity model

Select a model to estimate P(T=1|X). Justify logistic regression for its calibration and interpretability, but mention alternatives like gradient boosting if nonlinearities are suspected. Include relevant covariates (demographics, past behavior, engagement metrics) and avoid post-treatment variables.

3. Match treated to controls

Use a matching algorithm (e.g., nearest neighbor with caliper, optimal matching) on the propensity score or logit of it. Specify caliper width (e.g., 0.2 SD of logit) and whether matching is with or without replacement. Consider trimming to ensure common support.

4. Assess balance and common support

Check covariate balance using standardized mean differences (<0.1) and variance ratios. Inspect propensity score distributions to ensure overlap. If balance is poor, revise the model or matching method.

5. Estimate ATT and sensitivity

Compute ATT as the difference in mean 7-day retention between matched treated and control groups. Use bootstrapping or Abadie-Imbens standard errors. Conduct sensitivity analysis (e.g., Rosenbaum bounds) to assess robustness to unobserved confounding.

Key Points to Mention

  • Propensity score definition and its role in balancing covariates
  • Choice of logistic regression for propensity model: calibration, interpretability, and why not to use it for prediction
  • Matching methods: nearest neighbor, caliper, optimal matching, and trade-offs
  • Balance diagnostics: standardized mean differences, variance ratios, and love plots
  • Common support and trimming to avoid extrapolation
  • ATT estimation and sensitivity analysis for unobserved confounding

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.

Q2

Describe your matching strategy: 1-to-1 nearest neighbor with or without replacement, how you'd set the caliper, and how you'd tune these choices.

A/B Testing & ExperimentationTechnical Trade-offs
Author's notes

Caliper in standard deviation units of the logit of the propensity score is the right framing and I got that out.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by clarifying the goal of matching (e.g., causal inference, bias reduction) and the data context. Then explain the trade-offs between 1-to-1 with and without replacement, how to set the caliper based on propensity score distribution, and how to tune these choices using diagnostics like balance checks and sensitivity analysis. Emphasize that the optimal strategy depends on the specific problem and data.

Pro tip: Always check covariate balance after matching and consider the impact of replacement on variance and bias. In practice, using a caliper of 0.2 standard deviations of the logit of propensity score is a good starting point, but validate with your specific data.

1. Clarify the matching objective

Determine whether matching is for causal inference, reducing confounding, or creating comparable groups. This guides whether to prioritize bias reduction or variance.

2. Choose between with and without replacement

Discuss that matching with replacement can reduce bias by allowing control units to be reused, but may increase variance and correlation. Without replacement ensures independence but may sacrifice match quality.

3. Set the caliper

Explain that the caliper defines the maximum allowed distance between matched units. A common rule is 0.2 * SD of the logit of propensity score, but it should be tuned based on balance and sample size.

4. Tune choices via diagnostics

Use balance metrics (e.g., standardized mean differences) and sensitivity analysis to evaluate different calipers and replacement strategies. Consider cross-validation or simulation to optimize.

5. Consider practical constraints

Account for sample size, computational cost, and interpretability. For large datasets, with replacement may be feasible; for small, without replacement might be necessary.

Key Points to Mention

  • Propensity score matching and its role in causal inference
  • Trade-off between bias and variance in matching with/without replacement
  • Caliper definition and common rule of thumb (0.2 * SD of logit of PS)
  • Diagnostics: standardized mean differences, variance ratios, and balance plots
  • Sensitivity analysis to assess robustness to unmeasured confounding
  • Consideration of sample size and computational efficiency

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.

Q3

What balance diagnostics would you run after matching, and what do you do if balance is insufficient?

A/B Testing & ExperimentationProduct Analytics & Metrics
Author's notes

Standardized mean differences below 0.1 per covariate, variance ratios close to 1, KS tests for distributional differences.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by outlining the standard balance diagnostics you would run after matching, such as standardized mean differences (SMD) and variance ratios, and then explain your iterative process for addressing insufficient balance, including model refinement and sensitivity analysis. Emphasize that balance is not just a statistical check but a critical step to ensure valid causal inference in A/B tests and product analytics.

Pro tip: Mention that you prioritize balance on key covariates that are most predictive of the outcome, and that you use the 'balance as a continuous target' mindset rather than a binary threshold. This shows you understand the trade-offs and practical constraints in real-world experimentation.

1. Run Standard Balance Diagnostics

Compute standardized mean differences (SMD) for all covariates and inspect variance ratios between treated and control groups. Also check for interactions and higher-order moments if relevant.

2. Visualize and Interpret Balance

Use Love plots or other visualizations to identify covariates with poor balance. Assess whether imbalances are practically significant, not just statistically significant.

3. Iterate on Matching Specification

If balance is insufficient, adjust the matching algorithm: change the distance metric (e.g., propensity score, Mahalanobis), caliper width, or add exact matching constraints. Consider using genetic matching or coarsened exact matching.

4. Consider Alternative Approaches

If matching still fails, explore weighting methods (e.g., inverse probability weighting, entropy balancing) or regression adjustment. Document the trade-offs and potential biases.

5. Conduct Sensitivity Analysis

Assess how sensitive results are to unobserved confounding using methods like Rosenbaum bounds. Report the robustness of findings and acknowledge limitations.

Key Points to Mention

  • Standardized mean difference (SMD) and its threshold (e.g., <0.1 or <0.25)
  • Variance ratios and checking for distributional overlap
  • Love plots for visualizing balance
  • Iterative matching process: caliper, distance metric, exact matching
  • Alternative methods: weighting, regression adjustment, CEM
  • Sensitivity analysis for unobserved confounding

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.

Q4

How do you detect and handle lack of overlap in the propensity score distributions between treated and control groups?

A/B Testing & ExperimentationTechnical Trade-offs
Author's notes

Plot the distributions and look for regions where one group has near-zero density.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by defining lack of overlap (positivity violation) and its impact on causal inference. Then outline a systematic process: detect via diagnostics, assess severity, and apply appropriate handling methods. Emphasize trade-offs and practical considerations for large-scale experimentation at TikTok.

Pro tip: Mention that in large-scale A/B tests, lack of overlap often signals a broken randomization or targeting issue, so fixing the experiment design is preferable to post-hoc adjustments. Also, highlight that trimming can introduce bias if not done carefully, and sensitivity analysis is crucial.

1. Detect lack of overlap

Use propensity score distributions (e.g., histograms, density plots) and summary statistics (min/max, percentiles) to visually and numerically assess overlap. Calculate common support region and identify extreme scores.

2. Quantify and assess severity

Measure the proportion of units outside the common support and check covariate balance within the overlap region. Determine if the lack of overlap is due to a few outliers or systematic differences.

3. Choose handling strategy

Consider trimming (discarding units outside common support), weighting (e.g., inverse probability weighting with stabilization), or matching with calipers. For severe cases, revisit experiment design or use alternative methods like doubly robust estimation.

4. Evaluate impact and sensitivity

Compare results with and without handling to assess robustness. Conduct sensitivity analysis to unmeasured confounding and report limitations. If possible, validate with a holdout set or simulation.

5. Communicate and iterate

Clearly explain the issue and chosen approach to stakeholders, emphasizing trade-offs. If overlap is poor, recommend improvements for future experiments (e.g., better targeting, stratification).

Key Points to Mention

  • Definition of positivity/overlap and its importance for causal inference
  • Common support region and methods to identify it (e.g., histograms, boxplots, Love plots)
  • Trimming vs. weighting vs. matching: pros and cons, and impact on bias-variance trade-off
  • Inverse probability weighting (IPW) and its variants (stabilized, trimmed weights)
  • Sensitivity analysis and bounds (e.g., Rosenbaum bounds) for unmeasured confounding
  • Practical implications in A/B testing: randomization checks, targeting criteria, and scalability

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.

Q5

For variance estimation after PSM, when would you use Abadie-Imbens standard errors versus bootstrapping?

A/B Testing & ExperimentationTechnical Trade-offs
Author's notes

This tripped me up more than it should have.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by clarifying that both methods address the fact that propensity scores are estimated, not known, which affects the variance of treatment effect estimates. Then compare Abadie-Imbens standard errors, which provide a closed-form correction for estimated propensity scores, with bootstrapping, which is more flexible but computationally intensive. Conclude with practical guidance based on sample size, computational constraints, and the need for valid inference.

Pro tip: Mention that Abadie-Imbens standard errors are specifically designed for matching estimators and are robust to misspecification of the propensity score model, whereas bootstrapping may fail to capture the full uncertainty when matching is not smooth. Also note that in large-scale A/B tests at TikTok, computational efficiency often favors Abadie-Imbens unless the matching procedure is complex.

1. Clarify the problem

Explain that after propensity score matching (PSM), treatment effect estimates are uncertain due to both sampling variability and the estimation of propensity scores. Standard errors must account for this extra uncertainty.

2. Describe Abadie-Imbens standard errors

Abadie-Imbens standard errors provide a closed-form variance estimator that adjusts for the fact that propensity scores are estimated. They are derived under the assumption that matching is done without replacement and are valid for various matching estimators.

3. Describe bootstrapping

Bootstrapping involves resampling the data with replacement and re-running the entire matching and estimation procedure to obtain an empirical distribution of the treatment effect. It is a general-purpose method but can be computationally expensive and may not be valid for certain matching algorithms.

4. Compare when to use each

Use Abadie-Imbens when you need a fast, theoretically justified variance estimate for common matching estimators (e.g., nearest neighbor, caliper) and when the sample is large. Use bootstrapping when the matching procedure is complex, when you need to account for additional sources of uncertainty (e.g., from a first-stage model), or when the sample is small and computational resources are available.

5. Provide practical recommendation

In practice, for large-scale experiments like those at TikTok, Abadie-Imbens is often preferred for its computational efficiency and theoretical guarantees. However, if the matching is not standard or if there is concern about model misspecification, bootstrapping can serve as a robustness check.

Key Points to Mention

  • Propensity score estimation introduces additional uncertainty that must be accounted for in variance estimation.
  • Abadie-Imbens standard errors provide a closed-form correction for estimated propensity scores and are valid for many matching estimators.
  • Bootstrapping is a flexible, non-parametric method but can be computationally intensive and may not be valid for non-smooth matching procedures.
  • Abadie-Imbens are typically faster and more suitable for large datasets, while bootstrapping is better for complex matching or small samples.
  • The choice depends on the matching algorithm, sample size, computational resources, and the need for robustness checks.
  • In industry settings like TikTok, computational efficiency and scalability often favor Abadie-Imbens, but bootstrapping can be used for validation.

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.

Q6

Explain Rosenbaum sensitivity analysis: what is the gamma parameter, how do you find the point where your conclusions flip, and how would you communicate that to a non-technical product manager?

A/B Testing & ExperimentationStakeholder Management
Author's notes

Gamma is the odds ratio of treatment assignment that an unobserved confounder could introduce while still leaving your conclusions intact.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by defining Rosenbaum sensitivity analysis in simple terms: it assesses how robust a causal conclusion is to unmeasured confounding. Then explain the gamma parameter as the odds ratio of differential treatment assignment due to unmeasured confounding, and describe how to find the tipping point by incrementally increasing gamma until the p-value crosses the significance threshold. Finally, tailor the communication to a product manager by using a concrete example and focusing on the practical implication: how much unmeasured bias would be needed to overturn the result.

Pro tip: Emphasize that sensitivity analysis is not about proving causality but about quantifying the strength of unmeasured confounding needed to explain away the effect—this shows you understand its role in responsible decision-making. Also, when communicating to a PM, avoid statistical jargon and instead say something like: 'Our result is strong enough that an unmeasured factor would need to be X times more common in the treatment group to make the effect disappear.'

1. Define Rosenbaum sensitivity analysis

Explain that it's a method to assess how sensitive a causal inference is to hidden bias from unmeasured confounding. Mention that it's commonly used in observational studies when randomization isn't possible.

2. Explain the gamma parameter

Describe gamma (Γ) as the odds ratio of receiving treatment for two individuals with identical observed covariates but different unobserved factors. A gamma of 1 means no hidden bias; larger values indicate stronger potential bias.

3. Describe finding the tipping point

Explain that you incrementally increase gamma and recompute the p-value or confidence interval for the treatment effect. The tipping point is the gamma value at which the conclusion flips (e.g., p-value exceeds 0.05 or CI includes zero).

4. Communicate to a non-technical PM

Translate the tipping point into a practical statement: 'Our result would only be overturned if an unmeasured factor made treatment X times more likely.' Use analogies and focus on the decision at hand, not the math.

Key Points to Mention

  • Definition of unmeasured confounding and why it matters in causal inference.
  • Gamma as a sensitivity parameter representing the magnitude of hidden bias.
  • The tipping point (or sensitivity threshold) where statistical significance is lost.
  • How to interpret gamma values: e.g., gamma=1.5 means unmeasured confounding would need to increase odds of treatment by 50% to explain away the effect.
  • The importance of context: a high tipping point indicates a robust result, while a low one suggests caution.
  • Communication strategies: use concrete examples, avoid jargon, and tie back to business impact.

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.