Scientific software engineering methods and their validity

Daniel Mendez
Daniel MendezBlekinge Institute of Technology
Technische Universität München

Philosophy of Science
Scientific Methods and their Validity
Dr. Daniel Méndez Fernández
Prof. Dr. Manfred Broy
Technische Universität München
Institute for Informatics
Software & Systems Engineering

Dr. Antonio Vetrò
Goals of the talk
§  Get (back) to a bigger picture
–  Start from a general point of view in the philosophy of science
–  Drill down to implications for every day scientific work (Projects,
Publications, PhD Thesis, …)
§  Discuss …
–  how to allocate the presented methods into that picture
–  the methods in context of a PhD dissertation
–  the notion of validity and how to increase it

2
Agenda
§ 
§ 
§ 
§ 

Postulate
Scientific Methods Overview
Scientific Methods “in Action”
In Quest for the Validity

3
Agenda
§ 
§ 
§ 
§ 

Postulate
Scientific Methods Overview
Scientific Methods “in Action”
In Quest for the Validity

4
What is science?
Science: Systematically and objectively gaining (and preserving), documenting,
and disseminating knowledge
§  In principle, science tries to be objective by aspiring knowledge based on “facts”
(independent of subjective judgment!)
However:
§  Accepting scientific results is a social process (documentation, communication,
following rules).
§  Some elements of science (mathematics, logics) seem to be unbiased – but
nevertheless rely on acceptance by the peers and capabilities to apply the
theories.
§  One could also say: “In the end, it is also a matter of beliefs, capability, and
individual and social judgment”
(following some basic principles, rules, and codes)

5
Philosophy and science

Ontology
	

(“Seinslehre”)
	


Epistemology
	

(“Erkenntnislehre”)
	


Ethics
	

(“Verhaltenslehre”)
	


Ontological questions
	

(“Außenweltproblem”)
	

	

Questions on the
“being”
	

à Bound to reality
	


Epistemological
questions
	

(“Erkenntnisproblem”)
	

	

Questions on the
observation / discovery
	


Ethical questions
	

(“Verhaltensproblem”)
	

	

Questions on actions
	

à Bound to morality
	


Object-Subject
relation
	


6
From: Orkunoglu, 2010
Philosophy and science

Ontology
	

(“Seinslehre”)
	


Epistemology
	

(“Erkenntnislehre”)
	


Ethics
	

(“Verhaltenslehre”)
	


Ontological questions
	

(“Außenweltproblem”)
	

	

Is there a world
independent of
subjectivity?
	


Epistemological
questions
	

(“Erkenntnisproblem”)
	

	

From ehere do
discoveries result? 
From experiences?
	


Ethical questions
	

(“Verhaltensproblem”)
	

	

From where does ethics
result? Does there exist
something like universal
ethics?
	


Idealism
	


Rationalism
	


Normative Ethics
	


Realism
	


Empiricism
	


Descriptive Ethics
	


Solipsism
	


Scepticism
	


Everyday Ethics
	


From: Orkunoglu, 2010

7
What is science?
§  Aristoteles (384-324 BC)
–  Search for truth
–  Search for laws and reasoning for phenomena
–  Understanding the nature of phenomena
§  Francis Bacon (1561-1626)
–  Progress of knowledge of nature (reality)
–  Draw benefits from growing knowledge
§  Era of (French) Enlightenment (Voltaire (1694-1778), Diderot (1713-1784))
–  Emancipation from god and beliefs
§  Kant (1724-1804)
–  System of Epistemology
§  Constructivism (Förster (1911-2002), N. Luhmann (1927-1998))
–  Subjective construction

8
From: Orkunoglu, 2010
What is science?
Science
	


Theory
	

• 
• 
• 
• 
• 
• 

Formal theories	

Deduction	

Models	

Predictions	

Explanations	

…	


Empiricism
	


• 
• 
• 
• 

Observations	

Experiments	

Facts	

…	


3 obje
c
•  An tives of sc
ien
al
•  Pre yse and Ex ce:
plain
d
•  De ict
sign

Communication
	


•  Intersubjective
evaluations	

•  Agreement	

•  …	


Engineering approach: developing tools and techniques to solve practical
problems by means of existing technology and available knowledge: is this science ?	


9
Adapted From: Orkunoglu, 2010
What is the notion of “Truth”?
§  We speak about truth, if no subjective interpretation and distortion is possible
§  We could also say: “Whenever I repeat my treatment to a certain population, it will
always lead to the same observation”
§  If we have “universal truth”, we can call our results “generalisable” (“externally valid”)
Challenges: Obtaining truth
§  Can we obtain something as “universal truth”?
§  Can we do so in a life time? Or even within a PhD?
§  What if my observations/interpretations/analyses are dependent on human factors?
à Things can be true for certain contexts only!

10
Image: Sjøberg, 2011
A major challenge: Human factors
Why are human factors important to our field?
§  Software Engineering is an engineering discipline applied by human beings.
§  The value of solutions to practical problems too often depends on those to apply
the solutions.
What implications can we draw from that?
§  The notion of truth is “threatened” by subjectivity.
à  The good: We can make use of that subjectivity
(e.g. “expert opinion”)
à  The bad: We need to be aware of the implications
(e.g. the threats to the external validity)
à  The ugly: When relying on subjects, we will never obtain full external validity
… One could also say: “Outside mathematics, there is no certainty.”

11
Truth in science is relative!
The different views onto science
§  Science is created by humans
–  sociology of science
–  psychology of science (or scientists)
–  economy of science
§  Science as knowledge creation (discovery)
–  theory of knowledge
–  knowledge and insight
–  understanding and explanation
§  Science as mean to change the world – creative science
–  science and power
–  science and technology
–  design

12
Agenda
§ 
§ 
§ 
§ 

Postulate
Scientific Methods Overview
Scientific Methods “in Action”
In Quest for the Validity

13
Big Picture… 1st layer
Examples

Philosophy of science

Principle ways of working

Epistemology
(“Erkenntnistheorie”)

Empirical methods

Theories

Case studies

Methods and Tools

Hypothesis testing

Fundamental Theories
Statistics

Logic14
In Software Engineering, we rely on every layer!

Philosophy of science

Principle ways of working

Setting of Empirical
Software Engineering:
§  Methods and tools
§  Support theory building and
evaluation
§  Analogy:
Theoretical and Experimental Physics

Methods and Tools

Fundamental Theories
15
What do we usually need (e.g. in a PhD)?

Philosophy of science

Principle ways of working
You are (usually) here

Methods and Tools

Fundamental Theories
16
Big Picture… 2nd layer

Theory/System of
theories
Theory
Building

Deduction

(Tentative)
Hypotheses

Induction

Falsification /
Support

Pattern
Building

Observations /
Evaluations

Study
Population
Further reading: Runeson et al.
Case Study Research in Software Engineering: Guidelines and Experiments

17
Big Picture… 3rd layer: Methods and Tools
§  Each method I can apply…
–  Has a specific purpose
–  Relies on a specific data type
Purposes
§  Exploratory
Example: Grounded Theory
§  Descriptive
§  Explanatory
§  Improving
(Tentative)
Hypotheses

Descriptive
Exploratory, or
Explanatory

Data Types
§  Qualitative
§  Quantitative
Study
Population

Qualitative Data

18
Big Picture… 3rd layer: Methods and Tools

Theory/System of
theories

Grounded theory

