Presentation is loading. Please wait.

Presentation is loading. Please wait.

Completely Randomized Design

Similar presentations


Presentation on theme: "Completely Randomized Design"— Presentation transcript:

1 Completely Randomized Design
9 17

2 Completely Randomized Design
1. Experimental Units (Subjects) Are Assigned Randomly to Treatments Subjects are Assumed Homogeneous 2. One Factor or Independent Variable 2 or More Treatment Levels or Classifications 3. Analyzed by One-Way ANOVA

3 Cage positions Completely randomized design
(3 treatments x 3 replications) A

4 Cage positions Completely randomized design
(3 treatments x 3 replications) A B

5 Cage positions Completely randomized design
(3 treatments x 3 replications) A B

6 Cage positions Completely randomized design
(3 treatments x 3 replications) A B

7 Cage positions Completely randomized design
(3 treatments x 3 replications) A B C

8 Cage positions Completely randomized design
(3 treatments x 3 replications) A B C

9 Cage positions Completely randomized design
(3 treatments x 3 replications) A B C

10 Cage positions Completely randomized design
(3 treatments x 3 replications) A B C

11 Cage positions Completely randomized design
(3 treatments x 3 replications) A B C

12 Cage positions Completely randomized design
(3 treatments x 3 replications) A B C

13 Randomized Design Example
Are the mean training times the same for 3 different methods? 9 subjects 3 methods (factor levels)    78

14 The Linier Model Xij =μ + ti +εij
i = 1,2,…, t j = 1,2,…, r Xij = the observation in ith treatment and the jth replication m = overall mean t i = the effect of the ith treatment eij = random error

15 One-Way ANOVA F-Test 1. Tests the Equality of 2 or More (t) Population Means 2. Variables One Nominal Scaled Independent Variable 2 or More (t) Treatment Levels or Classifications One Interval or Ratio Scaled Dependent Variable 3. Used to Analyze Completely Randomized Experimental Designs Note: There is one dependent variable in the ANOVA model. MANOVA has more than one dependent variable. Ask, what are nominal & interval scales?

16 Assumptions 1. Randomness & Independence of Errors 2. Normality
Independent Random Samples are Drawn for each condition 2. Normality Populations (for each condition) are Normally Distributed 3. Homogeneity of Variance Populations (for each condition) have Equal Variances

17 Hypotheses H0: 1 = 2 = 3 = ... = t Ha: Not All i Are Equal
All Population Means are Equal No Treatment Effect Ha: Not All i Are Equal At Least 1 Pop. Mean is Different Treatment Effect NOT 1  2  ...  t

18 Hypotheses f(X) X  =  =  f(X) X  =   H0: 1 = 2 = 3 = ... = t
All Population Means are Equal No Treatment Effect Ha: Not All i Are Equal At Least 1 Pop. Mean is Different Treatment Effect NOT 1  2  ...  t f(X) X = = 1 2 3 f(X) X = 1 2 3

19 One-Way ANOVA Basic Idea
1. Compares 2 Types of Variation to Test Equality of Means 2. Comparison Basis Is Ratio of Variances 3. If Treatment Variation Is Significantly Greater Than Random Variation then Means Are Not Equal 4. Variation Measures Are Obtained by ‘Partitioning’ Total Variation

20 One-Way ANOVA Partitions Total Variation
Variation due to Random Sampling are due to Individual Differences Within Groups. 84

21 One-Way ANOVA Partitions Total Variation
Variation due to Random Sampling are due to Individual Differences Within Groups. 85

22 One-Way ANOVA Partitions Total Variation
Variation due to Random Sampling are due to Individual Differences Within Groups. Variation due to treatment 86

23 One-Way ANOVA Partitions Total Variation
Variation due to Random Sampling are due to Individual Differences Within Groups. Variation due to treatment Variation due to random sampling 87

24 One-Way ANOVA Partitions Total Variation
Variation due to Random Sampling are due to Individual Differences Within Groups. Variation due to treatment Variation due to random sampling Sum of Squares Among Sum of Squares Between Sum of Squares Treatment Among Groups Variation 88

