SlideShare a Scribd company logo
1 of 28
Download to read offline
‹#› Het begint met een idee
Experiment design (basics)
Ivano Malavolta
Vrije Universiteit Amsterdam
2 Ivano Malavolta / S2 group / Empirical software engineering
Planning phases
Scope of this
lecture
Vrije Universiteit Amsterdam
Experiment design
Design principles
Basic design types
3 Ivano Malavolta / S2 group / Empirical software engineering
Roadmap
Vrije Universiteit Amsterdam
Goal: to determine the set of trials the experiment shall have to
make sure that the effect of the treatments is visible
4 Ivano Malavolta / S2 group / Empirical software engineering
Experiment design
Experiment design: how to organize and execute the trials
Vrije Universiteit Amsterdam
5
Example
● How do we combine subjects, objects and
treatments?
▪ number of factors and treatments
Vrije Universiteit Amsterdam
6
What can you decide?
● Context?
● Fixed subject: software developer
● Factor: image encoding algorithm
▪ other factors?
● Treatments:
▪ JPEG
▪ PNG
● Objects: mobile apps
▪ one app vs many apps
● How to “cover” all the relevant combinations
of treatments, objects, and subjects?
Vrije Universiteit Amsterdam
7 Ivano Malavolta / S2 group / Empirical software engineering
Design principles
● Randomization
Vrije Universiteit Amsterdam
8
Randomization
PROBLEM: when executing many trials, the chosen objects,
subjects and execution ordering may lead to biased results
SOLUTION: randomize the involved objects and subjects, and
the order in which trials are executed
Vrije Universiteit Amsterdam
9
Randomization
● Aim: remove the effects of a specific non-controlled
independent variable
● Group the subjects/objects by that variable and then
randomize
Examples:
● We randomly choose mobile apps from a dataset
● For each app we randomly assign a specific encoding algorithm for its
images
Vrije Universiteit Amsterdam
10 Ivano Malavolta / S2 group / Empirical software engineering
Design principles
● Randomization
● Blocking
Vrije Universiteit Amsterdam
11
Blocking
PROBLEM: one factor influences our results but we want to
mitigate its effects
SOLUTION: split the population in blocks with same (or
similar) level of this factor
Vrije Universiteit Amsterdam
12
Blocking
● The blocks are studied separately
● We DO NOT study the effects between the groups
○ e.g. no conclusions on the correlation between the effects of image encoding
and the type of device
eg, Main factor: image encoding algorithm {PNG, JPEG}
Blocked factor: type of device {low-end, high-end}
Block 1: run the apps only in low-end devices
Block 2: run the apps only in high-end devices
Vrije Universiteit Amsterdam
13
Why more than 2 factors?
● {PNG, JPEG} → energy consumption
● {PNG, JPEG} and {single_render, par_render} → energy consumption
○ factor vs block?
Ivano Malavolta / S2 group / Experiment design
Vrije Universiteit Amsterdam
14
How to choose between factor or block?
Ivano Malavolta / S2 group / Experiment design
Vrije Universiteit Amsterdam
15 Ivano Malavolta / S2 group / Empirical software engineering
Design principles
● Randomization
● Blocking
● Balancing
Vrije Universiteit Amsterdam
16
Balancing
PROBLEM: many statistical analyses are more powerful and
simple when performed on balanced data
SOLUTION: consider the same (or similar) number of
subjects for each type of treatment
eg, Block 1: 20 apps
Block 2: 20 apps
Vrije Universiteit Amsterdam
17 Ivano Malavolta / S2 group / Empirical software engineering
Basic design types
Vrije Universiteit Amsterdam
We can have the following cases:
● 1 factor and 2 treatments (1F-2T)
● 1 factor and >2 treatments (1F-MT)
● 2 factors and 2 treatments (2F-2T)
● >2 factors, each one with >=2 treatments (MF-MT)
18 Ivano Malavolta / S2 group / Empirical software engineering
Basic design types
Basic
Vrije Universiteit Amsterdam
19 Ivano Malavolta / S2 group / Empirical software engineering
1 factor and 2 treatments
We assume to have 1 dependent variable P
Notation:
● 𝜇i : dependent variable mean for treatment i
○ 𝜇i = avg(P)
● yij: j-th measure of the dependent variable for treatment i
Example:
● We are seeing whether different image encoding algorithms impact
energy consumption of mobile apps
● Factor: encoding algorithm
● Treatments:
○ PNG
○ JPEG
● Dependent variable: consumed energy during common usage scenarios
Vrije Universiteit Amsterdam
20 Ivano Malavolta / S2 group / Empirical software engineering
1F-2T: fully randomized design
● Each treatment is randomly assigned to the experimental objects
● Same number of objects for each treatment (balancing)
Object
(Application)
Treatment 1
(PNG)
Treatment 2
(JPEG)
1 X
2 X
3 X
4 X
Example of hypotheses:
H0 : 𝜇1 = 𝜇2
Ha : 𝜇1 != 𝜇2 or 𝜇1 > 𝜇2 or 𝜇1 < 𝜇2
Analyses:
● t-test (unpaired)
● Mann-Whitney test
Vrije Universiteit Amsterdam
21 Ivano Malavolta / S2 group / Empirical software engineering
1F-2T: paired comparison design
● Each treatment is applied on each object (crossover design)
● The order of the treatments is random
Object
(Application)
Treatment 1
(PNG)
Treatment 2
(JPEG)
1 1st 2nd
2 2nd 1st
3 2nd 1st
4 1st 2nd
Vrije Universiteit Amsterdam
22 Ivano Malavolta / S2 group / Empirical software engineering
1F-2T: paired comparison design
P
t
A1, JPEG
A1, PNG
tj
dj
𝜇d= avg(d0...n)
Vrije Universiteit Amsterdam
23 Ivano Malavolta / S2 group / Empirical software engineering
1F-2T: paired comparison design
Example of hypotheses:
H0 : 𝜇d = 0
Ha : 𝜇d != 0or 𝜇d > 0or 𝜇d < 0
Analyses:
● Paired t-test
● Sign test
● Wilcoxon
Vrije Universiteit Amsterdam
24
How to choose between the two design?
Object
(Application)
Treatment 1
(PNG)
Treatment 2
(JPEG)
1 1st 2nd
2 2nd 1st
3 2nd 1st
4 1st 2nd
Object
(Application)
Treatment 1
(PNG)
Treatment 2
(JPEG)
1 X
2 X
3 X
4 X
Vrije Universiteit Amsterdam
25 Ivano Malavolta / S2 group / Empirical software engineering
1 factor and >2 treatments
In this case the factor can have more than one value
Example:
● Factor: encoding algorithms
● Treatments:
○ PNG
○ JPEG
○ TIFF
● Dependent variable: consumed energy during common usage scenarios
Vrije Universiteit Amsterdam
26 Ivano Malavolta / S2 group / Empirical software engineering
1F-MT: fully randomized design
● Each treatment is randomly assigned to the experimental objects
● Same number of objects per each treatment (balancing)
Example of hypotheses:
H0 : 𝜇1 = 𝜇2 = 𝜇3 = … = 𝜇t
Ha : 𝜇i != 𝜇j for at least on pair
of (i,j)
Analyses:
● ANOVA (ANalysis Of
VAriance)
● Kruskal-Wallis
Object
(Application)
Treatment 1
(PNG)
Treatment 2
(JPEG)
Treatment 3
(TIFF)
1 X
2 X
3 X
4 X
5 X
6 X
Vrije Universiteit Amsterdam
27 Ivano Malavolta / S2 group / Empirical software engineering
1F-MT: paired comparison design
● Each treatment is applied on each object (crossover design)
● The order of the treatments is random
Object
(Application)
Treatment 1
(PNG)
Treatment 2
(JPEG)
Treatment 3
(TIFF)
1 1st 3rd 2nd
2 3rd 1st 2nd
3 2nd 3rd 1st
4 2nd 1st 3rd
5 3rd 2nd 1st
6 1st 2nd 3rd
Example of hypotheses:
H0 : 𝜇1 = 𝜇2 = 𝜇3 = … = 𝜇t
Ha : 𝜇i != 𝜇j for at least on pair
of (i,j)
Analyses:
● ANOVA
● Kruskal-Wallis
● Repeated Measures ANOVA
Vrije Universiteit Amsterdam
28 Ivano Malavolta / S2 group / Empirical software engineering
Some contents of lecture extracted from:
● Giuseppe Procaccianti’s lectures at VU
Acknowledgements

