CS 147: Computer Systems Performance Analysis Replicated Binary - - PowerPoint PPT Presentation

cs 147 computer systems performance analysis
SMART_READER_LITE
LIVE PREVIEW

CS 147: Computer Systems Performance Analysis Replicated Binary - - PowerPoint PPT Presentation

CS147 2015-06-15 CS 147: Computer Systems Performance Analysis Replicated Binary Designs CS 147: Computer Systems Performance Analysis Replicated Binary Designs 1 / 44 Overview CS147 Overview 2015-06-15 2 k r Designs 2 2 r Designs


slide-1
SLIDE 1

CS 147: Computer Systems Performance Analysis

Replicated Binary Designs

1 / 44

CS 147: Computer Systems Performance Analysis

Replicated Binary Designs

2015-06-15

CS147

slide-2
SLIDE 2

Overview

2kr Designs 22r Designs Effects Analysis of Variance Confidence Intervals Predictions Verification Multiplicative Models Example General 2kr Designs

2 / 44

Overview

2kr Designs 22r Designs Effects Analysis of Variance Confidence Intervals Predictions Verification Multiplicative Models Example General 2kr Designs

2015-06-15

CS147 Overview

slide-3
SLIDE 3

2k r Designs

2k Factorial Designs With Replications

◮ 2k factorial designs do not allow for estimation of

experimental error

◮ No experiment is ever repeated

◮ Error is usually present

◮ And usually important

◮ Handle issue by replicating experiments ◮ But which to replicate, and how often?

3 / 44

2k Factorial Designs With Replications

◮ 2k factorial designs do not allow for estimation of

experimental error

◮ No experiment is ever repeated ◮ Error is usually present ◮ And usually important ◮ Handle issue by replicating experiments ◮ But which to replicate, and how often?

2015-06-15

CS147 2kr Designs 2k Factorial Designs With Replications

slide-4
SLIDE 4

2k r Designs

2kr Factorial Designs

◮ Replicate each experiment r times ◮ Allows quantifying experimental error ◮ Again, easiest to first look at case of only 2 factors

4 / 44

2kr Factorial Designs

◮ Replicate each experiment r times ◮ Allows quantifying experimental error ◮ Again, easiest to first look at case of only 2 factors

2015-06-15

CS147 2kr Designs 2kr Factorial Designs

slide-5
SLIDE 5

2k r Designs 22r Designs

22r Factorial Designs

◮ 2 factors, 2 levels each, with r replications at each of the four

combinations

◮ y = q0 + qAxA + qBxB + qABxAxB + e ◮ Now we need to compute effects, estimate errors, and

allocate variation

◮ Can also produce confidence intervals for effects and

predicted responses

5 / 44

22r Factorial Designs

◮ 2 factors, 2 levels each, with r replications at each of the four

combinations

◮ y = q0 + qAxA + qBxB + qABxAxB + e ◮ Now we need to compute effects, estimate errors, and

allocate variation

◮ Can also produce confidence intervals for effects and

predicted responses

2015-06-15

CS147 2kr Designs 22r Designs 22r Factorial Designs

slide-6
SLIDE 6

2k r Designs Effects

Computing Effects for 22r Factorial Experiments

◮ We can use sign table, as before ◮ But instead of single observations, regress off mean of the r

  • bservations

◮ Compute errors for each replication using similar tabular

method

◮ Sum of errors must be zero ◮ eij = yij − ˆ

yi

◮ Similar methods used for allocation of variance and

calculating confidence intervals

6 / 44

Computing Effects for 22r Factorial Experiments

◮ We can use sign table, as before ◮ But instead of single observations, regress off mean of the r

  • bservations

◮ Compute errors for each replication using similar tabular

method

◮ Sum of errors must be zero ◮ eij = yij − ˆ

yi ◮ Similar methods used for allocation of variance and calculating confidence intervals

2015-06-15

CS147 2kr Designs Effects Computing Effects for 22r Factorial Experiments The tabular method for errors is as follows: after computing the effects, multiply the effects by the sign table to get the estimated

  • response. Enter that into the table and then subtractfrom each

