SlideShare une entreprise Scribd logo
1  sur  28
Télécharger pour lire hors ligne
‹#› 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

Contenu connexe

Tendances

Six Sigma Tools Project Templates
Six Sigma Tools Project TemplatesSix Sigma Tools Project Templates
Six Sigma Tools Project Templatesacribe
 
UNIT-2 Quantitaitive Anlaysis for Mgt Decisions.pptx
UNIT-2 Quantitaitive Anlaysis for Mgt Decisions.pptxUNIT-2 Quantitaitive Anlaysis for Mgt Decisions.pptx
UNIT-2 Quantitaitive Anlaysis for Mgt Decisions.pptxMinilikDerseh1
 
8D problem solving method with sample chart
8D problem solving method with sample chart 8D problem solving method with sample chart
8D problem solving method with sample chart farshid hesami
 
Risk management presentation
Risk management presentationRisk management presentation
Risk management presentationabpeters82
 

Tendances (8)

Six Sigma Tools Project Templates
Six Sigma Tools Project TemplatesSix Sigma Tools Project Templates
Six Sigma Tools Project Templates
 
UNIT-2 Quantitaitive Anlaysis for Mgt Decisions.pptx
UNIT-2 Quantitaitive Anlaysis for Mgt Decisions.pptxUNIT-2 Quantitaitive Anlaysis for Mgt Decisions.pptx
UNIT-2 Quantitaitive Anlaysis for Mgt Decisions.pptx
 
8D problem solving method with sample chart
8D problem solving method with sample chart 8D problem solving method with sample chart
8D problem solving method with sample chart
 
Risk management presentation
Risk management presentationRisk management presentation
Risk management presentation
 
Lean vs six sigma -jk
Lean vs six sigma  -jkLean vs six sigma  -jk
Lean vs six sigma -jk
 
Decision Theory
Decision TheoryDecision Theory
Decision Theory
 
INTRODUCTION - ENGINEERING ECONOMICS AND FINANCIAL ACCOUNTING
INTRODUCTION - ENGINEERING ECONOMICS AND FINANCIAL ACCOUNTINGINTRODUCTION - ENGINEERING ECONOMICS AND FINANCIAL ACCOUNTING
INTRODUCTION - ENGINEERING ECONOMICS AND FINANCIAL ACCOUNTING
 
Decision theory
Decision theoryDecision theory
Decision theory
 

En vedette

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
 

