Response Surface Designs Robust against Nuisance Factors

*Nam-Ky Nguyen, Mai Phuong Vuong and Tung-Dinh Pham*

#### **Abstract**

This paper discusses an algorithmic approach to constructing trend-free and orthogonally-blocked response surface designs. The constructed designs have the main effects, 2-factor interactions and second-order effects being orthogonal or nearorthogonal to the nuisance factors such as the time-trend or the blocking factors. The paper also provides a catalogue of (near-) trend-free Box–Behnkens designs and orthogonally blocked Box–Behnkens designs arranged in rows and columns.

**Keywords:** Box–Behnken designs, D-optimality, Interchange algorithm, Orthogonal blocking, Trend-free designs

#### **1. Introduction**

Consider an experiment to study the effect of processing time, temperature and shear stress caused by pumping on the quality of skim milk powder. The milk for this experiment is blended and stored at 4°C and is used over a week for a series of experimental runs. As the milk quality deteriorates over the week, it is desirable for the scientist to have a design whose runs are in a particular order such that the main effects (MEs), 2-factor interactions (2FIs) and second-order effects (SOEs) are orthogonal or near-orthogonal to the time trend.

Box et al. [1], p. 486 discussed an experiment using the Box–Behnken design or BBD [2] to study the influence of four factors on nylon flake blender efficiency. The four factors are (1) particle size, (2) screw lead length, (3) screw rotation and (4) blending time. The design has 27 runs in three blocks of nine runs each. Let us assume there is a need to add an additional factor, i.e. supplier in addition to the existing blocking factor, say operator and find a design which can accommodate the new blocking factor.

The two mentioned experiments emphasise the need for a special class of response surface designs (RSDs) and experiment designs in general which are robust against nuisance factors such as the time trend and the heterogeneous environment. Particular attention will be given to the BBDs since BBDs are the most widely used 3-level designs.

#### **2. Measure of goodness of a (near-) trend-free design or orthogonally blocked design**

Consider the following second-order model for an *n*-run design with *v* time trend columns (or blocking factor columns) *z*1, … , *zv* and *m* factors *x*1, … , *xm*, of which *m*<sup>3</sup> factors are at 3-level and the rest at 2-level:

$$\mathbf{y}\_u = \delta\_1 \mathbf{z}\_{1u} + \dots + \delta\_\nu \mathbf{z}\_{vu} + \beta\_0 + \sum\_{i=1}^{m\_3} \beta\_{ii} \mathbf{x}\_{iu}^2 + \sum\_{i=1}^m \beta\_i \mathbf{x}\_{iu} + \sum\_{i=1}^{m-1} \sum\_{j=i+1}^m \beta\_{ij} \mathbf{x}\_{iu} \mathbf{x}\_{ju} + \mathbf{e}\_u \tag{1}$$

where *yu* ð Þ *u* ¼ 1, … , *n* is the response value of the *u*th run, *zw*'s are the nuisance columns/variables and ϵ*<sup>u</sup>* is a random error associated with the *u*th run. If the nuisance columns *zw*'s are the time trend ones, there will be two columns, one for linear trend and one quadratic. The linear trend column (first column) is created by scaling a column of numbers 1, ð Þ … , *n* <sup>0</sup> by subtracting each value from the column mean and then dividing the resulting number by the largest one. The quadratic trend column (second column) is created by scaling a column obtained by squaring each element of the linear trend column.

If the nuisance columns *zw*'s are associated with the blocking factors, there will be *<sup>v</sup>* <sup>¼</sup> <sup>P</sup>*<sup>r</sup> <sup>i</sup>*¼1ð Þ *bi* � <sup>1</sup> � � columns where *<sup>r</sup>* is the number of blocking factors and *bi* is the number of blocks/categories for each blocking factor. Before standardisation by subtracting the values of each column by the column mean, these columns are dummy variables, which take value 1 if the *u*th run is in the *w*th block and zero otherwise (see [3], Section 8 and [4], Chapter 8).