Theory
Building

Exploratory
•  Case  Field Studies
•  Data Analysis
Survey and Interview
Research
•  Ethnographic
Studies
•  Folklore Gathering

Formal / conceptual
analysis

(Tentative)
Hypotheses
Falsification /
Support

Pattern
Building

Confirmatory
•  Case  Field Studies
•  Experiments,
•  Simulations

Observations /
Evaluations

Study
Population
Further reading: Runeson et al.
Case Study Research in Software Engineering: Guidelines and Experiments

For n
ow, pr
otot
is not
part o yping
“meth
od vie f this
w”
aren’t
refere (so
mode nce
ls) 19
How much external validity can I expect from
applying the methods we usually apply?
Environment:
Reality

...

You s
ha
get a ll only
fee
please ling,
don
sue us ‘t

Survey
Research

Action Research

Field Study Research
Case Study Research

(Lab) Experiment

Level of Evidence

Simulation

Artificial
Environment

...
20
We distinguish different levels of evidence
Strong	

evidence
	

Evidence
	


+
	

For
	


Circumstantial evidence
	

Third-party claim
	

First or second part
claim
	


First or second part
claim
	

Third-party claim
	

Circumstantial evidence
	


	

Against
	


Evidence
	

Strong	

evidence
	


Further reading: Wohlin
An Evidence Profile for Software Engineering Research and Practice

21
Agenda
§ 
§ 
§ 
§ 

Postulate
Scientific Methods Overview
Scientific Methods “in Action”
In Quest for the Validity

22
Preliminary remarks:
A PhD thesis can have many contributions
Possible contributions
§  Exploration / evaluation of concepts
and dependencies
§  Identification of problems and / or
deficiencies in existing assumptions
§  Contributions to a precise
terminology
§  New views on existing concepts and
transfer of those concepts to new
fields of application
§  New methods / methodologies
§  New theories
§  …
Important:
§  Identification of scientific contribution

There
i
and o s no one
nly wa
writin y of
“good g a
thesis
”

Scientific methods
§  Theories
–  Consistent, complete, …
–  Validation (of accuracy)
§  Dialectic
§  Empirical methods
–  Experiments
–  Case/Field Studies
–  ….
§  Literature analyses
§  ….
Important:
§  Scientific evaluation
–  Empirical
–  Experimental
–  Theoretical
–  Positioning against state of science
–  …
23
What can be the scope of a thesis?

Practical Problem

Existing Theory

Scientific methods

Evidently solve a problem
(or parts of it)

Refine Theory

Provide guidance
for future research

Inspired by: Shneidermann
Keynote at ESEM 2013

24
Problem solving
How it should be

How it often is in reality

Source: http://researchinprogress.tumblr.com

25
Let’s engineer problem discovery  solving

Implementation Evaluation /
Problem Investigation

Treatment Implementation
- Transfer to practice!

Design Validation
- Effects of treatment in this context?
- Effects satisfy requirements?
- Trade-offs?
- Sensitivity?

Engineering
cycle

- Stakeholders, goals?
- Phenomena? Effects?
- (Lack of) contribution to goals?

Treatment Design
- Specify requirements!
- Contribution to goals?
- Available treatments?
- Design new ones!

Further reading: Wieringa, R.J.:
Relevance and problem choice in design science.
In: Global Perspectives on Design Science Research. Lecture Notes in Computer Science (2010) 61–76

26
In any way, stick to the code of scientific working!
Principles in scientific work and behaviour
1.  Integrity
2.  Honesty
3.  Transparency and accuracy
4.  Rationalism
Principles of working (and writing)
§  Clearly and objectively outline the goals, methods and contribution of your thesis
–  motivation
–  relevance
–  validity
§  Describe related work, gaps left open, and how you intend to close those gaps
§  Choose appropriate methods (and reflect on them)
§  Work in teams!

27
If working in teams
§  Clarify your own (individual) contributions as soon as possible
–  Publish together with clear (predefined) authorship
–  Make your work transparent
•  Discuss with colleagues from your research group (or from other groups)
•  Disseminate your results (and get feedback)

à In the end, however, be aware: only your individual contribution counts!
§  Dissertations and (funded) research projects
–  Dissertation results can (and often should) be part of research projects
–  Problems: Potentially different goals, time constraints, ….
–  Instrument:
•  Make clear (and discuss) your own contributions
•  Publish your results – also in early stages

28
Finally:
There is a formal code of ethics for researchers
The seven principles of the code, intended to guide scientist's actions, are:
§  Act with skill and care in all scientific work. Maintain up to date skills and assist
their development in others.
§  Take steps to prevent corrupt practices and professional misconduct. Declare
conflicts of interest.
§  Be alert to the ways in which research derives from and affects the work of other
people, and respect the rights and reputations of others.
§  Ensure that your work is lawful and justified.
§  Minimize and justify any adverse effect your work may have on people, animals
and the natural environment.
§  Seek to discuss the issues that science raises for society. Listen to the aspirations
and concerns of others.
§  Do not knowingly mislead, or allow others to be misled, about scientific matters.
Present and review scientific evidence, theory or interpretation honestly and
accurately.

Source: David King 2007, the UK government's chief scientific advisor

29
Professional and ethical responsibility
§ 
§ 
§ 
§ 

Software engineering involves wider responsibilities than simply the application
of technical skills
Software engineers must behave in an honest and ethically responsible way if
they are to be respected as professionals
Ethical behaviour is more than simply upholding the law
Principles:
–  Confidentiality
–  Competence
–  Intellectual property rights
–  Refrain from computer misuse
–  …

Further reading: M. Broy and B. Berenbach
Professional and Ethical Dilemmas in Software Engineering, IEEE Computer 2009

30
ACM/IEEE Code of Ethics
§  Software engineers shall commit themselves to making the analysis,
specification, design, development, testing and maintenance of software a
beneficial and respected profession. In accordance with their commitment to
the health, safety and welfare of the public, software engineers shall adhere to
the following Eight Principles:
– 

PUBLIC INTEREST

– 

CLIENT AND EMPLOYER INTEREST

– 

PRODUCT

– 

JUDGEMENT

– 

MANAGEMENT

– 

PROFESSION

– 

COLLEAGUES

– 

SELF

31
Agenda
§ 
§ 
§ 
§ 

Postulate
Scientific Methods Overview
Scientific Methods “in Action”
In Quest for the Validity

32
Postulate
§  There are certain rules and principles for doing scientific work
§  Creation of scientific knowledge follows a number of patterns of scientific
method
§  There is a scientific community to judge about the quality of scientific work

33
How to judge the quality of scientific contributions?
§  The notion of quality is multi-faceted... (in general).
§  A scientific contribution as well as the methods used can be evaluated w.r.t.:
–  Relevance and impact (theoretical and practical)
–  Rigorousness
–  Novelty
–  Appropriateness
–  Validity
–  Conformance to scientific rules
–  …

34
Validity – what is it
In science and statistics, validity
§  is the extent to which a concept, theory, conclusion, or measurement is wellfounded
–  well-formedness
–  preciseness
–  consistency
–  scope
–  ...
§  corresponds accurately to the real world.

Source: Adapted from Wikipedia

