CS 147: Computer Systems Performance Analysis Ratio Games and - - PowerPoint PPT Presentation

cs 147 computer systems performance analysis
SMART_READER_LITE
LIVE PREVIEW

CS 147: Computer Systems Performance Analysis Ratio Games and - - PowerPoint PPT Presentation

CS147 2015-06-15 CS 147: Computer Systems Performance Analysis Ratio Games and Introduction to Experimental Design CS 147: Computer Systems Performance Analysis Ratio Games and Introduction to Experimental Design 1 / 39 Overview CS147


slide-1
SLIDE 1

CS 147: Computer Systems Performance Analysis

Ratio Games and Introduction to Experimental Design

1 / 39

CS 147: Computer Systems Performance Analysis

Ratio Games and Introduction to Experimental Design

2015-06-15

CS147

slide-2
SLIDE 2

Overview

Ratio Games How to Lie Strategies for Winning Fair Analysis Experimental Design Introduction 2k Designs

2 / 39

Overview

Ratio Games How to Lie Strategies for Winning Fair Analysis Experimental Design Introduction 2k Designs

2015-06-15

CS147 Overview

slide-3
SLIDE 3

Ratio Games How to Lie

Ratio Games

◮ Choosing a base system ◮ Using ratio metrics ◮ Relative performance enhancement ◮ Ratio games with percentages ◮ Strategies for winning a ratio game ◮ Correct analysis of ratios

3 / 39

Ratio Games

◮ Choosing a base system ◮ Using ratio metrics ◮ Relative performance enhancement ◮ Ratio games with percentages ◮ Strategies for winning a ratio game ◮ Correct analysis of ratios

2015-06-15

CS147 Ratio Games How to Lie Ratio Games

slide-4
SLIDE 4

Ratio Games How to Lie

Choosing a Base System

◮ Run workloads on two systems ◮ Normalize performance to chosen system ◮ Take average of ratios ◮ Presto: you control what’s best

4 / 39

Choosing a Base System

◮ Run workloads on two systems ◮ Normalize performance to chosen system ◮ Take average of ratios ◮ Presto: you control what’s best

2015-06-15

CS147 Ratio Games How to Lie Choosing a Base System

slide-5
SLIDE 5

Ratio Games How to Lie

Example of Choosing a Base System

◮ (Carefully) selected Ficus results:

1 2 1/2 2/1 cp 231.8 168.6 1.37 0.73 rcp 260.6 338.3 0.77 1.30 Mean 246.2 253.45 1.07 1.02

5 / 39

Example of Choosing a Base System

◮ (Carefully) selected Ficus results:

1 2 1/2 2/1 cp 231.8 168.6 1.37 0.73 rcp 260.6 338.3 0.77 1.30 Mean 246.2 253.45 1.07 1.02

2015-06-15

CS147 Ratio Games How to Lie Example of Choosing a Base System Here, the mean running time on two replicas is worse. But by choosing the appropriate base, I can make a single replica 7% slower, or I can make two replicas 2% slower (i.e., a single replica is 2% faster).

slide-6
SLIDE 6

Ratio Games How to Lie

Why Does This Work?

◮ Expand the arithmetic:

Ra;b = ya yb Rb;b = 1.0 Pa;b = 1 n

  • Ri;a;b = 1

n y0;a y0;b + y1;a y1;b + · · ·

  • =

1 n

yi;a

1 n

y1;b = 1 Pb;a

6 / 39

Why Does This Work?

◮ Expand the arithmetic:

Ra;b = ya yb Rb;b = 1.0 Pa;b = 1 n

  • Ri;a;b = 1

n y0;a y0;b + y1;a y1;b + · · ·

  • =

1 n

yi;a

1 n

y1;b = 1 Pb;a

2015-06-15

CS147 Ratio Games How to Lie Why Does This Work? R is the performance ratio of the overall test, i.e., the total time of all tests (equivalently, their average, assuming paired tests). P is the average of ratios.

slide-7
SLIDE 7

Ratio Games How to Lie

Using Ratio Metrics

◮ Pick a metric that is itself a ratio