25 One-Way ANOVA Partitions Total Variation
Variation due to Random Sampling are due to Individual Differences Within Groups. Variation due to treatment Variation due to random sampling Sum of Squares Among Sum of Squares Between Sum of Squares Treatment (SST) Among Groups Variation Sum of Squares Within Sum of Squares Error (SSE) Within Groups Variation 89

26 Total Variation Response, X X Group 1 Group 2 Group 3

27 Treatment Variation Response, X X3 X X2 X1 Group 1 Group 2 Group 3

28 Random (Error) Variation
Response, X X3 X2 X1 Group 1 Group 2 Group 3

29 SStotal=SSE+SST

30 But

31 Thus, SStotal=SSE+SST

32 One-Way ANOVA F-Test Test Statistic
F = MST / MSE MST Is Mean Square for Treatment MSE Is Mean Square for Error 2. Degrees of Freedom 1 = t -1 2 = tr - t t = # Populations, Groups, or Levels tr = Total Sample Size

33 One-Way ANOVA Summary Table
Source of Degrees Sum of Mean F Variation of Squares Square Freedom (Variance) n = sum of sample sizes of all populations. c = number of factor levels All values are positive. Why? (squared terms) Degrees of Freedom & Sum of Squares are additive; Mean Square is NOT. Treatment t - 1 SST MST = MST SST/(t - 1) MSE Error tr - t SSE MSE = SSE/(tr - t) Total tr - 1 SS(Total) = SST+SSE

34 ANOVA Table for a Completely Randomized Design
Source of Sum of Degrees of Mean Variation Squares Freedom Squares F Treatments SST t SST/t-1 MST/MSE Error SSE tr - t SSE/tr-t Total SSTot tr - 1

35 The F distribution  F  Two parameters
increasing either one decreases F-alpha (except for v2<3) I.e., the distribution gets smashed to the left F F ( v1 , v2 )

36 One-Way ANOVA F-Test Critical Value
If means are equal, F = MST / MSE  1. Only reject large F! Reject H Do Not Reject H F F a ( t 1 , tr -t) Always One-Tail! © T/Maker Co.

37 Example: Final exam notes
Completely Randomized Design Experiment is conducted to evaluate the effect of learning methods (self, class, class learning with practical work) to the final examination notes of experimental design class. Three student are used as replications. Are three learning methods equally effective?

38 Example: Final exam notes
Observation Self Class Class practice Sample Mean Sample Variance

39 Example: Final exam notes
Hypotheses H0: 1=2=3 Ha: Not all the means are equal where: 1 = mean number of self learning 2 = mean number of class learning 3 = mean number of class with practice

40 Example: Final Exam notes
Mean Square Between Treatments Since the sample sizes are all equal: μ (grand mean)= ( )/3 = 80 SSTR= 3(74–80)2+ 3(80–80)2+ 3(86–80)2= 216 MSTR = 216/(3 - 1) = 108 Mean Square Error SSE = 2(9) + 2(9) + 2(21) = 78 MSE = 78/(9 - 3) = 13 _ _ _

41 Example: Final exam notes
Rejection Rule Using test statistic: Reject H0 if Ftable > 5.14 Using p-value: Reject H0 if p-value < .05 where F.05 = 5.14 is based on an F distribution with 2 numerator degrees of freedom and 6 denominator degrees of freedom

42 Example: Final exam notes
Test Statistic Fcalc. = MST/MSE = 108/13= 8.31 Conclusion Since Fcalc. = 8.31 > F.05 = 5.14, we reject H0. There is sufficient evidence to conclude that the final exam notes of experimental design class are affected by learning methods.

43 Example: Final exam notes
ANOVA Table Source of Sum of Degrees of Mean Variation Squares Freedom Squares Fcalc. Treatments Error Total

44 Using Excel’s ANOVA: Single Factor Tool
Value Worksheet (top portion)

45 Using Excel’s ANOVA: Single Factor Tool
Value Worksheet (bottom portion)

46 (Randomized Complete Block Design)
RCBD (Randomized Complete Block Design)

47 Randomized Complete Block Design
An experimental design in which there is one independent variable, and a second variable known as a blocking variable, that is used to control for confounding or concomitant variables. It is used when the experimental unit or material are heterogeneous There is a way to block the experimental units or materials to keep the variability among within a block as small as possible and to maximize differences among block The block (group) should consists units or materials which are as uniform as possible

