5 Design Of Experiment

Statistics II · Unit 5 · 10 hrs

Design of experiment

Exam-focused notes for Design of experiment (Statistics II, STA215): what the TU syllabus asks and how it has actually been tested, with 10 solved past questions from this unit.

Design of experiment in short

Design of experiments is the discipline of planning how treatments are assigned to experimental material so that genuine treatment differences can be separated cleanly from chance variation, using the smallest workable amount of data.

Design of experiment: notes

Experimental design

An experiment is a planned procedure carried out to answer a specific question, and can be absolute (determining a single characteristic in isolation, such as a correlation coefficient) or comparative (comparing several procedures against each other, such as several fertilizers). A treatment is one of the inputs, methods, or conditions whose effect is being compared; an experimental unit is the smallest division of the experimental material to which one treatment is applied and on which the outcome is measured (a plot of land in an agricultural trial, a single test run in a computing experiment); the yield is the measured outcome on an experimental unit; a block is a subgroup of experimental units that are relatively homogeneous (similar) among themselves compared with the material as a whole; and experimental error is the variation seen among units that received the identical treatment, arising purely from uncontrolled sources rather than from the treatment itself.

Basic principles of experimental designs

R. A. Fisher identified three principles that every good experimental design should follow. Replication is applying each treatment to more than one experimental unit, which allows the experimental error to be estimated and reduces it by averaging over repeated observations. Randomization assigns treatments to experimental units by chance, giving every unit an equal probability of receiving any given treatment, which removes systematic bias from the comparison. Local control groups similar experimental units into blocks before assigning treatments, so that unavoidable variation between blocks is removed from the experimental error rather than being confused with the treatment effect. A design's name generally reflects which of these three principles it applies.

Completely Randomized Design (CRD)

Completely Randomized Design applies only replication and randomization, allocating treatments to experimental units in a fully random manner with no blocking, so it suits material that is already reasonably homogeneous. The model is $Y_{ij} = \mu + T_j + e_{ij}$, where $T_j$ is the effect of the $j$-th treatment and $e_{ij}$ is random error. Testing $H_0: \mu_A=\mu_B=\cdots$ (no difference between treatment means) against $H_1$: at least one treatment mean differs, the test statistic is $F_{cal} = \text{MST}/\text{MSE}$, compared against $F_{\alpha}$ with $(t-1, ,N-t)$ degrees of freedom, where $t$ is the number of treatments and $N$ the total number of observations.

Worked example. Three sorting algorithms are each timed on four equivalent input arrays (ms): A: $22,25,20,23$; B: $28,30,26,29$; C: $19,21,18,20$. With $t=3$, $N=12$, the ANOVA table is:

Source of variationd.f.SSMS$F$
Treatment2158.1779.0826.61
Error926.752.97
Total11184.92

The tabulated value is $F_{0.05(2,9)}=4.26$. Since $F_{cal}=26.61 > 4.26$, $H_0$ is rejected: the three algorithms differ significantly in mean execution time.

What this unit covers

  • Experimental design
  • Basic principles of experimental designs
  • Completely Randomized Design (CRD)
  • Randomized Block Design (RBD)
  • ANOVA table
  • Efficiency of RBD relative to CRD
  • Estimations of missing value (one observation only)
  • Advantages and disadvantages
  • Latin Square Design (LSD): Statistical analysis of m × m LSD for one observation per experimental unit, ANOVA table, Estimation of missing value in LSD (one observation only), Efficiency of LSD relative to RBD, Advantage and disadvantages
  • Problems and illustrative examples related to computer Science and IT

Completely Randomized Design

2081 · 10 marks

One-Way ANOVA: Seminar Evaluation Scores by Manager Level

A management consulting company presents a 3-day seminar on project management to various clients. The seminar is basically the same each time it is given. However, sometimes it is presented to high-level managers, sometimes to mid-level managers, and sometimes to low-level managers. The seminar facilitators believe evaluations of the seminar may vary with the audience. Suppose the following data are some randomly selected evaluation scores from different levels of managers after they have attended the seminar. The ratings are on a scale from 1 to 100, with 100 being the highest score. Use a one-way ANOVA to determine whether there is a significant difference in the evaluation according to manager level. The following table gives the scores to the various clients due to different manager levels.

$$\begin{array}{|c|c|c|c|} \hline & \text{High Level} & \text{Mid Level} & \text{Low Level} \ \hline & 85 & 90 & 55 \ & 75 & 100 & 75 \ & 85 & 95 & 80 \ & 60 & 85 & 75 \ & 70 & 90 & \ & & 75 & \ \hline \end{array}$$

