CS 147: Computer Systems Performance Analysis

Similar documents
Solutions to Exercises

FRACTIONAL FACTORIAL

Reference: Chapter 8 of Montgomery (8e)

2 k, 2 k r and 2 k-p Factorial Designs

FRACTIONAL REPLICATION

TWO-LEVEL FACTORIAL EXPERIMENTS: REGULAR FRACTIONAL FACTORIALS

Homework 04. , not a , not a 27 3 III III

The One-Quarter Fraction

Fractional Replications

by Christopher Bingham

ST3232: Design and Analysis of Experiments

CS 5014: Research Methods in Computer Science. Experimental Design. Potential Pitfalls. One-Factor (Again) Clifford A. Shaffer.

choosedef2(7,4,all:t) K

Construction of Mixed-Level Orthogonal Arrays for Testing in Digital Marketing

MATH602: APPLIED STATISTICS

Soo King Lim Figure 1: Figure 2: Figure 3: Figure 4: Figure 5: Figure 6: Figure 7: Figure 8: Figure 9: Figure 10: Figure 11: Figure 12: Figure 13:

Lecture 12: 2 k p Fractional Factorial Design

Fractional Factorial Designs

Fractional Factorial Designs

CS 5014: Research Methods in Computer Science

Outline. EEC 686/785 Modeling & Performance Evaluation of Computer Systems. Lecture k r Factorial Designs with Replication

Strategy of Experimentation III

Fractional Factorials

n n matrices The system of m linear equations in n variables x 1, x 2,..., x n can be written as a matrix equation by Ax = b, or in full

23. Fractional factorials - introduction

Higher Order Factorial Designs. Estimated Effects: Section 4.3. Main Effects: Definition 5 on page 166.

STAT451/551 Homework#11 Due: April 22, 2014

THE ROYAL STATISTICAL SOCIETY 2015 EXAMINATIONS SOLUTIONS GRADUATE DIPLOMA MODULE 4

Chapter 11: Factorial Designs

Invariants under simultaneous conjugation of SL 2 matrices

On the Compounds of Hat Matrix for Six-Factor Central Composite Design with Fractional Replicates of the Factorial Portion

3.4. A computer ANOVA output is shown below. Fill in the blanks. You may give bounds on the P-value.

CS100: DISCRETE STRUCTURES. Lecture 3 Matrices Ch 3 Pages:

A NEW ALGORITHM FOR OBTAINING MIXED-LEVEL ORTHOGONAL AND NEARLY-ORTHOGONAL ARRAYS

CH 6 THE ORDER OF OPERATIONS

Review of Prerequisite Skills for Unit # 2 (Derivatives) U2L2: Sec.2.1 The Derivative Function

Matrices Gaussian elimination Determinants. Graphics 2009/2010, period 1. Lecture 4: matrices

CS 484 Data Mining. Association Rule Mining 2

ECE 697B (667) Spring 2003

Session 3 Fractional Factorial Designs 4

Suppose we needed four batches of formaldehyde, and coulddoonly4runsperbatch. Thisisthena2 4 factorial in 2 2 blocks.

Probability Distribution

A Survey of Rational Diophantine Sextuples of Low Height

Minimum Aberration and Related Criteria for Fractional Factorial Designs

Matrix Algebra 2.1 MATRIX OPERATIONS Pearson Education, Inc.

Fractional Replication of The 2 k Design

6-3 Tests for Parallelograms. Determine whether each quadrilateral is a parallelogram. Justify your answer.

Contents. TAMS38 - Lecture 8 2 k p fractional factorial design. Lecturer: Zhenxia Liu. Example 0 - continued 4. Example 0 - Glazing ceramic 3

Linear Algebra 1 Exam 2 Solutions 7/14/3

Lecture 14: 2 k p Fractional Factorial Design

Optimal Selection of Blocked Two-Level. Fractional Factorial Designs

CSCI 688 Homework 6. Megan Rose Bryant Department of Mathematics William and Mary

Stat 5303 (Oehlert): Fractional Factorials 1

APPLICATION OF DISCRETE DISTRIBUTIONS IN QUALITY CONTROL A THESIS. Presented to. The Faculty of the Division of Graduate. Studies and Research