48 Randomized Complete Block Design
Confounding or concomitant variable are not being controlled by the analyst but can have an effect on the outcome of the treatment being studied Blocking variable is a variable that the analyst wants to control but is not the treatment variable of interest. Repeated measures design is a randomized block design in which each block level is an individual item or person, and that person or item is measured across all treatments.

49 The Blocking Principle
Blocking is a technique for dealing with nuisance factors A nuisance factor is a factor that probably has some effect on the response, but it is of no interest to the experimenter. However, the variability it transmits to the response needs to be minimized Typical nuisance factors include batches of raw material, operators, pieces of test equipment, time (shifts, days, etc.), different experimental units Many industrial experiments involve blocking (or should) Failure to block is a common flaw in designing an experiment

50 The Blocking Principle
If the nuisance variable is known and controllable, we use blocking If the nuisance factor is known and uncontrollable, sometimes we can use the analysis of covariance to statistically remove the effect of the nuisance factor from the analysis If the nuisance factor is unknown and uncontrollable (a “lurking” variable), we hope that randomization balances out its impact across the experiment Sometimes several sources of variability are combined in a block, so the block becomes an aggregate variable

51 Randomized Complete Block Design
Class positions Randomized Complete Block Design (3 treatments x 3 Blocks) Blue Class Yellow Class Red Class

52 Randomized Complete Block Design
Class positions Randomized Complete Block Design (3 treatments x 3 Blocks) A Blue Class Yellow Class Red Class

53 Randomized Complete Block Design
Class positions Randomized Complete Block Design (3 treatments x 3 Blocks) A C Blue Class Yellow Class Red Class

54 Randomized Complete Block Design
Class positions Randomized Complete Block Design (3 treatments x 3 Blocks) A C B Blue Class Yellow Class Red Class

55 Randomized Complete Block Design
Class positions Randomized Complete Block Design (3 treatments x 3 Blocks) A C B Blue Class Yellow Class Red Class

56 Randomized Complete Block Design
Class positions Randomized Complete Block Design (3 treatments x 3 Blocks) A C B Blue Class Yellow Class Red Class

57 Randomized Complete Block Design
Class positions Randomized Complete Block Design (3 treatments x 3 Blocks) A C B Blue Class Yellow Class Red Class

58 Randomized Complete Block Design
Class positions Randomized Complete Block Design (3 treatments x 3 Blocks) A C B Blue Class Yellow Class Red Class

59 Randomized Complete Block Design
Class positions Randomized Complete Block Design (3 treatments x 3 Blocks) A C B Blue Class Yellow Class Red Class

60 Randomized Complete Block Design
Class positions Randomized Complete Block Design (3 treatments x 3 Blocks) A C B Blue Class Yellow Class Red Class

61 Partitioning the Total Sum of Squares in the Randomized Block Design
SStotal (total sum of squares) SSE (error sum of squares) SST (treatment sum of squares) SSB (sum of squares blocks) SSE’ (sum of squares error)

62 A Randomized Block Design
Individual observations . Single Independent Variable Blocking Variable 30

63 The Linier Model i = 1,2,…, t j = 1,2,…,r yij = the observation in ith treatment in the jth block m = overall mean ti = the effect of the ith treatment No interaction between blocks and treatments rj = the effect of the jth block eij = random error

64 Extension of the ANOVA to the RCBD
ANOVA partitioning of total variability:

65 Extension of the ANOVA to the RCBD
The degrees of freedom for the sums of squares in are as follows: Ratios of sums of squares to their degrees of freedom result in mean squares, and The ratio of the mean square for treatments to the error mean square is an F statistic  used to test the hypothesis of equal treatment means

66 ANOVA Procedure The ANOVA procedure for the randomized block design requires us to partition the sum of squares total (SST) into three groups: sum of squares due to treatments, sum of squares due to blocks, and sum of squares due to error. The formula for this partitioning is SSTot = SSTreatment + SSBlock + SSE The total degrees of freedom, tr - 1, are partitioned such that t - 1 degrees of freedom go to treatments, r - 1 go to blocks, and (t - 1)(r - 1) go to the error term.