measured response to get errors.

slide-7
SLIDE 7

2k r Designs Effects

Example of 22r Factorial Design With Replications

◮ Same parallel system as before, but with 4 replications at

each point (r = 4)

◮ No DLM, 8 nodes: 820, 822, 813, 809 ◮ DLM, 8 nodes: 776, 798, 750, 755 ◮ No DLM, 64 nodes: 217, 228, 215, 221 ◮ DLM, 64 nodes: 197, 180, 220, 185

7 / 44

Example of 22r Factorial Design With Replications

◮ Same parallel system as before, but with 4 replications at

each point (r = 4)

◮ No DLM, 8 nodes: 820, 822, 813, 809 ◮ DLM, 8 nodes: 776, 798, 750, 755 ◮ No DLM, 64 nodes: 217, 228, 215, 221 ◮ DLM, 64 nodes: 197, 180, 220, 185

2015-06-15

CS147 2kr Designs Effects Example of 22r Factorial Design With Replications

slide-8
SLIDE 8

2k r Designs Effects

22r Factorial Example Analysis Matrix

I A B AB y Mean 1

  • 1
  • 1

1

(820,822,813,809)

816.00 1 1

  • 1
  • 1

(217,228,215,221)

220.25 1

  • 1

1

  • 1

(776,798,750,755)

769.75 1 1 1 1

(197,180,220,185)

195.50 2001.5

  • 1170.0
  • 71.00

21.5 Total 500.4

  • 292.5
  • 17.75

5.4 Total/4 q0 = 500.40 qA = -292.5 qB = -17.75 qAB = 5.4

8 / 44

22r Factorial Example Analysis Matrix

I A B AB y Mean 1

  • 1
  • 1

1 (820,822,813,809) 816.00 1 1

  • 1
  • 1

(217,228,215,221) 220.25 1

  • 1

1

  • 1

(776,798,750,755) 769.75 1 1 1 1 (197,180,220,185) 195.50 2001.5

  • 1170.0
  • 71.00

21.5 Total 500.4

  • 292.5
  • 17.75

5.4 Total/4 q0 = 500.40 qA = -292.5 qB = -17.75 qAB = 5.4

2015-06-15

CS147 2kr Designs Effects 22r Factorial Example Analysis Matrix

slide-9
SLIDE 9

2k r Designs Effects

Estimation of Errors for 22r Factorial Example

◮ Figure differences between predicted and observed values for

each replication: eij = yij − ˆ yi = yij − q0 − qAxAi − qBxBi − qABxAixBi

◮ Now calculate SSE:

SSE =

22

  • i=1

r

  • j=1

e2

ij = 2606

9 / 44

Estimation of Errors for 22r Factorial Example

◮ Figure differences between predicted and observed values for

each replication: eij = yij − ˆ yi = yij − q0 − qAxAi − qBxBi − qABxAixBi

◮ Now calculate SSE:

SSE =

22

  • i=1

r

  • j=1

e2

ij = 2606

2015-06-15

CS147 2kr Designs Effects Estimation of Errors for 22r Factorial Example

slide-10
SLIDE 10

2k r Designs Analysis of Variance

Allocating Variation

◮ We can determine percentage of variation due to each

factor’s impact

◮ Just like 2k designs without replication

◮ But we can also isolate variation due to experimental errors ◮ Methods are similar to other regression techniques for

allocating variation

10 / 44

Allocating Variation

◮ We can determine percentage of variation due to each

factor’s impact

◮ Just like 2k designs without replication ◮ But we can also isolate variation due to experimental errors ◮ Methods are similar to other regression techniques for

allocating variation

2015-06-15

CS147 2kr Designs Analysis of Variance Allocating Variation

slide-11
SLIDE 11

2k r Designs Analysis of Variance

Variation Allocation in Example

◮ We’ve already figured SSE ◮ We also need SST, SSA, SSB, and SSAB

SST =

  • i,j

(yij − y··)2

◮ Also, SST = SSA + SSB + SSAB + SSE ◮ Use same formulae as before for SSA, SSB, and SSAB

