← LinkedIn Interview Insights

LinkedIn·Data Scientist·Technical Phone Screen·Senior

Senior
May 2026

Summary

LinkedIn data scientist interview focused entirely on the job recommendation algorithm upgrade. Four questions, all connected, all requiring you to think end-to-end about experimentation and metrics. Not a casual screen.

Questions Asked (4)

Q1

What offline and online metrics would you use to evaluate whether a new job recommendation algorithm is actually performing better?

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

I went straight to online metrics (click-through rate, apply rate) and almost forgot to talk about offline evaluation entirely.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by framing the evaluation around the algorithm's objective—connecting qualified members to relevant jobs—and then propose a balanced set of online (behavioral) and offline (model-centric) metrics. Emphasize that online A/B test metrics are the ultimate arbiter, while offline metrics serve as early sanity checks and diagnostic tools.

Pro tip: Always tie metrics to the product's north-star (e.g., successful hires or qualified applications) and mention guardrail metrics to show you understand trade-offs, not just raw engagement.

1. Define success criteria

Clarify what 'better' means for the job recommendation algorithm—likely increasing qualified applications, interviews, or hires while maintaining member trust and engagement.

2. Select online metrics

Choose behavioral metrics from A/B tests such as click-through rate, apply rate, qualified apply rate, and downstream outcomes like interview or hire rate, plus engagement metrics like job views and saves.

3. Select offline metrics

Use model-centric metrics like precision@k, recall@k, NDCG, MAP, and coverage/diversity to assess ranking quality and relevance before or alongside online tests.

4. Include guardrail metrics

Monitor for negative side effects: unsubscribe rates, hide/block actions, report rates, and long-term member satisfaction to ensure the algorithm doesn't harm the ecosystem.

5. Validate with experimentation

Run a rigorous A/B test with sufficient power, analyze primary and secondary metrics, and check for novelty effects or segment-level differences before concluding superiority.

Key Points to Mention

  • Online metrics: CTR, apply rate, qualified apply rate, interview rate, hire rate, job saves, and application completion rate.
  • Offline metrics: precision@k, recall@k, NDCG, MAP, coverage, diversity, and calibration.
  • Guardrail metrics: unsubscribe rate, hide/block rate, report rate, and member satisfaction scores.
  • A/B testing best practices: randomization, sample size, statistical significance, and avoiding peeking.
  • Long-term vs short-term trade-offs: engagement vs quality of matches, and potential feedback loops.
  • Segment analysis: performance across different member segments (e.g., new vs experienced, active vs passive).

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

Q2

How would you design an A/B test to compare the new recommendation model against the existing one, specifically accounting for network effects between users?

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

This is where it got uncomfortable.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by defining the goal and metrics, then discuss the challenge of network effects and propose methods like cluster-based randomization or ego-network experiments. Emphasize the need to measure both direct and spillover effects, and suggest using a combination of online and offline evaluation.

Pro tip: At LinkedIn, network effects are significant; consider using graph clustering to create balanced treatment and control groups, and always check for interference by comparing within-cluster and across-cluster effects.

1. Define Objective and Metrics

Clearly state the primary metric (e.g., click-through rate, engagement) and guardrail metrics (e.g., user satisfaction, revenue). Consider both user-level and network-level metrics.

2. Identify Network Effects

Explain how interactions between users (e.g., connections, shared content) can cause spillover effects, violating the Stable Unit Treatment Value Assumption (SUTVA).

3. Choose Randomization Unit

Propose randomizing at a higher level than the user, such as clusters of connected users or ego-networks, to minimize interference. Discuss trade-offs between cluster size and statistical power.

4. Design and Analyze Experiment

Outline the experiment design: cluster randomization, sample size calculation accounting for intra-cluster correlation, and analysis using methods like cluster-robust standard errors or causal inference techniques.

5. Validate and Iterate

Suggest validation through A/A tests, checking for interference, and potentially running a switchback or time-based experiment. Consider combining with offline evaluation or simulation.

