SlideShare una empresa de Scribd logo
1 de 61
Basics on Design and Analysis of
SE Experiments:
Widespread Shortcomings
Natalia Juristo
Universidad Politecnica de Madrid (Spain)
&
University of Oulu (Finland)
ICSE Doctoral Symposium Hyderabad (India) June 3rd, 2014
Content
1. Experiment distinguish hallmark
2. Good practices for running a SE experiment
1. Definition & Operationalization
2. Design
3. Implementation & Execution
4. Analysis
5. Interpretation
6. Packaging & Publication
3. Summary of advices
Experiments Distinguishing
Hallmark
 Causality
 Control
Scientific Knowledege
 Scientific laws are patterns of behaviour
 Describe cause-effect relationships
 Explain
 why some events are related
 how the mechanism linking the events
behaves
Why Experiments Are Needed
 We cannot perceive laws directly through
our senses
 Two activities are necessary
 Systematic objective observation
 Inference of links between cause & effect
A Scientific Method
 Collection of Empirical Data
 Systematic observation to appreciate the nexus
 Theoretical Interpretation of Data
 Form a hypothesis (right or wrong) about the
mechanisms relating the events
 Collection of Empirical Data
 Hypothesis are permanently tested against reality to
know if they are true or not
SE Experiments
 Identify and understand
 the variables that play a role in software development
 the connections between variables
 Learn cause-effect relationships between the
development process and the obtained products
 Establish laws and theories about software
construction that explain development behaviour
Experiment Definition
 Experiment
 Models key characteristics of a reality in a
controlled environment and manipulating
them iteratively to investigate the impact of
such variations and get a better
understanding of a phenomenon
 Laboratory
 Simplified and controllable reality where the
phenomenon under study can be manipulated
Control Is The Key For Causality
 The key aspect of a controlled experiment is…
Control!!!
 Causality is discovered through the following
reasoning
 Control voids the effect of all irrelevant variables
 The impact we observe in the response variable is
only due to the manipulated variables
Factors & Response Variables
 To gain evidence of a presumed cause-
effect relationship, the experimenter
 Manipulates
 the independent variables
 or factors
 Observes changes in
 the dependent variable
 or response variable
Good Practices for
Running a SE Experiment
1. Definition & Operationalization
2. Design
3. Implementation & Execution
4. Analysis
5. Interpretation
6. Packaging and Publication
Good Practices for
Running a SE Experiment
1. Definition & Operationalization
2. Design
3. Implementation & Execution
4. Analysis
5. Interpretation
6. Packaging and Publication
Definition Goal
 Problem Definition
 As in any other research choose an open problem
 Research goals and questions
 Causal research question
 Does X cause Y?
 Does X1 cause more of Y than X2 causes of Y?
 Example
 Does MDD cause higher quality software than other
development paradigm?
MDD Experiment Example
 Run a subjects-based experiment on MDD
 in the context of a course about MDD
 Factor
 Development approach
 Treatments
 MDD
 Control?
 Response variable
 Quality
Constructs Operationalization
Treatment Respsonse
Dependent
Variable
Independent
Variable
Cause-Effect
Construct
Treatment-Response
Construct
Theory
Observation
Measurement
Cause
Construct
Effect
Construct
Effect Operationalization:
Quality Example
1. Variables
 Code quality -> Functionality -> Accuracy [ISO9126]
2. Metrics Definition
 Percentage of acceptance test cases that are successfully fulfilled
 1 test case per atomic requirement
 Each test case subdivided in items
 All items need to be passed to consider a test case satisfied
3. Instruments
 IDE where the code developed by subjects is stored
4. Data Collection procedure
1. For each test case
1. Run the code
5. Measurement (metrics collection) procedure
1. For each test case decide if it is passed
2. Sum up the number of test cases passed
3. Convert such a number into a proportion
Cause Operationalization
Treatment Definition
 Version of the treatment
 What exactly is MDD?
 NDT, WebRatio, OOHDM, OO-Method, etc
 What exactly is traditional?
 Model-centric?; Code-centric?; other?
 How treatment is administer
 Teaching?
 Are treatments applied through tools?
 Which?
Formulate Hypothesis
MDD (OO-Method w/ Integranova tool)
satisfies different amount of test cases
for small problems implemented in java
than
A model-centric (UML w/ Eclipse)
when applied by novice developers
One-tailed vs Two-tailed
 Two-tailed hypothesis = Non directional
 Predicts a difference between two variables
 Not the direction or the nature of their relationship
 Quality(MDD) <> Quality(Model-centric)
 One-tailed hypothesis = Directional
 Predicts the direction of the difference between two variables
 A positive or negative correlation
 Quality(MDD) > Quality(Model-centric)
 Requires previously obtained knowledge about the effect
 Theory or evidence
Good Practices
 Think carefully about which metrics to use
 Metrics are not yet a solved issue in SE
 Remember to decide on the measurement
process beforehand!
 This influences the instruments
 Use two-tailed hypothesis, better than one-tailed
Good Practices for
Running a SE Experiment
1. Definition & Operationalization
2. Design
3. Implementation & Execution
4. Analysis
5. Interpretation
6. Packaging and Publication
Experimental Design
 Describe how the study is organized
 Identify undesired sources of variability
 Iterate improving design evaluating threats
and confounding variables
Types of Design
 Depending on the number of factors and
treatments a type of design is chosen
 One factor w/ 2 treatments
 Blocked design
 Factorial design
 Completely randomized design
 Blocked factorial design
 Fractional factorial design
 …
 Repeated-measures randomized controlled trial
Design and Control
 The key aspect of a controlled experiment is…
Control!!!
 The design of a controlled experiment is a set of
strategies aiming to control
 The relevant variables (under study)
 The irrelevant variables but with known values
 The irrelevant variables with unknown values
Main Design Strategies
 Treatments
 Equality inside treatments
 Similar conditions among treatment
 Irrelevant variables with known values
 Blocking
 The non-desired variable has effect on the dependent variables,