19. Blocking & confounding


CHAPTER 3 BOOLEAN ALGEBRA

Math 360 Linear Algebra Fall Class Notes. a a a a a a. a a a

A Fast Algorithm for Protein Structural Comparison

Institutionen för matematik och matematisk statistik Umeå universitet November 7, Inlämningsuppgift 3. Mariam Shirdel

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

Math 3191 Applied Linear Algebra

Experimental design (DOE) - Design

Matrices: 2.1 Operations with Matrices

Econ Slides from Lecture 7

Lecture 9 February 8

Unit 6: Fractional Factorial Experiments at Three Levels

MATHEMATICAL ENGINEERING TECHNICAL REPORTS. Markov chain Monte Carlo tests for designed experiments

A hyperfactorial divisibility Darij Grinberg *long version*

Statistical Design and Analysis of Experiments Part Two

Elementary maths for GMT

Confounding and fractional replication in 2 n factorial systems

Linear Equations in Linear Algebra

Mathathon Round 1 (2 points each) 1. If this mathathon has 7 rounds of 3 problems each, how many problems does it have in total? (Not a trick!

TWO-LEVEL FACTORIAL EXPERIMENTS: BLOCKING. Upper-case letters are associated with factors, or regressors of factorial effects, e.g.

Statistica Sinica Preprint No: SS R1

Exercise 1. min_sup = 0.3. Items support Type a 0.5 C b 0.7 C c 0.5 C d 0.9 C e 0.6 F

Calculus and linear algebra for biomedical engineering Week 3: Matrices, linear systems of equations, and the Gauss algorithm

Homework Assignments Sheet. 4) Symbol * beside a question means that a calculator may be used for that question. Chapter 1 Number 9 days

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

CS 147: Computer Systems Performance Analysis

A General Criterion for Factorial Designs Under Model Uncertainty

8 Matrices and operations on matrices

Final Review Sheet. B = (1, 1 + 3x, 1 + x 2 ) then 2 + 3x + 6x 2

HOMEWORK 7 solutions

A UNIFIED APPROACH TO FACTORIAL DESIGNS WITH RANDOMIZATION RESTRICTIONS

ESTIMATION METHODS FOR MISSING DATA IN UN-REPLICATED 2 FACTORIAL AND 2 FRACTIONAL FACTORIAL DESIGNS

IE 361 Exam 3 (Form A)

CHAPTER III BOOLEAN ALGEBRA

Quantum Computing Lecture 2. Review of Linear Algebra

Solution to Homework 8, Math 2568

Write your Registration Number, Test Centre, Test Code and the Number of this booklet in the appropriate places on the answersheet.

Math 3191 Applied Linear Algebra

UNIT 3 BOOLEAN ALGEBRA (CONT D)

Linear Equations in Linear Algebra

22m:033 Notes: 3.1 Introduction to Determinants

Computer Organization I. Lecture 13: Design of Combinational Logic Circuits

Linear Equations in Linear Algebra

Introduction to Matrix Algebra

Transcription:

CS 147: Computer Systems Performance Analysis Fractional Factorial Designs CS 147: Computer Systems Performance Analysis Fractional Factorial Designs 1 / 26

Overview Overview Overview Example Preparing the Sign Table Confounding Algebra of Confounding Design Resolution Example Preparing the Sign Table Confounding Algebra of Confounding Design Resolution 2 / 26

Example Introductory Example of a 2 k p Design Example Introductory Example of a 2 k p Design Introductory Example of a 2 k p Design Exploring 7 factors in only 8 experiments: Run A B C D E F G 1-1 -1-1 1 1 1-1 2 1-1 -1-1 -1 1 1 3-1 1-1 -1 1-1 1 4 1 1-1 1-1 -1-1 5-1 -1 1 1-1 -1 1 6 1-1 1-1 1-1 -1 7-1 1 1-1 -1 1-1 8 1 1 1 1 1 1 1 Exploring 7 factors in only 8 experiments: Run A B C D E F G 1-1 -1-1 1 1 1-1 2 1-1 -1-1 -1 1 1 3-1 1-1 -1 1-1 1 4 1 1-1 1-1 -1-1 5-1 -1 1 1-1 -1 1 6 1-1 1-1 1-1 -1 7-1 1 1-1 -1 1-1 8 1 1 1 1 1 1 1 3 / 26

