Software Quality Assurance

Chapter 11
Quality Measurement, Analytics and Economics

Post Graduate Program in IT Engineering
Software Quality Assurance   •   Post Graduate

Quality Measurement, Analytics and Economics

Introduction and Context

Software quality assurance (SQA) increasingly depends on evidence rather than intuition. Engineering teams must determine whether a product is becoming more reliable, whether a development process is under control, which risks deserve investment, and whether proposed quality initiatives create economic value. These questions require more than collecting counts of defects or lines of code. They require goal-driven measurement, valid operational definitions, statistical interpretation, predictive analysis, and disciplined economic reasoning.

Measurement is not the same as management. A metric is an observed representation of some attribute; analytics is the process of interpreting measurements to support decisions. A dashboard is a communication instrument, not proof of quality. Poorly selected measures can encourage local optimization, conceal defects, penalize teams for reporting honestly, or create a false impression of precision.

This chapter develops an integrated approach to quality measurement and analytics. It covers goal-question-metric (GQM) thinking, measurement validity, dashboards, statistical process control, defect prediction, reliability models, technical-debt measures, and cost-benefit analysis. It also examines data bias, ethical risks, and the responsible use of artificial intelligence in quality analytics.

Learning Objectives

After studying this chapter, students should be able to:

1. Translate quality goals into valid questions, indicators, and decision rules.

2. Distinguish measures, metrics, indicators, objectives, and targets.

3. Design dashboards that support diagnosis rather than superficial ranking.

4. Apply statistical process control to software engineering data with appropriate assumptions.

5. Interpret defect prediction and reliability models critically.

6. Measure technical debt and estimate its economic consequences.

7. Perform cost-benefit and expected-loss analyses for quality investments.

8. Identify selection bias, measurement bias, confounding, and gaming risks.

9. Construct a balanced quality measurement system for professional use.

1. Measurement as a Goal-Driven Activity

A useful measurement program begins with a decision or goal. The GQM framework expresses this progression as:

  • Goal: What organizational or engineering outcome is sought?
  • Question: What must be known to judge progress toward the goal?
  • Metric: What observable data can answer the question?

For example, the goal “reduce customer-impacting production failures” may generate questions such as: How frequently do failures occur? How long do they remain unresolved? Which services or changes are associated with them? Suitable measures include incident rate, mean time to restore service (MTTR), change-failure rate, escaped-defect rate, and service-level objective compliance.

A metric should have a precise operational definition. “Defect density” is incomplete unless the organization specifies the defect population, severity threshold, time window, and size denominator. A common form is:

\[

D = \frac{N_d}{S} \times K

\]

where \(N_d\) is the number of qualifying defects, \(S\) is a size measure such as thousands of lines of code (KLOC) or function points, and \(K\) is a scaling constant. The metric is meaningful only when the numerator and denominator refer to comparable releases, teams, and time periods. Defect density based on KLOC can be distorted by programming language, generated code, refactoring, and different coding styles; therefore it should not be treated as an intrinsic measure of developer competence.

Important distinctions include:

  • Measure: A directly observed value, such as 42 failed tests.
  • Metric: A derived quantitative representation, such as failure rate per test execution.
  • Indicator: A metric interpreted as evidence about a condition, such as a rising escaped-defect rate.
  • Objective: A desired outcome, such as reducing critical incidents.
  • Target: A specified level or range, such as fewer than two critical incidents per quarter.
  • Threshold: A boundary requiring investigation or action.
  • Proxy: An indirect measure used because the underlying attribute is difficult to observe.

A measurement model should define data source, collection frequency, owner, transformation rules, population, inclusion and exclusion criteria, uncertainty, and intended decision. Without these controls, two teams may report the same metric name while measuring different phenomena.

2. Selecting a Balanced Quality Model

Quality measurement should reflect multiple quality dimensions. ISO/IEC 25010 provides a useful reference model including functional suitability, performance efficiency, compatibility, usability, reliability, security, maintainability, and portability. The model is not a measurement plan by itself; it must be adapted to product context and stakeholder risk.

A balanced system normally combines:

  • Outcome measures: customer incidents, availability, successful business transactions, user-reported failures.
  • Product measures: complexity, coupling, testability, vulnerability exposure, response time.
  • Process measures: review effectiveness, build stability, lead time, rework, deployment frequency.
  • Predictive measures: change risk, code churn, dependency risk, defect-prone components.
  • Economic measures: cost of rework, avoided loss, delay cost, and value of prevention.