but similar effect on every treatment group
 Block as many variables as you can
 Irrelevant variables with unknown values
 Randomization
 Assign treatments at random to experimental units to avoid the
undue influence of any possible variables
 Randomize for the rest
Example:
Blocking
 The MDD experiment with two groups
 Factor
 Development paradigm
 2 Levels
 MDD & Traditional
 Imagine we have experts and novices
 We blocked by experience
MDD Traditional
Session P1
Novices Experts Novices Experts
G1 G2
MDD Traditional
Session 1 P1 G1 G2
Main Design Strategies
 Treatments
 Equality inside treatments
 Similar conditions among treatment
 Irrelevant variables with known values
 Blocking
 The non-desired variable has effect on the dependent variables,
but similar effect on every treatment group
 Block as many variables as you can
 Irrelevant variables with unknown values
 Randomization
 Assign treatments at random to experimental units to avoid the
undue influence of any possible variables
 Randomize for the rest
Iterating for Design
 Designing an experiment is an iterative task to
reaching a trade-off among validity threats
1. Design
2. Evaluate issues that threaten validity
 Several design choices need to be made to limit
threats to validity
 There is not such a thing as The Perfect Experiment
that avoids all validity threats
MDD Experiment Example
 Run a subjects-based experiment on MDD
 in the context of a course about MDD
 Factor
 Development approach
 Treatments
 MDD
 Traditional
 Response variable
 Quality
1 Factor Design
2 Treatments
 1 session, 2 groups, 1 experimental object
 Cons
 Divide by two the number of subjects
 Decreasing the sample size and therefore lowering power
 Training perspective, pairs will only practice MDD or
traditional method
 Not viable alternative in a MDD course
 Very low generalization
 Only to one problem
 Pros
 Treatments comparison done through identical
conditions
MDD Traditional
Session 1 P1 G1 G2
We cannot live with this
in this context
Live with this depends on
the sample size
we have
We can hardly live with this
Paired Design
1 Object
 2 sessions, 1 group, 1 object
 Cons
 Threat: Learning effect on object
 Subjects might learn the problem in the first
 Treatments comparison in not identical conditions
 Similar conditions: Different sessions
 Very dissimilar conditions: Different order
 Pros
 Biggest sample size
 Highest power
 Same subject under each treatments
 Better control of subjects differences
P1
Session 1 Traditional G1
Session 2 MDD G1
We cannot live with this
We can hardly live with this
Great!!! Great!!! 
 2 sessions, 1 group, 2 objects
 Cons
 Treatments compared in different conditions
 Similar conditions
 Different sessions
 Dissimilar conditions
 Different order
 Different problem
 Pros
 Biggest sample size
 Better control of subjects differences
 Avoid learning effect on object
Paired Design
2 objects
P1 P2
Session 1 Traditional G1
Session 2 MDD G1
We can live with this
Great!!! 
We cannot live with this
Cross-over
2 objects
 2 session, 2 groups, 2 objects
 Cons
 Session and object is confounded
 But does not affect treatments
 Hard to sell alternative in a MDD course
 Specially the MDD-T order
 Pros
 Avoid the influence of session on treatment
 Biggest sample size
 Better control of subjects differences
 No learning effect on object
MDD Traditional
Session 1 P1 G1 G2
Session 2 P2 G2 G1
We can hardly live with this
in our context
We can live with this
Paired
Blocked by object
 2 session, 2 groups, 2 objects
 Cons
 Session and development paradigm confounded
 But adheres to the regular way it happens
 Weak cheating effect on object
 Since different treatments are being applied
 Pros
 No learning effect on object
 Biggest sample size
 Better control of subjects differences
 Make sense from an educational point of view
P1 P2
Session 1 Traditional G1 G2
Session 2 MDD G2 G1
We can live with this
We can live with this
Just an Example!
 Noticed these are all not the only designs
 Cross-over with 2 objects
 Cross-over blocked by object
 Matched pairs designs
 …..
 We could have followed other reasoning
Design is Experiment-dependent
 The best design for certain situation can
be the worst in others
 Sample size was a problem in our experiment
 If it is not, then first design could work
 Sequential application of treatments is ok in
our context (due to technology being tested)
 For others, for example testing, application of
treatment in only one order would be a big threat
Good Practice
 Do not copy your design from others!!
 The sources of variability is particular to every
experiment
 You need to iteratively think about your
design, evaluate threats and modify it
selecting the best you can
 Include the iterative process and decision in
the paper!
Good Practice
 Replicate your own experiment
 If you do it identically
 Sample size is increased
 If change something
 Some threats to validity can be mitigated
 In the example
 Order threat
 Low generalizability
 …
Good Practice
 Make always a previous demographic
questionnaire
 Helps on blocking
 For post-hoc analysis
Good Practices for
Running a SE Experiment
1. Definition & Operationalization
2. Design
3. Implementation & Execution
4. Analysis
5. Interpretation
6. Packaging and Publication
Implementation & Execution Goals
 Implementation
 Instantiate the experimental design, so can be
executed
 Tasks
 Design all required instruments
 Questionnaires, protocols and tools
 Prepare all necessary material
 Guidelines, document templates, specifications, codes and tools
 Execution
 Run the experiment
Good Practice
 Run a Pilot
 To be sure instruments work well
 To assure explanations are clear
 …
 Things usually do not go out as expected 
Good Practices for
Running a SE Experiment
1. Definition & Operationalization
2. Design
3. Implementation & Execution
4. Analysis
5. Results Interpretation
6. Packaging and Publication
Analysis Goal & Tasks
 Analyze collected data for
 Describing sample
 Testing hypothesis
 Tasks
1. Descriptive statistics
2. Select statistical test
3. Hypothesis testing
4. Power analysis
5. Effect size calculation
Statistical Test Selection
 Statistical tests
 Exist for different purposes
 Have different preconditions
 Have different power
 Your data set must fulfill the test assumptions on
 Experimental design
 Distribution of data
 Choosing appropriate statistical test is key to get a reliable