i Example Analysis of 2 7 4 Design Column sums are zero: i x ij = 0 j Example Analysis of 2 7 4 Design Analysis of 2 7 4 Design Column sums are zero: i xij = 0 j Sum of 2-column product is zero: xijxil = 0 j l Sum of column squares is 2 7 4 = 8 Orthogonality allows easy calculation of effects: y1 + y2 y3 + y4 y5 + y6 y7 + y8 qa = 8 etc. Sum of 2-column product is zero: x ij x il = 0 j l i Sum of column squares is 2 7 4 = 8 Orthogonality allows easy calculation of effects: etc. q A = y 1 + y 2 y 3 + y 4 y 5 + y 6 y 7 + y 8 8 4 / 26

5 / 26 i Example Effects and Confidence Intervals for Example Effects and Confidence Intervals for 2 k p Designs Effects and Confidence Intervals for Effects are as in 2 k designs: qα = 1 2 k p yixαi % variation proportional to squared effects For standard deviations & confidence intervals: Use formulas from full-factorial designs Replace 2 k with 2 k p Effects are as in 2 k designs: q α = 1 2 k p y i x αi i % variation proportional to squared effects For standard deviations & confidence intervals: Use formulas from full-factorial designs Replace 2 k with 2 k p

Preparing the Sign Table Preparing the Sign Table for a 2 k p Design Preparing the Sign Table Preparing the Sign Table for a 2 k p Design Preparing the Sign Table for a 2 k p Design Prepare sign table for k p factors Assign remaining factors Prepare sign table for k p factors Assign remaining factors 6 / 26

7 / 26 Preparing the Sign Table Sign Table for k p Factors Preparing the Sign Table Sign Table for k p Factors Sign Table for k p Factors Same as table for experiment with k p factors I.e., 2 (k p) table 2 k p rows and 2 k p columns First k p columns get k p chosen factors Rest are interactions (products of previous columns) I column can be included or omitted as desired Same as table for experiment with k p factors I.e., 2 (k p) table 2 k p rows and 2 k p columns First k p columns get k p chosen factors Rest are interactions (products of previous columns) I column can be included or omitted as desired

8 / 26 Preparing the Sign Table Assigning Remaining Factors Preparing the Sign Table Assigning Remaining Factors Assigning Remaining Factors 2 k p (k p) 1 interaction (product) columns will remain Choose any p columns Assign remaining p factors to them Any others stay as-is, measuring interactions 2 k p (k p) 1 interaction (product) columns will remain Choose any p columns Assign remaining p factors to them Any others stay as-is, measuring interactions

Preparing the Sign Table Example of Preparing a Sign Table Preparing the Sign Table Example of Preparing a Sign Table Example of Preparing a Sign Table A 2 4 1 design: Run A B C 1-1 -1-1 2 1-1 -1 3-1 1-1 4 1 1-1 5-1 -1 1 6 1-1 1 7-1 1 1 8 1 1 1 A 2 4 1 design: Run A B C 1-1 -1-1 2 1-1 -1 3-1 1-1 4 1 1-1 5-1 -1 1 6 1-1 1 7-1 1 1 8 1 1 1 9 / 26

Preparing the Sign Table Example of Preparing a Sign Table Preparing the Sign Table Example of Preparing a Sign Table Example of Preparing a Sign Table A 2 4 1 design: Run A B C AB AC BC ABC 1-1 -1-1 1 1 1-1 2 1-1 -1-1 -1 1 1 3-1 1-1 -1 1-1 1 4 1 1-1 1-1 -1-1 5-1 -1 1 1-1 -1 1 6 1-1 1-1 1-1 -1 7-1 1 1-1 -1 1-1 8 1 1 1 1 1 1 1 A 2 4 1 design: Run A B C AB AC BC ABC 1-1 -1-1 1 1 1-1 2 1-1 -1-1 -1 1 1 3-1 1-1 -1 1-1 1 4 1 1-1 1-1 -1-1 5-1 -1 1 1-1 -1 1 6 1-1 1-1 1-1 -1 7-1 1 1-1 -1 1-1 8 1 1 1 1 1 1 1 9 / 26

