CSE 8314 - SW Measurement and Quality Engineering Copyright © 1995-2001, Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 1 SMU CSE.

Slides:



Advertisements
Similar presentations
Types of Data This module was developed by Business Process Improvement. For more modules, please contact us at or visit our website
Advertisements

Basic Ideas of Statistics Unit 1.1 Basic Ideas of Statistics Corresponds to Chapter 1 in Triola.
These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by.
Metrics for Process and Projects
1 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 5/e and are provided with permission by.
Copyright , Dennis J. Frailey CSE7315 – Software Project Management CSE7315 M30 - Version 9.01 SMU CSE 7315 Planning and Managing a Software Project.
Computer Engineering 203 R Smith Project Tracking 12/ Project Tracking Why do we want to track a project? What is the projects MOV? – Why is tracking.
CHAPTER 23: Two Categorical Variables: The Chi-Square Test
Copyright , Dennis J. Frailey CSE7315 – Software Project Management CSE7315 M27 - Version 9.01 SMU CSE 7315 Planning and Managing a Software Project.
Software Quality Metrics
Business Intelligence Michael Gross Tina Larsell Chad Anderson.
Copyright © 1998 Wanda Kunkle Computer Organization 1 Chapter 2.1 Introduction.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Basic Business Statistics.
Software Process and Product Metrics
Applied Business Forecasting and Planning
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Business Statistics,
Estimating Potentials and Forecasting Sales
Graphical Analysis. Why Graph Data? Graphical methods Require very little training Easy to use Massive amounts of data can be presented more readily Can.
Fourteenth Lecture Hour 9:30 – 10:20 am, Sunday, September 16 Software Management Disciplines Project Control and Process Automation (from Part III, Chapter.
Software Engineering Software Process and Project Metrics.
Chapter 6 : Software Metrics
Chapter Five Human Resource Planning: Methods and Applications
Scientific Inquiry & Skills
Copyright © 2009 Pearson Education, Inc LEARNING GOAL Interpret and carry out hypothesis tests for independence of variables with data organized.
SAM Executive Seminar Software Measurement.
Audit Sampling: An Overview and Application to Tests of Controls
Copyright , Dennis J. Frailey CSE7315 – Software Project Management CSE7315 M11 - Version 9.01 SMU CSE 7315 Planning and Managing a Software Project.
Introduction – Addressing Business Challenges Microsoft® Business Intelligence Solutions.
Copyright © 1994 Carnegie Mellon University Disciplined Software Engineering - Lecture 3 1 Software Size Estimation I Material adapted from: Disciplined.
CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M10 8/20/2001Slide 1 SMU CSE 8314 /
Disciplined Software Engineering Lecture #3 Software Engineering Institute Carnegie Mellon University Pittsburgh, PA Sponsored by the U.S. Department.
Section 10.1 Confidence Intervals
SOFTWARE METRICS. Software Process Revisited The Software Process has a common process framework containing: u framework activities - for all software.
Copyright , Dennis J. Frailey CSE7315 – Software Project Management CSE7315 M16 - Version 8.01 SMU CSE 7315 Planning and Managing a Software Project.
Cmpe 589 Spring 2006 Lecture 2. Software Engineering Definition –A strategy for producing high quality software.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin 8-1 Chapter Eight Audit Sampling: An Overview and Application.
Copyright , Dennis J. Frailey CSE7315 – Software Project Management CSE7315 M18 - Version 9.01 SMU CSE 7315 Planning and Managing a Software Project.
CSE SW Project Management / Module 37 - Process Appraisal and Assessment Copyright © , Dennis J. Frailey, All Rights Reserved CSE7315M37.
CSE SW Project Management / Module 15 - Introduction to Effort Estimation Copyright © , Dennis J. Frailey, All Rights Reserved CSE7315M15.
Major Science Project Process A blueprint for experiment success.
CSE SW Project Management / Module 25 - Risk Management Overview Copyright © , Dennis J. Frailey, All Rights Reserved CSE7315M25 Slide.
CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M15 version 5.09Slide 1 SMU CSE.
CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M14 version 3.09Slide 1 SMU CSE.
CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M31 version 5.09Slide 1 SMU CSE.
Copyright © , Dennis J. Frailey, All Rights Reserved Day 2, Part 1, Page 1 1/11/2004 Day 2, Part 1 Estimating Software Size Section 2 Calculating.
CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 1 SMU CSE 8314 /
CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M37 8/20/2001Slide 1 SMU CSE 8314 /
CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M22 8/20/2001Slide 1 SMU CSE 8314 /
Copyright , Dennis J. Frailey CSE Software Measurement and Quality Engineering CSE8314 M00 - Version 7.09 SMU CSE 8314 Software Measurement.
CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M18 8/20/2001Slide 1 SMU CSE 8314 /
CSE SW Project Management / Module 30 - Managing with Earned Value / Measurement Issues Copyright © , Dennis J. Frailey, All Rights Reserved.
1 These slides are designed to accompany Software Engineering: A Practitioner’s Approach, 7/e (McGraw-Hill 2009). Slides copyright 2009 by Roger Pressman.
CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M09 version 5.09Slide 1 SMU CSE.
CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M12 8/20/2001Slide 1 SMU CSE 8314 /
Copyright , Dennis J. Frailey CSE7315 – Software Project Management CSE7315 M15 - Version 9.01 SMU CSE 7315 Planning and Managing a Software Project.
CSE SW Project Management / Module 14 - Size Estimating Notes and Reuse Copyright © , Dennis J. Frailey, All Rights Reserved CSE7315M14.
Copyright , Dennis J. Frailey CSE Software Measurement and Quality Engineering CSE8314 M31 - Version 7.09 SMU CSE 8314 Software Measurement.
CSE SW Project Management / Module 11 - Overview of Size Estimating Copyright © , Dennis J. Frailey, All Rights Reserved CSE7315M11 Slide.
CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M11 8/20/2001Slide 1 SMU CSE 8314 /
Copyright , Dennis J. Frailey CSE Software Measurement and Quality Engineering CSE8314 M04 - Version 7.09 SMU CSE 8314 Software Measurement.
CSE SW Project Management / Module 27 - Project Tracking and Oversight Copyright © , Dennis J. Frailey, All Rights Reserved CSE7315M27.
CSE SW Project Management / Module 18 - Introduction to Effort Estimating Models Copyright © , Dennis J. Frailey, All Rights Reserved CSE7315M18.
CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M11 version 5.09Slide 1 SMU CSE.
CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M33 8/20/2001Slide 1 SMU CSE 8314 /
Copyright © 2009 Pearson Education, Inc LEARNING GOAL Interpret and carry out hypothesis tests for independence of variables with data organized.
Quantitative Methods for Business Studies
Audit Sampling: An Overview and Application to Tests of Controls
Software metrics.
15.1 The Role of Statistics in the Research Process
Presentation transcript:

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 1 SMU CSE 8314 / NTU SE 762-N Software Measurement and Quality Engineering Module 23 Using Measurements Effectively

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 2 Contents More on Terminology Graphing and Analyzing Data

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 3 More on Terminology

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 4 Metrics, Measures and Data These words are often used interchangeably But their meanings are different And as practiced in software engineering, they often have distinct and specific meanings The ISO standards discussed in the previous module attempt to clarify this

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 5 Dictionary Definitions Metrics – The art or science of measurement – A standard of measurement Measure – The dimensions, capacity or amount of something Data – Factual information used as a basis for reasoning, discussion, measurement or calculation

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 6 So What Does it All Mean? Data are collected to measure (data are the basis of measurements) Measures are used to meet some information need (measures are the basis information)

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 7 The Relationship Entity Being Measured Base Measure Information Need Derived Measure

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 8 Example Process in Execution Units Produced Head- count Lines of Code $ SpentMonths Productivity Units Per Month LOC per Staff Month $ per Line of Code

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 9 An Information Need... “... An insight desired to understand something” Productivity – How efficient are we? Cycle Time – How fast do we execute the process? Cost – How many resources must we expend? etc. Note that an information need can usually be expressed as a question

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 10 Information May Be Obtained From Many Different Measures! Cost is best measured in staff days! Why not dollars ? I measure it by drop in stock price. However they measure it, their problem is how to reduce cost!

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 11 Key Issues for Selecting Measures A measure should provide insight or information about a Goal or Purpose An effective measure is usually associated with some higher level objective, such as “reducing cost” or “on time delivery” [This will be covered in more detail in a later module]

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 12 There are Typically Many Ways to Satisfy an Information Need You must spend time to select the right measure, so you achieve the higher level objective(s) We will address this more in the next few slides, as we discuss measurements

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 13 A Measurement Procedure is... “... a specific formula or graph or computation that provides a means of evaluating the the size or dimensions or capacity or other attributes of somethin g” – This definition focuses on the use of measurement to evaluate something

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 14 How Do You Know What Measures and Measurement Procedures to Use? Derived measures are generally chosen because they answer a question or address an information need To select an effective derived measure, you need to have a mental model of what is important

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 15 A Measure is... – A measure provides something we can analyze & interpret “the result of quantifying an attribute of a process or product” “the result of applying a measurement procedure”

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 16 Examples of Measures Productivity Measures – Lines of code per staff day, or – Units produced per year, or – Copies sold/month less returns/month Customer Satisfaction Measures – Sales per month – Customer complaints per product – Warranty costs per year

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 17 How Do You Choose? By knowing the information need And having a mental model of what will satisfy that need This is usually related to how you intend to analyze and interpret the data Which means you need to think about analysis and interpretation when selecting measures

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 18 Measures Allow Interpretation and Analysis Prediction Decision Alerts Status Evaluation Implications Assessment

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 19 Selecting a Measure is Not Always Easy How do you measure Cycle Time? – Calendar days between contract & delivery – Working days from contract to qualification test – Sum of cycle times of sub-processes – Average cycle time for all products – Weighted average cycle time for all products – Mean and variance of cycle time for all products Each of the above is a reasonable measure

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 20 One Way to Select a Measure... Understand the goal & the question that the measure should answer Goal: – Faster response to customer orders Question or Information Need: – How long does it usually take us to respond to an order? Measure: – Cycle time for the process, defined as calendar days between contract & delivery

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 21 Different Goal, Different Measure Goal: – To understand how efficiently we are executing the process. Question or Information Need: – How long does it usually take us to carry out the process? Measure: – Cycle time for the process, defined as working days between contract & delivery

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 22 Mini Assignment See if you can think of at least five ways to measure quality At least five ways to measure efficiency At least five ways to measure the value of a stock (how an investor might value a stock) Do not turn anything in. This is a thought experiment or a basis for group discussion.

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 23 Key Issues for Selecting Measures Proper interpretation of the measure should be defined to form a basis of consistent analysis Graphing technique is also important [We will discuss these in more detail in a later module on collecting and analyzing data]

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 24 How Will you Use the Data? People do not like to be measured Especially if they don’t know why they are being measured or how the data will be used So you must demonstrate that you are using it the way you claim you are, so people will believe you

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 25 Measurement Causes Change Given any measurement, people will change to make it the data work to their advantage So you want to make their behavior change in a positive way

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 26 Base Measures are... Examples – Number of employees – Days since some event – Units produced – Lines of code in a module – Defects reported Base measures are independent of each other … the actual attributes of the entities being measured

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 27 Key Issues in Defining Base Measures You must have a precise definition of what you want For example, if you are defining hours worked, you must define – How many hours are there per work day? – How do you count overtime?

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 28 How Long is a Work Day? Salaried Staff Work Day OvertimeRegular Time Hourly Staff Salaried Staff Hourly Staff UnpaidPaidUnpaid Paid The definition should be accurate and consistent. Which of these do you include?

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 29 Imprecise Definitions can lead to Useless Data How much overtime was used? – All time spent beyond 8 hours per day? – All time actually recorded on time sheets? – All time spent by managers or just software developers? – Contract labor personnel or just regular? – Subcontractor personnel or just your own?

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 30 Key Issues in Defining Base Measures (continued) Can you collect the data accurately ? Can you collect data consistently across multiple projects? Can you collect it efficiently? How will the organization & the process change when you collect the data?

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 31 “Domestic Violence Data Called Muddled” Dallas Morning News, January 1, 1996 COLUMBUS, Ohio - Every month, police officers around the country meticulously compile bundles of domestic-violence statistics... [but it is] a waste of time. That’s because many other police departments regularly fail to report the same kinds of calls and arrests, making statewide totals meaningless. And those who do make reports use assorted definitions for basic categories, making comparisons impossible

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 32 Observation As the organization gets more mature – It tends to value precise definitions of its measures – Models also tend to play a more prominent role in organizations to understand the process

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 33 Caution About Using Models But models are only models -- do not use them to predict things they are not capable of – Example: Cocomo cost estimating model predicts that you cannot develop software faster than a particular speed – But some people do it faster because they are using techniques not included in the model

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 34 What to Store in a Data Base Base Measures? Derived Measures? Results of Analysis?

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 35 Raw Data of Base Measures is the Best Thing to Maintain in a Historical Data Base It is less biased It has many different uses, some of which you don’t currently know It is typically used in many calculations for different measures But it can take up a lot of storage – Data reduction techniques can help More on data bases in a later course in this series

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 36 Graphing and Analyzing Data

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 37 Graphs Very often, a picture is much easier to interpret than raw data Original Plan Actual Hoped Likely Today

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 38 Graphs are Helpful for Interpreting Data Prediction - extrapolate trends Decision - look for signs of trouble Alerts - look for deviations from expectations Status - see plans vs. actuals Evaluation - compare alternatives Implications - project outcomes Assessment - evaluate issues

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 39 Graphs are Also Employed for Misusing Measurement! Option 3 appears to be Significantly Better

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 40 The Real Difference! In fact, all three are roughly equal!

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 41 A More Accurate Graph!

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 42 But if it were a race... The last graph would not show who won. It all depends on why you are looking at the data

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 43 Another way to Assess Data Raw data can be categorized This can give insight into the true facts

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 44 Report of Total Defects Tentative Conclusion: Defects are out of control

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 45 Report of Total Defects by Type Tentative Conclusions: – Important defects under control – Not enough manpower for minor ones

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 46 More on Categorization Categorizing defects or bugs requires skill and judgment Customer and engineer do not see it the same way Many issues are technically complex

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 47 More on Categorization Politics - Some ways of categorizing are politically incorrect – Defects vs years of experience Probably OK – Defects vs level of training Probably OK – Defects vs gender or race or religion or ethnic origins Often not OK Unless you are trying to prove bias

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 48 Summary Good measures relate to the goals and the questions (information needs) Derived measures are based on models of what is important Base measures must be precisely defined, factual and readily obtainable Graphs and categories help to interpret -- or misinterpret the data

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 49 As You Listen to the Remaining Modules in the Course Consider which ones are addressing which aspect of Measurement

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 50 References Department of Defense, Joint Logistics Commanders Joint Group on Systems Engineering, Practical Software Measurement, a Guide to Objective Program Insight (version 2.1), Naval Undersea Warfare Center, c/o John McGarry, Tufte, Edward, The Visual Display of Quantitative Information, Graphics Press, 1983

CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M23 version 3.09Slide 51 END OF MODULE 23