Semi-Supervised Learning interview question

Machine LearningSemi-Supervised LearningCalibrationhard

An insurer has 3,000 claims confirmed as fraud and 120,000 claims nobody has investigated. A calibrated classifier trained to separate confirmed (s = 1) from unlabelled (s = 0) claims gives an average score of 0.30 on held-out confirmed frauds. Assume confirmed frauds are a random sample of all frauds (the SCAR assumption). A new claim scores 0.12. What is its estimated probability of fraud?

  1. AAbout 0.12: unlabelled claims are overwhelmingly legitimate, so training against them as negatives adds negligible bias and the classifier score is already P(fraud | x) for this claim.
  2. BAbout 0.036: only a fraction c ≈ 0.30 of frauds ever get confirmed, so the score has to be multiplied by c to give the probability that this claim is actually fraudulent.
  3. CAbout 0.40: dividing by c ≈ 0.30 removes the bias, and since high scores gain more in absolute terms than low ones, the corrected scores reorder the claims in the investigation queue.
  4. DAbout 0.40: the score estimates c·P(fraud | x) with label frequency c ≈ 0.30, so dividing by c removes the bias; claim rankings stay the same, only probabilities and thresholds move.
Show the answer and explanation

Correct answer: D, About 0.40: the score estimates c·P(fraud | x) with label frequency c ≈ 0.30, so dividing by c removes the bias; claim rankings stay the same, only probabilities and thresholds move.

Explanation Semi-Supervised Learning

This is PU learning (positive–unlabelled): the unlabelled set mixes negatives with undiscovered positives. Training "confirmed vs everything else" treats hidden frauds as legitimate, so the model learns P(s = 1 | x), the probability of being confirmed, not of being fraud.

Elkan–Noto (2008): under SCAR, P(s = 1 | x) = c · P(y = 1 | x), where c = P(s = 1 | y = 1) is the label frequency, the share of frauds that get confirmed. Estimate c as the average calibrated score on held-out labelled positives (0.30), then

P(fraud | x) = g(x) / c = 0.12 / 0.30 = 0.40 (clip at 1).

So the naive score understates fraud risk about 3.3-fold, implying 3,000 / 0.30 = 10,000 frauds, 7,000 of them hidden among the unlabelled claims. Dividing by a positive constant keeps the order of the scores, so a top-k review queue is unchanged; only probabilities, expected-loss estimates and probability thresholds change.

The 0.40 applies to a fresh claim. For an old claim left in the unlabelled pool, non-confirmation is weak evidence against fraud, and Elkan–Noto give (1 − c)/c × g/(1 − g) ≈ 0.32 instead.

Why the alternatives fail: the bias is not negligible when 70% of frauds hide in the unlabelled pool. Multiplying by c goes the wrong way, since the score already contains c. High scores do gain more in absolute terms, but every score is multiplied by the same 1/c ≈ 3.3, so no claim changes rank.

Caveat: SCAR is strong. If confirmed frauds come mostly from rule-based alerts, labelling depends on the features and a single c is wrong; use propensity-weighted PU methods or audit a random sample.

Interview tip: name typical PU settings (confirmed frauds, customers who called to cancel, clicked items) and say the key line: "unlabelled is not negative".

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Machine Learning questions

  1. A helpdesk routes tickets with a KNN classifier using Euclidean distance on TF-IDF vectors built with norm=None (no length normalisation). Tickets range from…
  2. For a declined credit-card application, an Anchors explainer returns the rule IF utilization > 0.80 AND missed_payments_12m ≥ 2 THEN decline, with precision…
  3. A payments company's fraud team reports F1 and ROC-AUC, yet trains its classifier with gradient descent on log loss. A product manager asks: "Why not minimise…
  4. A food-delivery app ranks restaurants with a Wide & Deep model: the wide part is a linear model on crossed features such as user_last_cuisine ×…
  5. A telecom wants k = 20 segments for 50 million subscribers described by 40 numeric features stored as float64. Full-batch k-means (Lloyd's algorithm)…