Preparing the Sign Table Example of Preparing a Sign Table A 2 4 1 design: Run A B C AB AC BC D 1-1 -1-1 1 1 1-1 2 1-1 -1-1 -1 1 1 3-1 1-1 -1 1-1 1 4 1 1-1 1-1 -1-1 5-1 -1 1 1-1 -1 1 6 1-1 1-1 1-1 -1 7-1 1 1-1 -1 1-1 8 1 1 1 1 1 1 1 Preparing the Sign Table Example of Preparing a Sign Table Example of Preparing a Sign Table A 2 4 1 design: Run A B C AB AC BC D 1-1 -1-1 1 1 1-1 2 1-1 -1-1 -1 1 1 3-1 1-1 -1 1-1 1 4 1 1-1 1-1 -1-1 5-1 -1 1 1-1 -1 1 6 1-1 1-1 1-1 -1 7-1 1 1-1 -1 1-1 8 1 1 1 1 1 1 1 Why did we choose the ABC column to rename as D? In one sense, the choice is completely arbitrary. But in reality, this leads to a discussion of confounding. 9 / 26

Confounding Confounding Confounding Confounding Confounding The confounding problem An example of confounding Confounding notation Choices in fractional factorial design The confounding problem An example of confounding Confounding notation Choices in fractional factorial design 10 / 26

11 / 26 Confounding The Confounding Problem Confounding The Confounding Problem The Confounding Problem Fundamental to fractional factorial designs Some effects produce combined influences Limited experiments means only combination can be counted Problem of combined influence is confounding Inseparable effects called confounded Fundamental to fractional factorial designs Some effects produce combined influences Limited experiments means only combination can be counted Problem of combined influence is confounding Inseparable effects called confounded

Confounding An Example of Confounding Confounding An Example of Confounding An Example of Confounding Consider this 2 3 1 table: I A B C 1-1 -1 1 1 1-1 -1 1-1 1-1 1 1 1 1 Extend it with an AB column: I A B C AB 1-1 -1 1 1 1 1-1 -1-1 1-1 1-1 -1 1 1 1 1 1 Consider this 2 3 1 table: I A B C 1-1 -1 1 1 1-1 -1 1-1 1-1 1 1 1 1 There is an animation on this slide Extend it with an AB column: I A B C AB 1-1 -1 1 1 1 1-1 -1-1 1-1 1-1 -1 1 1 1 1 1 12 / 26

Confounding An Example of Confounding Confounding An Example of Confounding An Example of Confounding Consider this 2 3 1 table: I A B C 1-1 -1 1 1 1-1 -1 1-1 1-1 1 1 1 1 Extend it with an AB column: I A B C AB 1-1 -1 1 1 1 1-1 -1-1 1-1 1-1 -1 1 1 1 1 1 Consider this 2 3 1 table: I A B C 1-1 -1 1 1 1-1 -1 1-1 1-1 1 1 1 1 There is an animation on this slide Extend it with an AB column: I A B C AB 1-1 -1 1 1 1 1-1 -1-1 1-1 1-1 -1 1 1 1 1 1 12 / 26

Confounding Analyzing the Confounding Example Effect of C is same as that of AB: q C = (y 1 y 2 y 3 + y 4 )/4 q AB = (y 1 y 2 y 3 + y 4 )/4 Confounding Analyzing the Confounding Example There is an animation on this slide Analyzing the Confounding Example Effect of C is same as that of AB: q C = (y1 y2 y3 + y4)/4 qab = (y1 y2 y3 + y4)/4 Formula for q C really gives combined effect: q C + qab = (y1 y2 y3 + y4)/4 Formula for q C really gives combined effect: q C + q AB = (y 1 y 2 y 3 + y 4 )/4 13 / 26

