Presentation is loading. Please wait.

Presentation is loading. Please wait.

S Neuendorf 2004 Prediction of Software Defects SASQAG March 2004 by Steve Neuendorf.

Similar presentations


Presentation on theme: "S Neuendorf 2004 Prediction of Software Defects SASQAG March 2004 by Steve Neuendorf."— Presentation transcript:

1 S Neuendorf 2004 Prediction of Software Defects SASQAG March 2004 by Steve Neuendorf

2 S Neuendorf 2004 Affiliations –Independent Consultant www.serv.net/~steve –David Consulting Group www.davidconsultinggroup.com –Human Systems Knowledge Networks www.hskni.com

3 S Neuendorf 2004 introduce which are observed as FAULTSDEFECTSFAILURES are discovered in products Before release Internal Defects or Errors (External) Defects Yes No Faults, Defects and Failures There is considerable disagreement about the definitions of defects, errors, faults and failures. (Fenton)

4 S Neuendorf 2004 Defect Prediction # Created? # Found? # Fixed? Release # Found? # Left? # Created # Found # Left

5 S Neuendorf 2004 Defect Addition Rates PhaseDefects per FP Requirements1.00 Design1.25 Coding1.75 Documentation0.60 Bad Fixes0.40 Total5.00 Jones 5

6 S Neuendorf 2004 Defect Removal Efficency 55%60%65%70%75%80%85%90%95%100% 10 9 8 7 6 5 4 3 2 1 0 MalpracticeUS AverageBest in Class Defects per FP Defect Removal Efficiency Jones 5

7 S Neuendorf 2004 Other Considerations Not much information about the relationship between defects and failures No relationship between defect(s) and failure severity No consistency in terminology (BSOD = Bug?)

8 S Neuendorf 2004 Defect Prediction Many types of Models –Process Models –Multivariate Models –Size and Complexity metrics –Belief Models –...

9 S Neuendorf 2004 The Components of a Process

10 S Neuendorf 2004 Process Models Actual Performance Predicted Performance (e.g., E, Q or T) Process Model Current Capability Management Teams Tools Techniques Technology Environment

11 S Neuendorf 2004 Process Models Phase Containment Models –Rely on history to identify How many defects were produced in each phase, How many defects from that phase were discovered and corrected (Phase Containment) –Predict defects for each phase and track discovery and removal. Assume that defects predicted and not found were passed to the next phase. –Simple, easy to implement with common tools.

12 S Neuendorf 2004 Multivariate Models Analogous to Parametric Estimating Models. (e.g., COQUALMO) Uses any of many variables and analysis of the relationships of the values for those variables and the results observed in historic projects. Good if you have a good match for the projects from which the model is created.

13 S Neuendorf 2004 Size and Complexity metrics Given enough “Defects per” data, all that is needed is the “per What” to predict defects – Right? Size and Complexity do not cause defects – faults do.

14 S Neuendorf 2004 Using Testing Metrics Look at total defects found in each phase pre and post release, including analysis as to where the defect originated. Use statistics to determine total defects introduced in each phase and use that as a predictor. With a stable environment, very high confidence (95%) is claimed. Good opportunity for Benchmarking Approach.

15 S Neuendorf 2004 Using Process Quality Data SEI CMM LevelsDefect PotentialsRemoval EfficiencyDelivered Defects 1585%0.75 2490%0.40 3395%0.15 4297%0.06 5199%0.01 Jones 5

16 S Neuendorf 2004 Bayesian Belief Networks (BBN) Seems to be the area of most interest. Combines history with reality. Old Concept (1763) – New life (we got tools) Graphical network of the probabilistic relationships between variables. –Uses expert beliefs about the relationships assess the the impact of evidence on the probabilities of outcomes

17 S Neuendorf 2004 Staff Experience Problem Complexity Use of Standard Code Complexity Use Reliability # of Latent Defects Coders’ Performance Adapted from Fenton 4 Example BBN

18 S Neuendorf 2004 Node probability table (NPT) for the node 'Reliability' Uselowmedhigh Defectslowmedhighlowmedhighlowmedhigh Reliability low0.100.200.330.200.330.500.200.330.70 med0.200.300.330.300.330.30 0.330.20 high0.700.500.330.500.330.200.500.330.10

19 S Neuendorf 2004 References 1.A Bayesian Approach to Deriving Parameter Values for a Software Defect Predictive Model; Robert Stoddard, John Henderson, Ph.D.; Sixth International Conference on the Applications of Software Measurement. 2.A Critique of Software Defect Prediction Models; Norman Fenton, Martin Neil; Centre for Software Reliability 3.Predicting Software Errors and Defects; Mark Criscione, et.al. 4.Predicting Software Quality using Bayesian Belief Networks; Martin Neil & Norman Fenton 5.Estimating Software Costs, Jones, McGraw-Hill, 1999


Download ppt "S Neuendorf 2004 Prediction of Software Defects SASQAG March 2004 by Steve Neuendorf."

Similar presentations


Ads by Google