Latin Squares In Experimental Design - CompNeurosci

3y ago
101 Views
8 Downloads
259.50 KB
19 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Isobel Thacker
Transcription

Latin Squares in ExperimentalDesignLei GaoMichigan State UniversityDecember 10, 2005Abstract: For the past three decades, Latin Squares techniques have been widely used inmany statistical applications. Much effort has been devoted to Latin Square Design. Inthis paper, I introduce the mathematical properties of Latin squares and the application ofLatin squares in experimental design. Some examples and SAS codes are provided thatillustrates these methods.Work done in partial fulfillment of the requirements of Michigan State University MTH 880 advised byProfessor J. Hall.1

IndexIndex . 21. Introduction. 31.1 Latin square. 31.2 Orthogonal array representation . 31.3 Equivalence classes of Latin squares. 32. Latin Square Design. 42.1 Latin square design . 42.2 Pros and cons of Latin square design. 42.3 An example of Latin square design . 52.4 Procedure to create a Latin square design. 63. Analysis of variance. 83.1 Model for the classical Latin square design. 83.2 Analysis of a Latin square. 93.3 SAS program and output. 104. Latin rectangles and multiple Latin squares . 144.1 An example of Latin rectangle design . 144.2 SAS program and output. 155. Crossover designs: . 175.1 An example of crossover design . 175.2 Model of crossover design . 19References:. 192

1. Introduction1.1 Latin squareA Latin square is an n n table filled with n different symbols in such a way that eachsymbol occurs exactly once in each row and exactly once in each column. Here are twoexamples. a b c d 1 2 3 2 3 1 3 1 2 bcdadabcc d a b 1.2 Orthogonal array representationIf each entry of an n n Latin square is written as a triple (r,c,s), where r is the row, cis the column, and s is the symbol, we obtain a set of n 2 triples called the orthogonalarray representation of the square. For example, the orthogonal array representation of thefirst Latin square displayed above is{ ,1,3),(3,2,1),(3,3,2) },where for example the triple (2,3,1) means that in row 2, column 3 there is the symbol 1.The definition of a Latin square can be written in terms of orthogonal arrays as follows: There are n 2 triples of the form (r,c,s), where 1 r, c, s n. All of the pairs (r,c) are different, all the pairs (r,s) are different, and all thepairs (c,s) are different.The orthogonal array representation shows that rows, columns and symbols playrather similar roles, as will be made clear below.1.3 Equivalence classes of Latin squaresMany operations on a Latin square produce another Latin square (for example,turning it upside down).If we permute the rows, permute the columns, and permute the names of the symbolsof a Latin square, we obtain a new Latin square said to be isotopic to the first. Isotopismis an equivalence relation, so the set of all Latin squares is divided into subsets, called3

isotopy classes, such that two squares in the same class are isotopic and two squares indifferent classes are not isotopic.Another type of operation is easiest to explain using the orthogonal arrayrepresentation of the Latin square. If we systematically and consistently reorder the threeitems in each triple, another orthogonal array (and, thus, another Latin square) is obtained.For example, we can replace each triple (r,c,s) by (c,r,s) which corresponds totransposing the square (reflecting about its main diagonal), or we could replace eachtriple (r,c,s) by (c,s,r), which is a more complicated operation. Altogether there are 6possibilities including “do nothing”, giving us 6 Latin squares called the conjugates (alsoparastrophes) of the original square.Although a Latin square is a simple object to a mathematician, it is multifaceted to anexperimental designer.2. Latin Square Design2.1 Latin square designA Latin square design is a method of placing treatments so that they appear in abalanced fashion within a square block or field. Treatments appear once in each row andcolumn. Replicates are also included in this design. Treatments are assigned at random within rows and columns, with each treatmentonce per row and once per column. There are equal numbers of rows, columns, and treatments. Useful where the experimenter desires to control variation in two differentdirectionsThe Latin square design, perhaps, represents the most popular alternative designwhen two (or more) blocking factors need to be controlled for. A Latin square design isactually an extreme example of an incomplete block design, with any combination oflevels involving the two blocking factors assigned to one treatment only, rather than to all!2.2 Pros and cons of Latin square designThe advantages of Latin square designs are:4

