Artificial Intelligence & Data Science is coming soon

We're still writing and reviewing the notes for every subject, and we'll open it when every subject is ready. Meanwhile you can practise aptitude, ask Aria about any subject, or see the branches that are ready.

Quality standards: ISO and CMM

Short study notes on the software- quality standards ISO (especially ISO 9001 / ISO/IEC) and the Capability Maturity Model (CMM / CMMI), why teams use them, their definitions, key differences, common metrics and example calculations.

Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

Two or three sentences: where an engineer uses this.

Software organisations use quality standards to make their work predictable, measurable and auditable. Engineers encounter ISO when their company needs a certifiable Quality Management System (for contracts, audits or exports), and CMM/CMMI when the organisation wants to show or improve its process maturity for software development and maintenance.

Key ideas

Explain from first principles; define terms before use; give exact statements and diagram instructions.

  • Quality standard — a formal document that states requirements, rules or guidelines an organisation can follow to ensure products or services meet consistent quality. (Used in regulatory, contractual and business-improvement contexts.)

  • Quality Management System (QMS) — a set of coordinated activities, documented processes and resources an organisation uses to direct and control quality. ISO 9001 defines requirements for a QMS.

  • Process — a set of interrelated or interacting activities that transforms inputs to outputs. (Before using, define inputs and outputs in context.)

  • Capability — the ability of a process to achieve a specific objective consistently. In maturity models, capability refers to how well processes are defined, managed and measured.

  • Maturity — the extent to which processes are stable, repeatable, defined, quantitatively managed and optimised. In CMM terms maturity is classified in levels (see exact list below).

Exact statement: ISO 9001:2015 is a specification of requirements that an organisation must meet to claim its QMS conforms to the standard. The standard is organised into clauses; the main clause titles are: 1 Scope; 2 Normative references; 3 Terms and definitions; 4 Context of the organization; 5 Leadership; 6 Planning; 7 Support; 8 Operation; 9 Performance evaluation; 10 Improvement. (Assumption: referring to ISO 9001:2015 edition.)

Exact statement: The original Capability Maturity Model (CMM) for software defined five maturity levels: Level 1 — Initial, Level 2 — Repeatable, Level 3 — Defined, Level 4 — Managed, Level 5 — Optimizing. Each level has key process areas. (Assumption: classic SW-CMM definitions from SEI; later evolved into CMMI.)

  • Differences in short: ISO 9001 specifies requirements for a management system and is certifiable by an external certification body; CMM/CMMI describes levels of process maturity and is assessed (appraised) rather than “certified”.

  • Appraisal vs certification: Certification (ISO) is issue of a certificate by accredited bodies after audit; Appraisal (CMMI) is an evaluation against the model (for example using the SCAMPI method). Appraisals produce a maturity level or capability profile.

  • Typical process areas (examples to learn): for CMMI-DEV v1.3 Level 2: Requirements Management, Project Planning, Project Monitoring and Control, Supplier Agreement Management, Measurement and Analysis, Process and Product Quality Assurance, Configuration Management. For Level 3: Organizational Process Definition, Organizational Training, Integrated Project Management, Risk Management, Requirements Development, Technical Solution, Product Integration, Verification, Validation, Decision Analysis and Resolution. (Note: names and groupings vary by version; SW-CMM Level 3 used terms like Integrated Software Management and Peer Reviews.)

  • PDCA (Plan-Do-Check-Act): ISO 9001 uses the PDCA cycle and risk-based thinking. Diagram to draw: draw a circle divided into 4 clockwise quadrants; label them Plan → Do → Check → Act with arrows moving clockwise; inside, annotate that Planning includes objectives and risk assessment, Do = run processes, Check = monitor and measure, Act = corrective actions and improvement.

  • CMM levels diagram: draw a five-step pyramid or staircase (bottom to top). Label each level with its name. For an exam diagram also list 2–3 representative process areas next to each level.

  • Assumptions and scope: ISO 9001 applies to any organisation regardless of size or product; it does not mandate specific technical practices. CMM/CMMI is specifically focused on process improvement for software and systems engineering. Also know for exams: ISO/IEC 12207 (software life cycle processes) and ISO/IEC 25010 (software product quality model) are common ISO standards referenced in software quality contexts.

Formulas

Each formula on its own line, with symbol meanings, SI units and when it applies.

DRE = (D_before / (D_before + D_after)) × 100%

  • D_before = number of defects found and fixed before release (unit: count)
  • D_after = number of defects found after release (unit: count)
  • Applies when measuring how effectively defects are removed before product release. Result in percent.

MTTF = Total operational time / Number of failures

  • MTTF = mean time to failure (unit: hours)
  • Total operational time = sum of operational hours across all units or test runs (hours)
  • Number of failures = count of failures observed (unitless)
  • Applies for non-repairable-system failure measurement or when repair time is excluded.

