Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Choose Logistic Regression for Integrity Risk

Easy
Machine LearningAsked 1 times

Problem

Business Context

Meta Integrity needs a binary classifier to predict whether a newly created Facebook ad account will trigger a policy enforcement action within 14 days. You must decide when a regularized logistic regression is preferable to a tree-based model for this production use case, then build and evaluate both.

Dataset

You are given a tabular dataset of ad-account snapshots collected at account creation time.

Feature GroupCountExamples
Numeric activity14account_age_hours, payment_attempts_24h, spend_velocity, device_count
Categorical metadata9country, business_type, payment_method_type, signup_surface
Aggregated integrity signals8prior_disabled_assets, linked_entity_risk_score, ip_reputation_bucket
Simple interaction candidates5spend_per_device, attempts_per_payment_method, linked_assets_per_admin
  • Size: 420K ad accounts, 36 features
  • Target: Binary — enforcement within 14 days (1) vs no enforcement (0)
  • Class balance: 8.7% positive, 91.3% negative
  • Missing data: 12% missing in linked-entity signals, 4% missing in payment metadata

Success Criteria

A solution is good enough if it:

  • achieves PR-AUC >= 0.34 on the held-out test set,
  • maintains recall >= 0.70 at an operating precision of at least 0.25,
  • and provides a defensible explanation for choosing logistic regression over a tree-based model in this setting.

Constraints

  • Scores are used in a reviewer-assist workflow, so interpretability and calibration matter.
  • Batch scoring runs every 15 minutes on fresh account creations; p95 inference should be < 20 ms per 1K rows.
  • The model is retrained weekly and must be stable enough for policy and ops teams to monitor coefficient or feature drift.

Deliverables

  1. Train a regularized logistic regression baseline and a tree-based benchmark.
  2. Compare them on PR-AUC, ROC-AUC, recall at fixed precision, calibration, and latency.
  3. Explain when logistic regression should be preferred for this Meta integrity problem.
  4. Describe preprocessing, feature engineering, threshold selection, and validation strategy.
  5. Recommend a production model and justify the tradeoff between accuracy, interpretability, and operational simplicity.

You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.

Sign up freeI have an account
Sign up to unlock solutions
Meta Machine Learning Engineer Interview Questions
Next questions
MetaBagging vs Boosting for Integrity RiskHardPayPalSegment Risk with Trees or Logistic RegressionMediumTruvetaLogistic Regression vs Decision TreeMedium
0 / ~200 words