◮ E.g., power = throughput ÷ response time ◮ Or cost/performance

◮ Handy because division is “hidden”

7 / 39

Using Ratio Metrics

◮ Pick a metric that is itself a ratio ◮ E.g., power = throughput ÷ response time ◮ Or cost/performance ◮ Handy because division is “hidden”

2015-06-15

CS147 Ratio Games How to Lie Using Ratio Metrics This is subtler because of the hidden division.

slide-8
SLIDE 8

Ratio Games How to Lie

Relative Performance Enhancement

◮ Compare systems with incomparable bases ◮ Turn into ratios ◮ Example: compare Ficus 1 vs. 2 replicas with UFS vs. NFS (1

run on chosen day): “cp” Time Ratio Ficus 1 vs. 2 197.4 246.6 1.25 UFS vs. NFS 178.7 238.3 1.33

◮ “Proves” adding Ficus replica costs less than going from UFS

to NFS

8 / 39

Relative Performance Enhancement

◮ Compare systems with incomparable bases ◮ Turn into ratios ◮ Example: compare Ficus 1 vs. 2 replicas with UFS vs. NFS (1

run on chosen day): “cp” Time Ratio Ficus 1 vs. 2 197.4 246.6 1.25 UFS vs. NFS 178.7 238.3 1.33

◮ “Proves” adding Ficus replica costs less than going from UFS

to NFS

2015-06-15

CS147 Ratio Games How to Lie Relative Performance Enhancement

slide-9
SLIDE 9

Ratio Games How to Lie

Ratio Games with Percentages

◮ Percentages are inherently ratios

◮ But disguised ◮ So great for ratio games

◮ Example: Passing tests

Test A Runs A Passes A % B Runs B Passes B % 1 300 60 20 32 8 25 2 50 2 4 500 40 8 Total 350 62 18 532 48 9

◮ A is worse, but looks better in total line!

9 / 39

Ratio Games with Percentages

◮ Percentages are inherently ratios ◮ But disguised ◮ So great for ratio games ◮ Example: Passing tests

Test A Runs A Passes A % B Runs B Passes B % 1 300 60 20 32 8 25 2 50 2 4 500 40 8 Total 350 62 18 532 48 9

◮ A is worse, but looks better in total line!

2015-06-15

CS147 Ratio Games How to Lie Ratio Games with Percentages

slide-10
SLIDE 10

Ratio Games How to Lie

More on Percentages

◮ Psychological impact

◮ 1000% sounds bigger than 10-fold (or 11-fold) ◮ Great when both original and final performance are lousy ◮ E.g., salary went from $40 to $80 per week

◮ Small sample sizes can generate big lies

◮ “83% of dentists surveyed recommend Crest” ◮ (We asked 6 dentists; 5 liked Crest)

◮ Base should be initial, not final value

◮ E.g., price can’t drop 400% 10 / 39

More on Percentages

◮ Psychological impact ◮ 1000% sounds bigger than 10-fold (or 11-fold) ◮ Great when both original and final performance are lousy ◮ E.g., salary went from $40 to $80 per week ◮ Small sample sizes can generate big lies ◮ “83% of dentists surveyed recommend Crest” ◮ (We asked 6 dentists; 5 liked Crest) ◮ Base should be initial, not final value ◮ E.g., price can’t drop 400%

2015-06-15

CS147 Ratio Games How to Lie More on Percentages

slide-11
SLIDE 11

Ratio Games Strategies for Winning

Can You Win the Ratio Game?

◮ If one system is better by all measures, a ratio game won’t

work

◮ But recall percent-passes example ◮ And selecting the base lets you change the magnitude of the

difference

◮ If each system wins on some measures, ratio games might be

possible (but no promises)

◮ May have to try all bases 11 / 39

Can You Win the Ratio Game?

◮ If one system is better by all measures, a ratio game won’t

work

◮ But recall percent-passes example ◮ And selecting the base lets you change the magnitude of the

difference ◮ If each system wins on some measures, ratio games might be possible (but no promises)

◮ May have to try all bases

2015-06-15