rejection or not rejection of the null hypothesis
Parametric vs. Non-parametric
 Select statistical test considering data distribution
 Normal distribution
 Parametric tests
 Non-normal or ordinal/nominal distribution
 Non-parametric tests
 Do not assume normality (using the Central Limit Theorem)
 Irrespective of the distribution of the parent population - given that
its mean m and a variance s2, and so long as the sample size n is
large, the distribution of sample means is approximately normal with
mean m and variance s2 /n
 Consider non-parametric tests
 SE experiments have small sample sizes
 But neither use always non-parametric test
Perform Power Analysis
In the population …
H0 is true H0 is false
Decision
H0 is not rejected
Correct outcome
True negative
Type II error
False negative
H0 is rejected
Type I error
False positive
Correct outcome
True positive
Sample Size & Statistical Power
 The foolish astronomer
 An astronomer decides to build a telescope to study a
distant galaxy
 He foolishly builds it on the basis of available funds,
rather than on the calculations of the needed power
to actually see the galaxy
 He orders the biggest telescope he can afford and
hopes for the best…
Three Critical Parameters
 Statistical significance
 A result is significant because it is predicted as unlikely to have
occurred by chance alone
 The observed effect seems to have a cause
 Power
 The probability that a test finds there is no difference between
treatments when there is
 Effect size
 Magnitude of the results
 Which is the size of the improvement?
Good Practice
 Learn about analysis
 Get the advice of an expert
 Check the proper analysis for your design
 Do not always apply the same type of tests
 Check tests assumptions on data distribution
 Provide the three parameters
 Significance, power, effect size
Good Practices for
Running a SE Experiment
1. Definition & Operationalization
2. Design
3. Implementation & Execution
4. Analysis
5. Results Interpretation
6. Packaging and Publication
Interpretation Goal
 Answering research questions
 Statistical testing is just the means to an end
 Not an end in itself!!
 More difficult than running statistical tests
 Interpretation of the results
 What does the results mean?
Results Interpretation
Treatment Response
Dependent
Variable
Independent
Variable
Cause-Effect
Construct
Treatment-Response
Construct
Theory
Observation
Measurement
Cause
Construct
Effect
Construct
Good Practice
 Do not forget to interpret the results and
close the circle!
 An experiment does not only give an output of
a statistical test, you need to give an answer
to the research question taking into account
 The statistical issues
 hypothesis test output, power, effect size
 But also
 Populations (subjects, objects), experiment protocol,
observation of subjects, acontecimientos,…
Good Practices for
Running a SE Experiment
1. Definition & Operationalization
2. Design
3. Implementation & Execution
4. Analysis
5. Interpretation
6. Packaging and Publication
Laboratory Package
 Motivating and enabling replication
 Enabling independent confirmation of results
 Making study design available for further investigation
in different contexts
 Detailed account that allows replication
 Measures, questionnaires, surveys, interview
protocols, observational protocols, transcriptions,
tape records, video record, pictures, …
Make your Results Public
 Presenting, sharing and spreading results
 For community building a body of knowledge
 Enabling review, discussion and challenge of
results
 Follow guidelines to compose your
manuscript
 Jedlitschka
Good Practice
 Make an experimental package for others
to replicate your experiment
 The proper content for a lab package in SE is not
solved yet
 Not only materials should be there but more info on
the experiment to be repeated
 Follow guidelines when reporting an
experiment
Summarizing
Good Practices
 Operationalization
 Design
 Implementation
 Analysis
 Interpretation
 Packaging
 Publication
 Think carefully about metrics to use
 Decide before hand on the measurement process
 Use two-tailed hypothesis
 Do not copy your design from others!
 Replicate your experiment
 Make always a demographic questionnaire
 Run a pilot
 Learn about tests or get the advice of an expert
 Be sure to correctly interpret the tests outcome
 Provide significance, power and effect size
 Give answer to the research question
 Made public at the web a replication package
 Follow guidelines
Basics on Design and Analysis of
SE Experiments:
Widespread Shortcomings
Natalia Juristo
Universidad Politecnica de Madrid (Spain)
&
University of Oulu (Finland)
Free at:
https://sites.google.com/site/basicsofsoftwareengineeringexp/

Más contenido relacionado

La actualidad más candente

Reviewing quantitative articles_and_checklist
Reviewing quantitative articles_and_checklistReviewing quantitative articles_and_checklist
Reviewing quantitative articles_and_checklistLasse Torkkeli
 
Chp5 - Research Methods for Business By Authors Uma Sekaran and Roger Bougie
Chp5  - Research Methods for Business By Authors Uma Sekaran and Roger BougieChp5  - Research Methods for Business By Authors Uma Sekaran and Roger Bougie
Chp5 - Research Methods for Business By Authors Uma Sekaran and Roger BougieHassan Usman
 
Research methods (variables & hypothesis)
Research methods (variables & hypothesis)Research methods (variables & hypothesis)
Research methods (variables & hypothesis)Crystal Delosa
 
THE 5 DIMENSIONS OF PROBLEM SOLVING USING DINNA: CASE STUDY IN THE ELECTRONIC...
THE 5 DIMENSIONS OF PROBLEM SOLVING USING DINNA: CASE STUDY IN THE ELECTRONIC...THE 5 DIMENSIONS OF PROBLEM SOLVING USING DINNA: CASE STUDY IN THE ELECTRONIC...
THE 5 DIMENSIONS OF PROBLEM SOLVING USING DINNA: CASE STUDY IN THE ELECTRONIC...IJDKP
 
Exp. 2 C relations Under.
Exp. 2 C relations Under.Exp. 2 C relations Under.
Exp. 2 C relations Under.Maura Dooley
 
ODSC Causal Inference Workshop (November 2016) (1)
ODSC Causal Inference Workshop (November 2016) (1)ODSC Causal Inference Workshop (November 2016) (1)
ODSC Causal Inference Workshop (November 2016) (1)Emily Glassberg Sands
 
Rubric for Investigational Design
Rubric for Investigational DesignRubric for Investigational Design
Rubric for Investigational Designkalegado
 
