Beruflich Dokumente
Kultur Dokumente
Estimation
SQM – 7014INT
Semester 2, 2003
Measurement, Metrics, Indicators
• Measure: A quantitative indication of the extent, amount,
dimension, capacity or size of some attribute of a product or
process.
• A single data point (e.g. number of defects from a single review)
• Measurement: The act of determining a measure
• Metric: A measure of the degree to which a system, component
or process possesses a given attribute.
• Metrics relate measures (e.g. Average number of defects found in
reviews)
• Relate data points to each other
• Indicator: A metric or series of metrics that provide insight into
a process, project or product.
Why Measure?
• Characterise
• To gain understanding of processes, products, etc.
• Evaluate
• To determine status with respect to plans.
• Predict
• So that we may plan.
• Improve
• Rational use of quantitative information to identify problems
and strategies to remove them
What to Measure?
• Process
• Measure the efficacy of processes
• What works, what doesn’t
• Project
• Assess the status of projects
• Track risk
• Identify problem areas
• Adjust work flow
• Product
• Measure predefined product attributes (generally related to
ISO9126 Software Characteristics)
Process Metrics
• majority focus on quality achieved as a
consequence of a repeatable or managed
process
• statistical SQA data
• defect categorization & analysis
• defect removal efficiency
• propagation from phase to phase
• reuse data
Project Metrics
• Examples:
• Defects per KLOC
• Defects per Page
• % Defect Free
• Mean Time to Failure, Mean Time to Repair (Availability)
• Phase Yields
• Review hours / defect found
• Defect found by review / Defects found by testing
• Change Activity / stage
• Change Activity / module
• Software structure and complexity
Metrics and the Quality Plan
Prior Project
Injection Rate 30 11 23 60 5 2 2
Removal Efficiency 70% 65% 50% 60% 57% 47% 55%
Cumulative Efficiency 70% 83% 76% 76% 88% 93% 96%
New Project
Injection Rate 20 11 15 60 2 1 1
Removal Efficiency 70% 65% 65% 65% 60% 50% 55%
Cumulative Efficiency 70% 80% 85% 78% 91% 95% 97%
Planned Defect Profile
Residual 0 6 6 7 23 10 5
Injected 20 11 (17) 15 60 2 1 1
Removed 14 11 (17*.65) 14 44 15 6 3
Remaining 6 6 7 23 10 5 3
Removal Efficiency 70% 65% 65% 65% 60% 50% 55%
Cumulative Efficiency 70% 80% (25/31) 85% 78% 91% 95% 97%
Residual 0 20 31 46 106 43 22
Injected 20 11 15 60 2 1 1
Removed 0 0 0 0 65 22 13
Remaining 20 31 46 106 43 22 10
Removal Efficiency 0% 0% 0% 0% 60% 50% 55%
Cumulative Efficiency 0% 0% 0% 0% 60% 80% 91%
• Defect Reporting
• Defect Log
• Where found, date found, type, stage injected, stage
removed, consequences of removal, time to repair,...
• Inspection Report forms
• Location, severity, inspection rates, yields, etc...
• Direct measurement of time, size, etc... also
necessary
Types of Defect
• Availability = (1-(MTTR/(MTTR-MTBF)))x100
Metrics for Evaluating Design
• SMI = [M-(F(a)+F(c)+F(d)]/M
• Subjective
• Language dependent
• Organisations will often establish own standard
definition.
Function Points
• Calculate
FP = count total × (0.65 + 0.01×∑Fi)
E = A + B × (ev)C