They handle the case when we have several nuisance factors and we either cannotcombine them into a single factor or we wish to keep them separate. They allow experiments with a relatively small number of runs.The disadvantages are: The number of levels of each blocking variable must equal the number of levelsof the treatment factor. The Latin square model assumes that there are no interactions between theblocking variables or between the treatment variable and the blocking variable.2.3 An example of Latin square designActually, in many cases, Latin squares are necessary because one such combinationof levels from two blocking factors can be combined with one treatment, and not all. Thefollowing example taken from Mead et al. (2003) illustrates this:Example1: An experiment to investigate the effects of various dietary starch levels onmilk production was conducted on four cows. The four diets, T1, T2, T3, and T4, (inorder of increasing starch equivalent), were fed for three weeks to each cow and the totalyield of milk in the third week of each period was recorded (i.e. third week to minimizecarry-over effects due to the use of treatments administered in a previous period). That is,the trial lasted 12 weeks since each cow received each treatment, and each treatmentrequired three weeks. The investigator felt strongly that time period effects might beimportant (i.e earlier periods in the experiment might influence milk yields differentlycompared to later periods). Hence, the investigator wanted to block on both cow andperiod. However, each cow cannot possibly receive more than one treatment during thesame time period; that is, all possible cow-period blocking combinations could notlogically be considered.To start the randomization for a Latin square that accommodates these types ofconcerns, let's choose at random from one of the 4 standard Latin squares when a 4treatments5

Table 2.1 A standard 4 4 Latin squareColumn 1 Column 2 Column 3 Column 4Row 1ABCDRow 2BADCRow 3CDBARow 4DCABThe two blocking variables in a Latin square design are often generically labeled asrow and column blocking variables. In this example, cow is identified as the columnvariable and period as the row variable. Standard Latin squares are Latin squares inwhich elements of the first row and first column are arranged alphabetically by treatmentcategory (i.e. the letters in the square above denote different treatments). There are anumber of standard Latin squares that might exist for different values of a (i.e. totalnumber of treatment effects).For each value of a, (the size of the square), there are a large number of different a bya squares that have the Latin square property that each letter (treatment group label)appears once in each row and once in each column. As with randomized block designs, inorder to make the analysis of data from a design statistically valid, we must choose onedesign randomly from a larger set of possible Latin squares.2.4 Procedure to create a Latin square designAn appropriate randomization strategy is as follows: Write down any Latin square of the required size (it could be a standard Latinsquare). Randomize the order of the rows. Randomize the order of the columns. Randomize the allocation of treatments to the letters of the square.Consider Example 1, to randomize the order of the rows, choose in random order, thenumbers (e.g., 1, 2, 3, 4) of the rows (you could use a computer to do this). Suppose inrandom order, one chooses 2, 4, 1, 3. Then one should rearrange the order of the rows asfollows:6

Table 2.2 A 4 4 Latin square (rearrange the order of rows)Column 1 Column 2 Column 3 Column 4Row 2BADCRow 4DCABRow 1ABCDRow 3CDBANow let's randomize the order of the columns. Suppose the following order: 1, 4, 3, 2is chosen at random. Then one should rearrange the order of the columns as follows:Table 2.3 A 4 4 Latin square(rearrange the order of rows and columns)Column 1 Column 4 Column 3 Column 2Row 2BCDARow 4DBACRow 1ADCBRow 3CABDFinally randomize treatments to the letters. Choosing at random, say T4, T1, T3, T2,in that order, one should assign, say A as Treatment T4, B as T1, C as T3 and D as T2. i.e.Table 2.4 A 4 4 Latin square (rearrange the order of rows and columns)(also randomize treatments to the letters)Column 1 Column 4 Column 3 Column 2Row 2T1T3T2T4Row 4T2T1T4T3Row 1T4T2T3T1Row 3T3T4T1T2If write this in the context of the experiment in our example:7