35
Understanding the validity: Why and what?
§  Increase awareness of potential threats in my study regarding
–  Level of objectivity (“External Validity”)
–  Appropriateness of design to answer research questions (“Construct Validity”)
–  Appropriateness of measurements (“Internal Validity”)
Ø  Support yourself in designing a study
Ø  Support others in understanding and potentially replicating your study
Ø  Support yourself and others in better understanding:
Ø  The context of a study
Ø  The limitations of a study
Ø  Increase the trustworthiness of the results

36
Types of validity

Theory

Experiment objective

Cause
construct

cause-effect
construct

Effect
construct

4
3

Observation
1. 
2. 
3. 
4. 

Conclusion	

Internal	

Construct	

External	


3

treatment-outcome
construct

Treatment
Independent variable

Outcome
Experiment
operation

1
Source: Wohlin et al.
Experimentation in Software Engineering: An Introduction.

Dependent variable

2
37
Types of validity
§  Following classification scheme has been established for empirical SE:
1.  Conclusion validity:
“In this study, is there a relationship between treatment and outcome ?
2.  Internal Validity:
“Assuming there is a relationship in this study, is the relationship a causal one?”
3.  Construct Validity:
Assuming that there is a causal relationship in this study, can we claim that the
treatment reflects well our cause construct and that our measure reflects well
our idea of the construct of the measure ?
4.  External Validity:
“Assuming that there is a causal relationship in this study between the cause and
the effect, can we generalize this effect to other persons, places or times ?

38
The validity questions are cumulative
§  Validity types build on one other

Can we generalize to other
persons, places, times ?
Can we generalize to the constructs?

Is the dependency causal ?

Adapted from William M.K. Trochim, 2008

Is there a dependency between the cause and
the effect ?
Validity is not just the last paragraph of a paper!
Validity evaluation is part of research planning!

§  For each threat type, a list of threats is available in [Cook79] and [Campbell63]
–  Credibility
–  Transferability
–  Confirmability
–  …
§  Priority among the threats is a matter of optimization
§  Possible rank in theory testing :
–  Internal – construct – conclusion – external
§  Possible rank in applied research:
–  Internal – external – construct – conclusion

40
How can I support validity in general?
In general, we have 2 possibilities:
1.  Support the validity by construction (often referred to as “validity procedures”)
2.  Increase the validity after the fact

41
Constructively supporting validity
Conclusion Validity
§  Capture and critically discuss statistical assumptions and estimate probability of making errors
§  Draw baselines to compare representatives of samples (e.g., in surveys)
Internal Validity
§  Minimise side-effects and confounding factors, e.g., wording in questionnaire, effects by
interviewer and action research
§  Be unbiased!
§  Refer to method and subject triangulation
Construct Validity
§  Reproducibly define research questions and methods (e.g. by using GQM)
External Validity
§  Observe and explain objects and subjects à Qualitative studies
§  Refer to data triangulation
§  Refer to independent replication studies!
Further Tips
§  Define and report the study according to available guidelines
§  Be patient, be flexible
§  Recognise the positive value of checking the threats to validity!
42
Example
§  Comparing four approaches for technical debt identification,
Nico Zazworka, Antonio Vetro’, Clemente Izurieta, Sunny Wong, Yuanfang
Cai, Carolyn Seaman  Forrest Shull,
Software Quality Journal, 21(2), 2013
§  Large correlational analyses (~ 100.000 data points) on 13 releases of Hadoop
open source software to discover relationship between quality structural metrics
(at code, design and architectural level) and rework indicators (defect proneness
and change proneness)
Threat

Type

Control strategy

Choice of statistical significance thresholds

Conclusion

Literature-based choice of thresholds

Data transformation [0,N] à [0,1]

Conclusion

Distribution check

Metrics not normalized by classes size

Conclusion

Correlation check

Correlations found are incidental

Internal

Effect measured on two outcomes

Classes size measured by nr of methods

Construct

Correlation check

Defect proneness measured by nr of bug fixes

Construct

Checked with three different computation
methods

Findings generalizability

External

Aggregation on 13 different releases
43
Increasing the validity after the fact
Independent Confirmation
§  Case study /experimental research of theories by researchers not involved in
development of theory
§  Replication of experiments or case studies until reaching saturation
(or getting retired)
Challenges
§  What can we expect from a PhD thesis?

Discu
ss!
J

44
Some final, but important remarks
§  Don’t focus on the “size” of the problem, but on
–  The relevance (the practical, but also the theoretical!)
–  The accuracy in the investigation (problem and evaluation research)
§  However: Don’t be afraid to
–  aim high!
–  be hard-headed!
–  (but also accept if things don’t work)
§  When conducting empirical investigations:
–  Do not make claims you can not eventually measure
–  The scope / locality … is not the most important thing, as long as:
•  The study population is accurately chosen and described
•  The validity is carefully outlined
•  The conclusions are drawn accordingly

§  Finally: Don’t think in black and white only
–  Don’t divide the world in basic and applied research
–  Don’t be afraid to look also at other disciplines
45
1 of 45

Recommended

Case studies in industry - fundamentals and lessons learnt by
Case studies in industry - fundamentals and lessons learntCase studies in industry - fundamentals and lessons learnt
Case studies in industry - fundamentals and lessons learntDaniel Mendez
1.6K views52 slides
Selecting Empirical Methods for Software Engineering by
Selecting Empirical Methods for Software EngineeringSelecting Empirical Methods for Software Engineering
Selecting Empirical Methods for Software EngineeringDaniel Cukier
1.6K views30 slides
Theories in Empirical Software Engineering by
Theories in Empirical Software EngineeringTheories in Empirical Software Engineering
Theories in Empirical Software EngineeringDaniel Mendez
1.1K views72 slides
An Introduction into Philosophy of Science for Software Engineers by
An Introduction into Philosophy of Science for Software Engineers An Introduction into Philosophy of Science for Software Engineers
An Introduction into Philosophy of Science for Software Engineers Daniel Mendez
4.1K views181 slides
Empirical research methods for software engineering by
Empirical research methods for software engineeringEmpirical research methods for software engineering
Empirical research methods for software engineeringsarfraznawaz
5.6K views24 slides
Research methodoligies in architecture by
Research methodoligies in architectureResearch methodoligies in architecture
Research methodoligies in architectureSamanth kumar
5.5K views18 slides

More Related Content

What's hot

Research Methodology in Architecture by
Research Methodology in ArchitectureResearch Methodology in Architecture
Research Methodology in ArchitectureNeha Bansal
899 views31 slides
Research Logics: A pictorial overview of two perspectives by
Research Logics: A pictorial overview of two perspectivesResearch Logics: A pictorial overview of two perspectives
Research Logics: A pictorial overview of two perspectivesAnnette Markham
2.8K views18 slides
Case Study Research by
Case Study ResearchCase Study Research
Case Study ResearchClive McGoun
2.2K views8 slides
Chapter 5 case study by
Chapter 5   case studyChapter 5   case study
Chapter 5 case studyMohd. Noor Abdul Hamid
2.2K views22 slides
The roles and process of research in architecture by
The roles and process of research in architecture  The roles and process of research in architecture
The roles and process of research in architecture Lynnstyles
371 views13 slides
Chapter 2 incorporating theory and conducting literature search and review by
Chapter 2 incorporating theory and conducting literature search and reviewChapter 2 incorporating theory and conducting literature search and review
Chapter 2 incorporating theory and conducting literature search and reviewMohd. Noor Abdul Hamid
587 views27 slides

What's hot(20)

