STUD.com
← Objectives

Calculate · Assess & Decide · Engineering

Defect removal efficiency

Defect Removal Efficiency from pre-delivery vs escaped defect counts, with an optional per-phase breakdown.

You receive: A reviewed DRE calculator + the passing test report, run on your defect counts.

Part of Ship MVP

Opens soon

Cost15 credits
AcceptanceAutomated check against your inputs
ProtectionHeld until verified delivery

This objective is verified and ready. It opens soon, once sign-in and payments are live.

Deliverable interface

The exact vocabulary the automated check enforces: keys, tokens, entry points, and worked examples. Generated from the verification source.

{
 "constants": {},
 "entryName": "compute_defect_removal_efficiency",
 "expectNote": "expect is the comparison-space value (your return value goes through normalize first when one is published)",
 "hiddenCaseCount": 5,
 "hiddenCaseNames": [
  "perfect_policy_zero",
  "undefined_policy_zero",
  "all_escaped",
  "with_phases",
  "rounding_3dp"
 ],
 "inputKeys": [
  "by_phase",
  "escaped",
  "escaped_defects",
  "internal_defects",
  "per_phase",
  "phase",
  "phases",
  "removed",
  "rounding_dp",
  "zero_division_policy"
 ],
 "normalizeSource": "def _dre_normalize(r):\n    def n(v):\n        return None if v is None else round(float(v), 6)\n    try:\n        out = {\"dre\": n(r[\"dre\"])}\n        if \"by_phase\" in r and r.get(\"by_phase\") is not None:\n            out[\"by_phase\"] = [{\"phase\": str(p[\"phase\"]), \"dre\": n(p[\"dre\"])} for p in r[\"by_phase\"]]\n        return out\n    except Exception:\n        return repr(r)\n",
 "returnShapes": [],
 "signature": "def compute_defect_removal_efficiency(inp):",
 "submission": "python exposing the entry function; inp is one input object; graded on held-out cases",
 "tier": "calculator",
 "visibleCases": [
  {
   "expect": {
    "dre": 90
   },
   "input": {
    "escaped_defects": 10,
    "internal_defects": 90
   },
   "name": "ninety_pct"
  },
  {
   "expect": {
    "dre": 90
   },
   "input": {
    "escaped_defects": 5,
    "internal_defects": 45
   },
   "name": "scaled_same"
  }
 ],
 "vocabulary": [
  "by_phase",
  "dre",
  "escaped",
  "escaped_defects",
  "internal_defects",
  "no",
  "per_phase",
  "perfect",
  "phase",
  "phases",
  "removed",
  "rounding_dp",
  "undefined",
  "yes",
  "zero_division_policy"
 ]
}

Get early access to STUD the day it goes live.