SlideShare a Scribd company logo
SLOC and defect prediction




/   department of mathematics and computer science
2


     By no means:
     A study on aggregating
     software metrics
     Bogdan Vasilescu
     Alexander Serebrenik
     Mark van den Brand



May 20, 2011
                              Where innovation starts
Methodology                                                                                  3/5


                              Issue tracker                                     Software system


                                                                                          0
                                                                                1
                    Version control system
     r3780 | kataka | 2003-04-12 00:43:24 +0200 (za, 12 apr 2003) | 2 lines
     Changed paths:
       M /argouml/model/uml/modelmanagement/ModelManagementHelper.java
       M /argouml/uml/ui/foundation/core/ActionSetParameterType.java                  2
      Fixed issue 1544
     ------------------------------------------------------------------------
     r3769 | alexb | 2003-04-11 11:27:55 +0200 (vr, 11 apr 2003) | 4 lines
     Changed paths:
       M /argouml/uml/ui/foundation/core/PropPanelClass.java
       M /argouml/uml/ui/foundation/core/PropPanelInterface.java                          1
      fix for
                                                                                1
      Issue number: 1736



/   department of mathematics and computer science
Correlation between SLOC and defects                                                  4/5




                                                      ArgoUML     Adempiere     Mogwai
                    #Java classes                        1230         4047        2310
                    #Packages                               94         152         365
                    #Bugs mapped                            39         163           38
                    mean                              0.023 (7)    0.392 (3)   0.197 (2)
                    median                           -0.142 (8)    0.311 (4)   0.129 (7)
                    sum                               0.313 (1)    0.510 (1)   0.151 (3)
                    IGini                             0.267 (3)    0.225 (5)   0.134 (6)
                    ITheil                            0.269 (2)    0.185 (6)   0.135 (5)
                    IAtkinson                         0.245 (4)    0.168 (7)   0.138 (4)
                    IHoover                           0.240 (5)    0.113 (8)   0.122 (8)
                    IKolm                             0.144 (6)    0.412 (2)   0.204 (1)



/   department of mathematics and computer science
5/5




       The aggregation technique
       influences the correlation.

       Mean, median are inconsistent.

/   department of mathematics and computer science
Emerging trend                                  6/5




/   department of mathematics and computer science
Inequality indices                                                  7/5




     Econometrics: measure/explain the inequality of income or wealth.




/   department of mathematics and computer science
Inequality indices                                                                                                                                       8/5




     Econometrics: measure/explain the inequality of income or wealth.

     Software metrics and econometric variables have distributions with
     similar shapes.

                                   Household income in Ilocos, the Phillippines (1998)                       hibernate−3.6.0−beta4: org.hibernate.criterion
                             600




                                                                                                        35
                                                                                                        25
                             400
                 Frequency




                                                                                            Frequency

                                                                                                        15
                             200




                                                                                                        5
                             0




                                                                                                        0
                                     0     500000   1000000   1500000   2000000   2500000                    0     50     100     150    200     250    300

                                                         Income                                                                  SLOC




/   department of mathematics and computer science
Inequality indices                                                                                                                                        8/5




     Econometrics: measure/explain the inequality of income or wealth.

     Software metrics and econometric variables have distributions with
     similar shapes.

                                   Household income in Ilocos, the Phillippines (1998)                        hibernate−3.6.0−beta4: org.hibernate.criterion
                             600




                                                                                                         35
                                                                                                         25
                             400
                 Frequency




                                                                                             Frequency

                                                                                                         15
                             200




                                                                                                         5
                             0




                                                                                                         0
                                     0     500000    1000000   1500000   2000000   2500000                    0     50     100     150    200     250    300

                                                          Income                                                                  SLOC




                                                    Inequality in quality = low quality !


/   department of mathematics and computer science
Inequality indices and software metrics         9/5




/   department of mathematics and computer science
Inequality indices and software metrics                                     9/5




     Decomposable indices (partition the population into MECE groups):
             which partition provides the best explanation for the inequality?




/   department of mathematics and computer science
Traceability via decomposability                                  10/5




     Which individuals (classes in package) contribute to 80% of the
     inequality (of SLOC)?

     Which class contributes the most to the inequality?




/   department of mathematics and computer science

More Related Content

More from Bogdan Vasilescu

Benevol 2012
Benevol 2012Benevol 2012
Benevol 2012
Bogdan Vasilescu
 
SOS-Evol 2012
SOS-Evol 2012SOS-Evol 2012
SOS-Evol 2012
Bogdan Vasilescu
 
IPA Spring Days 2012
IPA Spring Days 2012IPA Spring Days 2012
IPA Spring Days 2012
Bogdan Vasilescu
 
Sattose 2011
Sattose 2011Sattose 2011
Sattose 2011
Bogdan Vasilescu
 