11 / 44

Variation Allocation in Example

◮ We’ve already figured SSE ◮ We also need SST, SSA, SSB, and SSAB

SST =

  • i,j

(yij − y··)2

◮ Also, SST = SSA + SSB + SSAB + SSE ◮ Use same formulae as before for SSA, SSB, and SSAB

2015-06-15

CS147 2kr Designs Analysis of Variance Variation Allocation in Example

slide-12
SLIDE 12

2k r Designs Analysis of Variance

Sums of Squares for Example

◮ SST = SSY − SS0 = 1,377,009.75 ◮ SSA = 1,368,900 ◮ SSB = 5041 ◮ SSAB = 462.25 ◮ Percentage of variation for A is 99.4% ◮ Percentage of variation for B is 0.4% ◮ Percentage of variation for A/B interaction is 0.03% ◮ And 0.2% (approx.) is due to experimental errors

12 / 44

Sums of Squares for Example

◮ SST = SSY − SS0 = 1,377,009.75 ◮ SSA = 1,368,900 ◮ SSB = 5041 ◮ SSAB = 462.25 ◮ Percentage of variation for A is 99.4% ◮ Percentage of variation for B is 0.4% ◮ Percentage of variation for A/B interaction is 0.03% ◮ And 0.2% (approx.) is due to experimental errors

2015-06-15

CS147 2kr Designs Analysis of Variance Sums of Squares for Example

slide-13
SLIDE 13

2k r Designs Confidence Intervals

Confidence Intervals for Effects

◮ Computed effects are random variables ◮ Thus would like to specify how confident we are that they are

correct

◮ Usual confidence-interval methods ◮ First, must figure Mean Square of Errors

s2

e =

SSE 22(r − 1)

◮ r − 1 is because errors add up to zero

⇒ Only r − 1 can be chosen independently

13 / 44

Confidence Intervals for Effects

◮ Computed effects are random variables ◮ Thus would like to specify how confident we are that they are

correct

◮ Usual confidence-interval methods ◮ First, must figure Mean Square of Errors

s2

e =

SSE 22(r − 1)

◮ r − 1 is because errors add up to zero ⇒ Only r − 1 can be chosen independently

2015-06-15

CS147 2kr Designs Confidence Intervals Confidence Intervals for Effects

slide-14
SLIDE 14

2k r Designs Confidence Intervals

Calculating Variances of Effects

◮ Variance (due to errors) of all effects is the same:

s2

q0 = s2 qA = s2 qB = s2 qAB = s2 e

22r

◮ So standard deviation is also the same ◮ In calculations, use t- or z-value for 22(r − 1) degrees of

freedom

14 / 44

Calculating Variances of Effects

◮ Variance (due to errors) of all effects is the same:

s2

q0 = s2 qA = s2 qB = s2 qAB = s2 e

22r

◮ So standard deviation is also the same ◮ In calculations, use t- or z-value for 22(r − 1) degrees of

freedom

2015-06-15

CS147 2kr Designs Confidence Intervals Calculating Variances of Effects

slide-15
SLIDE 15

2k r Designs Confidence Intervals

Calculating Confidence Intervals for Example

◮ At 90% level, using t-value for 12 degrees of freedom, 1.782 ◮ Standard deviation of effects is 3.68 ◮ Confidence intervals are qi ∓ (1.782)(3.68) ◮ q0 is (493.8,506.9) ◮ qA is (-299.1,-285.9) ◮ qB is (-24.3,-11.2) ◮ qAB is (-1.2,11.9)

15 / 44

Calculating Confidence Intervals for Example

◮ At 90% level, using t-value for 12 degrees of freedom, 1.782 ◮ Standard deviation of effects is 3.68 ◮ Confidence intervals are qi ∓ (1.782)(3.68) ◮ q0 is (493.8,506.9) ◮ qA is (-299.1,-285.9) ◮ qB is (-24.3,-11.2) ◮ qAB is (-1.2,11.9)

2015-06-15

CS147 2kr Designs Confidence Intervals Calculating Confidence Intervals for Example

slide-16
SLIDE 16

