← Meta Interview Insights

Meta·Data Scientist·Technical Phone Screen·Senior

Senior
Jul 2026

Summary

Meta DS interview that was basically a stats and probability gauntlet dressed up as an ads monetization case. Five questions, all quantitative, and the last two caught me pretty off guard because I hadn't thought about mixture distributions in that context before.

Questions Asked (5)

Q1

You run an ads slot with High-Intent and Low-Intent user segments. Given click and conversion probabilities for each segment, revenue per conversion, and cost per impression, compute expected profit per 1,000 impressions under three targeting strategies: show to everyone, show only to users your classifier predicts as High-Intent (with given precision and recall), and show only when a user's posterior conversion probability exceeds some threshold. Derive the profit-maximizing threshold analytically and give its numeric value.

Pricing & MonetizationProduct Analytics & MetricsA/B Testing & Experimentation
Author's notes

This was the centerpiece question and I spent way too long on S2 before realizing I needed to account for what the classifier actually does to the composition of shown impressions.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by clearly defining the notation and assumptions, then compute expected profit per 1,000 impressions for each strategy using the given probabilities and costs. For the threshold strategy, express profit as a function of the threshold, take the derivative, and solve for the optimal threshold where marginal revenue equals marginal cost. Finally, plug in the numbers to get the numeric value and compare strategies.

Pro tip: Emphasize that the optimal threshold is where the posterior conversion probability times revenue per conversion equals the cost per impression, i.e., p* = cost_per_impression / revenue_per_conversion. This shows you understand the underlying economics and can generalize beyond the specific numbers.

1. Define notation and assumptions

Clearly state the given probabilities (click and conversion for High-Intent and Low-Intent), revenue per conversion, cost per impression, and classifier precision and recall. Assume independence between click and conversion given segment, and that the classifier's predictions are based on observable features.

2. Compute expected profit for show-to-everyone

Calculate the overall click-through rate and conversion rate as weighted averages of the segment rates, using the segment proportions. Then compute expected profit per 1,000 impressions as 1000 * (conversion_rate * revenue_per_conversion - cost_per_impression).

3. Compute expected profit for classifier-based targeting

Using the classifier's precision and recall, determine the proportion of users targeted and the conversion rate among them. Then compute expected profit per 1,000 impressions similarly, accounting for the fact that only predicted High-Intent users are shown the ad.

4. Derive optimal threshold analytically

For the threshold strategy, express expected profit per impression as a function of the threshold t: profit(t) = P(p > t) * (E[p | p > t] * revenue_per_conversion - cost_per_impression). Show that the derivative leads to the condition that the optimal threshold is t* = cost_per_impression / revenue_per_conversion, assuming the posterior probability distribution is continuous and well-behaved.

5. Plug in numbers and compare strategies

Substitute the given values into the formulas to compute the numeric profit for each strategy and the optimal threshold. Compare the results to identify which strategy yields the highest expected profit per 1,000 impressions.

Key Points to Mention

  • Expected profit per impression = P(click) * P(conversion|click) * revenue_per_conversion - cost_per_impression, but simplify using overall conversion probability if click and conversion are not independent.
  • For classifier targeting, use precision and recall to compute the confusion matrix and the conversion rate among predicted positives.
  • The optimal threshold for showing an ad is where the marginal expected revenue equals the marginal cost, i.e., p * revenue_per_conversion = cost_per_impression.
  • The threshold strategy is equivalent to targeting users whose posterior conversion probability exceeds cost_per_impression / revenue_per_conversion.
  • Account for the base rate of High-Intent users when computing the overall profit for each strategy.
  • Discuss potential limitations: independence assumptions, classifier calibration, and the need for accurate posterior probabilities.

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

Q2

For the strategy where you show ads to everyone, compute the variance of the number of conversions per 1,000 impressions using the law of total variance to decompose across the High-Intent and Low-Intent mixture. Does the mixture increase or decrease overdispersion compared to a single Bernoulli with the population-average conversion rate?

Product Analytics & MetricsA/B Testing & Experimentation
Author's notes

I knew the law of total variance formula but applying it to a mixture Bernoulli is one of those things where you have to be careful about what's random.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

First, define the mixture model: with probability p, an impression is High-Intent with conversion rate r_H, and with probability 1-p it is Low-Intent with rate r_L. Then apply the law of total variance to the number of conversions per 1,000 impressions, treating each impression as a Bernoulli trial with a random success probability drawn from the mixture. Finally, compare the resulting variance to the variance of a single Bernoulli with the population-average rate r_bar = p*r_H + (1-p)*r_L, and conclude that the mixture increases overdispersion (variance > Bernoulli variance) whenever r_H ≠ r_L.

