10/17
Part 5 of 7 · JudgesLearn

Pick the lowest score that still keeps the accepted answers good enough

The shop's returns grader is a model that scores each answer from 1 to 5. A person checked 200 of those answers, so for each one the shop knows the judge's score and whether the answer was really good. Airbnb asked a candidate exactly how they designed such a judge, set its thresholds and handled ambiguous cases (1 report).

The 200 checked answers are simulated too: 85% good, and the judge's score is noisy around 4.3 for good answers and 2.4 for bad ones.

rng = random.Random(5)
# (judge score 1 to 5, a person says it's good)
judged = []
for _ in range(200):
    good = rng.random() < 0.85
    judged.append((min(5, max(1, round(rng.gauss(4.3 if good else 2.4, 0.8)))), good))
for t in (5, 4, 3, 2):
    kept = [good for score, good in judged if score >= t]
    print(f"accept {t} and up: {len(kept) / len(judged):4.0%} of answers, {sum(kept) / len(kept):5.1%} of those good")
Predict

The shop needs at least 95% of the answers its judge accepts to be good. What's the lowest score it can accept?

Pick one to see what it prints.
Pick an answer above to see the rest