No single metric adequately represents quality. High test coverage may coexist with weak assertions; rapid delivery may coexist with high operational risk; a low defect count may indicate under-reporting rather than a high-quality product. A portfolio of measures should include leading indicators, which signal emerging risk, and lagging indicators, which reveal realized outcomes.

Measurement Validity and Reliability

A measure is valid when it represents the construct it claims to represent. It is reliable when repeated measurement under stable conditions produces consistent results. A static-analysis warning count may be reliable but have weak validity as a measure of maintainability if warnings vary greatly in severity. Conversely, expert maintainability assessment may be valid but less reliable unless evaluators use a common rubric.

Construct validity asks whether the measure captures the intended concept. Criterion validity asks whether it corresponds to an accepted external outcome, such as whether a risk score predicts production incidents. Content validity asks whether important aspects of the construct have been omitted. These considerations are especially important for composite scores.

Normalization can improve comparability but cannot remove all confounding. For example, incidents per million transactions is often more informative than incidents per release when release sizes differ. However, transaction complexity, customer mix, and monitoring coverage may still vary. Every normalized metric should state the denominator and explain why it is exposure-relevant.

3. Dashboards for Quality Governance

A quality dashboard is an information design for decisions. It should answer three questions quickly: What is happening? Why might it be happening? What action is warranted?

An effective dashboard includes:

1. A small set of decision-linked measures.

2. Trends and variation, not only current values.

3. Targets and control limits distinguished visually.

4. Segmentation by service, severity, release, or customer impact where justified.

5. Drill-down from indicator to underlying evidence.

6. Data freshness, definitions, and known limitations.

7. Named owners and escalation rules.

A target is a management aspiration; a statistical control limit describes expected process variation. Confusing the two leads to inappropriate intervention. A team can be inside control limits and still fail a customer target, or exceed a control limit while remaining above an ambitious target.

Dashboards should avoid league tables that rank teams without controlling for system complexity, workload, support responsibilities, or reporting practices. They should also avoid composite “quality scores” whose weights are hidden. If aggregation is necessary, weights, scales, missing-data treatment, and sensitivity to assumptions must be published.

4. Statistical Process Control in Software Engineering

Statistical process control (SPC) distinguishes common-cause variation, arising from the normal operation of a process, from special-cause variation, arising from unusual events. The purpose is not to make every value equal; it is to detect meaningful changes and improve the process.

For independent measurements with approximately stable variation, a basic individuals chart uses a process center \(\bar{x}\) and estimated standard deviation \(\hat{\sigma}\):

\[

UCL = \bar{x} + 3\hat{\sigma}, \qquad LCL = \bar{x} - 3\hat{\sigma}

\]

where UCL and LCL are upper and lower control limits. The three-sigma convention is a practical signaling rule, not a universal law. It assumes that the baseline data represent a reasonably stable process and that the variation estimate is appropriate. For bounded, skewed, autocorrelated, or count data, other methods may be required.

For a proportion defective \(p\) from samples of constant size \(n\), a p-chart commonly uses:

\[

\bar{p}=\frac{\text{total defectives}}{\text{total inspected units}}, \qquad

UCL=\bar{p}+3\sqrt{\frac{\bar{p}(1-\bar{p})}{n}},

\]

\[

LCL=\bar{p}-3\sqrt{\frac{\bar{p}(1-\bar{p})}{n}}.

\]

The lower limit is set to zero if the calculated value is negative. This approximation assumes independent Bernoulli observations and is less suitable when sample sizes vary substantially, defects are clustered, or observations are time-dependent.

Software data frequently violate classical assumptions. Deployment frequency may trend upward; incident counts may be overdispersed; build failures may be correlated; review time may have a long-tailed distribution. Individuals charts, moving-range methods, transformations, run rules, or count models may be more appropriate. Control limits should be recalculated only when a deliberate process change creates a new stable baseline; otherwise, limits can be manipulated to hide deterioration.

SPC does not identify causality. An out-of-control signal prompts investigation; it does not prove that a particular developer, tool, or requirement caused the change. Process teams should record contextual events such as architectural changes, staffing shifts, major incidents, and tool migrations.

Illustrative SPC Calculation

Suppose a stable process has a mean review-rework rate of 4% and an estimated standard deviation of 1%. The approximate limits are:

\[

UCL=4\%+3(1\%)=7\%, \qquad LCL=4\%-3(1\%)=1\%.

\]