Research Methodology in Architecture by Neha Bansal
Research Methodology in ArchitectureResearch Methodology in Architecture
Research Methodology in Architecture
Neha Bansal899 views
Research Logics: A pictorial overview of two perspectives by Annette Markham
Research Logics: A pictorial overview of two perspectivesResearch Logics: A pictorial overview of two perspectives
Research Logics: A pictorial overview of two perspectives
Annette Markham2.8K views
Case Study Research by Clive McGoun
Case Study ResearchCase Study Research
Case Study Research
Clive McGoun2.2K views
The roles and process of research in architecture by Lynnstyles
The roles and process of research in architecture  The roles and process of research in architecture
The roles and process of research in architecture
Lynnstyles371 views
Chapter 2 incorporating theory and conducting literature search and review by Mohd. Noor Abdul Hamid
Chapter 2 incorporating theory and conducting literature search and reviewChapter 2 incorporating theory and conducting literature search and review
Chapter 2 incorporating theory and conducting literature search and review
Grounded Theory Method - Muller by Michael Muller
Grounded Theory Method - MullerGrounded Theory Method - Muller
Grounded Theory Method - Muller
Michael Muller12.8K views
Case study research by maureann o keefe by wawaaa789
Case study research by maureann o keefeCase study research by maureann o keefe
Case study research by maureann o keefe
wawaaa789465 views
Building theory from case study by Krite Infotech
Building theory from case studyBuilding theory from case study
Building theory from case study
Krite Infotech2.4K views
Leverhulme methods presentation by Anne Adams
Leverhulme methods presentationLeverhulme methods presentation
Leverhulme methods presentation
Anne Adams708 views
Grounded Theory: an Introduction (updated Jan 2011) by Hora Tjitra
Grounded Theory: an Introduction (updated Jan 2011)Grounded Theory: an Introduction (updated Jan 2011)
Grounded Theory: an Introduction (updated Jan 2011)
Hora Tjitra14K views
Data Collection & Analysis - Grounded Theory by Claudia Cárdenas
Data Collection & Analysis - Grounded TheoryData Collection & Analysis - Grounded Theory
Data Collection & Analysis - Grounded Theory
Claudia Cárdenas2.2K views
Falon Deimler Methodological Workshop Presentation by Falon Deimler
Falon Deimler Methodological Workshop PresentationFalon Deimler Methodological Workshop Presentation
Falon Deimler Methodological Workshop Presentation
Falon Deimler994 views
المحاضرة الثانية - سلسلة اساسيات البحث العلمي by Egypt Scholars Inc.
المحاضرة الثانية - سلسلة اساسيات البحث العلميالمحاضرة الثانية - سلسلة اساسيات البحث العلمي
المحاضرة الثانية - سلسلة اساسيات البحث العلمي
Egypt Scholars Inc.2.1K views
Grounded theory methodology of qualitative data analysis by Dr. Shiv S Tripathi
Grounded theory methodology of qualitative data analysisGrounded theory methodology of qualitative data analysis
Grounded theory methodology of qualitative data analysis
Dr. Shiv S Tripathi25.7K views

Viewers also liked

What is philosophy of science? by
What is philosophy of science?What is philosophy of science?
What is philosophy of science?John Wilkins
5.4K views8 slides
history and philosophy of science by
history and philosophy of sciencehistory and philosophy of science
history and philosophy of scienceJohn Christian Villanueva
5.2K views9 slides
Philosophy, Science, Arts, Technology: World Knowledge Grand Unification by
Philosophy, Science, Arts, Technology: World Knowledge  Grand UnificationPhilosophy, Science, Arts, Technology: World Knowledge  Grand Unification
Philosophy, Science, Arts, Technology: World Knowledge Grand UnificationAzamat Abdoullaev
2K views22 slides
History and philosophy of science by
History and  philosophy of scienceHistory and  philosophy of science
History and philosophy of scienceHanimarcelo slideshare
9.9K views46 slides
Science technology-society from the perspective of philosophy of science by
Science technology-society from the perspective of philosophy of scienceScience technology-society from the perspective of philosophy of science
Science technology-society from the perspective of philosophy of scienceDominic Asis
2.6K views33 slides
Science Technology and society by
Science Technology and societyScience Technology and society
Science Technology and societyManvi Yadav
31.2K views12 slides

Viewers also liked(16)

What is philosophy of science? by John Wilkins
What is philosophy of science?What is philosophy of science?
What is philosophy of science?
John Wilkins5.4K views
Philosophy, Science, Arts, Technology: World Knowledge Grand Unification by Azamat Abdoullaev
Philosophy, Science, Arts, Technology: World Knowledge  Grand UnificationPhilosophy, Science, Arts, Technology: World Knowledge  Grand Unification
Philosophy, Science, Arts, Technology: World Knowledge Grand Unification
Science technology-society from the perspective of philosophy of science by Dominic Asis
Science technology-society from the perspective of philosophy of scienceScience technology-society from the perspective of philosophy of science
Science technology-society from the perspective of philosophy of science
Dominic Asis2.6K views
Science Technology and society by Manvi Yadav
Science Technology and societyScience Technology and society
Science Technology and society
Manvi Yadav31.2K views
Philosophy of science summary presentation engelby by David Engelby
Philosophy of science summary presentation engelbyPhilosophy of science summary presentation engelby
Philosophy of science summary presentation engelby
David Engelby5.1K views
Philosophy of science 1 intro i and quantitative research by David Engelby
Philosophy of science 1 intro i and quantitative researchPhilosophy of science 1 intro i and quantitative research
Philosophy of science 1 intro i and quantitative research
David Engelby3.9K views
Chapter 1 philosophy of science by stanbridge
Chapter 1 philosophy of scienceChapter 1 philosophy of science
Chapter 1 philosophy of science
stanbridge15.7K views
History and Philosophy of Science: Origin of Science by Larry Sultiz
History and Philosophy of Science: Origin of ScienceHistory and Philosophy of Science: Origin of Science
History and Philosophy of Science: Origin of Science
Larry Sultiz7.7K views
Ontology, epistimology and axiology by Muhammad Absor
Ontology, epistimology and axiologyOntology, epistimology and axiology
Ontology, epistimology and axiology
Muhammad Absor33.8K views
Work Study by vishakeb
Work StudyWork Study
Work Study
vishakeb137.9K views
Philosophy ppt by Megha Mohan
Philosophy ppt Philosophy ppt
Philosophy ppt
Megha Mohan346.5K views

Similar to Scientific software engineering methods and their validity

Ch 1 research introduciton by
Ch 1 research introducitonCh 1 research introduciton
Ch 1 research introducitonTemtim assefa
127 views56 slides
Philosophic stances of Qualitative Research by
Philosophic stances of Qualitative ResearchPhilosophic stances of Qualitative Research
Philosophic stances of Qualitative Researchpaul_ilsley
5.8K views11 slides
chapter-3.pptx by
chapter-3.pptxchapter-3.pptx
chapter-3.pptxAsmaRauf5
16 views60 slides
Building and Evaluating Theories 
 in Software Engineering by
Building and Evaluating Theories 
 in Software EngineeringBuilding and Evaluating Theories 
 in Software Engineering
Building and Evaluating Theories 
 in Software EngineeringDaniel Mendez