Benevol 2010
Benevol 2010Benevol 2010
Benevol 2010
Bogdan Vasilescu
 
Master Thesis presentation
Master Thesis presentationMaster Thesis presentation
Master Thesis presentation
Bogdan Vasilescu
 
Seeing the forest for the trees, UMons 2011
Seeing the forest for the trees, UMons 2011Seeing the forest for the trees, UMons 2011
Seeing the forest for the trees, UMons 2011
Bogdan Vasilescu
 

More from Bogdan Vasilescu (7)

Benevol 2012
Benevol 2012Benevol 2012
Benevol 2012
 
SOS-Evol 2012
SOS-Evol 2012SOS-Evol 2012
SOS-Evol 2012
 
IPA Spring Days 2012
IPA Spring Days 2012IPA Spring Days 2012
IPA Spring Days 2012
 
Sattose 2011
Sattose 2011Sattose 2011
Sattose 2011
 
Benevol 2010
Benevol 2010Benevol 2010
Benevol 2010
 
Master Thesis presentation
Master Thesis presentationMaster Thesis presentation
Master Thesis presentation
 
Seeing the forest for the trees, UMons 2011
Seeing the forest for the trees, UMons 2011Seeing the forest for the trees, UMons 2011
Seeing the forest for the trees, UMons 2011
 

Recently uploaded

The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 

Recently uploaded (20)

The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 

WETSoM 2011

  • 1. SLOC and defect prediction / department of mathematics and computer science
  • 2. 2 By no means: A study on aggregating software metrics Bogdan Vasilescu Alexander Serebrenik Mark van den Brand May 20, 2011 Where innovation starts
  • 3. Methodology 3/5 Issue tracker Software system 0 1 Version control system r3780 | kataka | 2003-04-12 00:43:24 +0200 (za, 12 apr 2003) | 2 lines Changed paths: M /argouml/model/uml/modelmanagement/ModelManagementHelper.java M /argouml/uml/ui/foundation/core/ActionSetParameterType.java 2 Fixed issue 1544 ------------------------------------------------------------------------ r3769 | alexb | 2003-04-11 11:27:55 +0200 (vr, 11 apr 2003) | 4 lines Changed paths: M /argouml/uml/ui/foundation/core/PropPanelClass.java M /argouml/uml/ui/foundation/core/PropPanelInterface.java 1 fix for 1 Issue number: 1736 / department of mathematics and computer science
  • 4. Correlation between SLOC and defects 4/5 ArgoUML Adempiere Mogwai #Java classes 1230 4047 2310 #Packages 94 152 365 #Bugs mapped 39 163 38 mean 0.023 (7) 0.392 (3) 0.197 (2) median -0.142 (8) 0.311 (4) 0.129 (7) sum 0.313 (1) 0.510 (1) 0.151 (3) IGini 0.267 (3) 0.225 (5) 0.134 (6) ITheil 0.269 (2) 0.185 (6) 0.135 (5) IAtkinson 0.245 (4) 0.168 (7) 0.138 (4) IHoover 0.240 (5) 0.113 (8) 0.122 (8) IKolm 0.144 (6) 0.412 (2) 0.204 (1) / department of mathematics and computer science
  • 5. 5/5 The aggregation technique influences the correlation. Mean, median are inconsistent. / department of mathematics and computer science
  • 6. Emerging trend 6/5 / department of mathematics and computer science
  • 7. Inequality indices 7/5 Econometrics: measure/explain the inequality of income or wealth. / department of mathematics and computer science
  • 8. Inequality indices 8/5 Econometrics: measure/explain the inequality of income or wealth. Software metrics and econometric variables have distributions with similar shapes. Household income in Ilocos, the Phillippines (1998) hibernate−3.6.0−beta4: org.hibernate.criterion 600 35 25 400 Frequency Frequency 15 200 5 0 0 0 500000 1000000 1500000 2000000 2500000 0 50 100 150 200 250 300 Income SLOC / department of mathematics and computer science
  • 9. Inequality indices 8/5 Econometrics: measure/explain the inequality of income or wealth. Software metrics and econometric variables have distributions with similar shapes. Household income in Ilocos, the Phillippines (1998) hibernate−3.6.0−beta4: org.hibernate.criterion 600 35 25 400 Frequency Frequency 15 200 5 0 0 0 500000 1000000 1500000 2000000 2500000 0 50 100 150 200 250 300 Income SLOC Inequality in quality = low quality ! / department of mathematics and computer science
  • 10. Inequality indices and software metrics 9/5 / department of mathematics and computer science
  • 11. Inequality indices and software metrics 9/5 Decomposable indices (partition the population into MECE groups): which partition provides the best explanation for the inequality? / department of mathematics and computer science
  • 12. Traceability via decomposability 10/5 Which individuals (classes in package) contribute to 80% of the inequality (of SLOC)? Which class contributes the most to the inequality? / department of mathematics and computer science