Eq. (1) can also be written in matrix form as:

$$\mathbf{y} = \mathbf{Z}\boldsymbol{\delta} + \mathbf{X}\boldsymbol{\beta} + \mathbf{e} \tag{2}$$

where **y** is an *n* � 1 response vector, **Z** a matrix of size *n* � *v* containing *v zw* columns in (1), *δ* a *v* � 1 column vector representing nuisance effects, **X** is the expanded design matrix of size *n* � *p*, *β* a *p* � 1 column vector of parameters to be estimated, and **ϵ** an *n* � 1 column vector of random errors. The least square solution for the unknown parameters *δ* and *β* in (2) is thus the solution of the following equation:

$$
\begin{bmatrix} \mathbf{Z'}\\\mathbf{X'} \end{bmatrix} \mathbf{y} = \begin{bmatrix} \mathbf{Z'} \mathbf{Z} & \mathbf{Z'} \mathbf{X} \\\mathbf{X'} \mathbf{Z} & \mathbf{X'} \mathbf{X} \end{bmatrix} \begin{bmatrix} \hat{\boldsymbol{\delta}} \\ \hat{\boldsymbol{\beta}} \end{bmatrix} \tag{3}
$$

When the condition

$$\mathbf{Z}^{\prime}\mathbf{X}=\mathbf{0}\tag{4}$$

is satisfied, it can be seen that the solution for *β* from (3) will be the same as the one from the equation **X**<sup>0</sup> **y** ¼ **X**<sup>0</sup> **X**^*β*, i.e. the equation for a model without the nuisance columns. The condition in (4) is called the time trend-free condition or orthogonal block condition.

To measure how good of a (near-) trend-free design or orthogonally blocked design is, we use the following fraction:

