Snap·Data Scientist·Technical Phone Screen
May 2026
Snapchat data scientist technical screen, pretty much a logistic regression gauntlet from start to finish. They went way deeper on the math than I expected, like full gradient and Hessian derivations, not just 'explain logistic regression at a high level.' Walked out unsure if I'd nailed it or completely embarrassed myself.
- Write out the sigmoid function and the Bernoulli log-likelihood for binary logistic regression. Then derive the gradient and Hessian with respect to the coefficients under L2 regularization, and explain why the objective is convex.
- With a single-feature model where the intercept is -1.2 and the coefficient is 0.8, compute the predicted probability for x = 2.0. Also report the odds and the odds ratio for a one-unit increase in x.
- If the positive class occurs only 2% of the time and a false negative is ten times more costly than a false positive, what is the Bayes-optimal decision threshold? How would you calibrate model probabilities, and what are the tradeoffs between Platt scaling and isotonic regression?
- What are the numerically stable forms for log(sigmoid(z)) and log(1 minus sigmoid(z)), and why do the naive expressions cause problems?
- How does severe class imbalance affect maximum likelihood estimates in logistic regression, and what regularization or reweighting strategies would you apply? Back it up analytically.
“This is where I started sweating.” The rest of the author's notes on Data Scientist interview at Snap, Technical Phone Screen round, covers how they worked through the question, what the panel pushed back on, and what they would do differently.
View Post