1.2K views60 slides
INI_800_Lecture_1_Introduction.pdf by
INI_800_Lecture_1_Introduction.pdfINI_800_Lecture_1_Introduction.pdf
INI_800_Lecture_1_Introduction.pdfAbdullahOmar64
4 views26 slides
The Scientific Importance With Human Sexuality Research by
The Scientific Importance With Human Sexuality ResearchThe Scientific Importance With Human Sexuality Research
The Scientific Importance With Human Sexuality ResearchCynthia Smith
2 views42 slides

Similar to Scientific software engineering methods and their validity(20)

Ch 1 research introduciton by Temtim assefa
Ch 1 research introducitonCh 1 research introduciton
Ch 1 research introduciton
Temtim assefa127 views
Philosophic stances of Qualitative Research by paul_ilsley
Philosophic stances of Qualitative ResearchPhilosophic stances of Qualitative Research
Philosophic stances of Qualitative Research
paul_ilsley5.8K views
chapter-3.pptx by AsmaRauf5
chapter-3.pptxchapter-3.pptx
chapter-3.pptx
AsmaRauf516 views
Building and Evaluating Theories 
 in Software Engineering by Daniel Mendez
Building and Evaluating Theories 
 in Software EngineeringBuilding and Evaluating Theories 
 in Software Engineering
Building and Evaluating Theories 
 in Software Engineering
Daniel Mendez1.2K views
INI_800_Lecture_1_Introduction.pdf by AbdullahOmar64
INI_800_Lecture_1_Introduction.pdfINI_800_Lecture_1_Introduction.pdf
INI_800_Lecture_1_Introduction.pdf
AbdullahOmar644 views
The Scientific Importance With Human Sexuality Research by Cynthia Smith
The Scientific Importance With Human Sexuality ResearchThe Scientific Importance With Human Sexuality Research
The Scientific Importance With Human Sexuality Research
Cynthia Smith2 views
Empirical Software Engineering - What is it and why do we need it? by Daniel Mendez
Empirical Software Engineering - What is it and why do we need it?Empirical Software Engineering - What is it and why do we need it?
Empirical Software Engineering - What is it and why do we need it?
Daniel Mendez551 views
Data Science definition by CarloLauro1
Data Science definitionData Science definition
Data Science definition
CarloLauro124 views
Let's talk about Data Science by Carlo Lauro
Let's talk about Data ScienceLet's talk about Data Science
Let's talk about Data Science
Carlo Lauro76 views
Lecture 3 Computer Science Research SEM1 22_23 (1).pptx by NabilaHassan13
Lecture 3 Computer Science Research SEM1 22_23 (1).pptxLecture 3 Computer Science Research SEM1 22_23 (1).pptx
Lecture 3 Computer Science Research SEM1 22_23 (1).pptx
NabilaHassan13197 views
Chapter 5 theory and methodology by grainne
Chapter 5 theory and methodology Chapter 5 theory and methodology
Chapter 5 theory and methodology
grainne2.4K views
Interpretive frameworks -spring13 by paul_ilsley
Interpretive frameworks -spring13Interpretive frameworks -spring13
Interpretive frameworks -spring13
paul_ilsley2.8K views

More from Daniel Mendez

Requirements Engineering Research: How good are we at solving practical prob... by
Requirements Engineering Research:  How good are we at solving practical prob...Requirements Engineering Research:  How good are we at solving practical prob...
Requirements Engineering Research: How good are we at solving practical prob...Daniel Mendez
228 views43 slides
Design Thinking for Requirements Engineering by
Design Thinking for Requirements EngineeringDesign Thinking for Requirements Engineering
Design Thinking for Requirements EngineeringDaniel Mendez
1.6K views70 slides
In Quest of Requirements Engineering Research that Industry Needs by
In Quest of Requirements Engineering Research that Industry NeedsIn Quest of Requirements Engineering Research that Industry Needs
In Quest of Requirements Engineering Research that Industry NeedsDaniel Mendez
957 views87 slides
Survey Research in Software Engineering by
Survey Research in Software EngineeringSurvey Research in Software Engineering
Survey Research in Software EngineeringDaniel Mendez
1.7K views77 slides
Surveys in Software Engineering by
Surveys in Software EngineeringSurveys in Software Engineering
Surveys in Software EngineeringDaniel Mendez
3K views111 slides
Theory Building in RE - The NaPiRE Initiative by
Theory Building in RE - The NaPiRE InitiativeTheory Building in RE - The NaPiRE Initiative
Theory Building in RE - The NaPiRE InitiativeDaniel Mendez
433 views41 slides

More from Daniel Mendez(17)

Requirements Engineering Research: How good are we at solving practical prob... by Daniel Mendez
Requirements Engineering Research:  How good are we at solving practical prob...Requirements Engineering Research:  How good are we at solving practical prob...
Requirements Engineering Research: How good are we at solving practical prob...
Daniel Mendez228 views
Design Thinking for Requirements Engineering by Daniel Mendez
Design Thinking for Requirements EngineeringDesign Thinking for Requirements Engineering
Design Thinking for Requirements Engineering
Daniel Mendez1.6K views
In Quest of Requirements Engineering Research that Industry Needs by Daniel Mendez
In Quest of Requirements Engineering Research that Industry NeedsIn Quest of Requirements Engineering Research that Industry Needs
In Quest of Requirements Engineering Research that Industry Needs
Daniel Mendez957 views
Survey Research in Software Engineering by Daniel Mendez
Survey Research in Software EngineeringSurvey Research in Software Engineering
Survey Research in Software Engineering
Daniel Mendez1.7K views
Surveys in Software Engineering by Daniel Mendez
Surveys in Software EngineeringSurveys in Software Engineering
Surveys in Software Engineering
Daniel Mendez3K views
Theory Building in RE - The NaPiRE Initiative by Daniel Mendez
Theory Building in RE - The NaPiRE InitiativeTheory Building in RE - The NaPiRE Initiative
Theory Building in RE - The NaPiRE Initiative
Daniel Mendez433 views
Where do we stand in Requirements Engineering Improvement Today? First Result... by Daniel Mendez
Where do we stand in Requirements Engineering Improvement Today? First Result...Where do we stand in Requirements Engineering Improvement Today? First Result...
Where do we stand in Requirements Engineering Improvement Today? First Result...
Daniel Mendez354 views
Naming the Pain in Requirements Engineering - Design of a Global Family of Su... by Daniel Mendez
Naming the Pain in Requirements Engineering - Design of a Global Family of Su...Naming the Pain in Requirements Engineering - Design of a Global Family of Su...
Naming the Pain in Requirements Engineering - Design of a Global Family of Su...
Daniel Mendez508 views
Who cares about Software Process Modelling? A First Investigation about the P... by Daniel Mendez
Who cares about Software Process Modelling? A First Investigation about the P...Who cares about Software Process Modelling? A First Investigation about the P...
Who cares about Software Process Modelling? A First Investigation about the P...
Daniel Mendez405 views
Improving Requirements Engineering by Artefact Orientation by Daniel Mendez
Improving Requirements Engineering by Artefact OrientationImproving Requirements Engineering by Artefact Orientation
Improving Requirements Engineering by Artefact Orientation
Daniel Mendez323 views
On the Distinction of Functional and Quality Requirements in Practice by Daniel Mendez
On the Distinction of Functional and Quality Requirements in PracticeOn the Distinction of Functional and Quality Requirements in Practice
On the Distinction of Functional and Quality Requirements in Practice
Daniel Mendez588 views
Software Engineering Excellence - The key to mastering the Digital Transforma... by Daniel Mendez
Software Engineering Excellence - The key to mastering the Digital Transforma...Software Engineering Excellence - The key to mastering the Digital Transforma...
Software Engineering Excellence - The key to mastering the Digital Transforma...
Daniel Mendez997 views
Case Studies in Industry - What We Have Learnt by Daniel Mendez
Case Studies in Industry - What We Have LearntCase Studies in Industry - What We Have Learnt
Case Studies in Industry - What We Have Learnt
Daniel Mendez604 views
A Case Study on Artefact-based RE Improvement in Practice by Daniel Mendez
A Case Study on Artefact-based RE Improvement in PracticeA Case Study on Artefact-based RE Improvement in Practice
A Case Study on Artefact-based RE Improvement in Practice
Daniel Mendez775 views
An Exploratory Study on Technology Transfer in Software Engineering by Daniel Mendez
An Exploratory Study on Technology Transfer in Software EngineeringAn Exploratory Study on Technology Transfer in Software Engineering
An Exploratory Study on Technology Transfer in Software Engineering
Daniel Mendez998 views
Artefact-based Requirements Engineering Improvement - Learning to Walk in Pra... by Daniel Mendez
Artefact-based Requirements Engineering Improvement - Learning to Walk in Pra...Artefact-based Requirements Engineering Improvement - Learning to Walk in Pra...
Artefact-based Requirements Engineering Improvement - Learning to Walk in Pra...
Daniel Mendez787 views
In Quest for Requirements Engineering Oracles: Dependent Variables and Measur... by Daniel Mendez
In Quest for Requirements Engineering Oracles: Dependent Variables and Measur...In Quest for Requirements Engineering Oracles: Dependent Variables and Measur...
In Quest for Requirements Engineering Oracles: Dependent Variables and Measur...
Daniel Mendez877 views