Table 2.5 The 4 4 Latin square used in Example 1Cow 1Cow 4Cow 3Cow 2Period 2T1T3T2T4Period 4T2T1T4T3Period 1T4T2T3T1Period 3T3T4T1T2According to our randomization scheme, we should assign Treatment T4 to Cow 1during Period 1, followed by Treatment T1 during Period 2, etc.3. Analysis of variance3.1 Model for the classical Latin square designWe write the model for the classical Latin square design asYijk μ ρ i δ j α k eijkWhere y ijk , i 1, ., a, j 1, ., a, k 1, ., a, is the observation for the experimental unitin the ith row block level, jth column block level and the kth treatment effect.Upon choosing one Latin square arrangement at random and running his experimentaccordingly, the investigator came up with the following data upon completion of theexperiment. The data is given in parenthesis:Table 3.1 The 4 4 Latin square used in Example 1together with dataCow 1Cow 2Cow 3Cow 4Period 1 T4 (192) T1 (195) T3 (292) T2 (249)Period 2 T1 (190) T4 (203) T2 (218) T3 (210)Period 3 T3 (214) T2 (139) T1 (245) T4 (163)Period 3 T2 (221) T3 (152) T4 (204) T1 (134)8

3.2 Analysis of a Latin squareThe analysis of a Latin square is very easy, if there are no empty cells. The leastsquares means for the treatment effects can be shown to be simple averages asaμ .k y.k yj 1aijka yi 1ijkaNote that either summation on the right side of the equation above is the same. Forexample, for Treatment T1, summing over levels of Periods:y.1 195 190 245 134 1914or summing over levels of Cows:y.1 190 195 245 134 1914Likewise, one can find the following treatment means for the other diets:y.2 206.75y.3 190.5y.4 217The factor SS are also easy to determine for a Latin square design (with no missing data):aSSROW a ( y i. y. )22SSCOL a ( y. j . y. )ai 1j 1aSSTR a ( y.k y. )2k 1The generic ANOVA table is as follows:Table 3.2 The ANOVA RSSEdfa-1a-1a-1(a-1)(a-2)The ANOVA table for our example is:9MSMSROWMSCOLMSTRMSE

Table 3.3 The ANOVA table used in Example 9SSEdfMS2179.73309.7665.23135.223336FPr F0.25400.14090.67361.762.680.54Doing a Tukey's test on pairwise comparisons of the diets, one would come up withthe following:T3217.00T2206.75T1191.00T4190.503.3 SAS program and outputThe SAS program and output might look as follows:data Latin;input per trt1 y1 trt2 y2 trt3 y3 trt4 y4;cards;Per1 T4 192 T1 195 T3 292 T2 249Per2 T1 190 T4 203 T2 218 T3 210Per3 T3 214 T2 139 T1 245 T4 163Per4 T2 221 T3 152 T4 204 T1 134;data setup(drop trt1-trt4 y1-y4);set Latin;trt trt1; y y1; cow 1; output;trt trt2; y y2; cow 2; output;trt trt3; y y3; cow 3; output;trt trt4; y y4; cow 4; output;run;proc glm;class per trt cow;model y per trt cow;means trt /tukey;run;The GLM ProcedureDFSum ofSquaresMean SquareF ValuePr 75001237.22917Corrected Total1525887.43750SourceDFType I SSMean SquareF ValuePr 0.540.25400.6736Sourcepertrt10