67 ANOVA Table for a Randomized Block Design
Source of Sum of Degrees of Mean Variation Squares Freedom Squares F Treatments SST t – SST/t MST/MSE Blocks SSB r - 1 Error SSE (t - 1)(r - 1) SSE/(t-1)(r-1) Total SSTot tr - 1

68 Example: Final exam notes
Randomized Block Design There are three learning methods (A: self learning; B: Class learning; C: class+ practice learning) that will be evaluated. To study the effect of learning methods to the final exam notes of experimental design course, three classes will used for the experiment (blue, yellow and red classes). One student will be taken randomly as a sample for each learning method. Is there any different student achievement from each learning method?

69 Example: Final Exam Notes
Class Learning methods Block (Block) A B C Means Treatment Means

70 Example: Final exam notes
Mean Square Due to Treatments The overall sample mean is 80. Thus, SSTreatment = 3[(74-80)2+ (80-80)2+ (86-80)2]= MSTreatment = 216/(3 - 1) = 108 Mean Square Due to Blocks SSBlock = 3[(80-80)2 + (79-80)² + (81-80)2] = 6 MSBlock= 6/(3 - 1) = 2 Mean Square Due to Error CF = (720)2 /(3x3) = 57600 SStotal = (76)2+ …+ (90)2 – = 282 SSE = – 6 = 60 MSE = 60 /[(3 - 1)(3- 1)] = 15

71 Example: Final Exam Notes
Rejection Rule Using test statistic: Reject H0 if Ftable > 6.94 Assuming α = .05, F.05 = 6.94 (2 d.f. numerator and 4 d.f. denominator)

72 Example: Final Exam Notes
Test Statistic F = MSTreatment/MSE = 108/15 = 7.20 Conclusion Since 7.20> 6.94, we reject H0. There is sufficient evidence to conclude that learning method affects the final exam note achievement.

73 Using Excel’s Anova Step 1 Select the Tools pull-down menu
Step 2 Choose the Data Analysis option Step 3 Choose Anova: Two Factor Without Replication from the list of Analysis Tools

74 Using Excel’s Anova Step 4 When the Anova: Two Factor Without
Replication dialog box appears: Enter A1:D6 in the Input Range box Select Labels Enter .05 in the Alpha box Select Output Range Enter A8 (your choice) in the Output Range box Click OK

75 Using Excel’s Anova: Two-Factor Without Replication Tool
Value Worksheet (top portion)

76 Using Excel’s Anova: Two-Factor Without Replication Tool
Value Worksheet (middle portion)

77 Using Excel’s Anova

78 Using Excel’s Anova: Two-Factor Without Replication Tool
Conclusion Using F table The value worksheet shows that F table for learning methods is 6.94 The rejection rule is “Reject H0 if F calculated > F Table” Thus, we reject H0 because F calculated > F Table for a = .05 There is sufficient evidence to conclude that learning methods affect final exam note achievement

79 Similarities and differences between CRD and RCBD: Procedures
RCBD: Every level of “treatment” encountered by each experimental unit; CRD: Just one level each Descriptive statistics and graphical display: the same as CRD Model adequacy checking procedure: the same except: specifically, NO Block x Treatment Interaction ANOVA: Inclusion of the Block effect; dferror change from t(r – 1) to (t – 1)(r – 1)

80 Latin Square Design

81 Definition A Latin square is a square array of objects (letters A, B, C, …) such that each object appears once and only once in each row and each column. Example - 4 x 4 Latin Square. A B C D B C D A C D A B D A B C

82 The Latin Square Design
This design is used to simultaneously control (or eliminate) two sources of nuisance variability (confounding variables) It is called “Latin” because we usually specify the treatment by the Latin letters “Square” because it always has the same number of levels (t) for the row and column nuisance factors A significant assumption is that the three factors (treatments and two nuisance factors) do not interact More restrictive than the RCBD Each treatment appears once and only once in each row and column If you can block on two (perpendicular) sources of variation (rows x columns) you can reduce experimental error when compared to the RCBD A B C D