13 / 26 Confounding Analyzing the Confounding Example Effect of C is same as that of AB: q C = (y 1 y 2 y 3 + y 4 )/4 q AB = (y 1 y 2 y 3 + y 4 )/4 Confounding Analyzing the Confounding Example There is an animation on this slide Analyzing the Confounding Example Effect of C is same as that of AB: q C = (y1 y2 y3 + y4)/4 qab = (y1 y2 y3 + y4)/4 Formula for q C really gives combined effect: q C + qab = (y1 y2 y3 + y4)/4 No way to separate q C from qab Not problem if qab is known to be small Formula for q C really gives combined effect: q C + q AB = (y 1 y 2 y 3 + y 4 )/4 No way to separate q C from q AB Not problem if q AB is known to be small

14 / 26 Algebra of Confounding Confounding Notation Algebra of Confounding Confounding Notation Confounding Notation Previous confounding is denoted by equating confounded effects: C = AB Other effects are also confounded in this design: A = BC, B = AC, C = AB, I = ABC Last entry indicates ABC is confounded with overall mean, or q0 Previous confounding is denoted by equating confounded effects: C = AB Other effects are also confounded in this design: A = BC, B = AC, C = AB, I = ABC Last entry indicates ABC is confounded with overall mean, or q 0

15 / 26 Algebra of Confounding Choices in Fractional Factorial Design Algebra of Confounding Choices in Fractional Factorial Design Choices in Fractional Factorial Design Many fractional factorial designs possible Chosen when assigning remaining p signs 2 p different designs exist for 2 k p experiments Some designs better than others Desirable to confound significant effects with insignificant ones Usually means low-order with high-order Many fractional factorial designs possible Chosen when assigning remaining p signs 2 p different designs exist for 2 k p experiments Some designs better than others Desirable to confound significant effects with insignificant ones Usually means low-order with high-order

16 / 26 Algebra of Confounding Rules of Confounding Algebra Algebra of Confounding Rules of Confounding Algebra Rules of Confounding Algebra Particular design can be characterized by single confounding Traditionally, use I = wxyz... confounding Others can be found by multiplying by various terms I acts as unity (e.g., I A = A) Squared terms disappear (AB 2 C becomes AC) Particular design can be characterized by single confounding Traditionally, use I = wxyz... confounding Others can be found by multiplying by various terms I acts as unity (e.g., I A = A) Squared terms disappear (AB 2 C becomes AC)

17 / 26 Algebra of Confounding Example: 2 3 1 Confoundings Algebra of Confounding Example: 2 3 1 Confoundings Example: 2 3 1 Confoundings Design is characterized by I = ABC Multiplying by A gives A = A 2 BC = BC Multiplying by B, C, AB, AC, BC, and ABC: B = AB 2 C = AC C = ABC 2 = AB AB = A 2 B 2 C = C AC = A 2 BC 2 = B BC = AB 2 C 2 = A ABC = A 2 B 2 C 2 = I Note that only first two lines are unique in this case Design is characterized by I = ABC Multiplying by A gives A = A 2 BC = BC Multiplying by B, C, AB, AC, BC, and ABC: B = AB 2 C = AC C = ABC 2 = AB AB = A 2 B 2 C = C AC = A 2 BC 2 = B BC = AB 2 C 2 = A ABC = A 2 B 2 C 2 = I Note that only first two lines are unique in this case

18 / 26 Algebra of Confounding Generator Polynomials Algebra of Confounding Generator Polynomials Generator Polynomials Polynomial I = wxyz... is called generator polynomial for the confounding A 2 k p design confounds 2 p effects together So generator polynomial has 2 p terms Can be found by considering interactions replaced in sign table Polynomial I = wxyz... is called generator polynomial for the confounding A 2 k p design confounds 2 p effects together So generator polynomial has 2 p terms Can be found by considering interactions replaced in sign table

19 / 26 Algebra of Confounding Example of Finding Generator Polynomial Algebra of Confounding Example of Finding Generator Polynomial Example of Finding Generator Polynomial Consider 2 7 4 design Sign table has 2 3 = 8 rows and columns First 3 columns represent A, B, and C Columns for D, E, F, and G replace AB, AC, BC, and ABC columns respectively So confoundings are necessarily: D = AB, E = AC, F = BC, and G = ABC Consider 2 7 4 design Sign table has 2 3 = 8 rows and columns First 3 columns represent A, B, and C Columns for D, E, F, and G replace AB, AC, BC, and ABC columns respectively So confoundings are necessarily: D = AB, E = AC, F = BC, and G = ABC