Pro tip: Emphasize that the law of total variance decomposes the variance into 'within-component' and 'between-component' parts, and that the between-component term is exactly the extra overdispersion caused by the mixture—this shows you understand the mechanism, not just the formula.

1. Set up the mixture model

Define the two intent segments with probabilities p and 1-p and conversion rates r_H and r_L. State that for a single impression, the conversion indicator Y has a Bernoulli distribution with random success probability R that equals r_H with probability p and r_L with probability 1-p.

2. Apply the law of total variance to one impression

Compute Var(Y) = E[Var(Y|R)] + Var(E[Y|R]) = E[R(1-R)] + Var(R). Show that E[R] = r_bar and Var(R) = p(1-p)(r_H - r_L)^2, and that E[R(1-R)] = r_bar(1-r_bar) - Var(R).

3. Scale to 1,000 impressions

Assuming independence across impressions, multiply the single-impression variance by 1,000 to get the variance of the number of conversions per 1,000 impressions. Explicitly note the independence assumption and that the mixture is at the impression level.

4. Compare to the single Bernoulli benchmark

The single Bernoulli with rate r_bar has variance 1,000 * r_bar(1-r_bar). The mixture variance is 1,000 * [r_bar(1-r_bar) + Var(R)] because the within-component term simplifies to r_bar(1-r_bar) - Var(R) and the between term adds Var(R). Thus the mixture variance exceeds the Bernoulli variance by 1,000 * p(1-p)(r_H - r_L)^2.

5. Conclude on overdispersion

State that the mixture increases overdispersion whenever r_H ≠ r_L, because the between-segment variance term is strictly positive. If r_H = r_L, the mixture reduces to a single Bernoulli and there is no extra overdispersion.

Key Points to Mention

  • Law of total variance: Var(Y) = E[Var(Y|R)] + Var(E[Y|R])
  • Mixture model with two segments: High-Intent (rate r_H, probability p) and Low-Intent (rate r_L, probability 1-p)
  • Population-average conversion rate r_bar = p*r_H + (1-p)*r_L
  • Between-segment variance term Var(R) = p(1-p)(r_H - r_L)^2
  • Overdispersion increases by 1,000 * p(1-p)(r_H - r_L)^2 compared to a single Bernoulli with rate r_bar
  • Independence assumption across impressions and that the mixture is at the impression level

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

Q3

Your PM suggests targeting impressions exclusively to High-Intent users. Give two quantitative pros and two quantitative cons of this approach, drawing on the numbers from your earlier analysis, including things like reach impact and profit sensitivity to classifier errors.

Product StrategyPricing & MonetizationTechnical Trade-offs
Author's notes

Honestly the most conversational part of the whole interview.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by restating the PM's proposal and framing the analysis around the two quantitative dimensions: reach impact and profit sensitivity to classifier errors. Then present two pros and two cons, each backed by specific numbers from the earlier analysis, and conclude with a balanced recommendation that acknowledges trade-offs.

Pro tip: Quantify the trade-off explicitly—e.g., 'Targeting high-intent users increases profit per impression by X% but reduces reach by Y%, and a 1% classifier error costs $Z in profit'—to show you can translate model metrics into business impact.

1. Clarify the proposal and metrics

Briefly restate what targeting high-intent users means and identify the key metrics from the earlier analysis: reach, profit per impression, and classifier error rates.

2. Present quantitative pros

State two pros with numbers: e.g., higher conversion rate leading to increased profit per impression, and better ROI due to reduced wasted spend on low-intent users.

3. Present quantitative cons

State two cons with numbers: e.g., significant reduction in reach (e.g., 40% fewer impressions) and profit sensitivity to classifier errors (e.g., a 5% false negative rate could lose $X in potential profit).

4. Discuss trade-offs and sensitivity

Explain how the pros and cons interact, emphasizing the profit sensitivity to classifier errors and the diminishing returns of narrowing targeting.

5. Recommend a balanced approach

Suggest a hybrid strategy, such as using a tiered targeting system or adjusting bids by intent score, to capture upside while mitigating reach loss and error sensitivity.

