Loading...

90th Pctl Model Accuracy Gap

A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.

Domain
SQL
Difficulty
medium
Seniority
mid

Problem

The ML platform team is auditing model quality for the first half of 2026. They set a target accuracy of 0.95 and want to identify outlier models whose accuracy deviates most from that target. Compute the absolute gap between each model's accuracy and 0.95, then surface only the models in the 90th percentile of that gap. Return the model name, its accuracy, and the gap as a decimal value.

Practice This Problem

Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a live PostgreSQL database and grades it instantly.