A monthly value of 8% is a signal for investigation, not automatic evidence of poor performance. The team should examine sample size, work mix, review policy, and possible recording changes before taking corrective action.

5. Defect Analytics and Prediction

Defect analytics describes observed defects; defect prediction estimates the probability or expected number of future defects using available evidence. Predictive models may use code churn, complexity, dependency structure, historical defects, change frequency, test results, ownership concentration, and review information.

A logistic regression model for a binary outcome can be expressed as:

\[

P(Y=1\mid X)=\frac{1}{1+e^{-(\beta_0+\beta_1x_1+\cdots+\beta_kx_k)}}

\]

where \(Y=1\) may mean that a changed component experiences a defect in a defined future window, \(x_i\) are predictors, and \(\beta_i\) are estimated coefficients. The model estimates association under its data-generating assumptions; it does not establish that changing a predictor will cause the outcome to change.

Prediction quality should be assessed on data not used for fitting. Relevant measures include precision, recall, specificity, area under the receiver operating characteristic curve, calibration, and expected operational cost. In quality assurance, a false negative may allow a risky change to escape, while a false positive may waste review effort. Thus the preferred threshold depends on the relative costs of these errors.

The base-rate problem is important. If only 2% of changes produce incidents, a model that predicts “no incident” for every change achieves 98% accuracy but has no practical detection value. Precision-recall analysis is often more informative for rare outcomes. Time-based validation is preferable when the model will predict future releases, because random splitting can leak future information into training data.

Common risks include concept drift after architectural changes, label bias caused by uneven testing, survivor bias from analyzing only deployed components, and organizational bias when historical reporting differs across teams. Predictions should support risk-based review and testing, not determine blame or automatically deny deployment.

6. Reliability Measurement and Models

Reliability is the probability that software performs required functions without failure for a specified period in a specified environment. It is therefore different from availability, which also depends on restoration time and maintainability.

If failures occur according to a homogeneous Poisson process with constant failure intensity \(\lambda\) per hour, the probability of no failure during time \(t\) is:

\[

R(t)=e^{-\lambda t}.

\]

The model assumes independent failures and a constant rate. It is useful as a simple operational approximation for a stable service, but software reliability often changes as faults are removed, usage profiles change, or new code is introduced.

If 3 failures are observed during 1,000 operational hours, the estimated failure intensity is:

\[

\hat{\lambda}=\frac{3}{1000}=0.003\text{ failures/hour}.

\]

Under the constant-rate assumption, reliability for the next 100 hours is:

\[

R(100)=e^{-0.003(100)}=e^{-0.3}\approx0.741.

\]

This estimate is uncertain, especially with only three failures. A confidence interval or Bayesian posterior should be considered when decisions are consequential. Reliability models must define what counts as a failure, the operational profile, observation period, censoring rules, and whether repair events are included.

Useful operational measures include mean time between failures (MTBF), mean time to failure (MTTF), and MTTR. MTBF is meaningful mainly for repairable systems and should not be confused with a guarantee that failure will occur only after that interval. Reliability growth models, such as the Musa-Okumoto or Goel-Okumoto families, can represent changing failure intensity, but their parameters require suitable failure data and their extrapolations are model-dependent.

7. Technical Debt Measurement

Technical debt is the future cost or risk created when a design or implementation shortcut provides short-term benefit but increases later remediation, operating cost, or change difficulty. The metaphor is useful only when the debt is made observable and connected to decisions.

Debt inventories may classify items as code debt, architecture debt, test debt, documentation debt, infrastructure debt, dependency debt, and security debt. A useful record includes location, description, cause, affected quality attributes, principal (remediation effort), carrying cost (recurring effect), risk, owner, and review date.

A simple economic representation for an item is:

\[

PV = P + \sum_{t=1}^{T}\frac{C_t}{(1+r)^t},

\]

where \(P\) is immediate remediation principal, \(C_t\) is the estimated incremental cost in period \(t\), \(r\) is the discount rate per period, and \(T\) is the planning horizon. This is an estimate, not an objective physical quantity. Costs may be uncertain and should be expressed as ranges or probability distributions where possible.

Static-analysis findings, dependency age, code complexity, test-to-code ratios, and change-failure history can provide debt signals, but none is debt itself. A warning may be harmless in context, while a small architectural constraint may create substantial future cost. Debt registers should therefore combine automated evidence with expert assessment and business context.