83 Useful in Animal Nutrition Studies
Suppose you had four feeds you wanted to test on dairy cows. The feeds would be tested over time during the lactation period This experiment would require 4 animals (think of these as the rows) There would be 4 feeding periods at even intervals during the lactation period beginning early in lactation (these would be the columns) The treatments would be the four feeds. Each animal receives each treatment one time only. Usually done this way for economic reasons (limited number of cows). One potential problem is carryover from one treatment to the next on the same cow.

84 The “Latin Square” Cow Mid Early Late
This is a simple type of ‘crossover’ design, commonly used in human and animal subjects.

85 Uses in Field Experiments
When two sources of variation must be controlled Slope and fertility Furrow irrigation and shading If you must plant your plots perpendicular to a linear gradient B C D A ‘Row’ 1 2 3 4 ‘Column’ With four treatments, there would only be 6 df remaining for the error term With five treatments, dfe = =12 Practically speaking, use only when you have more than four but fewer than ten treatments a minimum of 12 df for error

86 Selected Latin Squares
Latin Square Designs Randomization → Used selected latin squares Selected Latin Squares 3 x x 4 A B C A B C D A B C D A B C D A B C D B C A B A D C B C D A B D A C B A D C C A B C D B A C D A B C A D B C D A B D C A B D A B C D C B A D C B A 5 x 5 6 x 6 A B C D E A B C D E F B A E C D B F D C A E C D A E B C D E F B A D E B A C D A F E C B E C D B A F E B A D C

87 Randomization Selected Latin Square A B C

88 Randomize the order of rows: 2
Randomization Randomize the order of rows: 2 B C A

89 Randomize the order of rows: 1
Randomization Randomize the order of rows: 1 B C A

90 Randomize the order of rows: 3
Randomization Randomize the order of rows: 3 B C A

91 Randomize the order of columns: 3
Randomization Randomize the order of columns: 3 A C B

92 Randomize the order of columns: 1
Randomization Randomize the order of columns: 1 A B C

93 Randomize the order of columns: 2
Randomization Randomize the order of columns: 2 A B C

94 The row-column treatments are represented by cells in a t x t array.
Latin Square Designs There are three factors: Treatments (t) (letters A, B, C, …) Rows (t) Columns (t) The number of treatments = the number of rows = the number of columns = t. The row-column treatments are represented by cells in a t x t array. The treatments are assigned to row-column combinations using a Latin-square arrangement 

95 Advantages and Disadvantages
Allows the experimenter to control two sources of variation Disadvantages: Error degree of freedom (df) is small if there are only a few treatments The experiment becomes very large if the number of treatments is large The statistical analysis is complicated by missing plots and mis-assigned treatments Another variation – use a smaller Latin Square (3x3 or 4x4), but repeat it. Analysis can then be combined across the two replicates.

96 Analysis Set up a two-way table and compute the row and column totals
Compute a table of treatment totals and means Set up an ANOVA table divided into sources of variation Rows Columns Treatments Error Significance tests FT tests difference among treatment means FR and FC test if row and column groupings are effective

97 The Linier Model i = 1,2,…, t j = 1,2,…, t k = 1,2,…, t yij(k) = the observation in ith row and the jth column receiving the kth treatment m = overall mean tk = the effect of the kth treatment No interaction between rows, columns and treatments ri = the effect of the ith row gj = the effect of the jth column eij(k) = random error

98 Latin Square A Latin Square experiment is assumed to be a three-factor experiment. The factors are rows, columns and treatments. It is assumed that there is no interaction between rows, columns and treatments. The degrees of freedom for the interactions is used to estimate error.

99 The Anova for a Latin Square
Source S.S. d.f. M.S. Fcal Ftable Treat SST t-1 MST MST /MSE Fα, (t-1); (t-1)(t-2) Rows SSRow MSRow Cols SSCol MSCol Error SSE (t-1)(t-2) MSE Total t2 - 1

100 Example The effect of learning methods on the final exam note of experimental design course. Student as an experimental unit can be grouped based on academic year and high school origin Treatment: A: self learning B: Class learning C: Class and Practice learning

