You are on page 1of 12

Exp.No.

:10

Design of Experiments
CRD
Problem:1
A random sample is selected from each of
3 makes of ropes (Type 1, Type 2 and Type
3) and their breaking strength (in certain
units) are measured with the results in the
following table.
Type 1 : 14 16 18
Type 2 :14 13 15 22
Type 3 : 18 16 19 19 20
Write down the R programming code to test
whether the breaking strengths of the ropes
differ significantly at 5 % level of significance.
R Code
# CRD - ANOVA for 1 Way Classification
D1=c(14, 16, 18)
D2=c(14, 13,15,22)
D3=c(18,16,19,19,20)
Data=c(D1, D2, D3)
Data
Type=c(rep("Type1",length(D1)),rep("Type2",l
ength(D2)),rep("Type3",length(D3)))
Type
ANOVA1=aov(Data~Type)
summary(ANOVA1)
FTab=qf((1-0.05),9,2)
RBD
Problem:2

The following experiment is interested in


comparing the effect four different chemicals (A,
B, C and D) in producing water resistance (y) in
textiles.
A strip of material, randomly selected from each
bolt, is cut into four pieces (samples) the pieces
are randomly assigned to receive one of the four
chemical treatments.
This process is replicated three times
producing a Randomized Block (RB)
design.
Moisture resistance (y) were measured for
each of the samples. (Low readings
indicate low moisture penetration).
The data is given in the diagram and table
on the next slide.
Diagram: Blocks (Bolt Samples)

9.9 C 13.4 D 12.7 B


10.1 A 12.9 B 12.9 D
11.4 B 12.2 A 11.4 C
12.1 D 12.3 C 11.9 A
Blocks (Bolt Samples)
Chemical 1 2 3
A 10.1 12.2 11.9
B 11.4 12.9 12.7
C 9.9 12.3 11.4
D 12.1 13.4 12.9
# RBD - ANOVA for 2 Way Classification

Data=c( 10.1, 12.2, 11.9, 11.4, 12.9, 12.7, 9.9,


12.3, 11.4, 12.1, 13.4, 12.9)
Data
Chemicals=c(rep(“A",3),rep(“B",3),rep(“C“,3),rep(“
D”,3))
Chemicals
Bolts=c(rep(c(“1", “2", “3" ),4))
Bolts
ANOVA2=aov(Data~(Chemicals+Bolts))
summary(ANOVA2)
LSD
Problem:3
The following data resulted from an
experiment to compare four burners (A,B,C
&D). A Latin square design was used as the
tests were made on 4 engines and were
spread over 4 days.
Engines
Days Engine 1 Engine 2 Engine 3 Engine 4
Day 1 C 25 B23 A20 D20
Day 2 A19 D19 C21 B18
Day 3 B19 A14 D17 C20
Day 4 D17 C20 B21 A15
Write down the R programming code to test the
hypothesis that there is no difference
between (i) days, (ii) engines and (iii) burners at 5
% level of significant.
R Code:
# LSD - ANOVA for 3 Way Classification
Data=c(25,23, 20,20,19,19, 21, 18, 19,
14,17,20,17,20,21,15)
Data
Day=c(rep("Day1",4),rep("Day2",4),rep("Day3",4),
rep("Day4",4))
Day
Engine=c(rep(c("Eng1","Eng2","Eng3", "Eng4"),4))
Engine
Burner=c(“C", "B", “A", “D", “A", “D", “C", "B", "B“,
“A", “D", “C", “D", “C", “B", “A" )
Burner
ANOVA3=aov(Data~(Day+Engine+Burner))
summary(ANOVA3)

You might also like