group 1 professors: paulo maciel/ricardo massa design and

70
CIn.ufpe. br Design And Analysis of Experiment Advanced Topics in Systems Performance Evaluation Professors: Paulo Maciel/Ricardo Massa Group 1 Eric Borba [email protected] Erico Guedes [email protected] Jonas Pontes [email protected] 2015

Upload: others

Post on 05-May-2022

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Design And Analysis of ExperimentAdvanced Topics in Systems Performance Evaluation

Professors: Paulo Maciel/Ricardo Massa

Group 1

Eric Borba [email protected] Guedes [email protected] Pontes [email protected]

2015

Page 2: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Summary• Preliminaries

• Definition

• Terminology

• Types of Experiment Design

• One Factor Experiments

• Two Factor Factorial Experiments

• 2^k Factorial Designs

• 2^kr Factorial Designs

• 2^(k-p) Fractional Factorial Designs

2

Page 3: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Preliminaries

The first ninety percent of the task takes ten

percent of the time, and the last ten percent

takes the other ninety percent.

3

—Ninety-ninety rule of project schedules

Page 4: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Preliminaries

“Almost all science

successes were preceded

by failures.”

4

Page 5: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Preliminaries

Experiencex

Experiment

5

Page 6: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Preliminaries

● Thomas Edison○ More than 1150 failed experiments

before functional lamp

6

Page 7: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Preliminaries

● Observing a system or process while it is in

operation is an important part of the learning

process, and is an integral part of understanding

and learning about how systems and processes

work.

7

Page 8: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Preliminaries

● The goal of a proper experimental design is to obtain the maximum information with the minimum number of the experiments.

8

Page 9: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Preliminaries

● Understand cause-and-effect○ “Throughout the book I have stressed

the importance of experimental design

as a tool for engineers and scientists to

use for product design and

development as well as process

development and improvement.”

9

Here we are!

Page 10: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Preliminaries

● Understand cause-and-effect○ Scientific Knowledge:

■ Aiming to connect each effect to one cause in order to obtain

some possibility to do safe predictions related to future events.

10

Page 11: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Preliminaries

● Definition: Experiment Design

○ It is a systematic method to determine the relationship

between factors affecting a process and the output of

that process. ■ it is used to find cause-and-effect relationships

■ this information is needed to manage process inputs in order

to optimize the output

11

Page 12: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Preliminaries

● What is an experiment?○ a test or series of runs in which purposeful

changes are made to the input variables of a

process or system so that we may observe and

identify the reasons for changes that may be

observed in the output response.

12

Page 13: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Preliminaries

• Experimentation Process

13

Conjectures

Experiments

Analysys

Conclusions

Learning

Data Conception

Activities

Establish new ...

Page 14: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Preliminaries● Design of Experiment Terminology

14

Response Variable

Factors

Primary Factors Secondary Factors

LevelsReplication

Experimental Unit

Interaction

Page 15: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Interaction: Example

15

Page 16: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Preliminaries● Guidelines for Design Experiments(1/3)

○ Together, steps 1, 2, and 3 are called pre-experimental planning16

1. Recognition of and statement of the problem

Reasons for running experiments:a. Factor screening or characterizationb. Optimizationc. Confirmationd. Discoverye. Robustness

2. Selection of response variable

3. Choice of factors, levels and range

Performed simultaneouslyor in reverse order

Page 17: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

● Guidelines for Design Experiments(2/3)

Preliminaries

17

4. Choice of experimental design

What is the model?- a quantitative relationship (equation) between the response and the important design factors- low order polynomial models may be appropriate

Sample size (number of replications)Suitable run order for the experimental trials

i. First-order model: = 0 + 1 1 + 2 2+

ii. First-order model with interaction term: = 0 + 1 1 + 2 2 + 12 1 2 +

iii. Second-order model: = 0 + 1 1 + 2 2 + 12 1 2 + 11 ²1+ 22 ²2+

Thinking about and selecting a tentative empirical model to describe the results

Page 18: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Preliminaries● Guidelines for Design Experiments(3/3)

18

Monitor the process carefully

Suggestion: few trial runs or pilot runs5. Performing the experiment

6. Statistical analysis of the data

7. Conclusions and recommendations

Graphical methods play an important role

hypothesis testing and confidence interval estimation procedures are very useful

