Model and hypotheses

\[y_{ijk}=\mu+\alpha_i+\beta_{j(i)}+\epsilon_{ijk}, \quad i=1,2,3;\ j=1,2,3,4;\ k=1,2,3.\]

Here, \(\mu\) is the overall mean,

\(\alpha_i\) is the process effect,

\(\beta_{j(i)}\sim N(0,\sigma_B^2)\) is the random batch effect,

\(\epsilon_{ijk}\sim N(0,\sigma^2)\) is random error.

Processes: \(H_0:\alpha_1=\alpha_2=\alpha_3=0\); \(H_a:\) at least one process effect differs from zero.

Batches within processes: \(H_0:\sigma_B^2=0\); \(H_a:\sigma_B^2>0\).

We use \(\alpha=0.05\) for both tests.

Data

Each set of three values contains the observations for one batch.

prcs <- factor(c(1,1,1,1,1,1,1,1,1,1,1,1,
                    2,2,2,2,2,2,2,2,2,2,2,2,
                    3,3,3,3,3,3,3,3,3,3,3,3))
batch <- factor(c(1,1,1,2,2,2,3,3,3,4,4,4,
                  1,1,1,2,2,2,3,
                  3,3,4,4,4,
                  1,1,1,2,2,2,3,3,3,4,4,4))
rate <- c(25,30,26,19,28,20,15,17,14,15,16,13,
          19,17,14,23,24,21,18,21,17,35
          ,27,25,
          14,15,20,35,21,24,38,54,50,25,29,33)
prop <- data.frame(prcs, batch, rate)

ANOVA

\[F_{\text{process}}=\frac{MS_{\text{process}}}{MS_{\text{batch(process)}}}, \qquad F_{\text{batch(process)}}=\frac{MS_{\text{batch(process)}}}{MS_E}.\]

model <- aov(rate ~ prcs / batch, data = prop)
results <- summary(model)[[1]]

ss <- results[, "Sum Sq"]
df <- results[, "Df"]
ms <- results[, "Mean Sq"]
f_prcs <- ms[1] / ms[2]
f_batch <- ms[2] / ms[3]
p_prcs <- pf(f_prcs, df[1], df[2], lower.tail = FALSE)
p_batch <- pf(f_batch, df[2], df[3], lower.tail = FALSE)

anova_result <- data.frame(
  Source = c("process", "Batch within process", "Error", "Total"),
  DF = c(df, sum(df)),
  SS = c(ss, sum(ss)),
  MS = c(ms, NA),
  F = c(f_prcs, f_batch, NA, NA),
  p_value = c(p_prcs, p_batch, NA, NA)
)
print(anova_result, row.names = FALSE, digits = 6)
##                Source DF       SS       MS        F     p_value
##               process  2  676.056 338.0278  1.46432 2.81470e-01
##  Batch within process  9 2077.583 230.8426 12.20313 5.47671e-07
##                 Error 24  454.000  18.9167       NA          NA
##                 Total 35 3207.639       NA       NA          NA

Processes: \(F(2,9)=1.4643\), \(p=0.2815\). Fail to reject \(H_0\). There is insufficient evidence that mean burning rate differs among the three processes.

Batches within processes: \(F(9,24)=12.2031\), \(p=5.48\times10^{-7}\). Reject \(H_0\). Burning rate varies significantly among batches within processes.

tapply(rate, prcs, mean)
##        1        2        3 
## 19.83333 21.75000 29.83333

The process means are 19.83, 21.75, and 29.83.

At the 0.05 significance level, there is no substantial difference in mean burning rate among the three production processes (p = 0.2815). However, the batches within processes differ significantly (p < 0.001), indicating substantial batch-to-batch variation. Although Process 3 has the highest sample mean, there is not enough evidence to conclude that its mean burning rate is higher than the others.