Controlled Experiments in Software Engineering
Janet Siegmund
1
Software Engineering Janet Siegmund 1 Why Experiments? - - PowerPoint PPT Presentation
Controlled Experiments in Software Engineering Janet Siegmund 1 Why Experiments? Programmers comprehend code most of their time In general: Human factors 15% Read comments Search by tool 50% 14% Read documentation Notes 9%
1
2
15% 14% 9% 8% 4% 50%
Read comments Search by tool Read documentation Notes Organizational Understanding
3
4
Hypotheses; Independent & Dependent Variables Experimental Design; Confounding Variables Data Accepted/ Rejected Hypotheses
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Ability Color blindness Attitude Comprehension Model Culture Knowledge Education Familiarity with study object Familiarity with tools Fatigue Gender Intelligence Motivation Occupation Problem-solving ability Programming experience Reading time Treatment Preference Working memory capacity Content of study
Data consistency Evaluation apprehension Hawthorne Instrumentation Learning effects Ordering
21
22
23
Participant Value P5 65 P9 56 P3 42 P4 34 P10 24 P6 23 P7 21 P8 16 P2 12 P1 5 Group A Group B 65 56 34 42 24 23 16 21 12 6
24
25
26
27
28
29
Session 3 Session 4 Group D Group C Group B Group A Group D Group C Group B Group A Group D Group C Group B Group A Group Comment/ Low Experience Group A Comment/ High Experience Group B No comment/Low Experience Group C No comment/High Experience Group D
30
31
32
33
public static void main(String[] args) { String word = "Hello"; String result = new String(); for (int j = word.length() - 1; j >= 0; j--) result = result + word.charAt(j); System.out.println(result); } public static void main(String[] args) { String word = "Hello"; String result = new String(); //reverse character order for (int j = word.length() - 1; j >= 0; j--) result = result + word.charAt(j); System.out.println(result); }
34
Group Time [s] A (no comment) 42 A 60 A 30 A 77 A 58 A 49 A 38 B (comment) 48 B 48 B 26 B 30 B 50 B 34
35
36
Group Time [s] Time [s] B 48 26 B 48 30 B 26 34 B 30 48 B 50 48 B 34 50 Group Time [s] Time [s] A 42 30 A 60 38 A 30 42 A 77 49 A 58 58 A 49 60 A 38 77
37 http://commons.wikimedia.org/wiki/File:Standard_deviation_diagram.svg
n i i 2 1
38
39
40
41
42
43
pooled b a
44
45
46
47