CS147 Ratio Games Strategies for Winning Can You Win the Ratio Game?

slide-12
SLIDE 12

Ratio Games Strategies for Winning

How to Win Your Ratio Game

◮ For LB metrics, use your system as the base ◮ For HB metrics, use the other as a base ◮ If possible, adjust lengths of benchmarks

◮ Elongate when your system performs best ◮ Short when your system is worst ◮ This gives greater weight to your strengths 12 / 39

How to Win Your Ratio Game

◮ For LB metrics, use your system as the base ◮ For HB metrics, use the other as a base ◮ If possible, adjust lengths of benchmarks ◮ Elongate when your system performs best ◮ Short when your system is worst ◮ This gives greater weight to your strengths

2015-06-15

CS147 Ratio Games Strategies for Winning How to Win Your Ratio Game

slide-13
SLIDE 13

Ratio Games Fair Analysis

Correct Analysis of Ratios

◮ Previously covered in lecture #5 ◮ Generally, harmonic or geometric means are appropriate

◮ Or use only the raw data 13 / 39

Correct Analysis of Ratios

◮ Previously covered in lecture #5 ◮ Generally, harmonic or geometric means are appropriate ◮ Or use only the raw data

2015-06-15

CS147 Ratio Games Fair Analysis Correct Analysis of Ratios

slide-14
SLIDE 14

Experimental Design Introduction

Introduction To Experimental Design

◮ You know your metrics ◮ You know your factors ◮ You know your levels ◮ You’ve got your instrumentation and test loads ◮ Now what?

14 / 39

Introduction To Experimental Design

◮ You know your metrics ◮ You know your factors ◮ You know your levels ◮ You’ve got your instrumentation and test loads ◮ Now what?

2015-06-15

CS147 Experimental Design Introduction Introduction To Experimental Design

slide-15
SLIDE 15

Experimental Design Introduction

Goals in Experiment Design

◮ Obtain maximum information with minimum work

◮ Typically meaning minimum number of experiments

◮ More experiments aren’t better if you’re the one who has to

perform them

◮ Well-designed experiments are also easier to analyze

15 / 39

Goals in Experiment Design

◮ Obtain maximum information with minimum work ◮ Typically meaning minimum number of experiments ◮ More experiments aren’t better if you’re the one who has to

perform them

◮ Well-designed experiments are also easier to analyze

2015-06-15

CS147 Experimental Design Introduction Goals in Experiment Design

slide-16
SLIDE 16

Experimental Design Introduction

Experimental Replications

◮ System under study will be run with varying levels of different

factors, potentially with differing workloads

◮ Run with particular set of levels and other inputs is a

replication

◮ Often, need to do multiple replications with each set of levels

and other inputs

◮ Usually necessary for statistical validation 16 / 39

Experimental Replications

◮ System under study will be run with varying levels of different

factors, potentially with differing workloads

◮ Run with particular set of levels and other inputs is a

replication

◮ Often, need to do multiple replications with each set of levels

and other inputs

◮ Usually necessary for statistical validation

2015-06-15

CS147 Experimental Design Introduction Experimental Replications

slide-17
SLIDE 17

Experimental Design Introduction

Interacting Factors

◮ Some factors have completely independent effects

◮ Double the factor’s level, halve the response, regardless of

  • ther factors

◮ But effects of some factors depends on values of others

◮ Called interacting factors

◮ Presence of interacting factors complicates experimental

design

17 / 39

Interacting Factors

◮ Some factors have completely independent effects ◮ Double the factor’s level, halve the response, regardless of

  • ther factors

◮ But effects of some factors depends on values of others ◮ Called interacting factors ◮ Presence of interacting factors complicates experimental

design

2015-06-15

CS147 Experimental Design Introduction Interacting Factors

slide-18
SLIDE 18

Experimental Design Introduction

The Basic Problem in Designing Experiments

◮ You’ve chosen some number of factors

◮ May or may not interact

◮ How to design experiment that captures full range of levels?

◮ Want minimum amount of work

◮ Which combination or combinations of levels (of factors) do