101 Final Exam Notes SMA A SMA B SMA C Xi. _ Xi 2006 A (74) B(79) C(84)
237 79 2007 C(88) A(75) B(77) 240 80 2008 B(84) C(86) A(73) 243 81 Xj 246 234 720 82 78 A= 222 Ā= 76 B= 240 B= 77 C=258 C= 87 _ _

102 Final Exam Notes CF= (720)²/9= 57600
SStotal= (74)²+ …+(73)² = 252 SStreatment = (222)²/3 + …+ (258)²/3 – 57600= 216 SSrows = (237)²/3 + …+ (2243)²/3 – 57600= 6 SScolumn = (246)²/3 + …+ (234)²/3 – 57600= 24 SSerror = SStotal – SStreatment – SSrows – SScolumn = 252 – 216 – 06 – 24 = 6

103 The Anova Table Source S.S. d.f. M.S. Fcalc Ftable Academic year 24 2
12 4 HS origin 6 3 1 Learning method 216 108 36 19 Error Total 252 8

104 Graeco-Latin Square Designs
Mutually orthogonal Squares

105 Definition A Greaco-Latin square consists of two latin squares (one using the letters A, B, C, … the other using greek letters a, b, c, …) such that when the two latin square are supper imposed on each other the letters of one square appear once and only once with the letters of the other square. The two Latin squares are called mutually orthogonal. Example: a 7 x 7 Greaco-Latin Square Aa Be Cb Df Ec Fg Gd Bb Cf Dc Eg Fd Ga Ae Cc Dg Ed Fa Ge Ab Bf Dd Ea Fe Gb Af Bc Cg Ee Fb Gf Ac Bg Cd Da Ff Gc Ag Bd Ca De Eb Gg Ad Ba Ce Db Ef Fc

106 The Graeco-Latin Square Design
This design is used to simultaneously control (or eliminate) three sources of nuisance variability It is called “Graeco-Latin” because we usually specify the third nuisance factor, represented by the Greek letters, orthogonal to the Latin letters A significant assumption is that the four factors (treatments, nuisance factors) do not interact If this assumption is violated, as with the Latin square design, it will not produce valid results Graeco-Latin squares exist for all t ≥ 3 except t = 6

107 Note: At most (t –1) t x t Latin squares L1, L2, …, Lt-1 such that any pair are mutually orthogonal. It is possible that there exists a set of six 7 x 7 mutually orthogonal Latin squares L1, L2, L3, L4, L5, L6 .

108 The Greaco-Latin Square Design - An Example
A researcher is interested in determining the effect of two factors: the percentage of Lysine in the diet and percentage of Protein in the diet have on Milk Production in cows. Previous similar experiments suggest that interaction between the two factors is negligible.

109 For this reason it is decided to use a Greaco-Latin square design to experimentally determine the two effects of the two factors (Lysine and Protein). Seven levels of each factor is selected 0.0(A), 0.1(B), 0.2(C), 0.3(D), 0.4(E), 0.5(F), and 0.6(G)% for Lysine and 2(a), 4(b), 6(c), 8(d), 10(e), 12(f) and 14(g)% for Protein. Seven animals (cows) are selected at random for the experiment which is to be carried out over seven three-month periods.

110 A Greaco-Latin Square is the used to assign the 7 X 7 combinations of levels of the two factors (Lysine and Protein) to a period and a cow. The data is tabulated on below:

111 The Linear Model j = 1,2,…, t i = 1,2,…, t k = 1,2,…, t l = 1,2,…, t
yij(kl) = the observation in ith row and the jth column receiving the kth Latin treatment and the lth Greek treatment

112 tk = the effect of the kth Latin treatment
m = overall mean tk = the effect of the kth Latin treatment ll = the effect of the lth Greek treatment ri = the effect of the ith row gj = the effect of the jth column eij(k) = random error No interaction between rows, columns, Latin treatments and Greek treatments

113 A Greaco-Latin Square experiment is assumed to be a four-factor experiment.
The factors are rows, columns, Latin treatments and Greek treatments. It is assumed that there is no interaction between rows, columns, Latin treatments and Greek treatments. The degrees of freedom for the interactions is used to estimate error.


Download ppt "Completely Randomized Design"

Similar presentations


Ads by Google