[10]

High Level Mid Level Low Level :-::-::-: 85 90 55 75 100 75 85 95 80 60 85 75 70 90 75 - $n1 = 5,\ n2 = 6,\ n3 = 4$ - Total $N = 15$, groups $k = 3$ - $\alpha = 0.05$ - $H0: \mu1 = \mu2 = \mu3$ (no significant difference) - $H1:$ at least one mean differs $$T1 = 85+75+85+60+70 = 375,\quad \bar X1...

Open this answer on its own page →

2079 · 10 marks

Design of Experiments Question

What do you understand by 'Design of an Experiment'? Physicians depend on laboratory test results when managing medical problems such as diabetes or epilepsy. In a uniformity test of glucose tolerance, three different laboratories were sent $n_t = 5$ identical blood samples from a person who had drunk 50 mg of glucose dissolved in water. The laboratory results are listed below: Do data indicate a difference in the average readings for three laboratories? Use $\alpha = 0.05$.

Lab 1Lab 2Lab 3
12.19.310.0
11.711.110.5
10.910.710.1
10.210.911.0
10.69.010.4

[10]

Design of an experiment is the systematic planning of an investigation so that valid, unbiased, and reliable conclusions can be drawn from collected data. It specifies how treatments are allocated to experimental units, how many replications are used, and how to control extraneous variation. Fish...

Open this answer on its own page →

2078 · 10 marks

Statistical Test for Computer Lifetime Across Brands

There are three brands of computers namely Dell, Lenovo, and HP. The following are the lifetime of 15 computers in years. Apply appropriate statistical tests to identify whether the average lifetime (in years) is significantly different across three brands of computers at a 5% level of significance. You can again tabulate the data initially in the required format for statistical analysis.

$$\begin{array}{|c|c|c|} \hline \text{Serial Number} & \text{Computer Brand} & \text{Lifetime in years} \ \hline 1 & \text{Dell} & 15 \ 2 & \text{Lenovo} & 10 \ 3 & \text{HP} & 9 \ 4 & \text{Dell} & 12 \ 5 & \text{Lenovo} & 6 \ 6 & \text{HP} & 7 \ 7 & \text{Dell} & 4 \ 8 & \text{Lenovo} & 8 \ 9 & \text{HP} & 13 \ 10 & \text{Dell} & 11 \ 11 & \text{HP} & 5 \ 12 & \text{Lenovo} & 7 \ 13 & \text{Dell} & 3 \ 14 & \text{HP} & 5 \ 15 & \text{Lenovo} & 4 \ \hline \end{array}$$

[10]

Dell Lenovo HP ------------------ 15 10 9 12 6 7 4 8 13 11 7 5 3 4 5 - $n1 = n2 = n3 = 5$, total $N = 15$, groups $k = 3$ - Significance level $\alpha = 0.05$ Comparing means of three independent groups on a continuous variable → One-Way ANOVA. - $H0: \mu{Dell} = \mu{Lenovo} = \mu{HP}$ - $H1:$ at...

Open this answer on its own page →

Latin Square Design

2081 · 5 marks

What do you understand by design of experiments? Give the layout of a Latin Square Design. Explain why the number of treatments tested in a Latin Square Design should not be less than 3? [5]

Show solved answer

Design of Experiments and Latin Square Design

Design of Experiments

Design of experiments refers to the systematic planning and arrangement of experimental conditions so that valid, unbiased, and reliable conclusions can be drawn from the experimental data with minimum experimental error.

According to R.A. Fisher, the design of experiments is based on three fundamental principles:

Three Principles of Design of Experiments

PrincipleDescription
ReplicationExecution of an experiment more than once. It provides a more reliable estimate and helps minimize experimental error (maximize accuracy).
RandomizationTreatments are allocated to various plots in a random manner, giving each treatment an equal chance of being assigned to any experimental unit. It reduces bias.
Local ControlConverts a heterogeneous experimental field into homogeneous blocks (row-wise or column-wise), thereby reducing experimental error.

Latin Square Design (LSD)

LSD is a design used for non-homogeneous experimental material. It applies local control simultaneously along both rows and columns, making it more efficient than RBD. The experimental layout is always square (equal number of rows and columns).

Mathematical Model

$$Y_{ijk} = \mu + \alpha_i + \beta_j + T_k + e_{ijk}$$