Development of Multidimensional Scales using Structural Equation Modeling
Development of Multidimensional Scales using  Structural Equation ModelingDevelopment of Multidimensional Scales using  Structural Equation Modeling
Development of Multidimensional Scales using Structural Equation ModelingSethuraman Paramasivan
 
Instrumental Variables and Control Functions
Instrumental Variables and Control FunctionsInstrumental Variables and Control Functions
Instrumental Variables and Control FunctionsEconomic Research Forum
 
International Journal of Mathematics and Statistics Invention (IJMSI)
International Journal of Mathematics and Statistics Invention (IJMSI) International Journal of Mathematics and Statistics Invention (IJMSI)
International Journal of Mathematics and Statistics Invention (IJMSI) inventionjournals
 
Psychometric instrument development
Psychometric instrument developmentPsychometric instrument development
Psychometric instrument developmentJames Neill
 
Brm assignments
Brm assignmentsBrm assignments
Brm assignmentsUzma Azam
 
Chapter 6 class version b
Chapter 6 class version bChapter 6 class version b
Chapter 6 class version bjbnx
 
Lesson 1 research methods (variables & hypothesis)
Lesson 1 research methods (variables & hypothesis)Lesson 1 research methods (variables & hypothesis)
Lesson 1 research methods (variables & hypothesis)Crystal Delosa
 
Research Method for Business chapter 4
Research Method for Business chapter 4Research Method for Business chapter 4
Research Method for Business chapter 4Mazhar Poohlah
 
Characteristics of effective tests and hiring
Characteristics of effective tests and hiringCharacteristics of effective tests and hiring
Characteristics of effective tests and hiringBinibining Kalawakan
 
Research Method for Business ch 1
Research Method for Business  ch 1Research Method for Business  ch 1
Research Method for Business ch 1Mazhar Poohlah
 

La actualidad más candente (19)

Reviewing quantitative articles_and_checklist
Reviewing quantitative articles_and_checklistReviewing quantitative articles_and_checklist
Reviewing quantitative articles_and_checklist
 
Chp5 - Research Methods for Business By Authors Uma Sekaran and Roger Bougie
Chp5  - Research Methods for Business By Authors Uma Sekaran and Roger BougieChp5  - Research Methods for Business By Authors Uma Sekaran and Roger Bougie
Chp5 - Research Methods for Business By Authors Uma Sekaran and Roger Bougie
 
Research methods (variables & hypothesis)
Research methods (variables & hypothesis)Research methods (variables & hypothesis)
Research methods (variables & hypothesis)
 
THE 5 DIMENSIONS OF PROBLEM SOLVING USING DINNA: CASE STUDY IN THE ELECTRONIC...
THE 5 DIMENSIONS OF PROBLEM SOLVING USING DINNA: CASE STUDY IN THE ELECTRONIC...THE 5 DIMENSIONS OF PROBLEM SOLVING USING DINNA: CASE STUDY IN THE ELECTRONIC...
THE 5 DIMENSIONS OF PROBLEM SOLVING USING DINNA: CASE STUDY IN THE ELECTRONIC...
 
Exp. 2 C relations Under.
Exp. 2 C relations Under.Exp. 2 C relations Under.
Exp. 2 C relations Under.
 
ODSC Causal Inference Workshop (November 2016) (1)
ODSC Causal Inference Workshop (November 2016) (1)ODSC Causal Inference Workshop (November 2016) (1)
ODSC Causal Inference Workshop (November 2016) (1)
 
Rubric for Investigational Design
Rubric for Investigational DesignRubric for Investigational Design
Rubric for Investigational Design
 
Development of Multidimensional Scales using Structural Equation Modeling
Development of Multidimensional Scales using  Structural Equation ModelingDevelopment of Multidimensional Scales using  Structural Equation Modeling
Development of Multidimensional Scales using Structural Equation Modeling
 
Instrumental Variables and Control Functions
Instrumental Variables and Control FunctionsInstrumental Variables and Control Functions
Instrumental Variables and Control Functions
 
International Journal of Mathematics and Statistics Invention (IJMSI)
International Journal of Mathematics and Statistics Invention (IJMSI) International Journal of Mathematics and Statistics Invention (IJMSI)
International Journal of Mathematics and Statistics Invention (IJMSI)
 
Psychometric instrument development
Psychometric instrument developmentPsychometric instrument development
Psychometric instrument development
 
Brm assignments
Brm assignmentsBrm assignments
Brm assignments
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Chapter 6 class version b
Chapter 6 class version bChapter 6 class version b
Chapter 6 class version b
 
Brm 2
Brm 2Brm 2
Brm 2
 
Lesson 1 research methods (variables & hypothesis)
Lesson 1 research methods (variables & hypothesis)Lesson 1 research methods (variables & hypothesis)
Lesson 1 research methods (variables & hypothesis)
 
Research Method for Business chapter 4
Research Method for Business chapter 4Research Method for Business chapter 4
Research Method for Business chapter 4
 
Characteristics of effective tests and hiring
Characteristics of effective tests and hiringCharacteristics of effective tests and hiring
Characteristics of effective tests and hiring
 
Research Method for Business ch 1
Research Method for Business  ch 1Research Method for Business  ch 1
Research Method for Business ch 1
 

