How to Develop Metrics or Measurements
Measurement Validity
Key Types of Validity:
- Construct Validity: Are we measuring what we intended to measure?
- Predictive Validity: To what extent can the measurement explain or predict another characteristic of the entity being measured?
- External Validity: Can the findings be generalized to other contexts and environments beyond the one studied?
Basili’s Goal, Question, Metrics (GQM) Framework [1]
Framework Overview:
- Conceptual [Goal]: Define the objectives (scope, purpose) for measurement.
- Operational [Question]: Identify what quantifiable information is required to assess progress toward the goal(s).
- Questions help refine the focus of metrics by defining required attributes and characteristics.
- Additional questions can minimize potential side effects of collected measures.
- Quantitative [Metric]: Specify the attributes, definitions, and observation frequency for measurement data.
- Metrics must include measurement theory, statistical design, and applicability.
Operational Definition [2]
An operational definition explains a characteristic in terms of how it is measured.
Criteria for a Good Operational Definition:
- Communication: Does the definition clearly describe what is being measured, how it is measured, and what is included/excluded?
- Repeatability: Can others replicate the measurement process and achieve the same results?
Examples of Operational Definitions:
- Software Quality Measurement: Counting problems and defects.
- Software Effort and Schedule Measurement: Counting staff-hours and reporting schedule data.
- Software Size Measurement: Counting source statements.
References:
- Software Quality Measurement (CMU/SEI-92-TR-22, ADA258556)
- Software Effort and Schedule Measurement (CMU/SEI-92-TR-21, ADA258279)
- Software Size Measurement (CMU/SEI-92-TR-20, ADA258304)
Measurement Development Process
Stage 0: GQM (Why Measure?)
- Clearly define the purpose of the measurement and its goals.
Stage 1: Conceptual Definition
- Define the characteristic in terms of familiar concepts.
- For complex characteristics, break them into sub-characteristics for clarity.
Stage 2: Operational Definition
- Translate conceptual definitions into measurable terms.
- Validate that the defined measures adequately describe the characteristic.
Stage 3: Measurement Instrument Implementation
- Implement operational measures into tools or instruments for data collection.
- Address challenges like large data requirements, storage, and manipulation.
- Ensure tools align with the defined measures for consistency and reliability.
Iterative Process:
- Return to previous stages if revisions are needed.
- Update subsequent stages to reflect any changes.
Validity and Reliability
Definitions:
- Validity: The extent to which a measurement instrument measures what it is intended to measure.
- Reliability: The extent to which an instrument produces consistent results under the same conditions on repeated trials.
Six-Step Process for Developing Metrics
Figure.Six-Step Process for Developing Metrics
- Develop Goals: Define project business and measurement goals for productivity and quality.
- Generate Questions: Use models to generate questions that quantitatively define the goals.
- Specify Measures: Identify the data to be collected to answer the questions and track process/product conformance.
- Develop Mechanisms: Create tools and mechanisms for data collection.
- Validate and Analyze in Real-Time: Collect, validate, and analyze data to provide actionable project feedback.
- Post-Mortem Analysis: Analyze collected data after project completion to assess conformance and recommend future improvements.
Key Takeaways
- Effective measurement requires clarity, validity, and repeatability.
- The GQM framework provides a structured approach to developing meaningful metrics.
- Measurement development is iterative, often requiring adjustments and refinements.
- Valid and reliable metrics form the foundation for actionable insights and continuous improvement.
Discussion:
- How can construct validity affect the usefulness of a metric?
- What are some challenges in implementing measurement instruments for complex software characteristics?
- How can post-mortem data analysis inform future project planning?
References
- V. R. Basili, “Applying the Goal/Question/Metric paradigm in the experience factory,” Software quality assurance and measurement: A worldwide perspective, vol. 7, no. 4, pp. 21–44, 1993.
- R. E. Park, “Software Size Measurement: A Framework for Counting Source Statements,” Software Engineering Institute Carnegie Mellon, Software Engineering Institute Carnegie Mellon University Pittsburgh, Pennsylvania 15213, ESC-TR-92-020, 1992.
Disclaimer: AI is used for text polishing and explaining. Authors have verified all facts and claims. In case of an error, feel free to file an issue.