2k r Designs Predictions

Predicted Responses

◮ We already have predicted all the means we can predict from

this kind of model

◮ We measured four, we can “predict” four ◮ However, we can predict how close we would get to true

sample mean if we ran m more experiments

16 / 44

Predicted Responses

◮ We already have predicted all the means we can predict from

this kind of model

◮ We measured four, we can “predict” four ◮ However, we can predict how close we would get to true

sample mean if we ran m more experiments

2015-06-15

CS147 2kr Designs Predictions Predicted Responses

slide-17
SLIDE 17

2k r Designs Predictions

Formula for Predicted Means

◮ For m future experiments, predicted mean is

ˆ y ∓ t[1−α/2;22(r−1)]sˆ

ym

Where syˆ

ym = se

1 neff + 1 m 1/2 neff = Total number of runs 1 + sum of DFs of parameters used in ˆ y

17 / 44

Formula for Predicted Means

◮ For m future experiments, predicted mean is

ˆ y ∓ t[1−α/2;22(r−1)]sˆ

ym

Where syˆ

ym = se

1 neff + 1 m 1/2 neff = Total number of runs 1 + sum of DFs of parameters used in ˆ y

2015-06-15

CS147 2kr Designs Predictions Formula for Predicted Means

slide-18
SLIDE 18

2k r Designs Predictions

Example of Predicted Means

◮ What would we predict as confidence interval of response for

no dynamic load management at 8 nodes for 7 more tests? sˆ

y7 = 3.68

  • 1

16/5 + 1 7 1/2 = 2.49

◮ 90% confidence interval is (811.6,820.4) ◮ We’re 90% confident that mean would be in this range

18 / 44

Example of Predicted Means

◮ What would we predict as confidence interval of response for

no dynamic load management at 8 nodes for 7 more tests? sˆ

y7 = 3.68

  • 1

16/5 + 1 7 1/2 = 2.49

◮ 90% confidence interval is (811.6,820.4) ◮ We’re 90% confident that mean would be in this range

2015-06-15

CS147 2kr Designs Predictions Example of Predicted Means

slide-19
SLIDE 19

2k r Designs Verification

Visual Tests for Verifying Assumptions

◮ What assumptions have we been making?

◮ Model errors are statistically independent ◮ Model errors are additive ◮ Errors are normally distributed ◮ Errors have constant standard deviation ◮ Effects of errors are additive

◮ All boils down to independent, normally distributed

  • bservations with constant variance

19 / 44

Visual Tests for Verifying Assumptions

◮ What assumptions have we been making? ◮ Model errors are statistically independent ◮ Model errors are additive ◮ Errors are normally distributed ◮ Errors have constant standard deviation ◮ Effects of errors are additive ◮ All boils down to independent, normally distributed

  • bservations with constant variance

2015-06-15

CS147 2kr Designs Verification Visual Tests for Verifying Assumptions

slide-20
SLIDE 20

2k r Designs Verification

Testing for Independent Errors

◮ Compute residuals and make scatter plot ◮ Trends indicate dependence of errors on factor levels

◮ But if residuals order of magnitude below predicted response,

trends can be ignored

◮ Usually good idea to plot residuals vs. experiment number

20 / 44

Testing for Independent Errors

◮ Compute residuals and make scatter plot ◮ Trends indicate dependence of errors on factor levels ◮ But if residuals order of magnitude below predicted response, trends can be ignored ◮ Usually good idea to plot residuals vs. experiment number

2015-06-15

CS147 2kr Designs Verification Testing for Independent Errors

slide-21
SLIDE 21

2k r Designs Verification

Example Plot of Residuals vs. Predicted Response

200 400 600 800 1000

Predicted Response

  • 20
  • 10

10 20 30

Error Residual

21 / 44

Example Plot of Residuals vs. Predicted Response

200 400 600 800 1000 Predicted Response

  • 20
  • 10

10 20 30 Error Residual

2015-06-15

CS147 2kr Designs Verification Example Plot of Residuals vs. Predicted Response

slide-22
SLIDE 22

2k r Designs Verification