Similar a Common Shortcomings in SE Experiments (ICSE'14 Doctoral Symposium Keynote)

Ch. 7 finish and review
Ch. 7 finish and reviewCh. 7 finish and review
Ch. 7 finish and reviewjbnx
 
Experimental research
Experimental researchExperimental research
Experimental researchNor Zakiah
 
Quantitative methodology part two.compressed 2
Quantitative methodology part two.compressed 2Quantitative methodology part two.compressed 2
Quantitative methodology part two.compressed 2Maria Sanchez
 
Principles of quantitative research
Principles of quantitative researchPrinciples of quantitative research
Principles of quantitative researchBurhan Hadi
 
Experimental design
Experimental designExperimental design
Experimental designmetalkid132
 
Organizational Diagnosis
Organizational DiagnosisOrganizational Diagnosis
Organizational Diagnosisjim
 
Educational Research 102: Selecting the Best Study Design for your Research Q...
Educational Research 102: Selecting the Best Study Design for your Research Q...Educational Research 102: Selecting the Best Study Design for your Research Q...
Educational Research 102: Selecting the Best Study Design for your Research Q...fnuthalapaty
 
#1 Characteristics, Strengths, Weaknesses, Kinds of.pptx
#1 Characteristics, Strengths, Weaknesses, Kinds of.pptx#1 Characteristics, Strengths, Weaknesses, Kinds of.pptx
#1 Characteristics, Strengths, Weaknesses, Kinds of.pptxJessaMaeGastar1
 
Introduction_klsfnsfsnfsgnkgni _to_meta-analysis.ppt
Introduction_klsfnsfsnfsgnkgni _to_meta-analysis.pptIntroduction_klsfnsfsnfsgnkgni _to_meta-analysis.ppt
Introduction_klsfnsfsnfsgnkgni _to_meta-analysis.pptAnnaMarieAndalRanill
 
RESEARCH PROBLEM & TYPES OF VARIABLES.pptx
RESEARCH PROBLEM & TYPES OF VARIABLES.pptxRESEARCH PROBLEM & TYPES OF VARIABLES.pptx
RESEARCH PROBLEM & TYPES OF VARIABLES.pptxDr. Mohmed Amin Mir
 
Psychology 101: Chapter2
Psychology 101: Chapter2Psychology 101: Chapter2
Psychology 101: Chapter2dborcoman
 
RESEARCH in software engineering
RESEARCH in software engineeringRESEARCH in software engineering
RESEARCH in software engineeringIvano Malavolta
 

Similar a Common Shortcomings in SE Experiments (ICSE'14 Doctoral Symposium Keynote) (20)

Design
DesignDesign
Design
 
Experimental research
Experimental researchExperimental research
Experimental research
 
Research Design _komal-1.docx
Research Design _komal-1.docxResearch Design _komal-1.docx
Research Design _komal-1.docx
 
Ch. 7 finish and review
Ch. 7 finish and reviewCh. 7 finish and review
Ch. 7 finish and review
 
Experimental research
Experimental researchExperimental research
Experimental research
 
Experimental research
Experimental researchExperimental research
Experimental research
 
Quantitative methodology part two.compressed 2
Quantitative methodology part two.compressed 2Quantitative methodology part two.compressed 2
Quantitative methodology part two.compressed 2
 
Principles of quantitative research
Principles of quantitative researchPrinciples of quantitative research
Principles of quantitative research
 
Experimental design
Experimental designExperimental design
Experimental design
 
Organizational Diagnosis
Organizational DiagnosisOrganizational Diagnosis
Organizational Diagnosis
 
Quantitative research design
Quantitative research designQuantitative research design
Quantitative research design
 
Research Methodology
Research MethodologyResearch Methodology
Research Methodology
 
Methodology
MethodologyMethodology
Methodology
 
Educational Research 102: Selecting the Best Study Design for your Research Q...
Educational Research 102: Selecting the Best Study Design for your Research Q...Educational Research 102: Selecting the Best Study Design for your Research Q...
Educational Research 102: Selecting the Best Study Design for your Research Q...
 
Learning session on research
Learning session on researchLearning session on research
Learning session on research
 
#1 Characteristics, Strengths, Weaknesses, Kinds of.pptx
#1 Characteristics, Strengths, Weaknesses, Kinds of.pptx#1 Characteristics, Strengths, Weaknesses, Kinds of.pptx
#1 Characteristics, Strengths, Weaknesses, Kinds of.pptx
 
Introduction_klsfnsfsnfsgnkgni _to_meta-analysis.ppt
Introduction_klsfnsfsnfsgnkgni _to_meta-analysis.pptIntroduction_klsfnsfsnfsgnkgni _to_meta-analysis.ppt
Introduction_klsfnsfsnfsgnkgni _to_meta-analysis.ppt
 
RESEARCH PROBLEM & TYPES OF VARIABLES.pptx
RESEARCH PROBLEM & TYPES OF VARIABLES.pptxRESEARCH PROBLEM & TYPES OF VARIABLES.pptx
RESEARCH PROBLEM & TYPES OF VARIABLES.pptx
 
Psychology 101: Chapter2
Psychology 101: Chapter2Psychology 101: Chapter2
Psychology 101: Chapter2
 
RESEARCH in software engineering
RESEARCH in software engineeringRESEARCH in software engineering
RESEARCH in software engineering
 

Más de Natalia Juristo

Conducting Experiments in Software Industry
Conducting Experiments in Software IndustryConducting Experiments in Software Industry
Conducting Experiments in Software IndustryNatalia Juristo
 
Myths on Replication (LASER School Talk 2010)
Myths on Replication (LASER School Talk 2010)Myths on Replication (LASER School Talk 2010)
Myths on Replication (LASER School Talk 2010)Natalia Juristo
 
The Role of Scientific Method in Software Development
The Role of Scientific Method in Software Development The Role of Scientific Method in Software Development
The Role of Scientific Method in Software Development Natalia Juristo
 
Tester contribution to Testing Effectiveness. An Empirical Research
Tester contribution to Testing Effectiveness. An Empirical ResearchTester contribution to Testing Effectiveness. An Empirical Research
Tester contribution to Testing Effectiveness. An Empirical ResearchNatalia Juristo
 
Towards Understanding SE Experiments Replication (ESEM'13 Keynote)
Towards Understanding SE Experiments Replication (ESEM'13 Keynote)Towards Understanding SE Experiments Replication (ESEM'13 Keynote)
Towards Understanding SE Experiments Replication (ESEM'13 Keynote)Natalia Juristo
 
Software Usability Implications in Requirements and Design
Software Usability Implications in Requirements and DesignSoftware Usability Implications in Requirements and Design
Software Usability Implications in Requirements and DesignNatalia Juristo
 

Más de Natalia Juristo (8)

CESI Keynote English
CESI Keynote EnglishCESI Keynote English
CESI Keynote English
 
PROMISE keynote Juristo
PROMISE keynote JuristoPROMISE keynote Juristo
PROMISE keynote Juristo
 
Conducting Experiments in Software Industry
Conducting Experiments in Software IndustryConducting Experiments in Software Industry
Conducting Experiments in Software Industry
 
Myths on Replication (LASER School Talk 2010)
Myths on Replication (LASER School Talk 2010)Myths on Replication (LASER School Talk 2010)
Myths on Replication (LASER School Talk 2010)
 
The Role of Scientific Method in Software Development
The Role of Scientific Method in Software Development The Role of Scientific Method in Software Development
The Role of Scientific Method in Software Development
 
Tester contribution to Testing Effectiveness. An Empirical Research
Tester contribution to Testing Effectiveness. An Empirical ResearchTester contribution to Testing Effectiveness. An Empirical Research
Tester contribution to Testing Effectiveness. An Empirical Research
 
Towards Understanding SE Experiments Replication (ESEM'13 Keynote)
Towards Understanding SE Experiments Replication (ESEM'13 Keynote)Towards Understanding SE Experiments Replication (ESEM'13 Keynote)
Towards Understanding SE Experiments Replication (ESEM'13 Keynote)
 
Software Usability Implications in Requirements and Design
Software Usability Implications in Requirements and DesignSoftware Usability Implications in Requirements and Design
Software Usability Implications in Requirements and Design
 

Último

KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfMarharyta Nedzelska
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanyChristoph Pohl
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprisepreethippts
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Velvetech LLC
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based projectAnoyGreter
 
Buds n Tech IT Solutions: Top-Notch Web Services in Noida
Buds n Tech IT Solutions: Top-Notch Web Services in NoidaBuds n Tech IT Solutions: Top-Notch Web Services in Noida
Buds n Tech IT Solutions: Top-Notch Web Services in Noidabntitsolutionsrishis
 
Best Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdfBest Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdfIdiosysTechnologies1
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Mater
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...Technogeeks
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company OdishaBalasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odishasmiwainfosol
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 
Xen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfXen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfStefano Stabellini
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtimeandrehoraa
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....kzayra69
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Angel Borroy López
 

Último (20)

KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdf
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprise
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based project
 
Buds n Tech IT Solutions: Top-Notch Web Services in Noida
Buds n Tech IT Solutions: Top-Notch Web Services in NoidaBuds n Tech IT Solutions: Top-Notch Web Services in Noida
Buds n Tech IT Solutions: Top-Notch Web Services in Noida
 
Best Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdfBest Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdf
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company OdishaBalasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 
Xen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfXen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdf
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtime
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....
 
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort ServiceHot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
 

Common Shortcomings in SE Experiments (ICSE'14 Doctoral Symposium Keynote)

  • 1. Basics on Design and Analysis of SE Experiments: Widespread Shortcomings Natalia Juristo Universidad Politecnica de Madrid (Spain) & University of Oulu (Finland) ICSE Doctoral Symposium Hyderabad (India) June 3rd, 2014
  • 2. Content 1. Experiment distinguish hallmark 2. Good practices for running a SE experiment 1. Definition & Operationalization 2. Design 3. Implementation & Execution 4. Analysis 5. Interpretation 6. Packaging & Publication 3. Summary of advices
  • 4. Scientific Knowledege  Scientific laws are patterns of behaviour  Describe cause-effect relationships  Explain  why some events are related  how the mechanism linking the events behaves
  • 5. Why Experiments Are Needed  We cannot perceive laws directly through our senses  Two activities are necessary  Systematic objective observation  Inference of links between cause & effect
  • 6. A Scientific Method  Collection of Empirical Data  Systematic observation to appreciate the nexus  Theoretical Interpretation of Data  Form a hypothesis (right or wrong) about the mechanisms relating the events  Collection of Empirical Data  Hypothesis are permanently tested against reality to know if they are true or not
  • 7. SE Experiments  Identify and understand  the variables that play a role in software development  the connections between variables  Learn cause-effect relationships between the development process and the obtained products  Establish laws and theories about software construction that explain development behaviour
  • 8. Experiment Definition  Experiment  Models key characteristics of a reality in a controlled environment and manipulating them iteratively to investigate the impact of such variations and get a better understanding of a phenomenon  Laboratory  Simplified and controllable reality where the phenomenon under study can be manipulated
  • 9. Control Is The Key For Causality  The key aspect of a controlled experiment is… Control!!!  Causality is discovered through the following reasoning  Control voids the effect of all irrelevant variables  The impact we observe in the response variable is only due to the manipulated variables
  • 10. Factors & Response Variables  To gain evidence of a presumed cause- effect relationship, the experimenter  Manipulates  the independent variables  or factors  Observes changes in  the dependent variable  or response variable
  • 11. Good Practices for Running a SE Experiment 1. Definition & Operationalization 2. Design 3. Implementation & Execution 4. Analysis 5. Interpretation 6. Packaging and Publication
  • 12. Good Practices for Running a SE Experiment 1. Definition & Operationalization 2. Design 3. Implementation & Execution 4. Analysis 5. Interpretation 6. Packaging and Publication
  • 13. Definition Goal  Problem Definition  As in any other research choose an open problem  Research goals and questions  Causal research question  Does X cause Y?  Does X1 cause more of Y than X2 causes of Y?  Example  Does MDD cause higher quality software than other development paradigm?
  • 14. MDD Experiment Example  Run a subjects-based experiment on MDD  in the context of a course about MDD  Factor  Development approach  Treatments  MDD  Control?  Response variable  Quality
  • 16. Effect Operationalization: Quality Example 1. Variables  Code quality -> Functionality -> Accuracy [ISO9126] 2. Metrics Definition  Percentage of acceptance test cases that are successfully fulfilled  1 test case per atomic requirement  Each test case subdivided in items  All items need to be passed to consider a test case satisfied 3. Instruments  IDE where the code developed by subjects is stored 4. Data Collection procedure 1. For each test case 1. Run the code 5. Measurement (metrics collection) procedure 1. For each test case decide if it is passed 2. Sum up the number of test cases passed 3. Convert such a number into a proportion
  • 17. Cause Operationalization Treatment Definition  Version of the treatment  What exactly is MDD?  NDT, WebRatio, OOHDM, OO-Method, etc  What exactly is traditional?  Model-centric?; Code-centric?; other?  How treatment is administer  Teaching?  Are treatments applied through tools?  Which?
  • 18. Formulate Hypothesis MDD (OO-Method w/ Integranova tool) satisfies different amount of test cases for small problems implemented in java than A model-centric (UML w/ Eclipse) when applied by novice developers
  • 19. One-tailed vs Two-tailed  Two-tailed hypothesis = Non directional  Predicts a difference between two variables  Not the direction or the nature of their relationship  Quality(MDD) <> Quality(Model-centric)  One-tailed hypothesis = Directional  Predicts the direction of the difference between two variables  A positive or negative correlation  Quality(MDD) > Quality(Model-centric)  Requires previously obtained knowledge about the effect  Theory or evidence
  • 20. Good Practices  Think carefully about which metrics to use  Metrics are not yet a solved issue in SE  Remember to decide on the measurement process beforehand!  This influences the instruments  Use two-tailed hypothesis, better than one-tailed
  • 21. Good Practices for Running a SE Experiment 1. Definition & Operationalization 2. Design 3. Implementation & Execution 4. Analysis 5. Interpretation 6. Packaging and Publication
  • 22. Experimental Design  Describe how the study is organized  Identify undesired sources of variability  Iterate improving design evaluating threats and confounding variables
  • 23. Types of Design  Depending on the number of factors and treatments a type of design is chosen  One factor w/ 2 treatments  Blocked design  Factorial design  Completely randomized design  Blocked factorial design  Fractional factorial design  …  Repeated-measures randomized controlled trial
  • 24. Design and Control  The key aspect of a controlled experiment is… Control!!!  The design of a controlled experiment is a set of strategies aiming to control  The relevant variables (under study)  The irrelevant variables but with known values  The irrelevant variables with unknown values
  • 25. Main Design Strategies  Treatments  Equality inside treatments  Similar conditions among treatment  Irrelevant variables with known values  Blocking  The non-desired variable has effect on the dependent variables, but similar effect on every treatment group  Block as many variables as you can  Irrelevant variables with unknown values  Randomization  Assign treatments at random to experimental units to avoid the undue influence of any possible variables  Randomize for the rest
  • 26. Example: Blocking  The MDD experiment with two groups  Factor  Development paradigm  2 Levels  MDD & Traditional  Imagine we have experts and novices  We blocked by experience MDD Traditional Session P1 Novices Experts Novices Experts G1 G2 MDD Traditional Session 1 P1 G1 G2
  • 27. Main Design Strategies  Treatments  Equality inside treatments  Similar conditions among treatment  Irrelevant variables with known values  Blocking  The non-desired variable has effect on the dependent variables, but similar effect on every treatment group  Block as many variables as you can  Irrelevant variables with unknown values  Randomization  Assign treatments at random to experimental units to avoid the undue influence of any possible variables  Randomize for the rest
  • 28. Iterating for Design  Designing an experiment is an iterative task to reaching a trade-off among validity threats 1. Design 2. Evaluate issues that threaten validity  Several design choices need to be made to limit threats to validity  There is not such a thing as The Perfect Experiment that avoids all validity threats
  • 29. MDD Experiment Example  Run a subjects-based experiment on MDD  in the context of a course about MDD  Factor  Development approach  Treatments  MDD  Traditional  Response variable  Quality
  • 30. 1 Factor Design 2 Treatments  1 session, 2 groups, 1 experimental object  Cons  Divide by two the number of subjects  Decreasing the sample size and therefore lowering power  Training perspective, pairs will only practice MDD or traditional method  Not viable alternative in a MDD course  Very low generalization  Only to one problem  Pros  Treatments comparison done through identical conditions MDD Traditional Session 1 P1 G1 G2 We cannot live with this in this context Live with this depends on the sample size we have We can hardly live with this
  • 31. Paired Design 1 Object  2 sessions, 1 group, 1 object  Cons  Threat: Learning effect on object  Subjects might learn the problem in the first  Treatments comparison in not identical conditions  Similar conditions: Different sessions  Very dissimilar conditions: Different order  Pros  Biggest sample size  Highest power  Same subject under each treatments  Better control of subjects differences P1 Session 1 Traditional G1 Session 2 MDD G1 We cannot live with this We can hardly live with this Great!!! Great!!! 
  • 32.  2 sessions, 1 group, 2 objects  Cons  Treatments compared in different conditions  Similar conditions  Different sessions  Dissimilar conditions  Different order  Different problem  Pros  Biggest sample size  Better control of subjects differences  Avoid learning effect on object Paired Design 2 objects P1 P2 Session 1 Traditional G1 Session 2 MDD G1 We can live with this Great!!!  We cannot live with this
  • 33. Cross-over 2 objects  2 session, 2 groups, 2 objects  Cons  Session and object is confounded  But does not affect treatments  Hard to sell alternative in a MDD course  Specially the MDD-T order  Pros  Avoid the influence of session on treatment  Biggest sample size  Better control of subjects differences  No learning effect on object MDD Traditional Session 1 P1 G1 G2 Session 2 P2 G2 G1 We can hardly live with this in our context We can live with this
  • 34. Paired Blocked by object  2 session, 2 groups, 2 objects  Cons  Session and development paradigm confounded  But adheres to the regular way it happens  Weak cheating effect on object  Since different treatments are being applied  Pros  No learning effect on object  Biggest sample size  Better control of subjects differences  Make sense from an educational point of view P1 P2 Session 1 Traditional G1 G2 Session 2 MDD G2 G1 We can live with this We can live with this
  • 35. Just an Example!  Noticed these are all not the only designs  Cross-over with 2 objects  Cross-over blocked by object  Matched pairs designs  …..  We could have followed other reasoning
  • 36. Design is Experiment-dependent  The best design for certain situation can be the worst in others  Sample size was a problem in our experiment  If it is not, then first design could work  Sequential application of treatments is ok in our context (due to technology being tested)  For others, for example testing, application of treatment in only one order would be a big threat
  • 37. Good Practice  Do not copy your design from others!!  The sources of variability is particular to every experiment  You need to iteratively think about your design, evaluate threats and modify it selecting the best you can  Include the iterative process and decision in the paper!
  • 38. Good Practice  Replicate your own experiment  If you do it identically  Sample size is increased  If change something  Some threats to validity can be mitigated  In the example  Order threat  Low generalizability  …
  • 39. Good Practice  Make always a previous demographic questionnaire  Helps on blocking  For post-hoc analysis
  • 40. Good Practices for Running a SE Experiment 1. Definition & Operationalization 2. Design 3. Implementation & Execution 4. Analysis 5. Interpretation 6. Packaging and Publication
  • 41. Implementation & Execution Goals  Implementation  Instantiate the experimental design, so can be executed  Tasks  Design all required instruments  Questionnaires, protocols and tools  Prepare all necessary material  Guidelines, document templates, specifications, codes and tools  Execution  Run the experiment
  • 42. Good Practice  Run a Pilot  To be sure instruments work well  To assure explanations are clear  …  Things usually do not go out as expected 
  • 43. Good Practices for Running a SE Experiment 1. Definition & Operationalization 2. Design 3. Implementation & Execution 4. Analysis 5. Results Interpretation 6. Packaging and Publication
  • 44. Analysis Goal & Tasks  Analyze collected data for  Describing sample  Testing hypothesis  Tasks 1. Descriptive statistics 2. Select statistical test 3. Hypothesis testing 4. Power analysis 5. Effect size calculation
  • 45. Statistical Test Selection  Statistical tests  Exist for different purposes  Have different preconditions  Have different power  Your data set must fulfill the test assumptions on  Experimental design  Distribution of data  Choosing appropriate statistical test is key to get a reliable rejection or not rejection of the null hypothesis
  • 46. Parametric vs. Non-parametric  Select statistical test considering data distribution  Normal distribution  Parametric tests  Non-normal or ordinal/nominal distribution  Non-parametric tests  Do not assume normality (using the Central Limit Theorem)  Irrespective of the distribution of the parent population - given that its mean m and a variance s2, and so long as the sample size n is large, the distribution of sample means is approximately normal with mean m and variance s2 /n  Consider non-parametric tests  SE experiments have small sample sizes  But neither use always non-parametric test
  • 47. Perform Power Analysis In the population … H0 is true H0 is false Decision H0 is not rejected Correct outcome True negative Type II error False negative H0 is rejected Type I error False positive Correct outcome True positive
  • 48. Sample Size & Statistical Power  The foolish astronomer  An astronomer decides to build a telescope to study a distant galaxy  He foolishly builds it on the basis of available funds, rather than on the calculations of the needed power to actually see the galaxy  He orders the biggest telescope he can afford and hopes for the best…
  • 49. Three Critical Parameters  Statistical significance  A result is significant because it is predicted as unlikely to have occurred by chance alone  The observed effect seems to have a cause  Power  The probability that a test finds there is no difference between treatments when there is  Effect size  Magnitude of the results  Which is the size of the improvement?
  • 50. Good Practice  Learn about analysis  Get the advice of an expert  Check the proper analysis for your design  Do not always apply the same type of tests  Check tests assumptions on data distribution  Provide the three parameters  Significance, power, effect size
  • 51. Good Practices for Running a SE Experiment 1. Definition & Operationalization 2. Design 3. Implementation & Execution 4. Analysis 5. Results Interpretation 6. Packaging and Publication
  • 52. Interpretation Goal  Answering research questions  Statistical testing is just the means to an end  Not an end in itself!!  More difficult than running statistical tests  Interpretation of the results  What does the results mean?
  • 54. Good Practice  Do not forget to interpret the results and close the circle!  An experiment does not only give an output of a statistical test, you need to give an answer to the research question taking into account  The statistical issues  hypothesis test output, power, effect size  But also  Populations (subjects, objects), experiment protocol, observation of subjects, acontecimientos,…
  • 55. Good Practices for Running a SE Experiment 1. Definition & Operationalization 2. Design 3. Implementation & Execution 4. Analysis 5. Interpretation 6. Packaging and Publication
  • 56. Laboratory Package  Motivating and enabling replication  Enabling independent confirmation of results  Making study design available for further investigation in different contexts  Detailed account that allows replication  Measures, questionnaires, surveys, interview protocols, observational protocols, transcriptions, tape records, video record, pictures, …
  • 57. Make your Results Public  Presenting, sharing and spreading results  For community building a body of knowledge  Enabling review, discussion and challenge of results  Follow guidelines to compose your manuscript  Jedlitschka
  • 58. Good Practice  Make an experimental package for others to replicate your experiment  The proper content for a lab package in SE is not solved yet  Not only materials should be there but more info on the experiment to be repeated  Follow guidelines when reporting an experiment
  • 60. Good Practices  Operationalization  Design  Implementation  Analysis  Interpretation  Packaging  Publication  Think carefully about metrics to use  Decide before hand on the measurement process  Use two-tailed hypothesis  Do not copy your design from others!  Replicate your experiment  Make always a demographic questionnaire  Run a pilot  Learn about tests or get the advice of an expert  Be sure to correctly interpret the tests outcome  Provide significance, power and effect size  Give answer to the research question  Made public at the web a replication package  Follow guidelines
  • 61. Basics on Design and Analysis of SE Experiments: Widespread Shortcomings Natalia Juristo Universidad Politecnica de Madrid (Spain) & University of Oulu (Finland) Free at: https://sites.google.com/site/basicsofsoftwareengineeringexp/