Key Points to Mention

  • Reach impact: quantify the percentage decrease in impressions when targeting only high-intent users.
  • Profit sensitivity: show how small changes in classifier precision/recall affect overall profit.
  • Conversion rate lift: provide the expected increase in conversion rate for high-intent users.
  • Cost savings: mention reduction in wasted ad spend on low-intent users.
  • Classifier error rates: reference false positive/negative rates from the earlier analysis and their profit implications.
  • Trade-off quantification: compare the profit gain from higher conversion vs. profit loss from reduced reach and errors.

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

Q4

User sessions arrive as a Poisson process at a fixed rate. Write the PDF and CDF of the inter-arrival time distribution, compute its mean, variance, and the probability that a wait exceeds 10 minutes. Then describe what the sample mean of many draws converges to, what theorem governs its approximate distribution for large samples, and how this connects to why average-time-spent metrics stabilize in production dashboards.

Product Analytics & MetricsA/B Testing & Experimentation
Author's notes

Standard exponential distribution stuff, I was fine on the PDF/CDF and the CLT part.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by clearly stating the exponential distribution for inter-arrival times, then derive the PDF, CDF, mean, variance, and tail probability. Next, explain the Law of Large Numbers and Central Limit Theorem, and finally connect these to why average metrics stabilize in production dashboards.

Pro tip: Emphasize that the exponential distribution is memoryless and that the CLT explains the approximate normality of sample means, which is why dashboards can use confidence intervals and detect anomalies.

1. Define the distribution

State that inter-arrival times follow an exponential distribution with rate λ, and write the PDF f(t)=λe^{-λt} and CDF F(t)=1-e^{-λt} for t≥0.

2. Compute mean and variance

Derive the mean as 1/λ and variance as 1/λ^2, showing the integration or citing known results.

3. Calculate tail probability

Compute P(T>10) = 1 - F(10) = e^{-10λ}, and plug in the given rate if provided.

4. Explain convergence of sample mean

State that by the Law of Large Numbers, the sample mean converges to the true mean 1/λ as sample size increases.

5. Connect to production dashboards

Describe how the Central Limit Theorem ensures the sample mean is approximately normal for large n, leading to stable average metrics and enabling statistical process control.

Key Points to Mention

  • Exponential distribution PDF and CDF formulas
  • Mean = 1/λ, variance = 1/λ^2
  • Tail probability P(T>10) = e^{-10λ}
  • Law of Large Numbers: sample mean converges to population mean
  • Central Limit Theorem: sample mean approximately normal for large n
  • Connection to dashboard stability: reduced variance and predictable fluctuations

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

Q5

If real traffic is a mixture of two user types with different click propensities, is the inter-click-time distribution still exponential? If not, what family does it belong to qualitatively, and what diagnostic plot would you use to detect the mixture?

Product Analytics & MetricsRoot Cause Analysis
Author's notes

This one tripped me up more than it should have.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by explaining that a mixture of two exponential distributions with different rates is not exponential; it is a hyperexponential distribution. Then describe its qualitative shape (heavier tail, higher probability of very short and very long inter-click times) and recommend a diagnostic plot such as a log-survival plot or a QQ plot against exponential to detect the mixture.

Pro tip: Mention that in practice you would also look at the hazard function: a decreasing hazard is a hallmark of unobserved heterogeneity (mixture), whereas a constant hazard indicates exponentiality. This shows you understand the underlying process, not just the math.

1. State the null model

Clarify that if all users had the same click propensity, inter-click times would be exponential (constant hazard).

2. Explain the mixture effect

Describe that mixing two exponential distributions with different rates yields a hyperexponential distribution, which is not exponential.

3. Characterize the qualitative shape

Note that the mixture has a heavier tail and more mass near zero than a single exponential, and its hazard function decreases over time.

4. Recommend diagnostic plots

Suggest a log-survival plot (log P(T>t) vs t) which would be linear for exponential but convex for a mixture, or a QQ plot against exponential which would show curvature.

5. Connect to business implications

Briefly mention that detecting a mixture can inform user segmentation or model improvements, e.g., using a mixture model or adding covariates.

Key Points to Mention

  • Exponential distribution assumes constant hazard rate.
  • Mixture of exponentials is hyperexponential, not exponential.
  • Hyperexponential has decreasing hazard and heavier tail.
  • Log-survival plot: linear for exponential, convex for mixture.
  • QQ plot against exponential shows systematic curvature.
  • Practical implication: unobserved heterogeneity suggests segmentation or mixture modeling.

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