Example Plot of Residuals vs. Experiment Number

5 10 15

Experiment Number

  • 20
  • 10

10 20 30

Error Residual

22 / 44

Example Plot of Residuals vs. Experiment Number

5 10 15 Experiment Number

  • 20
  • 10

10 20 30 Error Residual

2015-06-15

CS147 2kr Designs Verification Example Plot of Residuals vs. Experiment Number

slide-23
SLIDE 23

2k r Designs Verification

Testing for Normally Distributed Errors

◮ As usual, do quantile-quantile chart against normal

distribution

◮ If close to linear, normality assumption is good

23 / 44

Testing for Normally Distributed Errors

◮ As usual, do quantile-quantile chart against normal

distribution

◮ If close to linear, normality assumption is good

2015-06-15

CS147 2kr Designs Verification Testing for Normally Distributed Errors

slide-24
SLIDE 24

2k r Designs Verification

Quantile-Quantile Plot for Example

  • 2
  • 1

1 2

  • 20
  • 10

10 20 30

24 / 44

Quantile-Quantile Plot for Example

  • 2
  • 1

1 2

  • 20
  • 10

10 20 30

2015-06-15

CS147 2kr Designs Verification Quantile-Quantile Plot for Example

slide-25
SLIDE 25

2k r Designs Verification

Assumption of Constant Variance

◮ Checking homoscedasticity ◮ Go back to scatter plot of residuals vs. prediction and check

for even spread

25 / 44

Assumption of Constant Variance

◮ Checking homoscedasticity ◮ Go back to scatter plot of residuals vs. prediction and check

for even spread

2015-06-15

CS147 2kr Designs Verification Assumption of Constant Variance

slide-26
SLIDE 26

2k r Designs Verification

The Scatter Plot, Again

200 400 600 800 1000

Predicted Response

  • 20
  • 10

10 20 30

Error Residual

26 / 44

The Scatter Plot, Again

200 400 600 800 1000 Predicted Response

  • 20
  • 10

10 20 30 Error Residual

2015-06-15

CS147 2kr Designs Verification The Scatter Plot, Again

slide-27
SLIDE 27

Multiplicative Models

Multiplicative Models for 22r Experiments

◮ Assumptions of additive models ◮ Example of a multiplicative situation ◮ Handling a multiplicative model ◮ When to choose multiplicative model ◮ Multiplicative example

27 / 44

Multiplicative Models for 22r Experiments

◮ Assumptions of additive models ◮ Example of a multiplicative situation ◮ Handling a multiplicative model ◮ When to choose multiplicative model ◮ Multiplicative example

2015-06-15

CS147 Multiplicative Models Multiplicative Models for 22r Experiments

slide-28
SLIDE 28

Multiplicative Models

Assumptions of Additive Models

◮ Previous analysis used additive model:

◮ yij = q0 + qAxA + qBxB + qABxAxB + eij

◮ Assumes all effects are additive:

◮ Factors ◮ Interactions ◮ Errors

◮ This assumption must be validated!

28 / 44

Assumptions of Additive Models

◮ Previous analysis used additive model: ◮ yij = q0 + qAxA + qBxB + qABxAxB + eij ◮ Assumes all effects are additive: ◮ Factors ◮ Interactions ◮ Errors ◮ This assumption must be validated!

2015-06-15

CS147 Multiplicative Models Assumptions of Additive Models

slide-29
SLIDE 29

Multiplicative Models

Example of a Multiplicative Situation

◮ Testing processors with different workloads ◮ Most common multiplicative case ◮ Consider 2 processors, 2 workloads

◮ Use 22r design

◮ Response is time to execute wj instructions on processor that

requires vi seconds/instruction

◮ Without interactions, time is yij = viwj

29 / 44

Example of a Multiplicative Situation

◮ Testing processors with different workloads ◮ Most common multiplicative case ◮ Consider 2 processors, 2 workloads ◮ Use 22r design ◮ Response is time to execute wj instructions on processor that

requires vi seconds/instruction

◮ Without interactions, time is yij = viwj

2015-06-15

CS147 Multiplicative Models Example of a Multiplicative Situation