Where:

  • $Y_{ijk}$ = observation in $i^{th}$ row and $j^{th}$ column receiving $k^{th}$ treatment
  • $\mu$ = general mean effect
  • $\alpha_i$ = effect due to $i^{th}$ row
  • $\beta_j$ = effect due to $j^{th}$ column
  • $T_k$ = effect due to $k^{th}$ treatment
  • $e_{ijk}$ = random error due to chance

Layout of a Latin Square Design (4x4 Example)

In an LSD with 4 treatments (A, B, C, D), each treatment appears exactly once in each row and exactly once in each column:

$$ \begin{array}{|c|c|c|c|} \hline \textbf{Col 1} & \textbf{Col 2} & \textbf{Col 3} & \textbf{Col 4} \ \hline A & B & C & D \ \hline B & C & D & A \ \hline C & D & A & B \ \hline D & A & B & C \ \hline \end{array} $$

Here, 4 rows, 4 columns, and 4 treatments -- each appearing exactly once per row and per column.


Why the Number of Treatments Should NOT Be Less Than 3

In an LSD with $m$ treatments, the degrees of freedom for error is given by:

$$df_{error} = (m-1)(m-2)$$

If $m = 2$ (only 2 treatments):

$$df_{error} = (2-1)(2-2) = 1 \times 0 = 0$$

  • With zero degrees of freedom for error, it is impossible to estimate the experimental error.
  • Without an error estimate, no F-test can be performed, and no valid statistical conclusions can be drawn.

If $m = 3$ (minimum acceptable):

$$df_{error} = (3-1)(3-2) = 2 \times 1 = 2$$

  • This gives at least 2 degrees of freedom for error, which allows estimation of experimental error and valid hypothesis testing.

Summary Table

Treatments ($m$)$df_{error} = (m-1)(m-2)$Valid?
20No -- error cannot be estimated
32Yes -- minimum acceptable
46Yes
512Yes

Conclusion: The number of treatments in an LSD must be at least 3 so that the degrees of freedom for error is greater than zero, enabling estimation of experimental error and valid F-tests in the ANOVA table.

Open this answer on its own page →

2080 · 10 marks

What is Latin Square Design? Under what conditions can this be used? Give lay out and analysis of Latin Square Design.[10]

Show solved answer

Latin Square Design (LSD)

Definition

Latin Square Design (LSD) is a design of experiment used for non-homogeneous experimental material where local control is applied simultaneously in two directions (row-wise and column-wise), thereby converting non-homogeneous material into homogeneous. It is more efficient than Randomized Block Design (RBD) because it controls experimental error in two directions at the same time.

The shape of LSD is always a square since it contains an equal number of rows, columns, and treatments. If there are m treatments, the layout is an m x m square.

LSD is based on all three principles of experimental design: Randomization, Replication, and Local Control.


Conditions for Use of LSD

LSD can be used under the following conditions:

  1. The experimental material is non-homogeneous in two directions (rows and columns).
  2. The number of rows = number of columns = number of treatments (i.e., the layout must be a square).
  3. The number of treatments is neither too small (less than 4) nor too large (more than 8), as a very large square becomes difficult to manage.
  4. When it is desired to control variation in two directions simultaneously.
  5. When local control needs to be applied both row-wise and column-wise.

Layout of Latin Square Design

For a 4 x 4 LSD with treatments A, B, C, D, a typical layout is:

Col 1Col 2Col 3Col 4
Row 1ABCD
Row 2BCDA
Row 3CDAB
Row 4DABC

Key property: Each treatment appears exactly once in each row and exactly once in each column.


Mathematical Model

The mathematical model for LSD is:

$$Y_{ijk} = \mu + \alpha_i + \beta_j + \tau_k + e_{ijk}$$

Where:

  • $Y_{ijk}$ = observation in the $i$-th row and $j$-th column receiving the $k$-th treatment
  • $\mu$ = general mean effect
  • $\alpha_i$ = effect due to $i$-th row $(i = 1, 2, \ldots, m)$
  • $\beta_j$ = effect due to $j$-th column $(j = 1, 2, \ldots, m)$
  • $\tau_k$ = effect due to $k$-th treatment $(k = 1, 2, \ldots, m)$
  • $e_{ijk}$ = random error (chance variation), assumed $\sim N(0, \sigma^2)$

Analysis of Latin Square Design