9DFType III SSMean SquareF ValuePr ne could have accounted for alternative variance-covariance structures for theresiduals over time within a subject, using the REPEATED option of PROC MIXED.Consider the following two options:proc mixed covtest;title 'Compound symmetry error structure';class per trt cow;model y per trt /ddfm kr;repeated per / subject cow type cs;lsmeans trt /pdiff adjust tukey;run;proc mixed covtest;title 'Autoregressive error structure';class per trt cow;model y per trt /ddfm kr;repeated per / subject cow type ar(1);lsmeans trt /pdiff adjust tukey;run;The output is as followsThe Mixed ProcedureModel InformationData SetDependent VariableCovariance StructureSubject EffectEstimation MethodResidual Variance MethodFixed Effects SE MethodWORK.SETUPyCompound lleKenward-RogerDegrees of Freedom MethodDimensionsCovariance ParametersColumns in XColumns in ZSubjectsMax Obs Per Subject29044Covariance Parameter EstimatesCov ePr Z518.131237.23698.80714.310.741.730.45840.0416Fit Statistics-2 Res Log LikelihoodAIC (smaller is better)11100.9104.9

AICC (smaller is better)BIC (smaller is better)106.9103.7Type 3 Tests of Fixed EffectsEffectpertrtNumDFDenDFF ValuePr F33661.760.540.25400.6736Least Squares ErrorDFt ValuePr t 858.298.298.298.299.129.8710.369.09 .0001 .0001 .0001 .0001Differences of Least Squares MeansEffecttrttrtEstimateStandardErrorDFt ValuePr t erAdj P0.91760.7317Differences of Least Squares MeansEffecttrttrtEstimateStandardErrorDFt ValuePr t merTukey-KramerTukey-KramerTukey-KramerAdj P1.00000.97440.91070.7210

The Mixed ProcedureModel InformationData SetDependent VariableCovariance StructureSubject EffectEstimation MethodResidual Variance MethodFixed Effects SE d-Rao-JeskeKackar-HarvilleKenward-RogerDegrees of Freedom MethodCovariance Parameter EstimatesCov aluePr Z0.44181819.020.3795932.601.161.950.24440.0256Fit Statistics-2 Res Log LikelihoodAIC (smaller is better)AICC (smaller is better)BIC (smaller is better)100.8104.8106.8103.6Type 3 Tests of Fixed EffectsEffectpertrtNumDFDenDFF ValuePr F334.684.520.950.290.48590.8316Least Squares ErrorDFt ValuePr t 148.048.048.048.049.139.3210.199.29 .0001 .0001 .0001 .0001Differences of Least Squares MeansEffecttrttrtEstimateStandardErrorDFt ValuePr t ey-KramerAdj P0.99900.8672

4. Latin rectangles and multiple Latin squaresSometimes, one Latin square is not quite enough. In fact, it is often held that if a 4 ,and then more than one square should be considered in a design. On the other hand,when a 8 , a Latin square may be considered to be too large of an experiment. Theunwritten rule seemingly implied here is that in the absence of any other knowledge, theerror degrees of freedom should be anywhere between 10 and 40 in most designs. Let'sconsider the following example:4.1 An example of Latin rectangle designAn experiment was designed to determine the effects of three diets on livercholesterol in rats (A control, B control vegetable fat, C control animal fat). Bodyweight classifications (H, M or L) of the rats and the litters from which they came wereused to form a balanced set of Latin squares. The litters were nested in squares (i.e.different litters were used in each square), whereas rows (weight classification) were notnested. The data is reported in the table below.14

This design is sometimes labeled a Latin rectangle as the row identifications (e.g.weight class) are common to all squares but the column identification (e.g. litters) isn't(i.e. different litters in each square). One linear model for the Latin rectangle that hascommon row blocking criteria for s complete Latin squares and unique column blockingis:y ijk μ ρ i γ j τ k eijkwhere ρ i is the fixed effect of the ith weight class (i 1,2,3), γ j is the random effect ofthe jth litter (j 1,2,.,9) with γ j NIID (0, σ γ2 ) over all j, and τ k is the fixed effect ofthe kth treatment (k 1,2,3).One can see that in the data design above, there exist at least two observations foreach weight class by treatment (i.e. ik) combination. So the above model can be furtherextended to infer upon weight class by treatment interaction effects.y ijk μ ρ i γ j τ k ρτ ik eijkwhere ρτ ik is the interaction between the ith weight class and the kth treatment group.4.2 SAS program and outputThe SAS program and output might look as follows:proc glm;class treat litter weight ;model chol treat weight treat*weight litter;lsmeans treat /pdiff adjust tukey;random litter;run;proc mixed;class treat litter weight ;model chol treat weight treat*weight;lsmeans treat /pdiff adjust tukey;random litter;run;The resulting output is as follows:15

