Presentation is loading. Please wait.

Presentation is loading. Please wait.

Metody statystyczne Copyright, 2001 © Jerzy R. Nawrocki Doskonalenie Procesów Programowych.

Similar presentations


Presentation on theme: "Metody statystyczne Copyright, 2001 © Jerzy R. Nawrocki Doskonalenie Procesów Programowych."— Presentation transcript:

1 Metody statystyczne Copyright, 2001 © Jerzy R. Nawrocki Jerzy.Nawrocki@put.poznan.plwww.cs.put.poznan.pl/~nawrocki/psp Doskonalenie Procesów Programowych Wykład 8

2 J. Nawrocki, DPP, Wykład 8 Introduction.. Project planning.. Size estimating

3 J. Nawrocki, DPP, Wykład 8 Introduction Time & defect recording Time & defect recording Coding strd+Size measuremnt+PIP Coding strd+Size measuremnt+PIP Size estimating + Test report Task & schedule planning Code & design reviews Code & design reviews Design templates Design templates Cyclic dev. Cyclic dev. Baseline Planning Quality Cyclic

4 J. Nawrocki, DPP, Wykład 8 Plan of the lecture IntroductionIntroduction The Probe methodThe Probe method ExampleExample Effort estimationEffort estimation

5 J. Nawrocki, DPP, Wykład 8 Probe method Humphrey, CMU, 1995 PROxy-Based Estimating Objects as proxies HistoricaldataStatisticalmethods Probemethod

6 J. Nawrocki, DPP, Wykład 8 Planning a software project Conceptual design Size estimates Resource estimates The schedule The product RequirementsRequirements Size database Productivity database Resources available Size, res., sched. data

7 J. Nawrocki, DPP, Wykład 8 Probe method Conceptual design Calculate projected and modified LOC Estimate program size Calculate prediction interval Identify objects Number of Object Relative Reuse methods type size categories Identify objects Number of Object Relative Reuse methods type size categories

8 J. Nawrocki, DPP, Wykład 8 Probe method 1. Prepare a conceptual design (objects and methods + their function)

9 J. Nawrocki, DPP, Wykład 8 Probe method 2. For each object assign its type. Skyscraper Church Garage Logic Logic I/O I/O Text Text Calculation Calculation Data Data Set-up Set-up

10 J. Nawrocki, DPP, Wykład 8 Probe method 3. For each object assign one of size ranges. Very big Big Medium Small Very small

11 J. Nawrocki, DPP, Wykład 8 Probe method 4. Knowing: programming language object type size ranges the number of methods estimate, using historical data, size of each object.

12 J. Nawrocki, DPP, Wykład 8 Probe method 5. Determine initial program estimated size, X, adding the values received in the previous step. 2 + 3 = 5 2 + 3 = 5

13 J. Nawrocki, DPP, Wykład 8 Probe method 6. Apply linear regression to get estimated program size Y: Y =  1 X +  0 5 means 10 5 means 10

14 J. Nawrocki, DPP, Wykład 8 Probe method  x i y i - n x avg y avg  x i y i - n x avg y avg  x i 2 - n x avg 2  x i 2 - n x avg 2 1 = 1 = 1 = 1 =  0 = y avg -  1 x avg  0 = y avg -  1 x avg

15 J. Nawrocki, DPP, Wykład 8 Probe method 7. Using the t distribution and standard deviation compute the prediction interval for a given percentage. For 100% the For 100% the interval is [0; +  ]

16 J. Nawrocki, DPP, Wykład 8 Probe method 7a. Calculate the standard deviation, , of your historical data around the regression line. 1  2 = (y i -  0 -  1 x i ) 2 n-2 n-2  i=1n

17 J. Nawrocki, DPP, Wykład 8 Probe method 7b. To find the two-sided value of t for the probability q, look in a table of the t distribution under p(  )= (1+q)/2 and n-2 degree of freedom.

18 J. Nawrocki, DPP, Wykład 8 The t distribution

19 J. Nawrocki, DPP, Wykład 8 Probe method (X - x avg ) 2  (x i - x avg ) 2 + 1 n +1  Range = t    7c. Compute the range as follows: Initial estimate obtained in Step 5

20 J. Nawrocki, DPP, Wykład 8 Plan of the lecture IntroductionIntroduction Probe methodProbe method ExampleExample Effort estimationEffort estimation

21 J. Nawrocki, DPP, Wykład 8 Example Program to be modified MatrixMatrixLinearsystemLinearsystemLinkedlistLinkedlist Data entry Base program

22 J. Nawrocki, DPP, Wykład 8 Example Program to be modified MatrixMatrixLinearsystemLinearsystemLinkedlist1Linkedlist1 Data entry Base program Linkedlist2Linkedlist2

23 J. Nawrocki, DPP, Wykład 8 Example Assignment of numbers to fuzzy values

24 J. Nawrocki, DPP, Wykład 8 Example Base program LOC modified (M)............................................. 5 LOC modified (M)............................................. 5 New objects Type Methods Size Total LOC Matrix Data 13 Medium 115 Matrix Data 13 Medium 115 Linear sys. Calc. 8 Large 197 Linear sys. Calc. 8 Large 197 Linked list 1 Data 3 Large 49 Linked list 1 Data 3 Large 49 Total new & modified (X)................................... 366  0.................................................................... 62  0.................................................................... 62  1.................................................................... 1.3  1.................................................................... 1.3 Estimated new & modified (Y).......................... 538

25 J. Nawrocki, DPP, Wykład 8 Example Estimated new & modified (Y).......................... 538 Prediction percent............................................ 80% p = (1 + percent)/2............................................ 0.9 Number of programs in historical DB (n).......... 10 Std deviation  from regression line................. 198 Degrees of freedom (n-2)................................. 8 t (8, 0.9).......................................................... 1.4  (1 + 1/10 +.. )................................................ 1.05 Prediction range............................................... 290 Upper interval (Y + range)................................ 828 Lower interval (Y - range)................................. 248

26 J. Nawrocki, DPP, Wykład 8 Plan of the lecture IntroductionIntroduction The Probe methodThe Probe method ExampleExample Effort estimationEffort estimation

27 J. Nawrocki, DPP, Wykład 8 Effort estimation begin.. end Programs written so far Historical data It should take... a man month to finish the project

28 J. Nawrocki, DPP, Wykład 8 Effort estimation begin.. end Estimatedsize Actualtime Historical data

29 J. Nawrocki, DPP, Wykład 8 Effort estimation begin.. end Estimatedsize Actualtime Historical data r 2  0.5

30 J. Nawrocki, DPP, Wykład 8 Effort estimation Estimated size Actual time 1.  0,  1 2. Effort =  1 * Estimated_size +  0 +... 1 n +1  3. Range = t    r 2  0.5 4. Effort min = Effort - Range

31 J. Nawrocki, DPP, Wykład 8 Summary Size estimation is a basis for effort estimation and planning The Probe method: Historical data are needed. Statistical methods are used. Programmer obtains not only the estimate but also a prediction interval.

32 J. Nawrocki, DPP, Wykład 8 Further readings W. Humphrey, A Discipline for Software Engineering, Addison- Wesley, Reading, 1995, Chapter 5.

33 J. Nawrocki, DPP, Wykład 8 Quality assessment 1. What is your general impression ? (1 - 6) 2. Was it too slow or too fast ? 3. Did you learn something important to you ? 4. What to improve and how ?


Download ppt "Metody statystyczne Copyright, 2001 © Jerzy R. Nawrocki Doskonalenie Procesów Programowych."

Similar presentations


Ads by Google