Hypotheses

  • For Rows: $H_0$: There is no significant difference among rows vs $H_1$: There is significant difference among rows.
  • For Columns: $H_0$: There is no significant difference among columns vs $H_1$: There is significant difference among columns.
  • For Treatments: $H_0$: There is no significant difference among treatments vs $H_1$: There is significant difference among treatments.

Notation

Let:

  • $m$ = number of treatments (also number of rows and columns)
  • $N = m^2$ = total number of observations
  • $T$ = Grand total of all observations
  • $R_i$ = Total of $i$-th row
  • $C_j$ = Total of $j$-th column
  • $T_k$ = Total of $k$-th treatment

Correction Factor and Sums of Squares

Correction Factor (CF): $$CF = \frac{T^2}{N} = \frac{T^2}{m^2}$$

Total Sum of Squares (TSS): $$TSS = \sum_{i}\sum_{j} Y_{ij}^2 - CF$$

Sum of Squares for Rows (SSR): $$SSR = \frac{1}{m}\sum_{i=1}^{m} R_i^2 - CF$$

Sum of Squares for Columns (SSC): $$SSC = \frac{1}{m}\sum_{j=1}^{m} C_j^2 - CF$$

Sum of Squares for Treatments (SSTr): $$SSTr = \frac{1}{m}\sum_{k=1}^{m} T_k^2 - CF$$

Error Sum of Squares (SSE): $$SSE = TSS - SSR - SSC - SSTr$$


Degrees of Freedom

SourceDegrees of Freedom (df)
Rows$m - 1$
Columns$m - 1$
Treatments$m - 1$
Error$(m-1)(m-2)$
Total$m^2 - 1$

Mean Squares

$$MSR = \frac{SSR}{m-1}, \quad MSC = \frac{SSC}{m-1}, \quad MSTr = \frac{SSTr}{m-1}, \quad MSE = \frac{SSE}{(m-1)(m-2)}$$


ANOVA Table for LSD

Source of VariationSSdfMSF-ratio
RowsSSR$m-1$MSR$F_R = \dfrac{MSR}{MSE}$
ColumnsSSC$m-1$MSC$F_C = \dfrac{MSC}{MSE}$
TreatmentsSSTr$m-1$MSTr$F_{Tr} = \dfrac{MSTr}{MSE}$
ErrorSSE
Open this answer on its own page →

2078 · 5 marks

State the mathematical model for Statistical analysis for m x m LSD for one observation per experimental unit. Also prepare a dummy ANOVA table for this. [5]

For a m × m Latin Square Design (LSD) with one observation per experimental unit, the linear statistical model is: $$X{ijk} = \mu + \alphai + \betaj + \gammak + \varepsilon{ijk}$$ where: Symbol Meaning ----------------- $X{ijk}$ Observation in the $i$-th row, $j$-th column, receiving $k$-th treat...

Open this answer on its own page →

2077 · 10 marks

Latin Square Design (LSD) - Concepts, Conditions, and Analysis

Definition: Latin Square Design is an experimental design used to control variability in two directions (rows and columns) simultaneously. The material is heterogeneous in two perpendicular directions, and local control is applied in both, making LSD more efficient than CRD and RBD for such situa...

Open this answer on its own page →

2075 · 10 marks

Latin Square Design

A Latin Square Design (LSD) is an experimental design used when experimental material is non-homogeneous in two directions (rows and columns). Local control is applied in both directions to reduce experimental error. The design is arranged in a square ($n \times n$) such that each treatment appea...

Open this answer on its own page →

2075 · 5 marks

ANOVA Table Completion and Analysis

Source SS df MSS F --------------- Column 72 ? ? 2 Rows ? ? 36 ? Treatments 180 3 ? ? Error ? 6 12 Total ? ? Presence of Columns, Rows, Treatments, Error as sources indicates a Latin Square Design (LSD). --- Since the variation is partitioned into Columns, Rows, Treatments, and Error, this is a L...

Open this answer on its own page →

ANOVA table

2080 · 5 marks

What do you understand by Design of Experiment? Prepare one way analysis of variance table and carry out the test for the significance of difference in the average yields between different varieties of seed. Given: Total sum of squares = 258, Sum of square between varieties of seed = 50, Total number of observations = 20 [5]

Design of Experiment (DOE) is the systematic planning, conducting, and statistical analysis of experiments so that valid and objective conclusions can be drawn about the effect of one or more factors on a response. It aims to control experimental error and to test the significance of treatment ef...

Open this answer on its own page →