Follow-up runs and confirmation testing should also be performed to validate the conclusions from the experiment

Page 19: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Summary• Preliminaries

• Definition

• Terminology

• Types of Experiment Design

• One Factor Experiments

• Two Factor Factorial Experiments

• 2^k Factorial Designs

• 2^kr Factorial Designs

• 2^(k-p) Fractional Factorial Designs

19

Page 20: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Types of Experimental Designs

20

● Simple Design

● Full Factorial Design

● Fractional Factorial Design

Page 21: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Types of Experimental Designs

21

● One Factor at a Time (OFAT)

○ The major disadvantage of the OFAT strategy is that it fails to consider

any possible interaction between the factors

○ If the factors have interaction, this design may lead to wrong

conclusions.

● Number of experiments(n) for a simple design:

Simple Designs

Page 22: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Types of Experimental Designs

22

● One Factor at a Time (OFAT)

The problem is to design a personal workstation, where several choices have to be made. First, a microprocessor has to be chosen for the CPU. The alternatives are the 68000, Z80, or 8086 microprocessor. Second, a memory size of 512 kbytes, 2 Mbytes, or 8 Mbytes has to be chosen. Third, the workstation could have one, two, three, or four disk drives. Fourth, the workload on the workstations could be one of three types—secretarial, managerial, or scientific. Performance also depends on user characteristics, such as whether users are at a high school, college, or postgraduate level.

Simple Designs

Page 23: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

23

• It uses every possible combination at all levels of all factors.

• Experiments quantity:

• Every possible combination of configuration is examined (factors and

interactions).

• Issues: cost and time.

• 3 ways to reduce the number of experiments: levels, factors or

fractional factorial designs.

Full Factorial Design: 2k

Types of Experimental Designs

Page 24: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

24

• Sometimes the number of experiments is too large.

• In such cases, it is possible to use only a fraction of the factorial

design.

Fractional Factorial Designs(2k-p)Types of Experimental Designs

Page 25: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

One Factor Experiments

25

● Features○ Used to compare several alternatives of a single categorical variable.

○ There is no number of levels that the factor can take.■ Unlike the 2k designs, the number of levels can be more than 2

○ Model used

○ Observation, mean response, effect, error term.

Types of Variables:- Categorical (qualitative)- Numerical (quantitative)

Page 26: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

One Factor Experiments

26

• Model parameter:

• Column mean:

• Column effect:

Page 27: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

One Factor Experiments

27

• Model parameter:

• Column mean:

• Column effect:

Page 28: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

One Factor Experiments

28

Example

Page 29: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

• The difference between the measured and the estimated response

represents experimental error.

One Factor Experiments

29

Estimating Experimental Errors

Page 30: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

● The total variation can be allocated to the factor and errors.

○ SSY (sum of squares)

○ SS0 (sum of squares of grand means),

○ SSA (sum of squares of effects)

○ SSE (sum of square errors).

One Factor Experiments

30

Allocation of Variation

Page 31: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Well

31

Page 32: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

One Factor Experiments

32

● Analysis of Variance(ANOVA)

○ The partitioning of variation into an■ explained ■ unexplained

part is useful in practice since it can be easily presented by the analyst to the decision makers

○ To determine if a factor has a significant effect on the response,

statisticians compare its contribution to the variation with that of the

errors.

Page 33: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

One Factor Experiments

33

● Analysis of Variance(ANOVA)

○ What is ANOVA?

■ the statistical procedure to analyze the significance os various factors

○ Degree of freedom

■ number of independent values required to compute the sum of

squares

Page 34: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

One Factor Experiments

34

● Analysis of Variance(ANOVA)○ Result:

Page 35: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

One Factor Experiments

35

Confidence Intervals for Effects

Page 36: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Two Factor Factorial Experiments

36

• Used when there are two parameters that are carefully controlled and

varied to study their impact on the performance.

• Model used:

• Observation, mean response, effect of factor A at level j, effect of

factor B at level i, and error term.

Page 37: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Two Factor Factorial Experiments

37

• The values of model parameters are computed such that the error has

a zero mean. Sum of each column and each row is zero.

Page 38: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Two Factor Factorial Experiments

38

Confidence Intervals for Effects

Page 39: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Two Factor Factorial Experiments

39

Estimating Experimental Errors

Page 40: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Two Factor Factorial Experiments