$$\left( \left( \mathbf{X}' \mathbf{X} \right) / \left( \left( \mathbf{Z}' \mathbf{Z} \mid \mathbf{X}' \mathbf{X} \right) \right) \right)^{1/p} \tag{5}$$

where *X* ¼ ½ � **Z X** includes the nuisance factors and *p* is the number of parameters of the model to be estimated (i.e. the number of columns of **X**). A well known result of Fischer [5] states that given a positive definite hermitian matrix **G** of the form:

$$\mathbf{G} = \begin{bmatrix} \mathbf{A} & \mathbf{B} \\ \mathbf{B'} & \mathbf{D} \end{bmatrix} \tag{6}$$

*Response Surface Designs Robust against Nuisance Factors DOI: http://dx.doi.org/10.5772/intechopen.97047*

then ∣**G**∣≤∣**A**k**D**∣, and the equality holds if and only if **B** ¼ **0**. If follows from this inequality that:

$$|\mathbf{X}'\mathbf{X}| \le |\mathbf{Z}'\mathbf{Z}| |\mathbf{X}'\mathbf{X}|\tag{7}$$

which implies the measure in (5) is less than or equal to 1, and it becomes 1 if and only if **Z**<sup>0</sup> **X** ¼ 0.

#### **3. An algorithm to attain the orthogonality condition Z**<sup>0</sup> **X** ¼ **0**

Let **x**<sup>0</sup> *<sup>i</sup>* and **x**<sup>0</sup> *<sup>u</sup>* be two rows of **X** and **z**<sup>0</sup> *<sup>i</sup>* and **z**<sup>0</sup> *<sup>u</sup>* be the corresponding rows of **Z**. Swapping the *i*th and *u*th rows of **X** is the same as adding the following matrix to **Z**<sup>0</sup> **X**:

$$-(\mathbf{z}\_i - \mathbf{z}\_u)(\mathbf{x}\_i - \mathbf{x}\_u)'.\tag{8}$$

We use this matrix result to develop an algorithm to achieve the condition **Z**0 **X** ¼ **0**, i.e. for constructing (near-) trend-free designs and orthogonally blocked designs. This algorithm has two main steps:


**Table 1 (a)** and **1 (b)** display the *X*ð Þ ¼ ð Þ **Z X** matrices of a BBD for three factors in 15 runs: (a) ordered in the presence of both linear and quadratic trends; (b) arranged in three blocks of five runs each. This example shows how the **Z** matrices are constructed. The **X** matrix contains a column of 1's representing the intercept, followed by three columns representing SOEs, three columns representing the MEs and three columns representing 2FIs.

#### **Remarks**



The designs whose *X* matrices are in **Table 1 (a)** and **1 (b)** were constructed by this approach. In **Table 1 (a)**, the **X**<sup>2</sup> matrix is associated with the MEs and in **Table 1 (b)**, the **X**<sup>2</sup> matrix is associated with the MEs and 2FIs. Readers can verify that **Z**<sup>0</sup> **X**<sup>2</sup> ¼ **0**.

The algorithm we describe in this Section is closely aliased to the ones of Nguyen [6] and Nguyen [7]. As such, it does not require matrix inversions and therefore is much faster than the ones by other authors (See e.g. [8–11]).

#### **4. BBDs robust against time trend and blocking factors**

The algorithm in the previous Section has been used to construct BBDs for 3–7 factors which are (near-) trend-free and orthogonally blocked with two blocking factors (i.e. rows and columns).

We use the correlation cell plots (CCPs) proposed by Jones & Nachtsheim [12] to display the magnitude of the correlation between the SOEs, MEs and 2FIs with the columns/variables representing nuisance factors. The colour of each cell in these plots ranges from white (no correlation) to dark (correlation of 1 or close to 1). **Figures 1 (a)** and **1 (b)** show the CCPs of the BBDs whose *X* matrices are **Table 1 (a)** and **1 (b)**. In **Figure 1 (a)**, it can be seen that the MEs are orthogonal to both the linear and quadratic trends. In **Figure 1 (b)**, it can be seen that both the MEs and 2FIs are orthogonal to the block effects. For both Figures, the SOEs are slightly correlated with the nuisance effects.

Appendix 1 tabulates the BBDs which are near- trend-free. These BBDs are for three factors in 15 runs, four factors in 27 runs, five factors in 46 runs and six factors in 54 runs. The BBD for seven factors in 62 runs can be found in the link given in the next Section. These BBDs have the MEs being orthogonal to the time trends and have CCPs very similar to the one in **Figure 1 (a)**. Let TF (time factor) be the fraction computed in (5) for these designs. The TF values of these five designs are 0.91, 0.959, 0.986, 0.974 and 0.976 respectively.

Appendix 2 tabulates the BBDs which are near-orthogonally blocked. These BBDs are for three factors in 16 runs arranged in two rows and two columns, four factors in 28 runs arranged in two rows and two columns, five factors in 48 runs arranged in two rows and three columns, and six factors in 54 runs arranged in two rows in three columns. The BBD for seven factors in 60 runs arranged in two rows

**Figure 1.** *CCPs of the BBDs whose X matrices are Table 1 (a) and 1 (b).*

and three columns can be found in the link given in the next Section. With the exception of the first BBD, these BBDs have both the MEs and 2FIs being orthogonal to the block effects and have CCPs very similar to the one in **Figure 1 (b)**. Let BF (blocking factor) be the fraction computed in (5) for these designs. The BF values of these five designs are 0.944, 1, 0.992, 0.927 and 0.962 respectively. Note that for the 4-factor BBD, all effects are orthogonally blocked.

#### **5. Conclusion**

This paper describes an algorithmic approach to arrange the runs of an experimental design in general and an RSD in particular so that it is robust against nuisance factors such as time trend and blocking factors. Designs constructed by this approach can supplement the existing catalogue of designs in the literature. Although 3-level designs are used in this paper to illustrate our blocking approach, ours can also be used with 2-level designs (the factorial and fractional factorial designs) or mixed-level designs [13–15] or mixture designs [16].

The link of the supplemental material which contains the Java implementation of the algorithm in Section 3 and additional examples is: https://drive.google.com/d rive/folders/14g7E3I4F8KIL2rcZMovlvJmsaM7iC7pJ?usp=sharing.


#### **Appendix 1: BBDs for 3–6 factors with the trend-free main effects**

#### *Response Surface Designs Robust against Nuisance Factors DOI: http://dx.doi.org/10.5772/intechopen.97047*


## **Appendix 2: BBDs for 3–6 factors arranged in rows and columns**



#### *Response Surface Designs Robust against Nuisance Factors DOI: http://dx.doi.org/10.5772/intechopen.97047*


## **Author details**

Nam-Ky Nguyen<sup>1</sup> \*, Mai Phuong Vuong<sup>2</sup> and Tung-Dinh Pham<sup>3</sup>

1 Vietnam Institute for Advanced Study in Mathematics, Hanoi, Vietnam

2 Hanoi University of Science and Technology, Vietnam

3 VNU University of Science, Vietnam National University, Hanoi

\*Address all correspondence to: nknam@viasm.edu.vn

© 2021 The Author(s). Licensee IntechOpen. This chapter is distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/ by/3.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

## **References**

[1] Box, G.E.P., Hunter, J.S. & Hunter, W.G. (2005) Statistics for Experiments 2nd ed., New York: Wiley.

[2] Box, G.E.P., & Behnken, D. (1960) Some new three level designs for the study of quantitative variables. Technometrics, 2, 455–475.

[3] Box, G.E.P. & Hunter, J.S. (1957) Multi-factor experimental designs for exploring response surfaces, The Annals of Mathematical Statistics, 28, 159-241.

[4] Khuri, A.I. & Cornell, J.A. (1996) Response Surfaces, Designs and Analyses. 2nd ed. (New York, Marcel Dekker).

[5] Fischer, E. (1908) Über den Hadamardschen Determinantensatz. Archiv Der Mathematik und Physik, 13, 32-40.

[6] Nguyen, N-K (2001) Cutting Experimental Designs into Blocks. Austral. & New Zealand J. of Statistics 43, 367-374.

[7] Nguyen, N-K. (2014) Making Experimental Designs Robust Against Time Trend. Statistics & Applications, 11, 79-86.

[8] Atkinson, A.C. & Donev, A.N. (1996) Experimental designs optimally balanced for trend. Technometrics 38, 333-341.

[9] Cook, R.D. & Nachtsheim, C.J. (1989) Computer-aided blocking of factorial and response surface designs. Technometrics 31, 339-346.

[10] Gilmour, S.G. & Trinca L.A. (2003) Row-Column Response Surface Designs. Journal of Quality Technology 35, 184-193.

[11] Jones, B. & Nachtsheim, C. J. (2016) Blocking Schemes for Definitive Screening Designs, Technometrics 58, 74-83.

[12] Jones, B. and Nachtsheim, C. J. (2011). A Class of Three Levels Designs for Definitive Screening in the Presence of Second-Order Effects. Journal of Quality Technology 43, 1-15.

[13] Jones, B. & Nachtsheim, C. J. (2013) Definitive Screening Designs with Added Two-Level Categorical Factors. Journal of Quality Technology 45, 121-129.

[14] Nguyen, N-K., Pham, D-T. and Vuong, M.P. (2020) Constructing D-Efficient Mixed-Level Foldover Designs Using Hadamard Matrices. Technometrics, 62, 48-56,

[15] Nguyen, N-K., Kenett, R.S., Pham, D-T. and Vuong, M.P. (2021) Defficient Mixed-Level Foldover Designs for Screening Experiments. To appear in Springer Handbook of Engineering Statistics, 2nd ed, Hoang Pham (Editor).

[16] Cornell, J.A. (2002) Experiments with Mixtures: Designs, Models and the Analysis of Mixture data. 3rd ed. New York: John Wiley & Sons,Inc.

#### **Chapter 5**