you measure?

18 / 39

The Basic Problem in Designing Experiments

◮ You’ve chosen some number of factors ◮ May or may not interact ◮ How to design experiment that captures full range of levels? ◮ Want minimum amount of work ◮ Which combination or combinations of levels (of factors) do

you measure?

2015-06-15

CS147 Experimental Design Introduction The Basic Problem in Designing Experiments

slide-19
SLIDE 19

Experimental Design Introduction

Common Mistakes in Experimentation

◮ Ignoring experimental error ◮ Uncontrolled parameters ◮ Not isolating effects of different factors ◮ One-factor-at-a-time experimental designs ◮ Interactions ignored ◮ Designs require too many experiments

19 / 39

Common Mistakes in Experimentation

◮ Ignoring experimental error ◮ Uncontrolled parameters ◮ Not isolating effects of different factors ◮ One-factor-at-a-time experimental designs ◮ Interactions ignored ◮ Designs require too many experiments

2015-06-15

CS147 Experimental Design Introduction Common Mistakes in Experimentation

slide-20
SLIDE 20

Experimental Design Introduction

Types of Experimental Designs

◮ Simple designs ◮ Full factorial design ◮ Fractional factorial design

20 / 39

Types of Experimental Designs

◮ Simple designs ◮ Full factorial design ◮ Fractional factorial design

2015-06-15

CS147 Experimental Design Introduction Types of Experimental Designs This is all we’ll cover, but there are other possibilities.

slide-21
SLIDE 21

Experimental Design Introduction

Simple Designs

◮ Vary one factor at a time ◮ For k factors with ith factor having ni levels, number of

experiments needed is: n = 1 +

k

  • i=1

(ni − 1)

◮ Assumes factors don’t interact

◮ Even then, more effort than required

◮ Don’t use it, usually

21 / 39

Simple Designs

◮ Vary one factor at a time ◮ For k factors with ith factor having ni levels, number of

experiments needed is: n = 1 +

k

  • i=1

(ni − 1)

◮ Assumes factors don’t interact ◮ Even then, more effort than required ◮ Don’t use it, usually

2015-06-15

CS147 Experimental Design Introduction Simple Designs

slide-22
SLIDE 22

Experimental Design Introduction

Full Factorial Designs

◮ Test every possible combination of factors’ levels ◮ For k factors with ith factor having ni levels:

n =

k

  • i=1

ni

◮ Captures full information about interaction ◮ But a huge amount of work

22 / 39

Full Factorial Designs

◮ Test every possible combination of factors’ levels ◮ For k factors with ith factor having ni levels:

n =

k

  • i=1

ni

◮ Captures full information about interaction ◮ But a huge amount of work

2015-06-15

CS147 Experimental Design Introduction Full Factorial Designs

slide-23
SLIDE 23

Experimental Design Introduction

Reducing the Work in Full Factorial Designs

◮ Reduce number of levels per factor

◮ Generally good choice ◮ Especially if you know which factors are most important ◮ Use more levels for those

◮ Reduce number of factors

◮ But don’t drop important ones!

◮ Use fractional factorial designs

23 / 39

Reducing the Work in Full Factorial Designs

◮ Reduce number of levels per factor ◮ Generally good choice ◮ Especially if you know which factors are most important ◮ Use more levels for those ◮ Reduce number of factors ◮ But don’t drop important ones! ◮ Use fractional factorial designs

2015-06-15

CS147 Experimental Design Introduction Reducing the Work in Full Factorial Designs

slide-24
SLIDE 24

Experimental Design Introduction

Fractional Factorial Designs

◮ Only measure some combination of levels of the factors ◮ Must design carefully to best capture any possible interactions ◮ Less work, but more chance of inaccuracy ◮ Especially useful if some factors are known to not interact ◮ Covered later

24 / 39

Fractional Factorial Designs

◮ Only measure some combination of levels of the factors ◮ Must design carefully to best capture any possible interactions ◮ Less work, but more chance of inaccuracy ◮ Especially useful if some factors are known to not interact ◮ Covered later

2015-06-15