40

Allocation of Variation

Page 41: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Two Factor Factorial Experiments

41

Analysis of Variance• To statistically test the significance of a factor, we divide the sum of

squares by their corresponding degrees of freedom to get mean

squares.

Page 42: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Two Factor Factorial Experiments

42

Article

Page 43: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Two Factor Factorial Experiments

43

Article

Page 44: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Two Factor Factorial Experiments

44

Article

Page 45: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

2ˆk Factorial Designs

45

• Used to determine the effect of k factors (with two alternatives or

levels).

• Easy to analyse and helps in sorting factors in the order of impact.

• With a large number of factors and levels may not be the best use of

available effort

• The first step should be to reduce the number of factors and choose

those that have significant impact.

Page 46: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

2ˆk Factorial Designs

46

Example

Nonlinear Regression Model

Page 47: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

2ˆk Factorial Designs

47

Example

Page 48: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

2ˆk Factorial Designs

48

Other Way: General

Page 49: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

2ˆk Factorial Designs

49

Allocation of Variation• The importance of a factor is measured by the proportion of the total

variation.

• denotes the mean of responses from all four experiments.

• Sums of Squares Total (SST):

Page 50: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

2ˆk Factorial Designs

50

Allocation of Variation• SST also can be represented by:

• Effect of A, B, and interaction AB.

• This fraction provides the importance of the factor A.

Page 51: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

2ˆk Factorial Designs

51

Going Back To the Example

Page 52: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

2ˆk Factorial Designs

52

Article

Page 53: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

2ˆk Factorial Designs

53

Article

Page 54: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

2ˆk Factorial Designs

54

Article

Page 55: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

2ˆk Factorial Designs

55

Article

Page 56: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

2ˆk Factorial Designs

56

Article

Page 57: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

2ˆkr Factorial Designs

57

• If each of the 2^k experiments is repeated r times.

• Makes possible, estimate experimental errors through repetitions.

Page 58: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

2ˆkr Factorial Designs

58

Difference

Page 59: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

2ˆkr Factorial Designs

59

Estimation of Experimental Errors

Page 60: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

• SSE is the variation attributed to the experimental errors.

• Designate the variance of each term.

2ˆkr Factorial Designs

60

Allocation of Variation

Page 61: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

• The confidence intervals for the effects can be computed if the

variance of the sample estimates are known.

2ˆkr Factorial Designs

61

Confidence Intervals for Effect

Standard Deviation of Errors

Standard Deviation of effects

Confidence Interval For the Effects

Page 62: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

2ˆkr Factorial Designs

62

Article

Page 63: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

2ˆkr Factorial Designs

63

Article

Page 64: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

2ˆkr Factorial Designs

64

Article

Page 65: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

● Aiming at:○ reducing the number of replications

○ Nevertheless:

■ it is possible that some combinations of factors were not

possible

○ 2k-1: half replication

○ 2k-2: one-quarter replication

2(k-p) Fractional Factorial Designs

65

Page 66: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Practical Lesson

66

Page 67: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Practical Lesson

67

Exercise 1

Page 68: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Practical Lesson

68

Exercise 1

Page 69: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

Practical Lesson

69

Exercise 1

Page 70: Group 1 Professors: Paulo Maciel/Ricardo Massa Design And

CIn.ufpe.br

References

70

• Jain, Raj. The art of computer systems performance analysis. John Wiley & Sons, 2008.

• Montgomery, Douglas C., and George C. Runger. Applied statistics and probability for engineers. John

Wiley & Sons, 2010.

• Totaro, Michael W., and Dmitri D. Perkins. "Using statistical design of experiments for analyzing mobile

ad hoc networks." Proceedings of the 8th ACM international symposium on Modeling, analysis and

simulation of wireless and mobile systems. ACM, 2005.

• Montevechi, José Arnaldo Barra, et al. "Application of design of experiments on the simulation of a

process in an automotive industry." Proceedings of the 39th conference on Winter simulation: 40 years!

The best is yet to come. IEEE Press, 2007.

• Litvinski, Oleg, and Abdelouahed Gherbi. "Openstack scheduler evaluation using design of experiment

approach." Object/Component/Service-Oriented Real-Time Distributed Computing (ISORC), 2013 IEEE

16th International Symposium on. IEEE, 2013.