slide-30
SLIDE 30

Multiplicative Models

Handling a Multiplicative Model

◮ Take logarithm of both sides:

yij = viwj so log yij = log vi + log wj

◮ Now easy to solve using previous methods ◮ Resulting model is:

y = 10q010qAxA10qBxB10qABxAB10e

30 / 44

Handling a Multiplicative Model

◮ Take logarithm of both sides:

yij = viwj so log yij = log vi + log wj

◮ Now easy to solve using previous methods ◮ Resulting model is:

y = 10q010qAxA10qBxB10qABxAB10e

2015-06-15

CS147 Multiplicative Models Handling a Multiplicative Model

slide-31
SLIDE 31

Multiplicative Models

Meaning of a Multiplicative Model

◮ Model is 10q010qAxA10qBxB10qABxAB10e ◮ Here, µA = 10qA is inverse of ratio of MIPS ratings of

processors; µB = 10qB is ratio of workload sizes

◮ Antilog of q0 is geometric mean of responses:

˙ y = 10q0 =

n

√y1y2 · · · yn where n = 22r

31 / 44

Meaning of a Multiplicative Model

◮ Model is 10q010qAxA10qBxB10qABxAB10e ◮ Here, µA = 10qA is inverse of ratio of MIPS ratings of

processors; µB = 10qB is ratio of workload sizes

◮ Antilog of q0 is geometric mean of responses:

˙ y = 10q0 =

n

√y1y2 · · · yn where n = 22r

2015-06-15

CS147 Multiplicative Models Meaning of a Multiplicative Model

slide-32
SLIDE 32

Multiplicative Models

When to Choose a Multiplicative Model?

◮ Physical considerations (see previous slides) ◮ Range of y is large

◮ Making arithmetic mean unreasonable ◮ Calling for log transformation

◮ Plot of residuals shows large values and increasing spread ◮ Quantile-quantile plot doesn’t look like normal distribution

32 / 44

When to Choose a Multiplicative Model?

◮ Physical considerations (see previous slides) ◮ Range of y is large ◮ Making arithmetic mean unreasonable ◮ Calling for log transformation ◮ Plot of residuals shows large values and increasing spread ◮ Quantile-quantile plot doesn’t look like normal distribution

2015-06-15

CS147 Multiplicative Models When to Choose a Multiplicative Model?

slide-33
SLIDE 33

Multiplicative Models Example

Multiplicative Example

◮ Consider additive model of processors A1 & A2 running

benchmarks B1 and B2: y1 y2 y3 Mean I A B AB 85.1 79.5147.9104.167 1

  • 1
  • 1

1 0.8911.0471.072 1.003 1 1

  • 1
  • 1

0.9550.9331.122 1.003 1

  • 1

1

  • 1

0.0150.0130.012 0.013 1 1 1 1 Total 106.19-104.15-104.15102.17 Total/4 26.55 -26.04 -26.04 25.54

◮ Note large range of y values

33 / 44

Multiplicative Example

◮ Consider additive model of processors A1 & A2 running

benchmarks B1 and B2: y1 y2 y3 Mean I A B AB 85.1 79.5147.9104.167 1

  • 1
  • 1

1 0.8911.0471.072 1.003 1 1

  • 1
  • 1

0.9550.9331.122 1.003 1

  • 1

1

  • 1

0.0150.0130.012 0.013 1 1 1 1 Total 106.19-104.15-104.15102.17 Total/4 26.55 -26.04 -26.04 25.54

◮ Note large range of y values

2015-06-15

CS147 Multiplicative Models Example Multiplicative Example

slide-34
SLIDE 34

Multiplicative Models Example

Error Scatter of Additive Model

20 40 60 80 100 120

Predicted Response

  • 40
  • 20

20 40

Error Residual

34 / 44

Error Scatter of Additive Model

20 40 60 80 100 120 Predicted Response

  • 40
  • 20

20 40 Error Residual

2015-06-15

CS147 Multiplicative Models Example Error Scatter of Additive Model

slide-35
SLIDE 35

Multiplicative Models Example

