Two-Factor Full Factorial Design with Replications

[Jain, Ch. 22]

We now add to Chapter 21:

Model

displaymath346

where

Computing Effects, Interactions, and Errors

Example

Consider the number bytes required to code five workloads (I,J,K,L,M) on each of four computers (W,X,Y,Z).

First, should we use additive or multiplicative model?

Thus use multiplicative model: take tex2html_wrap_inline370 of code sizes as data.

See Table 22.2

Computing Effects

Table for computation of effects has average of replicas for factor levels i and j in cell i,j.

See TABLE 22.3

As before, effects tex2html_wrap_inline374 and tex2html_wrap_inline376 are obtained by

  1. summing row and columns,
  2. dividing by number of addends to obtain means, and
  3. subtracting from row and column means tex2html_wrap_inline378 (mean of all abr observations).

Formally:

displaymath372

Where did above formulas come from?

(See Ch. 20 (one-factor design) notes for example.)

Computing Interactions

By last formula above, interactions for (i,j)th cell are computed by subtracting tex2html_wrap_inline390 from cell mean tex2html_wrap_inline392 .

See TABLE 22.4

Note that row and column sums are zero.

Computing Errors

Given i and j, error in kth replication is, as usual, the difference between kth observation and mean of replications:

displaymath394

As usual, we only need to compute errors to visually test assumptions.

Allocation of Variation

How much of the variation is due to:

As in earlier designs, square both sides of model equation (crossterms are again zero):

displaymath396

All terms except SSE are easy to compute. Therefore SSE can be found from the other terms:

displaymath397

For our example,

table114

Therefore both the computer and the workload alone explain about 96% of the variation, while the factor interactions appears insignificant. Also, the error is virtually zero!

Analysis of Variance with ANOVA Table

Simply generalize last design (two factors, no replication). Add SSAB term, and thus a third F-test for AB significance.

Recall:

displaymath408

and similarly for MS0, MSA, MSB, and MSE. Degrees of freedom for SSY, SS0, SSA, SSB are same as last design; SSAB and SSE differ:

displaymath409

SSE has ab(r-1) degrees of freedom because the r errors add to zero; thus only r-1 are required.

MSA, MSB are same as last design; MSAB and MSE differ:

displaymath410

Finally, computed F statistics for A and B are same as last design; statistic for MSAB is new:

displaymath411

Table Arrangement for Computation

Differences from last design (two factor, no replication):

  table157
Table 1: Based on Jain Table 22.5

See TABLE 22.6

Conclusion:

factors A, B, and AB interaction are all significant!

Confidence Intervals for Effects and Interactions

Compared to last design (two factors, no replication), formulas for variance based on tex2html_wrap_inline492 are almost identical: just divide by number of replicas, r. Also add row for tex2html_wrap_inline354 .

table247

and, as usual, tex2html_wrap_inline512 .

See TABLES 22.8, 22.9 for confidence intervals in our example.

Notes:

Visual validation of assumptions

Validation that errors are independent of response AND that variance of errors is constant w.r.t. response variable:

See Fig. 22.1

Validation that errors are normally distributed:

See Fig. 22.2



cs5014@ei.cs.vt.edu