PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Analytics & Experimentation/Meta

Posterior probability given model accuracy

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's understanding of Bayesian inference and conditional probability as applied to binary classifiers, with emphasis on interpreting sensitivity, specificity and base-rate effects.

  • easy
  • Meta
  • Analytics & Experimentation
  • Data Scientist

Posterior probability given model accuracy

Company: Meta

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: easy

Interview Round: Onsite

Scenario: Security classification model has symmetric 95 % accuracy, base‑rate bad users 5 %. Compute posterior probability a user is bad when flagged. ​ Question 1: If 5 % of users are bad and model accuracy is 95 % on both classes, what is P(true bad | predicted bad)? (Hint: Bayes’ theorem)

Quick Answer: This question evaluates a candidate's understanding of Bayesian inference and conditional probability as applied to binary classifiers, with emphasis on interpreting sensitivity, specificity and base-rate effects.

Related Interview Questions

  • Measure scheduled posts feature success - Meta (medium)
  • Estimate ads ranking revenue impact - Meta (medium)
  • How should you evaluate unconnected content? - Meta (medium)
  • Should WhatsApp launch group calls? - Meta (medium)
  • How would you grow Meta products? - Meta (medium)
Meta logo
Meta
Jul 12, 2025, 6:59 PM
Data Scientist
Onsite
Analytics & Experimentation
7
0

Security Classification: Posterior Probability When Flagged

Context

You are evaluating a binary classifier that flags potentially bad users. Assume:

  • Base rate of bad users: P(Bad) = 5%.
  • Symmetric 95% accuracy: sensitivity (true positive rate) = 95% and specificity (true negative rate) = 95%.

Question

  1. Using Bayes' theorem, compute the posterior probability that a user is truly bad given they are flagged by the model: P(Bad | Flagged).

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Analytics & Experimentation•More Meta•More Data Scientist•Meta Data Scientist•Meta Analytics & Experimentation•Data Scientist Analytics & Experimentation
PracHub

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