En vedette (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
 

Similaire à [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
 
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
 
The Green Lab - [09 A] Statistical tests and effect size
The Green Lab - [09 A] Statistical tests and effect sizeThe Green Lab - [09 A] Statistical tests and effect size
The Green Lab - [09 A] Statistical tests and effect sizeIvano Malavolta
 

Similaire à [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
 
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
 
The Green Lab - [09 A] Statistical tests and effect size
The Green Lab - [09 A] Statistical tests and effect sizeThe Green Lab - [09 A] Statistical tests and effect size
The Green Lab - [09 A] Statistical tests and effect size
 

Plus de 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
 

Plus de 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
 

Dernier

VictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics
 
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfEnhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfRTS corp
 
Mastering Project Planning with Microsoft Project 2016.pptx
Mastering Project Planning with Microsoft Project 2016.pptxMastering Project Planning with Microsoft Project 2016.pptx
Mastering Project Planning with Microsoft Project 2016.pptxAS Design & AST.
 
Introduction to Firebase Workshop Slides
Introduction to Firebase Workshop SlidesIntroduction to Firebase Workshop Slides
Introduction to Firebase Workshop Slidesvaideheekore1
 
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...OnePlan Solutions
 
Best Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh ITBest Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh ITmanoharjgpsolutions
 
Understanding Plagiarism: Causes, Consequences and Prevention.pptx
Understanding Plagiarism: Causes, Consequences and Prevention.pptxUnderstanding Plagiarism: Causes, Consequences and Prevention.pptx
Understanding Plagiarism: Causes, Consequences and Prevention.pptxSasikiranMarri
 
Zer0con 2024 final share short version.pdf
Zer0con 2024 final share short version.pdfZer0con 2024 final share short version.pdf
Zer0con 2024 final share short version.pdfmaor17
 
[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf
[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf
[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdfSteve Caron
 
eSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration toolseSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration toolsosttopstonverter
 
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4jGraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4jNeo4j
 
The Ultimate Guide to Performance Testing in Low-Code, No-Code Environments (...
The Ultimate Guide to Performance Testing in Low-Code, No-Code Environments (...The Ultimate Guide to Performance Testing in Low-Code, No-Code Environments (...
The Ultimate Guide to Performance Testing in Low-Code, No-Code Environments (...kalichargn70th171
 
SAM Training Session - How to use EXCEL ?
SAM Training Session - How to use EXCEL ?SAM Training Session - How to use EXCEL ?
SAM Training Session - How to use EXCEL ?Alexandre Beguel
 
What’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 UpdatesWhat’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 UpdatesVictoriaMetrics
 
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdfAndrey Devyatkin
 
Key Steps in Agile Software Delivery Roadmap
Key Steps in Agile Software Delivery RoadmapKey Steps in Agile Software Delivery Roadmap
Key Steps in Agile Software Delivery RoadmapIshara Amarasekera
 
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...OnePlan Solutions
 
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...Bert Jan Schrijver
 
Osi security architecture in network.pptx
Osi security architecture in network.pptxOsi security architecture in network.pptx
Osi security architecture in network.pptxVinzoCenzo
 
Keeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldKeeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldRoberto Pérez Alcolea
 

Dernier (20)

VictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
 
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfEnhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
 
Mastering Project Planning with Microsoft Project 2016.pptx
Mastering Project Planning with Microsoft Project 2016.pptxMastering Project Planning with Microsoft Project 2016.pptx
Mastering Project Planning with Microsoft Project 2016.pptx
 
Introduction to Firebase Workshop Slides
Introduction to Firebase Workshop SlidesIntroduction to Firebase Workshop Slides
Introduction to Firebase Workshop Slides
 
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
Revolutionizing the Digital Transformation Office - Leveraging OnePlan’s AI a...
 
Best Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh ITBest Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh IT
 
Understanding Plagiarism: Causes, Consequences and Prevention.pptx
Understanding Plagiarism: Causes, Consequences and Prevention.pptxUnderstanding Plagiarism: Causes, Consequences and Prevention.pptx
Understanding Plagiarism: Causes, Consequences and Prevention.pptx
 
Zer0con 2024 final share short version.pdf
Zer0con 2024 final share short version.pdfZer0con 2024 final share short version.pdf
Zer0con 2024 final share short version.pdf
 
[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf
[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf
[ CNCF Q1 2024 ] Intro to Continuous Profiling and Grafana Pyroscope.pdf
 
eSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration toolseSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration tools
 
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4jGraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
 
The Ultimate Guide to Performance Testing in Low-Code, No-Code Environments (...
The Ultimate Guide to Performance Testing in Low-Code, No-Code Environments (...The Ultimate Guide to Performance Testing in Low-Code, No-Code Environments (...
The Ultimate Guide to Performance Testing in Low-Code, No-Code Environments (...
 
SAM Training Session - How to use EXCEL ?
SAM Training Session - How to use EXCEL ?SAM Training Session - How to use EXCEL ?
SAM Training Session - How to use EXCEL ?
 
What’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 UpdatesWhat’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 Updates
 
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
 
Key Steps in Agile Software Delivery Roadmap
Key Steps in Agile Software Delivery RoadmapKey Steps in Agile Software Delivery Roadmap
Key Steps in Agile Software Delivery Roadmap
 
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
 
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
 
Osi security architecture in network.pptx
Osi security architecture in network.pptxOsi security architecture in network.pptx
Osi security architecture in network.pptx
 
Keeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldKeeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository world
 

[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