More Related Content

What's hot

MIKE'S IELTS - SPEAKING SUCCESS - DOC THU
MIKE'S IELTS - SPEAKING SUCCESS - DOC THUMIKE'S IELTS - SPEAKING SUCCESS - DOC THU
MIKE'S IELTS - SPEAKING SUCCESS - DOC THULê Thảo
 
Project leader and polarity thinking session ppt by russ gaskin (co-creative...
Project leader and polarity thinking session ppt  by russ gaskin (co-creative...Project leader and polarity thinking session ppt  by russ gaskin (co-creative...
Project leader and polarity thinking session ppt by russ gaskin (co-creative...United Nations Development Programme
 
Exploiting Fast and Slow Thinking
Exploiting Fast and Slow ThinkingExploiting Fast and Slow Thinking
Exploiting Fast and Slow ThinkingRebecca Wirfs-Brock
 
Social Media's Influence to Conformity
Social Media's Influence to ConformitySocial Media's Influence to Conformity
Social Media's Influence to Conformitykatiekiwi
 
12 Types Of Biases That Impact Your Work Day.pptx
12 Types Of Biases That Impact Your Work Day.pptx12 Types Of Biases That Impact Your Work Day.pptx
12 Types Of Biases That Impact Your Work Day.pptxRe-Link Consulting
 

What's hot (8)

MIKE'S IELTS - SPEAKING SUCCESS - DOC THU
MIKE'S IELTS - SPEAKING SUCCESS - DOC THUMIKE'S IELTS - SPEAKING SUCCESS - DOC THU
MIKE'S IELTS - SPEAKING SUCCESS - DOC THU
 
Performance Conversations
Performance ConversationsPerformance Conversations
Performance Conversations
 
Project leader and polarity thinking session ppt by russ gaskin (co-creative...
Project leader and polarity thinking session ppt  by russ gaskin (co-creative...Project leader and polarity thinking session ppt  by russ gaskin (co-creative...
Project leader and polarity thinking session ppt by russ gaskin (co-creative...
 
Sat ppt
Sat pptSat ppt
Sat ppt
 
Exploiting Fast and Slow Thinking
Exploiting Fast and Slow ThinkingExploiting Fast and Slow Thinking
Exploiting Fast and Slow Thinking
 
Social Media's Influence to Conformity
Social Media's Influence to ConformitySocial Media's Influence to Conformity
Social Media's Influence to Conformity
 
Listening skills
Listening skillsListening skills
Listening skills
 
12 Types Of Biases That Impact Your Work Day.pptx
12 Types Of Biases That Impact Your Work Day.pptx12 Types Of Biases That Impact Your Work Day.pptx
12 Types Of Biases That Impact Your Work Day.pptx
 

Viewers also liked

Experiment Design - strategy and markets determine what you should test
Experiment Design - strategy and markets determine what you should testExperiment Design - strategy and markets determine what you should test
Experiment Design - strategy and markets determine what you should testFirmhouse
 
How Teaching UX is One Giant Participatory Design Experiment
How Teaching UX is One Giant Participatory Design ExperimentHow Teaching UX is One Giant Participatory Design Experiment
How Teaching UX is One Giant Participatory Design ExperimentTricia Okin
 
Behavior Based Approach to Experiment Design
Behavior Based Approach to Experiment DesignBehavior Based Approach to Experiment Design
Behavior Based Approach to Experiment Designcolemanerine
 
Research methods Ch. 2
Research methods Ch. 2Research methods Ch. 2
Research methods Ch. 2kbolinsky
 
Mobile Apps quality - a tale about energy, performance, and users’ perception
Mobile Apps quality - a tale about energy, performance, and users’ perceptionMobile Apps quality - a tale about energy, performance, and users’ perception
Mobile Apps quality - a tale about energy, performance, and users’ perceptionIvano Malavolta
 
Design of Experiment
Design of ExperimentDesign of Experiment
Design of ExperimentYiming Chen
 
Red Mat: A Design Experiment
Red Mat: A Design ExperimentRed Mat: A Design Experiment
Red Mat: A Design ExperimentJan Chipchase
 
Design of experiment methodology
Design of experiment methodologyDesign of experiment methodology
Design of experiment methodologyCHUN-HAO KUNG
 
Module 1 Scientific Method Ppt
Module 1 Scientific Method PptModule 1 Scientific Method Ppt
Module 1 Scientific Method PptNCVPS
 

Viewers also liked (12)

Experiment Design - strategy and markets determine what you should test
Experiment Design - strategy and markets determine what you should testExperiment Design - strategy and markets determine what you should test
Experiment Design - strategy and markets determine what you should test
 
How Teaching UX is One Giant Participatory Design Experiment
How Teaching UX is One Giant Participatory Design ExperimentHow Teaching UX is One Giant Participatory Design Experiment
How Teaching UX is One Giant Participatory Design Experiment
 
Behavior Based Approach to Experiment Design
Behavior Based Approach to Experiment DesignBehavior Based Approach to Experiment Design
Behavior Based Approach to Experiment Design
 
Research methods Ch. 2
Research methods Ch. 2Research methods Ch. 2
Research methods Ch. 2
 
Mobile Apps quality - a tale about energy, performance, and users’ perception
Mobile Apps quality - a tale about energy, performance, and users’ perceptionMobile Apps quality - a tale about energy, performance, and users’ perception
Mobile Apps quality - a tale about energy, performance, and users’ perception
 
Design of Experiment
Design of ExperimentDesign of Experiment
Design of Experiment
 
AgileCamp Silicon Valley 2015: Experiment Design
AgileCamp Silicon Valley 2015: Experiment DesignAgileCamp Silicon Valley 2015: Experiment Design
AgileCamp Silicon Valley 2015: Experiment Design
 
Red Mat: A Design Experiment
Red Mat: A Design ExperimentRed Mat: A Design Experiment
Red Mat: A Design Experiment
 
Design of experiment methodology
Design of experiment methodologyDesign of experiment methodology
Design of experiment methodology
 
Quality by Design : Design of experiments
Quality by Design : Design of experimentsQuality by Design : Design of experiments
Quality by Design : Design of experiments
 
Experimental Design
Experimental DesignExperimental Design
Experimental Design
 
Module 1 Scientific Method Ppt
Module 1 Scientific Method PptModule 1 Scientific Method Ppt
Module 1 Scientific Method Ppt
 

Similar to [05-A] Experiment design (basics)

The Green Lab - [05 A] Experiment design (basics)
The Green Lab - [05 A] Experiment design (basics)The Green Lab - [05 A] Experiment design (basics)
The Green Lab - [05 A] Experiment design (basics)Ivano Malavolta
 
[02-A] The experimental process
[02-A] The experimental process[02-A] The experimental process
[02-A] The experimental processIvano Malavolta
 
The Green Lab - [05 B] Experiment design (advanced)
The Green Lab - [05 B] Experiment design (advanced)The Green Lab - [05 B] Experiment design (advanced)
The Green Lab - [05 B] Experiment design (advanced)Ivano Malavolta
 
[05-B] Experiment design (advanced)
[05-B] Experiment design (advanced)[05-B] Experiment design (advanced)
[05-B] Experiment design (advanced)Ivano Malavolta
 
The Green Lab - [03 A] Experiment planning
The Green Lab - [03 A] Experiment planningThe Green Lab - [03 A] Experiment planning
The Green Lab - [03 A] Experiment planningIvano Malavolta
 
[03-A] Experiment planning
[03-A] Experiment planning[03-A] Experiment planning
[03-A] Experiment planningIvano Malavolta
 
The Green Lab - [02 A] The experimental process
The Green Lab - [02 A] The experimental processThe Green Lab - [02 A] The experimental process
The Green Lab - [02 A] The experimental processIvano Malavolta
 
[13 - A] Experiment validity
[13 - A] Experiment validity[13 - A] Experiment validity
[13 - A] Experiment validityIvano Malavolta
 
The Green Lab - [09 B] Experiment validity
The Green Lab - [09  B] Experiment validityThe Green Lab - [09  B] Experiment validity
The Green Lab - [09 B] Experiment validityIvano Malavolta
 
Adapting neural networks for the estimation of treatment effects
Adapting neural networks for the estimation of treatment effectsAdapting neural networks for the estimation of treatment effects
Adapting neural networks for the estimation of treatment effectsViswanath Gangavaram
 
Planning for power systems
Planning for power systemsPlanning for power systems
Planning for power systemsOlivier Teytaud
 
[03-B] Measurement theory basics
[03-B] Measurement theory basics[03-B] Measurement theory basics
[03-B] Measurement theory basicsIvano Malavolta
 
[13 - B] Experiment reporting
[13 - B] Experiment reporting[13 - B] Experiment reporting
[13 - B] Experiment reportingIvano Malavolta
 
[02-B] Experiment scoping
[02-B] Experiment scoping[02-B] Experiment scoping
[02-B] Experiment scopingIvano Malavolta
 
Dynamic Optimization without Markov Assumptions: application to power systems
Dynamic Optimization without Markov Assumptions: application to power systemsDynamic Optimization without Markov Assumptions: application to power systems
Dynamic Optimization without Markov Assumptions: application to power systemsOlivier Teytaud
 
Ilab Metis: we optimize power systems and we are not afraid of direct policy ...
Ilab Metis: we optimize power systems and we are not afraid of direct policy ...Ilab Metis: we optimize power systems and we are not afraid of direct policy ...
Ilab Metis: we optimize power systems and we are not afraid of direct policy ...Olivier Teytaud
 
An Application of Assignment Problem in Laptop Selection Problem Using MATLAB
An Application of Assignment Problem in Laptop Selection Problem Using MATLAB An Application of Assignment Problem in Laptop Selection Problem Using MATLAB
An Application of Assignment Problem in Laptop Selection Problem Using MATLAB mathsjournal
 
The Green Lab - [02 B] Experiment scoping
The Green Lab - [02 B] Experiment scopingThe Green Lab - [02 B] Experiment scoping
The Green Lab - [02 B] Experiment scopingIvano Malavolta
 
An Application of Assignment Problem in Laptop Selection Problem Using MATLAB
An Application of Assignment Problem in Laptop Selection Problem Using MATLABAn Application of Assignment Problem in Laptop Selection Problem Using MATLAB
An Application of Assignment Problem in Laptop Selection Problem Using MATLABmathsjournal
 

Similar to [05-A] Experiment design (basics) (20)

The Green Lab - [05 A] Experiment design (basics)
The Green Lab - [05 A] Experiment design (basics)The Green Lab - [05 A] Experiment design (basics)
The Green Lab - [05 A] Experiment design (basics)
 
[02-A] The experimental process
[02-A] The experimental process[02-A] The experimental process
[02-A] The experimental process
 
The Green Lab - [05 B] Experiment design (advanced)
The Green Lab - [05 B] Experiment design (advanced)The Green Lab - [05 B] Experiment design (advanced)
The Green Lab - [05 B] Experiment design (advanced)
 
[05-B] Experiment design (advanced)
[05-B] Experiment design (advanced)[05-B] Experiment design (advanced)
[05-B] Experiment design (advanced)
 
The Green Lab - [03 A] Experiment planning
The Green Lab - [03 A] Experiment planningThe Green Lab - [03 A] Experiment planning
The Green Lab - [03 A] Experiment planning
 
[03-A] Experiment planning
[03-A] Experiment planning[03-A] Experiment planning
[03-A] Experiment planning
 
The Green Lab - [02 A] The experimental process
The Green Lab - [02 A] The experimental processThe Green Lab - [02 A] The experimental process
The Green Lab - [02 A] The experimental process
 
[13 - A] Experiment validity
[13 - A] Experiment validity[13 - A] Experiment validity
[13 - A] Experiment validity
 
The Green Lab - [09 B] Experiment validity
The Green Lab - [09  B] Experiment validityThe Green Lab - [09  B] Experiment validity
The Green Lab - [09 B] Experiment validity
 
Adapting neural networks for the estimation of treatment effects
Adapting neural networks for the estimation of treatment effectsAdapting neural networks for the estimation of treatment effects
Adapting neural networks for the estimation of treatment effects
 
Planning for power systems
Planning for power systemsPlanning for power systems
Planning for power systems
 
[03-B] Measurement theory basics
[03-B] Measurement theory basics[03-B] Measurement theory basics
[03-B] Measurement theory basics
 
[13 - B] Experiment reporting
[13 - B] Experiment reporting[13 - B] Experiment reporting
[13 - B] Experiment reporting
 
[02-B] Experiment scoping
[02-B] Experiment scoping[02-B] Experiment scoping
[02-B] Experiment scoping
 
Dynamic Optimization without Markov Assumptions: application to power systems
Dynamic Optimization without Markov Assumptions: application to power systemsDynamic Optimization without Markov Assumptions: application to power systems
Dynamic Optimization without Markov Assumptions: application to power systems
 
Ilab Metis: we optimize power systems and we are not afraid of direct policy ...
Ilab Metis: we optimize power systems and we are not afraid of direct policy ...Ilab Metis: we optimize power systems and we are not afraid of direct policy ...
Ilab Metis: we optimize power systems and we are not afraid of direct policy ...
 
An Application of Assignment Problem in Laptop Selection Problem Using MATLAB
An Application of Assignment Problem in Laptop Selection Problem Using MATLAB An Application of Assignment Problem in Laptop Selection Problem Using MATLAB
An Application of Assignment Problem in Laptop Selection Problem Using MATLAB
 
The Green Lab - [02 B] Experiment scoping
The Green Lab - [02 B] Experiment scopingThe Green Lab - [02 B] Experiment scoping
The Green Lab - [02 B] Experiment scoping
 
presentationIDC - 14MAY2015
presentationIDC - 14MAY2015presentationIDC - 14MAY2015
presentationIDC - 14MAY2015
 
An Application of Assignment Problem in Laptop Selection Problem Using MATLAB
An Application of Assignment Problem in Laptop Selection Problem Using MATLABAn Application of Assignment Problem in Laptop Selection Problem Using MATLAB
An Application of Assignment Problem in Laptop Selection Problem Using MATLAB
 

More from Ivano Malavolta

Conducting Experiments on the Software Architecture of Robotic Systems (QRARS...
Conducting Experiments on the Software Architecture of Robotic Systems (QRARS...Conducting Experiments on the Software Architecture of Robotic Systems (QRARS...
Conducting Experiments on the Software Architecture of Robotic Systems (QRARS...Ivano Malavolta
 
The Green Lab - Research cocktail @Vrije Universiteit Amsterdam (October 2020)
The Green Lab - Research cocktail  @Vrije Universiteit Amsterdam (October 2020)The Green Lab - Research cocktail  @Vrije Universiteit Amsterdam (October 2020)
The Green Lab - Research cocktail @Vrije Universiteit Amsterdam (October 2020)Ivano Malavolta
 
Software sustainability and Green IT
Software sustainability and Green ITSoftware sustainability and Green IT
Software sustainability and Green ITIvano Malavolta
 
Navigation-aware and Personalized Prefetching of Network Requests in Android ...
Navigation-aware and Personalized Prefetching of Network Requests in Android ...Navigation-aware and Personalized Prefetching of Network Requests in Android ...
Navigation-aware and Personalized Prefetching of Network Requests in Android ...Ivano Malavolta
 
How Maintainability Issues of Android Apps Evolve [ICSME 2018]
How Maintainability Issues of Android Apps Evolve [ICSME 2018]How Maintainability Issues of Android Apps Evolve [ICSME 2018]
How Maintainability Issues of Android Apps Evolve [ICSME 2018]Ivano Malavolta
 
Collaborative Model-Driven Software Engineering: a Classification Framework a...
Collaborative Model-Driven Software Engineering: a Classification Framework a...Collaborative Model-Driven Software Engineering: a Classification Framework a...
Collaborative Model-Driven Software Engineering: a Classification Framework a...Ivano Malavolta
 
Experimenting on Mobile Apps Quality - a tale about Energy, Performance, and ...
Experimenting on Mobile Apps Quality - a tale about Energy, Performance, and ...Experimenting on Mobile Apps Quality - a tale about Energy, Performance, and ...
Experimenting on Mobile Apps Quality - a tale about Energy, Performance, and ...Ivano Malavolta
 
Modeling objects interaction via UML sequence diagrams [Software Design] [Com...
Modeling objects interaction via UML sequence diagrams [Software Design] [Com...Modeling objects interaction via UML sequence diagrams [Software Design] [Com...
Modeling objects interaction via UML sequence diagrams [Software Design] [Com...Ivano Malavolta
 
Modeling behaviour via UML state machines [Software Design] [Computer Science...
Modeling behaviour via UML state machines [Software Design] [Computer Science...Modeling behaviour via UML state machines [Software Design] [Computer Science...
Modeling behaviour via UML state machines [Software Design] [Computer Science...Ivano Malavolta
 
Object-oriented design patterns in UML [Software Design] [Computer Science] [...
Object-oriented design patterns in UML [Software Design] [Computer Science] [...Object-oriented design patterns in UML [Software Design] [Computer Science] [...
Object-oriented design patterns in UML [Software Design] [Computer Science] [...Ivano Malavolta
 
Structure modeling with UML [Software Design] [Computer Science] [Vrije Unive...
Structure modeling with UML [Software Design] [Computer Science] [Vrije Unive...Structure modeling with UML [Software Design] [Computer Science] [Vrije Unive...
Structure modeling with UML [Software Design] [Computer Science] [Vrije Unive...Ivano Malavolta
 
Requirements engineering with UML [Software Design] [Computer Science] [Vrije...
Requirements engineering with UML [Software Design] [Computer Science] [Vrije...Requirements engineering with UML [Software Design] [Computer Science] [Vrije...
Requirements engineering with UML [Software Design] [Computer Science] [Vrije...Ivano Malavolta
 
Modeling and abstraction, software development process [Software Design] [Com...
Modeling and abstraction, software development process [Software Design] [Com...Modeling and abstraction, software development process [Software Design] [Com...
Modeling and abstraction, software development process [Software Design] [Com...Ivano Malavolta
 
[2017/2018] Agile development
[2017/2018] Agile development[2017/2018] Agile development
[2017/2018] Agile developmentIvano Malavolta
 
Reconstructing microservice-based architectures
Reconstructing microservice-based architecturesReconstructing microservice-based architectures
Reconstructing microservice-based architecturesIvano Malavolta
 
[2017/2018] AADL - Architecture Analysis and Design Language
[2017/2018] AADL - Architecture Analysis and Design Language[2017/2018] AADL - Architecture Analysis and Design Language
[2017/2018] AADL - Architecture Analysis and Design LanguageIvano Malavolta
 
[2017/2018] Architectural languages
[2017/2018] Architectural languages[2017/2018] Architectural languages
[2017/2018] Architectural languagesIvano Malavolta
 
[2017/2018] Introduction to Software Architecture
[2017/2018] Introduction to Software Architecture[2017/2018] Introduction to Software Architecture
[2017/2018] Introduction to Software ArchitectureIvano Malavolta
 
[2017/2018] RESEARCH in software engineering
[2017/2018] RESEARCH in software engineering[2017/2018] RESEARCH in software engineering
[2017/2018] RESEARCH in software engineeringIvano Malavolta
 

More from Ivano Malavolta (20)

Conducting Experiments on the Software Architecture of Robotic Systems (QRARS...
Conducting Experiments on the Software Architecture of Robotic Systems (QRARS...Conducting Experiments on the Software Architecture of Robotic Systems (QRARS...
Conducting Experiments on the Software Architecture of Robotic Systems (QRARS...
 
The H2020 experience
The H2020 experienceThe H2020 experience
The H2020 experience
 
The Green Lab - Research cocktail @Vrije Universiteit Amsterdam (October 2020)
The Green Lab - Research cocktail  @Vrije Universiteit Amsterdam (October 2020)The Green Lab - Research cocktail  @Vrije Universiteit Amsterdam (October 2020)
The Green Lab - Research cocktail @Vrije Universiteit Amsterdam (October 2020)
 
Software sustainability and Green IT
Software sustainability and Green ITSoftware sustainability and Green IT
Software sustainability and Green IT
 
Navigation-aware and Personalized Prefetching of Network Requests in Android ...
Navigation-aware and Personalized Prefetching of Network Requests in Android ...Navigation-aware and Personalized Prefetching of Network Requests in Android ...
Navigation-aware and Personalized Prefetching of Network Requests in Android ...
 
How Maintainability Issues of Android Apps Evolve [ICSME 2018]
How Maintainability Issues of Android Apps Evolve [ICSME 2018]How Maintainability Issues of Android Apps Evolve [ICSME 2018]
How Maintainability Issues of Android Apps Evolve [ICSME 2018]
 
Collaborative Model-Driven Software Engineering: a Classification Framework a...
Collaborative Model-Driven Software Engineering: a Classification Framework a...Collaborative Model-Driven Software Engineering: a Classification Framework a...
Collaborative Model-Driven Software Engineering: a Classification Framework a...
 
Experimenting on Mobile Apps Quality - a tale about Energy, Performance, and ...
Experimenting on Mobile Apps Quality - a tale about Energy, Performance, and ...Experimenting on Mobile Apps Quality - a tale about Energy, Performance, and ...
Experimenting on Mobile Apps Quality - a tale about Energy, Performance, and ...
 
Modeling objects interaction via UML sequence diagrams [Software Design] [Com...
Modeling objects interaction via UML sequence diagrams [Software Design] [Com...Modeling objects interaction via UML sequence diagrams [Software Design] [Com...
Modeling objects interaction via UML sequence diagrams [Software Design] [Com...
 
Modeling behaviour via UML state machines [Software Design] [Computer Science...
Modeling behaviour via UML state machines [Software Design] [Computer Science...Modeling behaviour via UML state machines [Software Design] [Computer Science...
Modeling behaviour via UML state machines [Software Design] [Computer Science...
 
Object-oriented design patterns in UML [Software Design] [Computer Science] [...
Object-oriented design patterns in UML [Software Design] [Computer Science] [...Object-oriented design patterns in UML [Software Design] [Computer Science] [...
Object-oriented design patterns in UML [Software Design] [Computer Science] [...
 
Structure modeling with UML [Software Design] [Computer Science] [Vrije Unive...
Structure modeling with UML [Software Design] [Computer Science] [Vrije Unive...Structure modeling with UML [Software Design] [Computer Science] [Vrije Unive...
Structure modeling with UML [Software Design] [Computer Science] [Vrije Unive...
 
Requirements engineering with UML [Software Design] [Computer Science] [Vrije...
Requirements engineering with UML [Software Design] [Computer Science] [Vrije...Requirements engineering with UML [Software Design] [Computer Science] [Vrije...
Requirements engineering with UML [Software Design] [Computer Science] [Vrije...
 
Modeling and abstraction, software development process [Software Design] [Com...
Modeling and abstraction, software development process [Software Design] [Com...Modeling and abstraction, software development process [Software Design] [Com...
Modeling and abstraction, software development process [Software Design] [Com...
 
[2017/2018] Agile development
[2017/2018] Agile development[2017/2018] Agile development
[2017/2018] Agile development
 
Reconstructing microservice-based architectures
Reconstructing microservice-based architecturesReconstructing microservice-based architectures
Reconstructing microservice-based architectures
 
[2017/2018] AADL - Architecture Analysis and Design Language
[2017/2018] AADL - Architecture Analysis and Design Language[2017/2018] AADL - Architecture Analysis and Design Language
[2017/2018] AADL - Architecture Analysis and Design Language
 
[2017/2018] Architectural languages
[2017/2018] Architectural languages[2017/2018] Architectural languages
[2017/2018] Architectural languages
 
[2017/2018] Introduction to Software Architecture
[2017/2018] Introduction to Software Architecture[2017/2018] Introduction to Software Architecture
[2017/2018] Introduction to Software Architecture
 
[2017/2018] RESEARCH in software engineering
[2017/2018] RESEARCH in software engineering[2017/2018] RESEARCH in software engineering
[2017/2018] RESEARCH in software engineering
 

Recently uploaded

%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfonteinmasabamasaba
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...masabamasaba
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...masabamasaba
 
%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durbanmasabamasaba
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfayushiqss
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...masabamasaba
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplatePresentation.STUDIO
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesVictorSzoltysek
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionOnePlan Solutions
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfproinshot.com
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnAmarnathKambale
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdfPearlKirahMaeRagusta1
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park masabamasaba
 

Recently uploaded (20)

%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 

[05-A] Experiment design (basics)

  • 1. ‹#› Het begint met een idee Experiment design (basics) Ivano Malavolta
  • 2. Vrije Universiteit Amsterdam 2 Ivano Malavolta / S2 group / Empirical software engineering Planning phases Scope of this lecture
  • 3. Vrije Universiteit Amsterdam Experiment design Design principles Basic design types 3 Ivano Malavolta / S2 group / Empirical software engineering Roadmap
  • 4. Vrije Universiteit Amsterdam Goal: to determine the set of trials the experiment shall have to make sure that the effect of the treatments is visible 4 Ivano Malavolta / S2 group / Empirical software engineering Experiment design Experiment design: how to organize and execute the trials
  • 5. Vrije Universiteit Amsterdam 5 Example ● How do we combine subjects, objects and treatments? ▪ number of factors and treatments
  • 6. Vrije Universiteit Amsterdam 6 What can you decide? ● Context? ● Fixed subject: software developer ● Factor: image encoding algorithm ▪ other factors? ● Treatments: ▪ JPEG ▪ PNG ● Objects: mobile apps ▪ one app vs many apps ● How to “cover” all the relevant combinations of treatments, objects, and subjects?
  • 7. Vrije Universiteit Amsterdam 7 Ivano Malavolta / S2 group / Empirical software engineering Design principles ● Randomization
  • 8. Vrije Universiteit Amsterdam 8 Randomization PROBLEM: when executing many trials, the chosen objects, subjects and execution ordering may lead to biased results SOLUTION: randomize the involved objects and subjects, and the order in which trials are executed
  • 9. Vrije Universiteit Amsterdam 9 Randomization ● Aim: remove the effects of a specific non-controlled independent variable ● Group the subjects/objects by that variable and then randomize Examples: ● We randomly choose mobile apps from a dataset ● For each app we randomly assign a specific encoding algorithm for its images
  • 10. Vrije Universiteit Amsterdam 10 Ivano Malavolta / S2 group / Empirical software engineering Design principles ● Randomization ● Blocking
  • 11. Vrije Universiteit Amsterdam 11 Blocking PROBLEM: one factor influences our results but we want to mitigate its effects SOLUTION: split the population in blocks with same (or similar) level of this factor
  • 12. Vrije Universiteit Amsterdam 12 Blocking ● The blocks are studied separately ● We DO NOT study the effects between the groups ○ e.g. no conclusions on the correlation between the effects of image encoding and the type of device eg, Main factor: image encoding algorithm {PNG, JPEG} Blocked factor: type of device {low-end, high-end} Block 1: run the apps only in low-end devices Block 2: run the apps only in high-end devices
  • 13. Vrije Universiteit Amsterdam 13 Why more than 2 factors? ● {PNG, JPEG} → energy consumption ● {PNG, JPEG} and {single_render, par_render} → energy consumption ○ factor vs block? Ivano Malavolta / S2 group / Experiment design
  • 14. Vrije Universiteit Amsterdam 14 How to choose between factor or block? Ivano Malavolta / S2 group / Experiment design
  • 15. Vrije Universiteit Amsterdam 15 Ivano Malavolta / S2 group / Empirical software engineering Design principles ● Randomization ● Blocking ● Balancing
  • 16. Vrije Universiteit Amsterdam 16 Balancing PROBLEM: many statistical analyses are more powerful and simple when performed on balanced data SOLUTION: consider the same (or similar) number of subjects for each type of treatment eg, Block 1: 20 apps Block 2: 20 apps
  • 17. Vrije Universiteit Amsterdam 17 Ivano Malavolta / S2 group / Empirical software engineering Basic design types
  • 18. Vrije Universiteit Amsterdam We can have the following cases: ● 1 factor and 2 treatments (1F-2T) ● 1 factor and >2 treatments (1F-MT) ● 2 factors and 2 treatments (2F-2T) ● >2 factors, each one with >=2 treatments (MF-MT) 18 Ivano Malavolta / S2 group / Empirical software engineering Basic design types Basic
  • 19. Vrije Universiteit Amsterdam 19 Ivano Malavolta / S2 group / Empirical software engineering 1 factor and 2 treatments We assume to have 1 dependent variable P Notation: ● 𝜇i : dependent variable mean for treatment i ○ 𝜇i = avg(P) ● yij: j-th measure of the dependent variable for treatment i Example: ● We are seeing whether different image encoding algorithms impact energy consumption of mobile apps ● Factor: encoding algorithm ● Treatments: ○ PNG ○ JPEG ● Dependent variable: consumed energy during common usage scenarios
  • 20. Vrije Universiteit Amsterdam 20 Ivano Malavolta / S2 group / Empirical software engineering 1F-2T: fully randomized design ● Each treatment is randomly assigned to the experimental objects ● Same number of objects for each treatment (balancing) Object (Application) Treatment 1 (PNG) Treatment 2 (JPEG) 1 X 2 X 3 X 4 X Example of hypotheses: H0 : 𝜇1 = 𝜇2 Ha : 𝜇1 != 𝜇2 or 𝜇1 > 𝜇2 or 𝜇1 < 𝜇2 Analyses: ● t-test (unpaired) ● Mann-Whitney test
  • 21. Vrije Universiteit Amsterdam 21 Ivano Malavolta / S2 group / Empirical software engineering 1F-2T: paired comparison design ● Each treatment is applied on each object (crossover design) ● The order of the treatments is random Object (Application) Treatment 1 (PNG) Treatment 2 (JPEG) 1 1st 2nd 2 2nd 1st 3 2nd 1st 4 1st 2nd
  • 22. Vrije Universiteit Amsterdam 22 Ivano Malavolta / S2 group / Empirical software engineering 1F-2T: paired comparison design P t A1, JPEG A1, PNG tj dj 𝜇d= avg(d0...n)
  • 23. Vrije Universiteit Amsterdam 23 Ivano Malavolta / S2 group / Empirical software engineering 1F-2T: paired comparison design Example of hypotheses: H0 : 𝜇d = 0 Ha : 𝜇d != 0or 𝜇d > 0or 𝜇d < 0 Analyses: ● Paired t-test ● Sign test ● Wilcoxon
  • 24. Vrije Universiteit Amsterdam 24 How to choose between the two design? Object (Application) Treatment 1 (PNG) Treatment 2 (JPEG) 1 1st 2nd 2 2nd 1st 3 2nd 1st 4 1st 2nd Object (Application) Treatment 1 (PNG) Treatment 2 (JPEG) 1 X 2 X 3 X 4 X
  • 25. Vrije Universiteit Amsterdam 25 Ivano Malavolta / S2 group / Empirical software engineering 1 factor and >2 treatments In this case the factor can have more than one value Example: ● Factor: encoding algorithms ● Treatments: ○ PNG ○ JPEG ○ TIFF ● Dependent variable: consumed energy during common usage scenarios
  • 26. Vrije Universiteit Amsterdam 26 Ivano Malavolta / S2 group / Empirical software engineering 1F-MT: fully randomized design ● Each treatment is randomly assigned to the experimental objects ● Same number of objects per each treatment (balancing) Example of hypotheses: H0 : 𝜇1 = 𝜇2 = 𝜇3 = … = 𝜇t Ha : 𝜇i != 𝜇j for at least on pair of (i,j) Analyses: ● ANOVA (ANalysis Of VAriance) ● Kruskal-Wallis Object (Application) Treatment 1 (PNG) Treatment 2 (JPEG) Treatment 3 (TIFF) 1 X 2 X 3 X 4 X 5 X 6 X
  • 27. Vrije Universiteit Amsterdam 27 Ivano Malavolta / S2 group / Empirical software engineering 1F-MT: paired comparison design ● Each treatment is applied on each object (crossover design) ● The order of the treatments is random Object (Application) Treatment 1 (PNG) Treatment 2 (JPEG) Treatment 3 (TIFF) 1 1st 3rd 2nd 2 3rd 1st 2nd 3 2nd 3rd 1st 4 2nd 1st 3rd 5 3rd 2nd 1st 6 1st 2nd 3rd Example of hypotheses: H0 : 𝜇1 = 𝜇2 = 𝜇3 = … = 𝜇t Ha : 𝜇i != 𝜇j for at least on pair of (i,j) Analyses: ● ANOVA ● Kruskal-Wallis ● Repeated Measures ANOVA
  • 28. Vrije Universiteit Amsterdam 28 Ivano Malavolta / S2 group / Empirical software engineering Some contents of lecture extracted from: ● Giuseppe Procaccianti’s lectures at VU Acknowledgements