Algebra of Confounding Turning Basic Terms into Generator Polynomial Algebra of Confounding Turning Basic Terms into Generator Polynomial Turning Basic Terms into Generator Polynomial Basic confoundings are D = AB, E = AC, F = BC, and G = ABC Multiply each equation by left side: I = ABD, I = ACE, I = BCF, and I = ABCG or I = ABD = ACE = BCF = ABCG Basic confoundings are D = AB, E = AC, F = BC, and G = ABC Multiply each equation by left side: I = ABD, I = ACE, I = BCF, and I = ABCG or I = ABD = ACE = BCF = ABCG 20 / 26

21 / 26 Algebra of Confounding Finishing Generator Polynomial Algebra of Confounding Finishing Generator Polynomial Finishing Generator Polynomial Any subset of above terms also multiplies out to I E.g., ABD ACE = A 2 BCDE = BCDE Expanding all possible combinations gives 16-term generator (book may be wrong): I = ABD = ACE = BCF = ABCG = BCDE = ACDF = CDG = ABEF = BEG = AFG = DEF = ADEG = BDFG = CEFG = ABCDEFG Any subset of above terms also multiplies out to I E.g., ABD ACE = A 2 BCDE = BCDE Expanding all possible combinations gives 16-term generator (book may be wrong): I = ABD = ACE = BCF = ABCG = BCDE = ACDF = CDG = ABEF = BEG = AFG = DEF = ADEG = BDFG = CEFG = ABCDEFG

Design Resolution Design Resolution Design Resolution Design Resolution Design Resolution Definitions leading to resolution Definition of resolution Finding resolution Choosing a resolution Definitions leading to resolution Definition of resolution Finding resolution Choosing a resolution 22 / 26

Design Resolution Definitions Leading to Resolution Design Resolution Definitions Leading to Resolution Definitions Leading to Resolution Design is characterized by its resolution Resolution measured by order of confounded effects Order of effect is number of factors in it E.g., I is order 0, ABCD is order 4 Order of a confounding is sum of effect orders E.g., AB = CDE would be of order 5 Design is characterized by its resolution Resolution measured by order of confounded effects Order of effect is number of factors in it E.g., I is order 0, ABCD is order 4 Order of a confounding is sum of effect orders E.g., AB = CDE would be of order 5 23 / 26

24 / 26 Design Resolution Definition of Resolution Design Resolution Definition of Resolution Definition of Resolution Resolution is minimum order of any confounding in design Denoted by uppercase Roman numerals E.g, 2 5 1 with resolution of 3 is called RIII Or more compactly, 2III Resolution is minimum order of any confounding in design Denoted by uppercase Roman numerals E.g, 2 5 1 with resolution of 3 is called R III Or more compactly, 2III

25 / 26 Design Resolution Finding Resolution Design Resolution Finding Resolution Finding Resolution Find minimum order of effects confounded with mean I.e., search generator polynomial Consider earlier example: I = ABD = ACE = BCF = ABCG = BCDE = ACDF = CDG = ABEF = BEG = AFG = DEF = ADEG = BDFG = ABDG = CEFG = ABCDEFG So it s an RIII design Find minimum order of effects confounded with mean I.e., search generator polynomial Consider earlier example: I = ABD = ACE = BCF = ABCG = BCDE = ACDF = CDG = ABEF = BEG = AFG = DEF = ADEG = BDFG = ABDG = CEFG = ABCDEFG So it s an R III design

26 / 26 Design Resolution Choosing a Resolution Design Resolution Choosing a Resolution Choosing a Resolution Generally, higher resolution is better Because usually higher-order interactions are smaller Exception: when low-order interactions are known to be small Then choose design that confounds those with important interactions Even if resolution is lower Generally, higher resolution is better Because usually higher-order interactions are smaller Exception: when low-order interactions are known to be small Then choose design that confounds those with important interactions Even if resolution is lower