Recently uploaded

Narration ppt.pptx by
Narration  ppt.pptxNarration  ppt.pptx
Narration ppt.pptxTARIQ KHAN
110 views24 slides
The Open Access Community Framework (OACF) 2023 (1).pptx by
The Open Access Community Framework (OACF) 2023 (1).pptxThe Open Access Community Framework (OACF) 2023 (1).pptx
The Open Access Community Framework (OACF) 2023 (1).pptxJisc
77 views7 slides
discussion post.pdf by
discussion post.pdfdiscussion post.pdf
discussion post.pdfjessemercerail
106 views1 slide
Student Voice by
Student Voice Student Voice
Student Voice Pooky Knightsmith
148 views33 slides

Recently uploaded(20)

Narration ppt.pptx by TARIQ KHAN
Narration  ppt.pptxNarration  ppt.pptx
Narration ppt.pptx
TARIQ KHAN110 views
The Open Access Community Framework (OACF) 2023 (1).pptx by Jisc
The Open Access Community Framework (OACF) 2023 (1).pptxThe Open Access Community Framework (OACF) 2023 (1).pptx
The Open Access Community Framework (OACF) 2023 (1).pptx
Jisc77 views
Scope of Biochemistry.pptx by shoba shoba
Scope of Biochemistry.pptxScope of Biochemistry.pptx
Scope of Biochemistry.pptx
shoba shoba121 views
Nico Baumbach IMR Media Component by InMediaRes1
Nico Baumbach IMR Media ComponentNico Baumbach IMR Media Component
Nico Baumbach IMR Media Component
InMediaRes1425 views
Ch. 7 Political Participation and Elections.pptx by Rommel Regala
Ch. 7 Political Participation and Elections.pptxCh. 7 Political Participation and Elections.pptx
Ch. 7 Political Participation and Elections.pptx
Rommel Regala69 views
Education and Diversity.pptx by DrHafizKosar
Education and Diversity.pptxEducation and Diversity.pptx
Education and Diversity.pptx
DrHafizKosar107 views
The basics - information, data, technology and systems.pdf by JonathanCovena1
The basics - information, data, technology and systems.pdfThe basics - information, data, technology and systems.pdf
The basics - information, data, technology and systems.pdf
JonathanCovena177 views
Narration lesson plan.docx by TARIQ KHAN
Narration lesson plan.docxNarration lesson plan.docx
Narration lesson plan.docx
TARIQ KHAN99 views
Structure and Functions of Cell.pdf by Nithya Murugan
Structure and Functions of Cell.pdfStructure and Functions of Cell.pdf
Structure and Functions of Cell.pdf
Nithya Murugan317 views
EIT-Digital_Spohrer_AI_Intro 20231128 v1.pptx by ISSIP
EIT-Digital_Spohrer_AI_Intro 20231128 v1.pptxEIT-Digital_Spohrer_AI_Intro 20231128 v1.pptx
EIT-Digital_Spohrer_AI_Intro 20231128 v1.pptx
ISSIP256 views
Class 10 English lesson plans by TARIQ KHAN
Class 10 English  lesson plansClass 10 English  lesson plans
Class 10 English lesson plans
TARIQ KHAN239 views