Quantile-Quantile Plot of Additive Model

  • 2
  • 1

1 2

  • 40
  • 20

20 40

35 / 44

Quantile-Quantile Plot of Additive Model

  • 2
  • 1

1 2

  • 40
  • 20

20 40

2015-06-15

CS147 Multiplicative Models Example Quantile-Quantile Plot of Additive Model

slide-36
SLIDE 36

Multiplicative Models Example

Multiplicative Model

◮ Taking logs of everything, the model is:

y1 y2 y3 Mean I A B AB 1.93 1.9 2.17 2.000 1

  • 1
  • 1

1

  • 0.05

0.02 0.0302 0.000 1

  • 1
  • 1
  • 0.02 -0.03

0.05 0.000

  • 1

1

  • 1
  • 1.83
  • 1.9
  • 1.928 -1.886 1

1 1 1 Total 0.11 -3.89 -3.89 0.11 Total/4 0.03 -0.97 -0.97 0.03

36 / 44

Multiplicative Model

◮ Taking logs of everything, the model is:

y1 y2 y3 Mean I A B AB 1.93 1.9 2.17 2.000 1

  • 1
  • 1

1

  • 0.05

0.02 0.0302 0.000 1

  • 1
  • 1
  • 0.02 -0.03

0.05 0.000

  • 1

1

  • 1
  • 1.83
  • 1.9
  • 1.928 -1.886 1

1 1 1 Total 0.11 -3.89 -3.89 0.11 Total/4 0.03 -0.97 -0.97 0.03

2015-06-15

CS147 Multiplicative Models Example Multiplicative Model

slide-37
SLIDE 37

Multiplicative Models Example

Error Residuals of Multiplicative Model

  • 2
  • 1

1 2

Predicted Response

  • 0.1

0.0 0.1 0.2

Error Residual

37 / 44

Error Residuals of Multiplicative Model

  • 2
  • 1

1 2 Predicted Response

  • 0.1

0.0 0.1 0.2 Error Residual

2015-06-15

CS147 Multiplicative Models Example Error Residuals of Multiplicative Model

slide-38
SLIDE 38

Multiplicative Models Example

Quantile-Quantile Plot for Multiplicative Model

  • 2
  • 1

1 2

  • 0.1

0.0 0.1 0.2

38 / 44

Quantile-Quantile Plot for Multiplicative Model

  • 2
  • 1

1 2

  • 0.1

0.0 0.1 0.2

2015-06-15

CS147 Multiplicative Models Example Quantile-Quantile Plot for Multiplicative Model

slide-39
SLIDE 39

Multiplicative Models Example

Summary of the Two Models

Additive Model Multiplicative Model Factor Effect Pct of Variation Confidence Interval Effect Pct of Variation Confidence Interval I 26.55 16.35 36.74 0.03

  • 0.02

0.07 A

  • 26.04

30.15 -36.23 -15.85 -0.97 49.85 -1.02

  • 0.93

B

  • 26.04

30.15 -36.23 -15.85 -0.97 49.86 -1.02

  • 0.93

AB 25.54 29.01 15.35 35.74 0.03 0.04 -0.02 0.07 e 10.69 0.25

39 / 44

Summary of the Two Models

Additive Model Multiplicative Model Factor Effect Pct of Variation Confidence Interval Effect Pct of Variation Confidence Interval I 26.55 16.35 36.74 0.03

  • 0.02

0.07 A

  • 26.04

30.15 -36.23 -15.85 -0.97 49.85 -1.02

  • 0.93

B

  • 26.04

30.15 -36.23 -15.85 -0.97 49.86 -1.02

  • 0.93

AB 25.54 29.01 15.35 35.74 0.03 0.04 -0.02 0.07 e 10.69 0.25

2015-06-15

CS147 Multiplicative Models Example Summary of the Two Models

slide-40
SLIDE 40

General 2k r Designs

General 2kr Factorial Design

◮ Simple extension of 22r ◮ See Box 18.1 in book for summary ◮ Always do visual tests ◮ Remember to consider multiplicative model as alternative

40 / 44

