# Full Factorial DOE with JMP

### Full Factorial DOE

In a full factorial experiment, all of the possible combinations of factors and levels are created and tested. For example, for two-level design (i.e.each factor has two levels) with k factors, there are 2k possible scenarios or treatments.

- Two factors, each with two levels, we have 2
^{2 }= 4 treatments - Three factors, each with two levels, we have 2
^{3 }= 8 treatments - k factors, each with two levels, we have 2
^{k}treatments

### 2^{k} Full Factorial DOE

Full factorial DOE is used to discover the cause-and-effect relationship between the response and both individual factors and the interaction of factors. Generate an equation to describe the relationship between Y and the important Xs:

Where:

*Y*is the response and*X*are the factors_{1}, X_{2 }. . . X_{k}*α*is the intercept and_{0}*α*are the coefficients of the factors and interactions_{1}, α_{2 }. . . α_{p}*ε*is the error of the model

### Two-Level Two-Factor Full Factorial

Below is a design pattern of a two-level two-factor full factorial experiment.

*
*2 (level) raised to 2 (factors) = 4 treatment combinations.

### Two-Level Three-Factor Full Factorial

Below is a design pattern of a two-level three-factor full factorial experiment.

*
*2 (levels) raised to 3 (factors) = 8 treatment combinations.

### Two-Level Four-Factor Full Factorial

Below is a design pattern of a two-level four-factor full factorial experiment

*
*2 (levels) raised to 4 (factors) = 16 treatment combinations

### Two-Level Five-Factor Full Factorial

Below is a design pattern of a two-level five-factor full factorial experiment

*
*2 (levels) raised to 5 (factors) = 32 treatment combinations

### Order to Run Experiments

The four design patterns shown earlier are listed in the standard order. Standard order is used to design the combinations/treatments before experiments start. When actually running the experiments, randomizing the standard order is recommended to minimize the noise.

### Replication in Experiments

Each treatment can be tested multiple times in an experiment in order to increase the degrees of freedom and improve the capability of analysis. We call this method replication.

Replicates are the number of repetitions of running an individual treatment, which increase the power of the experimental responses. The order to run the treatments in an experiment should be randomized to minimize the noise.

Advantages of replication include: helps to better identify the true sources of variation, helps estimate the true impacts of the factors on the response, and overall improves the reliability and validity of the experimental results.

### 2^{2} Full Factorial DOE

Case study: We are running a 2^{2} full factorial DOE to discover the cause-and-effect relationship between the cake tastiness and two factors: temperature of the oven and time length of baking. Each factor has two levels and there are four treatments in total.

We decide to run each treatment twice so that we have enough degrees of freedom to measure the impact of two factors and the interaction between two factors. Therefore, there are eight observations in response eventually.

*
*The objective is to understand the main effects and the interactions of these factors on the response variable. After running the four treatments twice in a random order, we obtain the following results

*
*There are two factors and two levels, so there would be 2^2 = 4 treatment combinations. With replicates, each treatment combination is repeated once; therefore, there are in total 8 runs in this experiment. The experiment results are consolidated into the following table

*
*The main effect of factor A is computed by averaging the difference between combinations where A was at its high settings and where A was at its low settings.

Main effect of factor A (temperature of the oven):

Where:

- k is the number of factors
- r is the number of times individual treatments are being run

Using the formula provided, the main effect of increasing the temperature of the oven is to decrease tastiness of the cake by −6.25.

*
*The main effect of factor B, similar to A, is computed by averaging the difference between combinations where B was at its high settings and where B was at its low settings.

Main effect of factor B (time length of baking):

Where:

- k is the number of factors
- r is the number of times individual treatments are being run

Using the formula provided, the main effect of increasing the baking time is to decrease the tastiness of the cake by −1.75

*
*The interaction effect is computed by averaging the difference between combinations where A and B were at opposite settings (low and high).

#### Interaction (i.e. A*B) effect:

Where:

- k is the number of factors
- r is the number of times individual treatments are being run

Using the formula provided, the interaction effect of the temperature and time variables on tastiness was −3.25.

Sum of squares of factors and interaction

Where:

- k is the number of factors
- r is the number of times individual treatments are being run

The sum of squares tells us the relative strength of each main effect and interaction. A has the strongest effect as indicated by the high SS value. The degrees of freedom are necessary to determine the mean squares value.

#### Degrees of freedom of factors and interaction:

Four degrees of freedom are necessary because there are three effects we are looking to understand: factor A, factor B, and the interaction between them.

#### Mean squares of factors and interaction:

### Use JMP to Run a 2k Full Factorial DOE

Step 1: Initiate the experiment design

- Click DOE -> Custom Design
- A window named “DOE – Custom Design” pops up
- Double-click the name box and enter “Tastiness” into the “Response Name” box.
- Because the tastiness metric indicates how delicious the cake is, we want to maximize it.
- Click on the button “Add Factor”
- Click Categorical-> 2 level
- Enter the factor name “Temp” in the name box
- Enter the two levels’ codes “Low” and “High” in the values boxes
- Repeat the same steps for the second factor “Time” with two levels “Short” and “Long”
- Click Continue

Step 2: Select interaction between the two factors.

- Click on the drop-down box of “Interactions”
- Select “2nd”
- The interaction variable “Temp* Time” appears in the list of factors

Step 3: Make the design and make the table

- Click on the “Make Design” button
- The design pattern of the experiment appears
- Keep “Randomize” in the “Run Order” box
- Click on “Make Table” button
- A table with pre-populated treatments in random run order is generated

Step 4: Run the experiment and record the responses in the table created by JMP.

Step 5: Analyze the experiment results

- Click Analyze -> Fit Model
- A box named “Fit Model” pops up in which the response, the two factors and their interaction term are all pre-populated into the “Y” and “Construct Model Effects” boxes respectively
- Click on “Run” button
- The statistics of the model appear
- Analyze the model results

Step 6: Analyze the experiment results

- Click the red triangle next to “Response Tastiness”
- Select “Regression Reports”
- Select “Summary of Fit”
- Select “Analysis of Variance”
- Now your “Summary of Fit” and “Analysis of Variance” tables appear

High R^{2} value shows around 98% of the variation in the response can be explained by the model. A p-value smaller than the alpha level (0.05) indicates that the model is statistically significant (e.g. at least one of the independent variables in the model has a coefficient statistically different from zero).

Model summary: The Parameter Estimates table shows the intercept and coefficients of independent variables in the model. Since p values of all the independent variables in the mode are smaller than the alpha level (0.05), both factors and their interaction have a statistically significant impact on the response. The output provides intercept values and coefficients for a regression model equation.