Debt prioritization can consider urgency, impact, likelihood, remediation effort, and reversibility. Teams should avoid declaring all old code “debt”: stable, well-understood code may be economically rational even if it is not modern. Conversely, a clean-looking codebase may contain severe architectural or operational debt.

8. Economics of Quality Decisions

Quality economics compares the cost of prevention and appraisal with the cost of internal and external failure. Prevention includes training, design improvement, automation, and threat modeling. Appraisal includes reviews, testing, audits, and monitoring. Internal failure occurs before release; external failure occurs after customers are affected.

A basic expected-loss calculation is:

\[

EL = \sum_{i=1}^{n} p_i L_i,

\]

where \(p_i\) is the probability of scenario \(i\), \(L_i\) is its loss, and the scenarios are mutually exclusive and collectively exhaustive for the analysis. If a proposed control has cost \(C

en and changes expected loss from \(EL_0\) to \(EL_1\), its estimated net benefit is:

\[

NB=(EL_0-EL_1)-C.

\]

A positive result supports adoption, subject to constraints and uncertainty. Benefits may include avoided outage cost, reduced rework, lower regulatory exposure, faster delivery, and improved customer retention. Some benefits, such as trust or safety, should not be reduced to a monetary estimate without careful ethical and governance consideration.

Worked Economic Example

An organization estimates that a class of production incident has a 0.20 probability in the next year and would cost €100,000 if it occurred. Its expected loss is:

\[

EL_0=0.20\times €100,000=€20,000.

\]

A testing improvement costs €8,000 and is expected to reduce the probability to 0.05. The new expected loss is €5,000, so the expected avoided loss is €15,000. The net expected benefit is:

\[

NB=€15,000-€8,000=€7,000.

\]

The decision is economically attractive under these estimates. However, sensitivity analysis is necessary. If the probability reduction is uncertain, the organization should evaluate optimistic, central, and pessimistic scenarios rather than present €7,000 as a guaranteed saving.

For multi-year investments, discounted cash flow, payback period, and net present value may be used. Benefits and costs must use the same currency, time basis, and scope. Double counting must be avoided; for example, avoided rework and avoided incident labor may overlap.

9. Data Bias, Misleading Metrics and Governance

Measurement systems can fail through:

  • Selection bias: observed data do not represent the relevant population.
  • Reporting bias: teams differ in willingness or ability to record defects.
  • Survivorship bias: only successful releases are analyzed.
  • Measurement bias: tools or definitions systematically over- or under-count events.
  • Confounding: an apparent relationship is explained by a third variable, such as project size.
  • Censoring: recent releases have not been observed long enough to reveal failures.
  • Simpson’s paradox: an aggregate trend reverses after appropriate subgroup analysis.
  • Goodhart-type effects: once a measure becomes a target, behavior changes in ways that weaken its meaning.

Examples of misleading practice include rewarding low defect counts, using test coverage as a release-quality guarantee, ranking teams by raw velocity, and treating dashboard traffic-light colors as statistical conclusions. Countermeasures include independent audits, stable definitions, denominator review, qualitative triangulation, anonymous reporting channels, stratified analysis, and periodic metric retirement.

Quality data may contain personal information, security-sensitive details, customer identifiers, or employment-related records. Governance should define access control, retention, purpose limitation, auditability, and appropriate aggregation. Individual developer surveillance based on simplistic metrics is both technically weak and ethically problematic. Measures should improve systems and learning rather than create fear that suppresses reporting.

10. Artificial Intelligence and Contemporary Practice

AI-assisted quality analytics can classify incidents, summarize logs, detect anomalous traces, generate test ideas, identify dependency risk, and prioritize code review. Large language models can help explain trends, but generated interpretations require evidence checks because models may hallucinate causes, overlook missing data, or reproduce historical bias.

Responsible use requires data provenance, reproducible feature pipelines, privacy protection, drift monitoring, human review, and clear accountability. A predictive model should expose its intended use, training period, validation design, known error rates, and limitations. Models should not be treated as autonomous authorities for safety-critical release decisions.

Contemporary engineering organizations increasingly combine software delivery data, observability, security telemetry, and product outcomes. This integration can enable value-stream analysis, but correlation across many data streams does not automatically establish causation. Causal inference methods, controlled experiments, interrupted time-series analysis, and carefully designed quasi-experiments are valuable when organizations need to evaluate whether an intervention actually improved quality.

11. Illustrative Case: Northstar Payments Platform

Background

Northstar, a fictional online payments provider, experienced an increase in customer complaints after adopting frequent deployment. Management initially proposed ranking teams by escaped defects and requiring a single “quality score” above 90.

Problem

The proposed score combined test coverage, defect counts, review duration, and deployment frequency using undocumented weights. Teams supporting legacy services appeared worse because they handled more incidents and had larger customer exposure. At the same time, defect reporting declined, suggesting possible under-reporting.

Analysis

The SQA group conducted a measurement review. It found inconsistent definitions of escaped defect, different incident-detection coverage, and a denominator problem: raw incident counts were compared without considering transaction volume. Time-based analysis also showed that the apparent defect reduction followed a change in monitoring, not necessarily an improvement in software.

The team replaced the ranking system with a goal-driven measurement tree. The goals were to reduce customer harm, improve recovery, and manage change risk. Measures included severe incidents per million transactions, change-failure rate, MTTR, customer-impact duration, defect-reporting completeness, and leading indicators such as risky change size and review coverage. Metrics were segmented by service criticality and operational profile.

For incident rate, the team used exposure-adjusted comparisons and confidence intervals. For stable service measures, it introduced control charts and documented special-cause investigations. A defect-prediction model was validated using chronological splits and used only to prioritize exploratory testing. Technical-debt items were recorded with estimated principal, carrying cost, and owners.

Economic Decision

An architectural refactoring was estimated to cost €120,000. Scenario analysis estimated expected annual incident and delay savings between €80,000 and €210,000, with additional uncertainty around migration risk. Northstar approved a staged investment with rollback criteria rather than relying on a single point estimate.

Outcome

After two quarters, severe incident exposure and recovery time declined, while reported minor defects initially increased. The increase was interpreted as improved reporting, not immediate deterioration. Leadership discontinued team league tables and used monthly governance reviews combining quantitative trends, incident narratives, and engineering judgment.

Learning Points

The case demonstrates that quality measurement is a socio-technical system. Definitions, incentives, exposure, and reporting behavior affect the data. Balanced measures, statistical context, economic analysis, and human review are more defensible than a universal score.

Best-Practice Checklist

  • Begin with decisions and quality goals, not available data.
  • Define numerator, denominator, population, time window, and ownership.
  • Combine outcome, process, product, predictive, and economic measures.
  • Show distributions and trends rather than isolated averages.
  • Separate targets from statistical control limits.
  • Validate predictive models temporally and assess calibration and cost-sensitive errors.
  • Treat technical-debt estimates as uncertain decision aids.
  • Use ranges, sensitivity analysis, and avoid double counting in economic cases.
  • Examine reporting incentives and data bias.
  • Protect privacy and avoid individual blame metrics.
  • Review, retire, and revise measures when systems or goals change.

Chapter Summary

Quality measurement is effective when it is goal-driven, operationally defined, statistically interpreted, and connected to decisions. GQM links goals, questions, and metrics, while balanced quality models prevent overreliance on a single indicator. Dashboards should communicate trends, variation, context, and action rather than rank teams superficially.

SPC helps distinguish common-cause from special-cause variation, but its assumptions must be checked for software data. Defect prediction can prioritize scarce testing and review resources, yet it requires temporal validation, attention to base rates, calibration, and bias analysis. Reliability models quantify failure behavior only under explicit operational assumptions. Technical debt is best managed through evidence-based inventories that estimate principal, carrying cost, risk, and uncertainty.

Quality economics compares prevention and appraisal investment with expected failure loss, using sensitivity analysis for uncertain estimates. Across all methods, bias, gaming, privacy, and ethical governance are central concerns. Responsible quality analytics combines quantitative evidence with domain knowledge, transparent definitions, and continuous review.

Key Terms

Goal-question-metric (GQM): A framework that derives measures from goals through answerable questions.

Operational definition: Precise specification of what a measure includes, excludes, and how it is calculated.

Leading indicator: A measure that signals emerging risk or future performance.

Lagging indicator: A measure of an outcome that has already occurred.

Measurement validity: The degree to which a measure represents its intended construct.

Measurement reliability: Consistency of a measurement under stable conditions.

Dashboard: A visual information system supporting monitoring and decisions.

Statistical process control: Use of statistical methods to distinguish normal from unusual process variation.

Control limit: A statistically derived boundary indicating expected process variation.

Defect density: Defects divided by a defined software-size denominator.

Defect prediction: Estimation of future defect risk using historical and contextual data.

Precision: The proportion of predicted positives that are actually positive.

Recall: The proportion of actual positives detected by a model.

Reliability: Probability of failure-free operation for a specified period and environment.

Failure intensity: Expected failures per unit of operational exposure or time.

Technical debt: Future cost or risk created by shortcuts in software work.

Principal: Estimated effort required to remediate a technical-debt item.

Carrying cost: Recurring cost or risk caused by leaving debt unresolved.

Expected loss: Probability-weighted consequence across possible scenarios.

Confounding: Distortion of an observed relationship by another associated variable.

Review Questions

Short Answer Questions

1. Explain the difference between a metric, an indicator, and a target.

2. Why should defect density always state its numerator and denominator definitions?

3. What is the purpose of a statistical control limit?

4. Distinguish precision from recall in defect prediction.

5. What are principal and carrying cost in technical-debt management?

Long Answer Questions

1. Explain how the GQM framework can be used to design a balanced quality measurement system for a cloud service.

2. Discuss the assumptions and limitations of applying SPC to software engineering data.

3. Compare reliability measurement with availability measurement and explain why the distinction matters operationally.

4. Critically evaluate the use of composite quality scores in organizational dashboards.

5. Explain how data bias and incentive design can undermine a defect measurement program.

Analytical / Application Questions

1. A service records 4 failures in 2,000 operational hours. Under a constant-rate Poisson assumption, estimate the failure intensity and the probability of no failure during the next 100 hours. State the model limitations.

2. A proposed quality initiative costs €15,000 and is expected to reduce a €120,000 incident probability from 0.25 to 0.08. Calculate the expected net benefit and identify at least two uncertainties requiring sensitivity analysis.

3. Design a measurement and governance plan for a team whose reported defects have declined while customer incidents have increased. Include possible explanations, data checks, metrics, and actions.

Multiple Choice Questions with Answers

Question 1

Which sequence best represents the Goal-Question-Metric approach?

A. Metric, target, dashboard

B. Goal, question, metric

C. Question, defect, goal

D. Dashboard, metric, goal

Correct Answer: B. Goal, question, metric

Question 2

A target differs from a statistical control limit because a target is primarily:

A. A statistically estimated boundary of normal variation

B. A management-desired level or range

C. A measure of measurement reliability

D. A prediction-model threshold

Correct Answer: B. A management-desired level or range

Question 3

If 3 failures occur in 1,000 operational hours, what is the estimated constant failure intensity?

A. 0.0003 failures/hour

B. 0.003 failures/hour

C. 0.03 failures/hour

D. 3 failures/hour

Correct Answer: B. 0.003 failures/hour

Question 4

Under a constant failure rate of 0.003 failures per hour, reliability over 100 hours is approximately:

A. 0.003

B. 0.30

C. 0.741

D. 0.997

Correct Answer: C. 0.741

Question 5

Which issue is especially important when predicting rare production defects?

A. Accuracy alone may be misleading because of class imbalance

B. The model must always use equal false-positive and false-negative costs

C. Random labels improve the base rate

D. A model needs no validation if historical data are large

Correct Answer: A. Accuracy alone may be misleading because of class imbalance

Question 6

In technical-debt economics, the principal most directly represents:

A. The recurring operational cost of delay

B. The immediate estimated remediation effort

C. The number of defects per KLOC

D. The probability of a production incident

Correct Answer: B. The immediate estimated remediation effort

Question 7

A quality initiative costs €8,000, reduces expected loss from €20,000 to €5,000, and has no other effects. Its expected net benefit is:

A. €3,000

B. €7,000

C. €12,000

D. €23,000

Correct Answer: B. €7,000

Question 8

Which is an example of selection bias?

A. Using a clearly defined denominator

B. Analyzing only successful releases while generalizing to all releases

C. Separating targets from control limits

D. Reporting confidence intervals

Correct Answer: B. Analyzing only successful releases while generalizing to all releases

Question 9

Why should defect-prediction models commonly use time-based validation for future release prediction?

A. It guarantees perfect calibration

B. It prevents future information from leaking into model training

C. It eliminates all confounding

D. It makes rare outcomes common

Correct Answer: B. It prevents future information from leaking into model training

Question 10

Which dashboard practice is most defensible?

A. Ranking teams by raw defect counts

B. Hiding definitions to keep the dashboard simple

C. Showing trends, context, data freshness, and action ownership

D. Using one weighted score for every product

Correct Answer: C. Showing trends, context, data freshness, and action ownership

Software Quality Assurance
Chapter 11 of 14