PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Statistics & Math/Snapchat

Compute posterior spam risk from flags

Last updated: Mar 29, 2026

Quick Overview

This question evaluates understanding of Bayes' theorem, conditional probability, and interpretation of classifier performance metrics (true positive and false positive rates) for computing posterior spam risk.

  • Medium
  • Snapchat
  • Statistics & Math
  • Data Scientist

Compute posterior spam risk from flags

Company: Snapchat

Role: Data Scientist

Category: Statistics & Math

Difficulty: Medium

Interview Round: Technical Screen

A binary classifier flags spammy requesters. Last week the base rate of spam among all requesters was 12%. The classifier has true positive rate (TPR) 0.90 and false positive rate (FPR) 0.04. a) Using Bayes' theorem, compute P(Spam | Flagged). Show your formula and final numeric answer rounded to 4 decimals. b) Compute P(Spam | Not Flagged) and interpret it (what fraction of unflagged requesters are still spam?). c) If the base rate dropped to 6% with the same TPR/FPR, recompute P(Spam | Flagged). Briefly explain how base rate changes affect the posterior and why. Provide all steps, formulas, and final answers.

Quick Answer: This question evaluates understanding of Bayes' theorem, conditional probability, and interpretation of classifier performance metrics (true positive and false positive rates) for computing posterior spam risk.

Related Interview Questions

  • Derive logistic regression and thresholds - Snapchat (hard)
  • Explain median vs mean for L1/L2 - Snapchat (medium)
  • Compute expectations and test fairness for coin flips - Snapchat (easy)
  • How to Update Bayesian Model for Concept Drift? - Snapchat (medium)
  • Calculate Posterior Probability Using Bayes' Theorem Example - Snapchat (easy)
Snapchat logo
Snapchat
Oct 13, 2025, 9:49 PM
Data Scientist
Technical Screen
Statistics & Math
4
0

A binary classifier flags spammy requesters. Last week the base rate of spam among all requesters was 12%. The classifier has true positive rate (TPR) 0.90 and false positive rate (FPR) 0.04.

a) Using Bayes' theorem, compute P(Spam | Flagged). Show your formula and final numeric answer rounded to 4 decimals. b) Compute P(Spam | Not Flagged) and interpret it (what fraction of unflagged requesters are still spam?). c) If the base rate dropped to 6% with the same TPR/FPR, recompute P(Spam | Flagged). Briefly explain how base rate changes affect the posterior and why.

Provide all steps, formulas, and final answers.

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Statistics & Math•More Snapchat•More Data Scientist•Snapchat Data Scientist•Snapchat Statistics & Math•Data Scientist Statistics & Math
PracHub

Master your tech interviews with 7,500+ 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.