CS147 Experimental Design Introduction Fractional Factorial Designs

slide-25
SLIDE 25

Experimental Design 2k Designs

2k Factorial Designs

◮ Used to determine effect of k factors

◮ Each with two alternatives or levels

◮ Often used as preliminary to larger performance study

◮ Each factor measured at its maximum and minimum level ◮ Might offer insight on importance and interaction of various

factors

25 / 39

2k Factorial Designs

◮ Used to determine effect of k factors ◮ Each with two alternatives or levels ◮ Often used as preliminary to larger performance study ◮ Each factor measured at its maximum and minimum level ◮ Might offer insight on importance and interaction of various factors

2015-06-15

CS147 Experimental Design 2k Designs 2k Factorial Designs

slide-26
SLIDE 26

Experimental Design 2k Designs

Unidirectional Effects

◮ Effects that only increase as level of a factor increases

◮ Or vice versa

◮ If system known to have unidirectional effects, 2k factorial

design at minimum and maximum levels is useful

◮ Shows whether factor has significant effect

26 / 39

Unidirectional Effects

◮ Effects that only increase as level of a factor increases ◮ Or vice versa ◮ If system known to have unidirectional effects, 2k factorial

design at minimum and maximum levels is useful

◮ Shows whether factor has significant effect

2015-06-15

CS147 Experimental Design 2k Designs Unidirectional Effects

slide-27
SLIDE 27

Experimental Design 2k Designs

22 Factorial Designs

◮ Two factors with two levels each ◮ Simplest kind of factorial experiment design ◮ Concepts developed here generalize ◮ Regression can easily be used

27 / 39

22 Factorial Designs

◮ Two factors with two levels each ◮ Simplest kind of factorial experiment design ◮ Concepts developed here generalize ◮ Regression can easily be used

2015-06-15

CS147 Experimental Design 2k Designs 22 Factorial Designs

slide-28
SLIDE 28

Experimental Design 2k Designs

22 Factorial Design Example

◮ Consider parallel operating system ◮ Goal is fastest possible completion of a given program ◮ Quality usually expressed as speedup ◮ We’ll use runtime as metric (simpler but equivalent)

28 / 39

22 Factorial Design Example

◮ Consider parallel operating system ◮ Goal is fastest possible completion of a given program ◮ Quality usually expressed as speedup ◮ We’ll use runtime as metric (simpler but equivalent)

2015-06-15

CS147 Experimental Design 2k Designs 22 Factorial Design Example

slide-29
SLIDE 29

Experimental Design 2k Designs

Factors and Levels for Parallel OS

◮ First factor: number of CPUs

◮ Vary between 8 and 64

◮ Second factor: use of dynamic load management

◮ Migrates work between nodes as load changes

◮ Other factors possible, but ignore them for now

29 / 39

Factors and Levels for Parallel OS

◮ First factor: number of CPUs ◮ Vary between 8 and 64 ◮ Second factor: use of dynamic load management ◮ Migrates work between nodes as load changes ◮ Other factors possible, but ignore them for now

2015-06-15

CS147 Experimental Design 2k Designs Factors and Levels for Parallel OS

slide-30
SLIDE 30

Experimental Design 2k Designs

Defining Variables for 22 Factorial OS Example

xA =

  • 1 if 8 nodes

+1 if 64 nodes xB =

  • 1 if no dynamic load management

+1 if dynamic load management

30 / 39

Defining Variables for 22 Factorial OS Example

xA =

  • 1 if 8 nodes

+1 if 64 nodes xB =

  • 1 if no dynamic load management

+1 if dynamic load management

2015-06-15

CS147 Experimental Design 2k Designs Defining Variables for 22 Factorial OS Example

slide-31
SLIDE 31

Experimental Design 2k Designs

Sample Data for Parallel OS

Single runs of one benchmark (in seconds):

8 Nodes 64 Nodes NO DLM 820 217 DLM 776 197

31 / 39

Sample Data for Parallel OS

Single runs of one benchmark (in seconds): 8 Nodes 64 Nodes NO DLM 820 217 DLM 776 197