MTBF = Total uptime / Number of failures

  • MTBF = mean time between failures (unit: hours)
  • Total uptime = sum of operational hours excluding downtime (hours)
  • Number of failures = count of failures observed (unitless)
  • Use MTBF (not MTTF) with MTTR when computing availability for repairable systems.

MTTR = Total downtime / Number of repairs

  • MTTR = mean time to repair (unit: hours)
  • Total downtime = sum of repair/restore time (hours)
  • Number of repairs = count of repair events
  • Applies when measuring maintainability and repair speed.

Availability ≈ MTBF / (MTBF + MTTR)

  • Availability = proportion of time system is operational (unitless, often expressed as percent)
  • Use when failure/repair are modelled as alternating operational and repair periods.

Process Capability (qualitative) — no single universal formula

  • Note: CMM/CMMI uses capability levels and process areas, not a single numeric formula. Organisations use metrics (DRE, defect density, cycle time) to show improvement.

Worked examples

Two or three university-exam standard examples.

Example 1 — DRE calculation (numerical) Given: During development and testing you found 480 defects and fixed them before release. After release customers reported 120 defects. Compute DRE.

  1. Formula: DRE = D_before / (D_before + D_after) × 100%.
  2. Numbers: D_before = 480, D_after = 120.
  3. Calculation: DRE = 480 / (480 + 120) × 100% = 480 / 600 × 100% = 0.8 × 100% = 80%.
  4. Final answer: DRE = 80% (This means 80% of discovered defects were removed before release.)

Example 2 — MTBF/Availability (numerical) Given: A test lab runs 10 identical devices for 1000 hours each (total operational time 10,000 hours). During tests, 20 failures occurred. The total downtime for repairs was 200 hours. Compute MTTF, MTTR and availability.

  1. MTTF = Total operational time / Number of failures = 10000 h / 20 = 500 h. => MTTF = 500 hours. Also, MTBF = Total uptime / Number of failures = 10000 h / 20 = 500 h. => MTBF = 500 hours.
  2. MTTR = Total downtime / Number of repairs = 200 h / 20 = 10 h. => MTTR = 10 hours.
  3. Availability ≈ MTBF / (MTBF + MTTR) = 500 / (500 + 10) = 500 / 510 ≈ 0.98039 = 98.04% => Availability ≈ 98.04%.

Example 3 — Theory/model answer (short-note) Question: Explain main differences between ISO 9001 and CMMI and how a small software team benefits from each. Model answer bullet points: ISO 9001 provides a certifiable QMS focusing on management requirements and stakeholder confidence; CMMI provides a maturity model for process improvement focused on software engineering practices and measurable capability. A small team may use ISO to win contracts and show basic QMS; CMMI practices (even without full appraisal) help standardise development tasks, introduce reviews and metrics, and improve predictability.

Common mistakes

  • Claiming ISO 9001 requires specific technical practices for software (it does not — it requires a QMS and process controls, not specific engineering techniques).
  • Confusing DRE with defect density. DRE is a ratio of defects removed; defect density is defects per size (e.g., defects per KLOC).
  • Treating a CMM level as a certificate you can “buy” rather than the result of a rigorous appraisal.
  • Forgetting units in MTTF/MTTR calculations (always give hours or minutes). Give final percent for availability.

For your exam

Types of questions and what full-marks answers include:

  • Definitions: Define ISO 9001, QMS, CMM/CMMI, maturity. Full marks: give short formal definition plus one line of explanation of purpose.
  • Short notes: "ISO 9001 clauses" or "CMM levels". Full marks: list clauses or levels correctly and explain 2–3 key points each.
  • Diagram: Draw PDCA for ISO and CMM five-level pyramid. Full marks: clear labels, arrows showing flow (PDCA) and correct level names (CMM).
  • Derivations / formulas: DRE or Availability. Full marks: write formula, substitute numbers, show steps and units, give final result with correct units.
  • Comparison essay: ISO vs CMMI. Full marks: structured answer—definition, purpose, scope, certification/appraisal difference, pros/cons for an organisation.
  • Numerical: Compute DRE, MTTF, MTTR, Availability. Full marks: formula, substituted numbers, intermediate steps, final numeric answers with units and interpretation.

Quick check

Three short questions (1–2 lines each).

  1. List the five CMM maturity levels in order from lowest to highest.
  2. What does PDCA stand for in ISO QMS thinking?
  3. Compute DRE if 300 defects are found pre-release and 100 after release.

Answers: 1) Initial, Repeatable, Defined, Managed, Optimizing. 2) Plan–Do–Check–Act. 3) DRE = 300 / (300 + 100) × 100% = 75%.

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?