SlideShare ist ein Scribd-Unternehmen logo
1 von 12
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Mehr von Bogdan Vasilescu

Mehr von 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
 

Kürzlich hochgeladen

AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataBabyAnnMotar
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Millenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptxMillenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptxJanEmmanBrigoli
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operationalssuser3e220a
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 

Kürzlich hochgeladen (20)

LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped data
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Millenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptxMillenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptx
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operational
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 

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