16

5. Crossover designs:As with typical Latin square and some repeated measures studies, crossover studiesdescribes those experiments with treatments administered in sequence to eachexperimental unit. A treatment is administered to a subject for a certain period of time,after which another treatment is administered to the same subj

Latin Squares in Experimental Design Lei Gao Michigan State University December 10, 2005 Abstract: For the past three decades, Latin Squares techniques have been widely used in many statistical applications. Much effort has been devoted to Latin Square Design.

Related Documents:

Latin Primer 1: Teacher's Edition Latin Primer 1: Flashcard Set Latin Primer 1: Audio Guide CD Latin Primer: Book 2, Martha Wilson (coming soon) Latin Primer 2: Student Edition Latin Primer 2: Teacher's Edition Latin Primer 2: Flashcard Set Latin Primer 2: Audio Guide CD Latin Primer: Book 3, Martha Wilson (coming soon) Latin Primer 3 .

a sum of two squares. More generally, this kind of argument shows that if pis not a sum of two squares, then n pemis not a sum of two squares if eis odd and gcd(p;m) 1. Thus solving the two squares problem for n pwill yield the answer for general n2N, and here is the answer. Theorem 1.1 (Fermat (1640)).

Linear Least Squares ! Linear least squares attempts to find a least squares solution for an overdetermined linear system (i.e. a linear system described by an m x n matrix A with more equations than parameters). ! Least squares minimizes the squared Eucliden norm of the residual ! For data fitting on m data points using a linear

130 Latin I Wheelock's Latin 7th Edition Frederic M. Wheelock and Richard A. LaFleur 978-0-06-199722-8Link Link 230 Latin II Wheelock's Latin 7th Edition Frederic M. Wheelock and Richard A. LaFleur 978-0-06-199722-8Link Link 330 Latin III See instructor for course materials 430 AP Latin IV Caesar: Selections from his

Jones’ new textbook Reading Virgil: Aeneid I and II. Key Words Aeneid, AP Latin, graduate survey, Latin poetry, pedagogy, Vergil, Latin commentary, intermediate Latin. . Latin text—heard on its own terms with its own rhetorical shape—and their attempts to translate it into idi

have been declared dead for quite some time. All science books were written in Latin and Greek until Seventeenth Century, as a matter of fact first medical text books used at Harvard were written in Latin and Greek. 60-70% of English words are derived from Latin and Greek based words. LATIN ROOTS Latin Root Meaning Examples 1. cede ceed cess go .

3. dazzle C. Latin ignitus, past participle of ignire to ignite, from ignis 4. fraternize D. Latin glacialis, from glacies 5. meteoric E. Middle English, from Medieval Latin fraternalis, from Latin fraternus, from frater brother 6. glacial F. Middle English plente, from Anglo-French plenté, from Late Latin plenitat-, plenitas, from Latin .

9781860960147 Jazz Piano Grade 5: The CD 22.92 17.24 18.76 19.83 9781860960154 Jazz Piano from Scratch 55.00 41.36 45.02 47.58 9781860960161 Jazz Piano Aural Tests, Grades 1-3 18.15 13.65 14.86 15.70 9781860960505 Jazz Piano Aural Tests, Grades 4-5 15.29 11.50 12.52 13.23 Easier Piano Pieces (ABRSM)