Scientific software engineering methods and their validity

  • 1. Technische Universität München Philosophy of Science Scientific Methods and their Validity Dr. Daniel Méndez Fernández Prof. Dr. Manfred Broy Technische Universität München Institute for Informatics Software & Systems Engineering Dr. Antonio Vetrò
  • 2. Goals of the talk §  Get (back) to a bigger picture –  Start from a general point of view in the philosophy of science –  Drill down to implications for every day scientific work (Projects, Publications, PhD Thesis, …) §  Discuss … –  how to allocate the presented methods into that picture –  the methods in context of a PhD dissertation –  the notion of validity and how to increase it 2
  • 5. What is science? Science: Systematically and objectively gaining (and preserving), documenting, and disseminating knowledge §  In principle, science tries to be objective by aspiring knowledge based on “facts” (independent of subjective judgment!) However: §  Accepting scientific results is a social process (documentation, communication, following rules). §  Some elements of science (mathematics, logics) seem to be unbiased – but nevertheless rely on acceptance by the peers and capabilities to apply the theories. §  One could also say: “In the end, it is also a matter of beliefs, capability, and individual and social judgment” (following some basic principles, rules, and codes) 5
  • 6. Philosophy and science Ontology (“Seinslehre”) Epistemology (“Erkenntnislehre”) Ethics (“Verhaltenslehre”) Ontological questions (“Außenweltproblem”) Questions on the “being” à Bound to reality Epistemological questions (“Erkenntnisproblem”) Questions on the observation / discovery Ethical questions (“Verhaltensproblem”) Questions on actions à Bound to morality Object-Subject relation 6 From: Orkunoglu, 2010
  • 7. Philosophy and science Ontology (“Seinslehre”) Epistemology (“Erkenntnislehre”) Ethics (“Verhaltenslehre”) Ontological questions (“Außenweltproblem”) Is there a world independent of subjectivity? Epistemological questions (“Erkenntnisproblem”) From ehere do discoveries result? From experiences? Ethical questions (“Verhaltensproblem”) From where does ethics result? Does there exist something like universal ethics? Idealism Rationalism Normative Ethics Realism Empiricism Descriptive Ethics Solipsism Scepticism Everyday Ethics From: Orkunoglu, 2010 7
  • 8. What is science? §  Aristoteles (384-324 BC) –  Search for truth –  Search for laws and reasoning for phenomena –  Understanding the nature of phenomena §  Francis Bacon (1561-1626) –  Progress of knowledge of nature (reality) –  Draw benefits from growing knowledge §  Era of (French) Enlightenment (Voltaire (1694-1778), Diderot (1713-1784)) –  Emancipation from god and beliefs §  Kant (1724-1804) –  System of Epistemology §  Constructivism (Förster (1911-2002), N. Luhmann (1927-1998)) –  Subjective construction 8 From: Orkunoglu, 2010
  • 9. What is science? Science Theory •  •  •  •  •  •  Formal theories Deduction Models Predictions Explanations … Empiricism •  •  •  •  Observations Experiments Facts … 3 obje c •  An tives of sc ien al •  Pre yse and Ex ce: plain d •  De ict sign Communication •  Intersubjective evaluations •  Agreement •  … Engineering approach: developing tools and techniques to solve practical problems by means of existing technology and available knowledge: is this science ? 9 Adapted From: Orkunoglu, 2010
  • 10. What is the notion of “Truth”? §  We speak about truth, if no subjective interpretation and distortion is possible §  We could also say: “Whenever I repeat my treatment to a certain population, it will always lead to the same observation” §  If we have “universal truth”, we can call our results “generalisable” (“externally valid”) Challenges: Obtaining truth §  Can we obtain something as “universal truth”? §  Can we do so in a life time? Or even within a PhD? §  What if my observations/interpretations/analyses are dependent on human factors? à Things can be true for certain contexts only! 10 Image: Sjøberg, 2011
  • 11. A major challenge: Human factors Why are human factors important to our field? §  Software Engineering is an engineering discipline applied by human beings. §  The value of solutions to practical problems too often depends on those to apply the solutions. What implications can we draw from that? §  The notion of truth is “threatened” by subjectivity. à  The good: We can make use of that subjectivity (e.g. “expert opinion”) à  The bad: We need to be aware of the implications (e.g. the threats to the external validity) à  The ugly: When relying on subjects, we will never obtain full external validity … One could also say: “Outside mathematics, there is no certainty.” 11
  • 12. Truth in science is relative! The different views onto science §  Science is created by humans –  sociology of science –  psychology of science (or scientists) –  economy of science §  Science as knowledge creation (discovery) –  theory of knowledge –  knowledge and insight –  understanding and explanation §  Science as mean to change the world – creative science –  science and power –  science and technology –  design 12
  • 14. Big Picture… 1st layer Examples Philosophy of science Principle ways of working Epistemology (“Erkenntnistheorie”) Empirical methods Theories Case studies Methods and Tools Hypothesis testing Fundamental Theories Statistics Logic14
  • 15. In Software Engineering, we rely on every layer! Philosophy of science Principle ways of working Setting of Empirical Software Engineering: §  Methods and tools §  Support theory building and evaluation §  Analogy: Theoretical and Experimental Physics Methods and Tools Fundamental Theories 15
  • 16. What do we usually need (e.g. in a PhD)? Philosophy of science Principle ways of working You are (usually) here Methods and Tools Fundamental Theories 16
  • 17. Big Picture… 2nd layer Theory/System of theories Theory Building Deduction (Tentative) Hypotheses Induction Falsification / Support Pattern Building Observations / Evaluations Study Population Further reading: Runeson et al. Case Study Research in Software Engineering: Guidelines and Experiments 17
  • 18. Big Picture… 3rd layer: Methods and Tools §  Each method I can apply… –  Has a specific purpose –  Relies on a specific data type Purposes §  Exploratory Example: Grounded Theory §  Descriptive §  Explanatory §  Improving (Tentative) Hypotheses Descriptive Exploratory, or Explanatory Data Types §  Qualitative §  Quantitative Study Population Qualitative Data 18
  • 19. Big Picture… 3rd layer: Methods and Tools Theory/System of theories Grounded theory Theory Building Exploratory •  Case Field Studies •  Data Analysis Survey and Interview Research •  Ethnographic Studies •  Folklore Gathering Formal / conceptual analysis (Tentative) Hypotheses Falsification / Support Pattern Building Confirmatory •  Case Field Studies •  Experiments, •  Simulations Observations / Evaluations Study Population Further reading: Runeson et al. Case Study Research in Software Engineering: Guidelines and Experiments For n ow, pr otot is not part o yping “meth od vie f this w” aren’t refere (so mode nce ls) 19
  • 20. How much external validity can I expect from applying the methods we usually apply? Environment: Reality ... You s ha get a ll only fee please ling, don sue us ‘t Survey Research Action Research Field Study Research Case Study Research (Lab) Experiment Level of Evidence Simulation Artificial Environment ... 20
  • 21. We distinguish different levels of evidence Strong evidence Evidence + For Circumstantial evidence Third-party claim First or second part claim First or second part claim Third-party claim Circumstantial evidence Against Evidence Strong evidence Further reading: Wohlin An Evidence Profile for Software Engineering Research and Practice 21
  • 23. Preliminary remarks: A PhD thesis can have many contributions Possible contributions §  Exploration / evaluation of concepts and dependencies §  Identification of problems and / or deficiencies in existing assumptions §  Contributions to a precise terminology §  New views on existing concepts and transfer of those concepts to new fields of application §  New methods / methodologies §  New theories §  … Important: §  Identification of scientific contribution There i and o s no one nly wa writin y of “good g a thesis ” Scientific methods §  Theories –  Consistent, complete, … –  Validation (of accuracy) §  Dialectic §  Empirical methods –  Experiments –  Case/Field Studies –  …. §  Literature analyses §  …. Important: §  Scientific evaluation –  Empirical –  Experimental –  Theoretical –  Positioning against state of science –  … 23
  • 24. What can be the scope of a thesis? Practical Problem Existing Theory Scientific methods Evidently solve a problem (or parts of it) Refine Theory Provide guidance for future research Inspired by: Shneidermann Keynote at ESEM 2013 24
  • 25. Problem solving How it should be How it often is in reality Source: http://researchinprogress.tumblr.com 25
  • 26. Let’s engineer problem discovery solving Implementation Evaluation / Problem Investigation Treatment Implementation - Transfer to practice! Design Validation - Effects of treatment in this context? - Effects satisfy requirements? - Trade-offs? - Sensitivity? Engineering cycle - Stakeholders, goals? - Phenomena? Effects? - (Lack of) contribution to goals? Treatment Design - Specify requirements! - Contribution to goals? - Available treatments? - Design new ones! Further reading: Wieringa, R.J.: Relevance and problem choice in design science. In: Global Perspectives on Design Science Research. Lecture Notes in Computer Science (2010) 61–76 26
  • 27. In any way, stick to the code of scientific working! Principles in scientific work and behaviour 1.  Integrity 2.  Honesty 3.  Transparency and accuracy 4.  Rationalism Principles of working (and writing) §  Clearly and objectively outline the goals, methods and contribution of your thesis –  motivation –  relevance –  validity §  Describe related work, gaps left open, and how you intend to close those gaps §  Choose appropriate methods (and reflect on them) §  Work in teams! 27
  • 28. If working in teams §  Clarify your own (individual) contributions as soon as possible –  Publish together with clear (predefined) authorship –  Make your work transparent •  Discuss with colleagues from your research group (or from other groups) •  Disseminate your results (and get feedback) à In the end, however, be aware: only your individual contribution counts! §  Dissertations and (funded) research projects –  Dissertation results can (and often should) be part of research projects –  Problems: Potentially different goals, time constraints, …. –  Instrument: •  Make clear (and discuss) your own contributions •  Publish your results – also in early stages 28
  • 29. Finally: There is a formal code of ethics for researchers The seven principles of the code, intended to guide scientist's actions, are: §  Act with skill and care in all scientific work. Maintain up to date skills and assist their development in others. §  Take steps to prevent corrupt practices and professional misconduct. Declare conflicts of interest. §  Be alert to the ways in which research derives from and affects the work of other people, and respect the rights and reputations of others. §  Ensure that your work is lawful and justified. §  Minimize and justify any adverse effect your work may have on people, animals and the natural environment. §  Seek to discuss the issues that science raises for society. Listen to the aspirations and concerns of others. §  Do not knowingly mislead, or allow others to be misled, about scientific matters. Present and review scientific evidence, theory or interpretation honestly and accurately. Source: David King 2007, the UK government's chief scientific advisor 29
  • 30. Professional and ethical responsibility §  §  §  §  Software engineering involves wider responsibilities than simply the application of technical skills Software engineers must behave in an honest and ethically responsible way if they are to be respected as professionals Ethical behaviour is more than simply upholding the law Principles: –  Confidentiality –  Competence –  Intellectual property rights –  Refrain from computer misuse –  … Further reading: M. Broy and B. Berenbach Professional and Ethical Dilemmas in Software Engineering, IEEE Computer 2009 30
  • 31. ACM/IEEE Code of Ethics §  Software engineers shall commit themselves to making the analysis, specification, design, development, testing and maintenance of software a beneficial and respected profession. In accordance with their commitment to the health, safety and welfare of the public, software engineers shall adhere to the following Eight Principles: –  PUBLIC INTEREST –  CLIENT AND EMPLOYER INTEREST –  PRODUCT –  JUDGEMENT –  MANAGEMENT –  PROFESSION –  COLLEAGUES –  SELF 31
  • 33. Postulate §  There are certain rules and principles for doing scientific work §  Creation of scientific knowledge follows a number of patterns of scientific method §  There is a scientific community to judge about the quality of scientific work 33
  • 34. How to judge the quality of scientific contributions? §  The notion of quality is multi-faceted... (in general). §  A scientific contribution as well as the methods used can be evaluated w.r.t.: –  Relevance and impact (theoretical and practical) –  Rigorousness –  Novelty –  Appropriateness –  Validity –  Conformance to scientific rules –  … 34
  • 35. Validity – what is it In science and statistics, validity §  is the extent to which a concept, theory, conclusion, or measurement is wellfounded –  well-formedness –  preciseness –  consistency –  scope –  ... §  corresponds accurately to the real world. Source: Adapted from Wikipedia 35
  • 36. Understanding the validity: Why and what? §  Increase awareness of potential threats in my study regarding –  Level of objectivity (“External Validity”) –  Appropriateness of design to answer research questions (“Construct Validity”) –  Appropriateness of measurements (“Internal Validity”) Ø  Support yourself in designing a study Ø  Support others in understanding and potentially replicating your study Ø  Support yourself and others in better understanding: Ø  The context of a study Ø  The limitations of a study Ø  Increase the trustworthiness of the results 36
  • 37. Types of validity Theory Experiment objective Cause construct cause-effect construct Effect construct 4 3 Observation 1.  2.  3.  4.  Conclusion Internal Construct External 3 treatment-outcome construct Treatment Independent variable Outcome Experiment operation 1 Source: Wohlin et al. Experimentation in Software Engineering: An Introduction. Dependent variable 2 37
  • 38. Types of validity §  Following classification scheme has been established for empirical SE: 1.  Conclusion validity: “In this study, is there a relationship between treatment and outcome ? 2.  Internal Validity: “Assuming there is a relationship in this study, is the relationship a causal one?” 3.  Construct Validity: Assuming that there is a causal relationship in this study, can we claim that the treatment reflects well our cause construct and that our measure reflects well our idea of the construct of the measure ? 4.  External Validity: “Assuming that there is a causal relationship in this study between the cause and the effect, can we generalize this effect to other persons, places or times ? 38
  • 39. The validity questions are cumulative §  Validity types build on one other Can we generalize to other persons, places, times ? Can we generalize to the constructs? Is the dependency causal ? Adapted from William M.K. Trochim, 2008 Is there a dependency between the cause and the effect ?
  • 40. Validity is not just the last paragraph of a paper! Validity evaluation is part of research planning! §  For each threat type, a list of threats is available in [Cook79] and [Campbell63] –  Credibility –  Transferability –  Confirmability –  … §  Priority among the threats is a matter of optimization §  Possible rank in theory testing : –  Internal – construct – conclusion – external §  Possible rank in applied research: –  Internal – external – construct – conclusion 40
  • 41. How can I support validity in general? In general, we have 2 possibilities: 1.  Support the validity by construction (often referred to as “validity procedures”) 2.  Increase the validity after the fact 41
  • 42. Constructively supporting validity Conclusion Validity §  Capture and critically discuss statistical assumptions and estimate probability of making errors §  Draw baselines to compare representatives of samples (e.g., in surveys) Internal Validity §  Minimise side-effects and confounding factors, e.g., wording in questionnaire, effects by interviewer and action research §  Be unbiased! §  Refer to method and subject triangulation Construct Validity §  Reproducibly define research questions and methods (e.g. by using GQM) External Validity §  Observe and explain objects and subjects à Qualitative studies §  Refer to data triangulation §  Refer to independent replication studies! Further Tips §  Define and report the study according to available guidelines §  Be patient, be flexible §  Recognise the positive value of checking the threats to validity! 42
  • 43. Example §  Comparing four approaches for technical debt identification, Nico Zazworka, Antonio Vetro’, Clemente Izurieta, Sunny Wong, Yuanfang Cai, Carolyn Seaman Forrest Shull, Software Quality Journal, 21(2), 2013 §  Large correlational analyses (~ 100.000 data points) on 13 releases of Hadoop open source software to discover relationship between quality structural metrics (at code, design and architectural level) and rework indicators (defect proneness and change proneness) Threat Type Control strategy Choice of statistical significance thresholds Conclusion Literature-based choice of thresholds Data transformation [0,N] à [0,1] Conclusion Distribution check Metrics not normalized by classes size Conclusion Correlation check Correlations found are incidental Internal Effect measured on two outcomes Classes size measured by nr of methods Construct Correlation check Defect proneness measured by nr of bug fixes Construct Checked with three different computation methods Findings generalizability External Aggregation on 13 different releases 43
  • 44. Increasing the validity after the fact Independent Confirmation §  Case study /experimental research of theories by researchers not involved in development of theory §  Replication of experiments or case studies until reaching saturation (or getting retired) Challenges §  What can we expect from a PhD thesis? Discu ss! J 44
  • 45. Some final, but important remarks §  Don’t focus on the “size” of the problem, but on –  The relevance (the practical, but also the theoretical!) –  The accuracy in the investigation (problem and evaluation research) §  However: Don’t be afraid to –  aim high! –  be hard-headed! –  (but also accept if things don’t work) §  When conducting empirical investigations: –  Do not make claims you can not eventually measure –  The scope / locality … is not the most important thing, as long as: •  The study population is accurately chosen and described •  The validity is carefully outlined •  The conclusions are drawn accordingly §  Finally: Don’t think in black and white only –  Don’t divide the world in basic and applied research –  Don’t be afraid to look also at other disciplines 45