Key Points to Mention

  • Network effects and SUTVA violation
  • Cluster randomization or ego-network experiments
  • Spillover effects and interference
  • Intra-cluster correlation and adjusted sample size
  • Causal inference methods (e.g., difference-in-differences, instrumental variables)
  • Combining online and offline evaluation

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

Q3

How do you figure out the right sample size, how long to run the test, and what percentage of traffic to expose to the new model?

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

Talked through power calculations, minimum detectable effect, and variance.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by framing the problem around the experiment's goal: define the primary metric, minimum detectable effect (MDE), and statistical power. Then explain how to compute sample size using power analysis, translate that into test duration based on traffic, and choose traffic allocation to balance risk and speed. Emphasize that these decisions are interdependent and should be revisited as the experiment progresses.

Pro tip: At LinkedIn, where network effects and long-term user value matter, always consider whether the experiment could have spillover effects or delayed impact—this may require cluster randomization or longer run times. Also, be prepared to discuss how you'd handle multiple testing corrections if you're evaluating several metrics.

1. Define the experiment's goal and primary metric

Clarify the hypothesis and choose a single primary metric that directly measures success. Identify guardrail metrics to ensure the change doesn't harm other key areas.

2. Determine the minimum detectable effect (MDE)

Work with stakeholders to agree on the smallest effect size that would be practically significant. This depends on business impact and the cost of false positives/negatives.

3. Compute required sample size per variant

Use power analysis (e.g., with alpha=0.05, power=0.8) to calculate the sample size needed to detect the MDE, given the metric's variance. Consider using tools like Evan Miller's calculator or Python libraries.

4. Translate sample size into test duration and traffic allocation

Based on daily traffic eligible for the experiment, calculate how many days are needed to reach the required sample size. Decide on traffic allocation (e.g., 50/50) balancing statistical power, risk, and speed; consider a ramp-up plan.

5. Monitor and adjust if necessary

During the test, monitor for data quality, sample ratio mismatch (SRM), and early signals. If needed, extend the test or adjust traffic, but avoid peeking and stopping early without proper corrections.

Key Points to Mention

  • Statistical power (typically 80%) and significance level (alpha=0.05)
  • Minimum detectable effect (MDE) and its relationship with sample size
  • Variance of the metric and how it affects sample size
  • Traffic allocation strategies: 50/50 vs. unequal splits, and ramp-up approaches
  • Test duration considerations: novelty effects, weekly seasonality, and business cycles
  • Guardrail metrics and multiple testing corrections (e.g., Bonferroni, FDR)

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

Q4

If the new model performs well for some user segments but poorly for others, how would you figure out why and what would you do next?

Root Cause AnalysisA/B Testing & ExperimentationAdaptability & Ambiguity
Author's notes

My favorite question of the set.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by acknowledging the need to validate the observation and quantify the performance disparity across segments. Then systematically investigate potential causes—data, model, and user behavior—and propose targeted next steps, including further experimentation and iteration.

Pro tip: Emphasize the importance of understanding the business impact and prioritizing segments based on value and size. Also, mention the need to check for Simpson's paradox, where overall performance might mask segment-level issues.

1. Validate and Quantify

Confirm the performance disparity by analyzing metrics across segments, ensuring statistical significance and checking for data quality issues or confounding variables.

2. Segment Deep Dive

Examine each segment's characteristics, data distribution, and model predictions to identify patterns or anomalies that could explain the performance gap.

3. Hypothesis Generation

Brainstorm potential causes: data representation, feature relevance, model bias, or user behavior differences. Prioritize hypotheses based on likelihood and impact.

4. Test Hypotheses

Design experiments or analyses (e.g., A/B tests, bias audits, feature importance) to validate or refute each hypothesis, using holdout sets or targeted interventions.

5. Action Plan

Based on findings, propose next steps: retrain with balanced data, add segment-specific features, adjust model thresholds, or run targeted experiments to improve performance.

Key Points to Mention

  • Check for data quality issues and segment definition accuracy
  • Consider Simpson's paradox and ensure segment-level analysis
  • Evaluate model bias and fairness across segments
  • Use A/B testing to validate improvements for underperforming segments
  • Prioritize segments based on business impact and user value
  • Iterate and monitor performance post-intervention

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