2015-06-15

CS147 Experimental Design 2k Designs Sample Data for Parallel OS

slide-32
SLIDE 32

Experimental Design 2k Designs

Regression Model for Example

◮ y = q0 + qAxA + qBxB + qABxAxB ◮ Note that model is nonlinear!

820 = q0 − qA − qB + qAB 217 = q0 + qA − qB − qAB 776 = q0 − qA + qB − qAB 197 = q0 + qA + qB + qAB

32 / 39

Regression Model for Example

◮ y = q0 + qAxA + qBxB + qABxAxB ◮ Note that model is nonlinear!

820 = q0 − qA − qB + qAB 217 = q0 + qA − qB − qAB 776 = q0 − qA + qB − qAB 197 = q0 + qA + qB + qAB

2015-06-15

CS147 Experimental Design 2k Designs Regression Model for Example

slide-33
SLIDE 33

Experimental Design 2k Designs

Solving the Equations

◮ 4 equations in 4 unknowns ◮ q0 = 502.5 ◮ qA = −295.5 ◮ qB = −16 ◮ qAB = 6 ◮ So y = 502.5 − 295.5xA − 16xB + 6xAxB

33 / 39

Solving the Equations

◮ 4 equations in 4 unknowns ◮ q0 = 502.5 ◮ qA = −295.5 ◮ qB = −16 ◮ qAB = 6 ◮ So y = 502.5 − 295.5xA − 16xB + 6xAxB

2015-06-15

CS147 Experimental Design 2k Designs Solving the Equations

slide-34
SLIDE 34

Experimental Design 2k Designs

The Sign Table Method

◮ Write problem in tabular form:

I A B AB y 1

  • 1
  • 1

1 820 1 1

  • 1
  • 1

217 1

  • 1

1

  • 1

776 1 1 1 1 197 2010

  • 1182
  • 64

24 Total 502.5

  • 295.5
  • 16

6 Total/4

34 / 39

The Sign Table Method

◮ Write problem in tabular form:

I A B AB y 1

  • 1
  • 1

1 820 1 1

  • 1
  • 1

217 1

  • 1

1

  • 1

776 1 1 1 1 197 2010

  • 1182
  • 64

24 Total 502.5

  • 295.5
  • 16

6 Total/4

2015-06-15

CS147 Experimental Design 2k Designs The Sign Table Method

slide-35
SLIDE 35

Experimental Design 2k Designs

Allocation of Variation for 22 Model

◮ Calculate the sample variance of y:

s2

y =

22

i=1(yi − y)2

22 − 1

◮ Numerator is SST: total variation

SST = 22q2

A + 22q2 B + 22q2 AB ◮ SST explains causes of variation in y

35 / 39

Allocation of Variation for 22 Model

◮ Calculate the sample variance of y:

s2

y =

22

i=1(yi − y)2

22 − 1

◮ Numerator is SST: total variation

SST = 22q2

A + 22q2 B + 22q2 AB ◮ SST explains causes of variation in y

2015-06-15

CS147 Experimental Design 2k Designs Allocation of Variation for 22 Model Derivation of SST is in book, pp. 287–288. Note that q0 is exactly the sample mean y. Thus, yi − y = qAxAi + qBxBi + qABxAixBi. Squaring the latter gives the squares of the individual terms, plus product terms—but the product terms sum to zero because the columns in the sign matrix are orthogonal.

slide-36
SLIDE 36

Experimental Design 2k Designs

Terms in the SST

◮ 22q2 A is variation explained by effect of A: SSA ◮ 22q2 B is variation explained by effect of B: SSB ◮ 22q2 AB is variation explained by interaction between A and B:

SSAB

◮ SST = SSA + SSB + SSAB ◮ In each case, divide SSx by SST to get percent of variation

explained by that factor

◮ Useful for deciding which factors are important 36 / 39

Terms in the SST

◮ 22q2 A is variation explained by effect of A: SSA ◮ 22q2 B is variation explained by effect of B: SSB ◮ 22q2 AB is variation explained by interaction between A and B:

SSAB