General 2kr Factorial Design

◮ Simple extension of 22r ◮ See Box 18.1 in book for summary ◮ Always do visual tests ◮ Remember to consider multiplicative model as alternative

2015-06-15

CS147 General 2kr Designs General 2kr Factorial Design

slide-41
SLIDE 41

General 2k r Designs

Example of 2kr Factorial Design

Consider a 233 design:

y1 y2 y3 Mean I A B C AB AC BC ABC 14 16 12 14 1

  • 1
  • 1
  • 1

1 1 1

  • 1

22 18 20 20 1 1

  • 1
  • 1
  • 1
  • 1

1 1 11 15 19 15 1

  • 1

1

  • 1
  • 1

1

  • 1

1 34 30 35 33 1 1 1

  • 1

1

  • 1
  • 1
  • 1

46 42 44 44 1

  • 1
  • 1

1 1

  • 1
  • 1

1 58 62 60 60 1 1

  • 1

1

  • 1

1

  • 1
  • 1

50 55 54 53 1

  • 1

1 1

  • 1
  • 1

1

  • 1

86 80 74 80 1 1 1 1 1 1 1 1 Total 319 67 43 155 23 19 15

  • 1

Total/8 39.88 8.38 5.38 19.38 2.88 2.38 1.88 -0.13

41 / 44

Example of 2kr Factorial Design

Consider a 233 design: y1 y2 y3 Mean I A B C AB AC BC ABC 14 16 12 14 1

  • 1
  • 1
  • 1

1 1 1

  • 1

22 18 20 20 1 1

  • 1
  • 1
  • 1
  • 1

1 1 11 15 19 15 1

  • 1

1

  • 1
  • 1

1

  • 1

1 34 30 35 33 1 1 1

  • 1

1

  • 1
  • 1
  • 1

46 42 44 44 1

  • 1
  • 1

1 1

  • 1
  • 1

1 58 62 60 60 1 1

  • 1

1

  • 1

1

  • 1
  • 1

50 55 54 53 1

  • 1

1 1

  • 1
  • 1

1

  • 1

86 80 74 80 1 1 1 1 1 1 1 1 Total 319 67 43 155 23 19 15

  • 1

Total/8 39.88 8.38 5.38 19.38 2.88 2.38 1.88 -0.13

2015-06-15

CS147 General 2kr Designs Example of 2kr Factorial Design

slide-42
SLIDE 42

General 2k r Designs

ANOVA for 233 Design

◮ Percent variation explained:

A B C AB AC BC ABC Errors 14.1 5.8 75.3 1.7 1.1 0.7 1.37

◮ 90% confidence intervals

I A B C AB AC BC ABC 38.7 7.2 4.2 18.2 1.7 1.2 0.7

  • 1.3

41.0 9.5 6.5 20.5 4.0 3.5 3.0 1.0

42 / 44

ANOVA for 233 Design

◮ Percent variation explained:

A B C AB AC BC ABC Errors 14.1 5.8 75.3 1.7 1.1 0.7 1.37

◮ 90% confidence intervals

I A B C AB AC BC ABC 38.7 7.2 4.2 18.2 1.7 1.2 0.7

  • 1.3

41.0 9.5 6.5 20.5 4.0 3.5 3.0 1.0

2015-06-15

CS147 General 2kr Designs ANOVA for 233 Design

slide-43
SLIDE 43

General 2k r Designs

Error Residuals for 233 Design

20 40 60 80

Predicted Response

  • 5

5

Error Residual

43 / 44

Error Residuals for 233 Design

20 40 60 80 Predicted Response

  • 5

5 Error Residual

2015-06-15

CS147 General 2kr Designs Error Residuals for 233 Design

slide-44
SLIDE 44

General 2k r Designs

Quantile-Quantile Plot for 233 Design

  • 2
  • 1

1 2

  • 6
  • 3

3 6

44 / 44

Quantile-Quantile Plot for 233 Design

  • 2
  • 1

1 2

  • 6
  • 3

3 6

2015-06-15

CS147 General 2kr Designs Quantile-Quantile Plot for 233 Design