Probability a Flagged Face ID Unlock Attempt Is Really an Impostor

Last updated: November 29, 2026

Quick Overview

A spoof-detection model flags Face ID unlock attempts. Impostor attempts are 1 in 1,000 attempts, the model flags 99% of impostors and 2% of genuine attempts. Given an attempt is flagged, what is the probability it is an impostor, and what happens if two independent checks both flag it?

Apple
Statistics & Math
Data Scientist
Apple
November 29, 2026
Data Scientist
Phone Screen
Statistics & Math
Easy

0

0

0 solved


A spoof-detection model flags Face ID unlock attempts. Impostor attempts are 1 in 1,000 attempts, the model flags 99% of impostors and 2% of genuine attempts. Given an attempt is flagged, what is the probability it is an impostor, and what happens if two independent checks both flag it?

Security and biometrics teams at Apple reason about rare attacks where a small false positive rate swamps true detections. The interviewer checks clean Bayes' rule, intuition about base rates, and whether you question the independence assumption.

What the Interviewer Expects
  • Writes Bayes' rule with the base rate explicitly
  • Computes about 4.7% and explains why it is low despite a 99% detection rate
  • Shows how a second check changes the posterior if errors are independent
  • Flags that independence rarely holds for two models seeing the same face
  • Connects the result to product decisions such as fallback to passcode
Key Topics to Cover
Bayes' theorem
base rates
conditional independence
false positives
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • What false positive rate would you need for the posterior to exceed 50%?
  • How would the answer change for a targeted attacker who tries many times?
  • How would you estimate the 1 in 1,000 base rate in the first place?
  • Should a flag lock the device or just require the passcode?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Statistics Questions
Sample Answer
Clarify

Define II = impostor, FF = flagged. Given P(I)=0.001P(I) = 0.001, P(F∣I)=0.99P(F\mid I) = 0.99, P(F∣¬I)=0.02P(F\mid \neg I) = 0.02. Confirm that 1 in 1,000 is per attempt, not per user....

Approach

Bayes' rule: P(I∣F)=P(F∣I)P(I)P(F∣I)P(I)+P(F∣¬I)P(¬I)P(I\mid F) = \frac{P(F\mid I)P(I)}{P(F\mid I)P(I) + P(F\mid\neg I)P(\neg I)}. Thinking in counts is a good check: out of 1,000,000 attempts, 1,000 are impostors....


Submit Your Answer
Markdown supported