◮ SST = SSA + SSB + SSAB ◮ In each case, divide SSx by SST to get percent of variation

explained by that factor

◮ Useful for deciding which factors are important

2015-06-15

CS147 Experimental Design 2k Designs Terms in the SST Note that variation is not variance; computing contribution of each factor to variance is hard.

slide-37
SLIDE 37

Experimental Design 2k Designs

Variations in Our Example

◮ SST = 350449 ◮ SSA = 349281 ◮ SSB = 1024 ◮ SSAB = 144 ◮ Now easy to calculate fraction of total variation caused by

each effect:

◮ Fraction explained by A is 99.67% ◮ Fraction explained by B is 0.29% ◮ Fraction explained by interaction of A and B is 0.04%

◮ So almost all variation comes from number of nodes ◮ If you want to run faster, apply more nodes, don’t turn on

dynamic load management

37 / 39

Variations in Our Example

◮ SST = 350449 ◮ SSA = 349281 ◮ SSB = 1024 ◮ SSAB = 144 ◮ Now easy to calculate fraction of total variation caused by

each effect:

◮ Fraction explained by A is 99.67% ◮ Fraction explained by B is 0.29% ◮ Fraction explained by interaction of A and B is 0.04% ◮ So almost all variation comes from number of nodes ◮ If you want to run faster, apply more nodes, don’t turn on

dynamic load management

2015-06-15

CS147 Experimental Design 2k Designs Variations in Our Example In this simple example, the same conclusion could have been drawn simply by observing the numbers. But that’s not always the case.

slide-38
SLIDE 38

Experimental Design 2k Designs

General 2k Factorial Designs

◮ Used to explain effects of k factors, each with two alternatives

  • r levels

◮ 22 factorial designs are a special case ◮ Same methods extend to more general case ◮ Many more interactions between pairs (and trios, etc.) of

factors

38 / 39

General 2k Factorial Designs

◮ Used to explain effects of k factors, each with two alternatives

  • r levels

◮ 22 factorial designs are a special case ◮ Same methods extend to more general case ◮ Many more interactions between pairs (and trios, etc.) of

factors

2015-06-15

CS147 Experimental Design 2k Designs General 2k Factorial Designs

slide-39
SLIDE 39

Experimental Design 2k Designs

Sample 23 Experiment

◮ Sign table columns A, B, C are binary count; interactions are

products of appropriate columns: y I A B C AB AC BC ABC 14 1

  • 1
  • 1
  • 1

1 1 1

  • 1

22 1 1

  • 1
  • 1
  • 1
  • 1

1 1 10 1

  • 1

1

  • 1
  • 1

1

  • 1

1 34 1 1 1

  • 1

1

  • 1
  • 1
  • 1

46 1

  • 1
  • 1

1 1

  • 1
  • 1

1 58 1 1

  • 1

1

  • 1

1

  • 1
  • 1

50 1

  • 1

1 1

  • 1
  • 1

1

  • 1

86 1 1 1 1 1 1 1 1 T/8 40 10 5 20 5 2 3 1 % 18 4.4 71 4.4 0.7 1.6 0.2

◮ SST = 564

39 / 39

Sample 23 Experiment

◮ Sign table columns A, B, C are binary count; interactions are

products of appropriate columns: y I A B C AB AC BC ABC 14 1

  • 1
  • 1
  • 1

1 1 1

  • 1

22 1 1

  • 1
  • 1
  • 1
  • 1

1 1 10 1

  • 1

1

  • 1
  • 1

1

  • 1

1 34 1 1 1

  • 1

1

  • 1
  • 1
  • 1

46 1

  • 1
  • 1

1 1

  • 1
  • 1

1 58 1 1

  • 1

1

  • 1

1

  • 1
  • 1

50 1

  • 1

1 1

  • 1
  • 1

1

  • 1

86 1 1 1 1 1 1 1 1 T/8 40 10 5 20 5 2 3 1 % 18 4.4 71 4.4 0.7 1.6 0.2

◮ SST = 564

2015-06-15

CS147 Experimental Design 2k Designs Sample 23 Experiment