Latin Square Designs (LS) Clarice G. B. Demétrio

Size: px
Start display at page:

Download "Latin Square Designs (LS) Clarice G. B. Demétrio"

Transcription

1 Estatística Experimental: Session 4 1 Latin Square Designs (LS) based on Chris Brien s notes (University of South Australia, Adelaide), Clarice G. B. Demétrio Departamento de Ciências Exatas ESALQ/USP Piracicaba, SP, Brasil Clarice@esalq.usp.br April 2010

2 Estatística Experimental: Session 4 2 Course Outline V.A Design of Latin squares V.B Indicator-variable models and estimation for an LS VI.C Hypothesis testing using the ANOVA method for a Latin Square V.D Treatment differences IV.E Summary IV.F Exercise

3 Estatística Experimental: Session 4 3 V. Latin squares designs (LS) V.A Design of Latin squares Sometimes we need more than one type of blocks. In general call one sort of blocks rows and the other sort columns. Definition V.1: A Latin square design is one in which each treatment occurs once and only once in each row and each column so that the numbers of rows, columns and treatments are all equal. Clearly, the total number of observations is n = t 2. Suppose in a field trial moisture is varying across the field and the stoniness down the field. A Latin square can eliminate both sources of variability.

4 Estatística Experimental: Session 4 4 Example V.1 Sugarcane experiment Suppose there are five different varieties of sugarcane to be compared and suppose that moisture is varying across the field and that the stoniness down the field. A Latin square design for this would be as follows: 5 5 Latin Square Column Less stony of I A B C D E field II C D E A B Row III E A B C D IV B C D E A V D E A B C Stonier end of field Less More moisture moisture Varieties A, B, C, D, E

5 Estatística Experimental: Session 4 5 Even if one has not identified trends in two directions, a Latin square may be employed to guard against the problem of putting the blocks in the wrong direction. Latin squares may also be used when there are two different kinds of blocking variables, for example, animals and times. General principle is that one is interested in maximizing row and column differences so as to minimize the amount of uncontrolled variation affecting treatment comparisons. The major disadvantage with the Latin square is that you are restricted to having the number of replicates equal to the number of treatments.

6 Estatística Experimental: Session 4 6 Several fundamentally different Latin squares exist for a particular t for t = 4 there are three different squares. A collection of Latin squares for t = 3, 4,..., 9 is given in Appendix 8A of Box, Hunter and Hunter. To randomize these designs appropriately involves the following: 1. randomly select one of the designs for a value of t; 2. randomly permute the rows and then the columns; 3. randomly assign letters to treatments. Note: no nested.factors as Rows and Columns are to be randomized independently Hence they are not nested (they are crossed) Generally we will use R to obtain randomized layouts. General instructions given in Appendix B, Randomized layouts and sample size computations in R.

7 Estatística Experimental: Session 4 7 a) Obtaining a layout for an LS in R # Obtaining randomized layout for a LS library(dae) t <- 5 n <- t * t LSSugarCane.unit <- list(rows = t, Columns = t) Varieties <- factor(c("a", "B", "C", "D", "E", "C", "D", "E", "A", "B", "E", "A", "B", "C", "D", "B", "C", "D", "E", "A", "D", "E", "A", "B", "C"), labels =c("a", "B", "C", "D", "E")) LSSugarcane.lay <- fac.layout(unrandomized=lssugarcane.unit, randomized=varieties,seed=941) remove("varieties") LSSugarcane.lay Units Permutation Rows Columns Varieties A D C E B C A E B D B E D A C E

8 Estatística Experimental: Session C B D A D B A C E Thus the randomized layout is: 5 5 Latin Square Column Less stony of I A D C E B field II C A E B D Row III B E D A C IV E C B D A V D B A C E Stonier end of field Less More moisture moisture Varieties A, B, C, D, E

9 Estatística Experimental: Session 4 9 V.B Indicator-variable models and estimation for an LS Have to decide whether each of the factors Rows, Columns and Treatments are to be regarded as fixed or random. As for the RCBD, it happens that the analysis of the Latin square is essentially unaffected by which model is used. Generally, the Latin square involves t rows and columns so that there are n = t 2 observations in all.

10 Estatística Experimental: Session 4 10 Maximal model The maximal model when all are fixed, is Ψ R+C+T = E(Y) = X R β + X C γ + X T τ and var(y) = V Y = σ 2 I n where Y is the t 2 -vector of random variables for the response variable observations, β is the t-vector of parameters specifying a different mean response for each row, X R is the t 2 t matrix indicating the row from which an observation came, γ is the t-vector of parameters specifying a different mean response for each column, X C is the t 2 t matrix indicating the column from which an observation came, τ is the t-vector of parameters specifying a different mean response for each treatment, X T is the t 2 t matrix indicating the observations that received each of the treatments. Our model also involves assuming Y N(Ψ R+C+T, V Y ).

11 Estatística Experimental: Session 4 11 Example V.2 A 3 3 Latin square For example, suppose that a 3 3 Latin square with the following arrangement of treatments was being considered: 3 3 Latin Square Column I A B C Row II C A B III B C A Suppose the random vector Y is ordered in standard order for Rows then Columns.

12 Estatística Experimental: Session 4 12 Then, for this example, Y = Y 11A Y 12B Y 13C Y 21C Y 22A Y 23B Y 31B Y 32C Y 33A X R = X C = X T = Note that X R = I t 1 t and X C = 1 t I t, but that X T cannot be written as a direct product.

13 Estatística Experimental: Session 4 13 The model for the expectation is still of the form E(Y) = Xθ, with X = [X R X C X T ] and θ = [β γ τ ] = [β 1, β 2,, β t, γ 1, γ 2,, γ t, τ 1, τ 2,, τ t ]. From the theory of linear models (see chapter XI, Brien s notes) the estimators for Ψ T = E(Y) = X B β + X C γ + X T τ is given by ˆΨ R+C+T = R + C + T 2Ḡ where R = X R (X R X R) 1 X R Y = M RY C = X C (X C X C) 1 X C Y = M CY T = X T (X T X T ) 1 X T Y = M T Y Ḡ = X G (X G X G) 1 X G Y = M GY are the t 2 -vectors of row, column, treatment and grand means, respectively. That is, M R, M C, M T and M G are the row, column, treatment and grand mean operators, respectively. So once again the fitted values are functions of means.

14 Estatística Experimental: Session 4 14 Note that, if the data in the vector Y has been arranged in standard order for Rows then Columns the mean operators can be written as M G = n 1 J t J t = t 2 J n M R = t 1 I t J t M C = t 1 J t I t where is called the direct product operator and if A r and B r are square matrices of order r and c, respectively, a 11 B... a 1r B A r B c = a r1 B... a rr B In this case it is not possible to write M T as a direct product of I and J matrices as the treatments will not be in a systematic order expressible in this form.

15 Estatística Experimental: Session 4 15 X RX R = X CX C = X T X T = t t t, M R = 1 t J t 0 t t... 0 t t 0 t t 1 t J t... 0 t t t t 0 t t... 1 t J t, M C = 1 t I 1 t t I 1 t... t I t 1 t I 1 t t I 1 t... t I t t I t 1 t I 1 t... t I t

16 Estatística Experimental: Session 4 16 Example V.3 A 3 3 Latin square (continued) For this example, R = R 1 R 1 R 1 R 2 R 2 R 2 R 3 R 3, C = C 1 C 2 C3 C 1 C 2 C 3 C 1 C 2, T = T A T B T C T C T A T B T B T C, Ḡ = Ḡ Ḡ Ḡ Ḡ Ḡ Ḡ Ḡ Ḡ R 3 C 3 t where R k=1 j. = Y jk, C.k = t t t j=1 k=1 Ḡ = Y jk t 2. T A t j=1 Y jk, t T l = t l=1 Y jk (l) t Ḡ and

17 Estatística Experimental: Session 4 17 b) Alternative expectation models There are 8 possible different models for the expectation that we consider: Ψ G = E(Y) = X G µ (no treatment, row or column differences) Ψ R = E(Y) = X R β (row differences only) Ψ C = E(Y) = X C γ (column differences only) Ψ R+C = E(Y) = X R β + X C γ (additive row and column differences) Ψ T = E(Y) = X T τ (treatment differences only) Ψ R+T = E(Y) = X R β + X T τ (additive row and treatment differences) Ψ C+T = E(Y) = X C γ + X T τ (additive column and treatment differences) Ψ R+C+T = E(Y) = X R β + X C γ + X T τ (additive row, column and treatment differences)

18 Estatística Experimental: Session 4 18 The estimators of the fitted values under the different models are: ˆΨ G = Ḡ ˆΨ R = R ˆΨ C = C ˆΨ R+C = R + C Ḡ ˆΨ T = T ˆΨ R+T = R + T Ḡ ˆΨ C+T = C + T Ḡ ˆΨ R+C+T = R + T + C 2Ḡ That is, they are all functions of the four mean vectors for this design.

19 Estatística Experimental: Session 4 19 We note the following marginality relations between the models: Ψ G Ψ R, Ψ C, Ψ R+C, Ψ T, Ψ R+T, Ψ C+T, Ψ R+C+T Ψ R Ψ R+C, Ψ R+T, Ψ R+C+T Ψ C Ψ R+C, Ψ C+T, Ψ R+C+T Ψ T Ψ R+T, Ψ C+T, Ψ R+C+T Ψ R+C, Ψ R+T, Ψ C+T Ψ R+C+T

20 Estatística Experimental: Session 4 20 V.C Hypothesis testing using the ANOVA method for an LS An analysis of variance will be used to choose between the eight alternative expectation models for an LS. a) Analysis of an example Example V.1 Sugarcane data: The following data are from an 5 5 LS experiment with 5 varieties (A: Co 290, B: Co 421, C: Co 419, D: POJ 2878, E: CO 36-13) of sugarcane. The response variable was yield (kg/plot) of sugarcane. 5 5 Latin Square Column Row Totals 432 D 518 A 458 B 583 C 331 E C 478 E 524 A 550 B 400 D E 384 B 556 C 297 D 420 A B 500 D 313 E 486 A 501 C A 660 C 438 D 394 E 318 B 2325 Column Totals T A = 2463, T B = 2204, T C = 3024, T D = 2067, T E = 2005

21 Estatística Experimental: Session 4 21 Yields Yields Yields A B C D E Rows Columns Figure 1: Sugarcane LS data. Boxplots Treatments It would appear that there are yield mean differences between the rows, columns and varieties.

22 Estatística Experimental: Session 4 22 Example V.1 Sugarcane LS experiment (continued): Mean Variance StandardError A B C D E The differences between the treatment variances are not too large. s 2 max s 2 min = = 4.5

23 Estatística Experimental: Session 4 23 The hypothesis test for this example is: Step 1: Set up hypotheses a) H 0 : τ 1 = τ 2 =... = τ 5 (or X T τ not required in the model) H 1 : not all population Treatment means are equal b) H 0 : β 1 = β 2 =... = β 5 (or X R β not required in the model) H 1 : not all population Row means are equal b) H 0 : γ 1 = γ 2 =... = γ 5 (or X C γ not required in the model) H 1 : not all population Column means are equal Set α = 0.05.

24 Estatística Experimental: Session 4 24 Step 2: ANOVA table using R Source df SSq MSq F Prob Rows Columns * Rows:Columns Varieties *** Residual Total Step 3: Decide between hypotheses It would appear that there are significant differences between the varieties and columns but not between the rows.

25 Estatística Experimental: Session 4 25 b) Sums of squares for the analysis of variance The estimators of the sum of squares for the LS ANOVA are the sums of squares of the following vectors: Total or Units Deviation: D G = Y Ḡ = (M U M G )Y = Q U Y with Q U = M U M G Rows Effect: R e = R Ḡ = (M R M G )Y = Q R Y with Q R = M R M G Columns Effect: C e = C Ḡ = (M C M G )Y = Q C Y with Q C = M C M G Rows:Columns Deviation: D R+C = Y R C + Ḡ = (M U M R M C + M G )Y = Q RC Y with Q RC = M U M R M C + M G Treatments Effect: T e = T Ḡ = (M T M G )Y = Q T Y with Q T = M T M G Residual Deviation: D R+C+T = Y R C T+2Ḡ = Y R e C e T e Ḡ = (M U M R M C M T +2M G )Y = Q RCRes Y with Q RCRes = M U M R M C +2M G where D s are n-vectors of deviations from Y and R e, C e and T e are n-vectors of Rows, Columns and Treatment effects.

26 Estatística Experimental: Session 4 26 Theorem V.1: For a latin squares design, the sums of squares in the analysis of variance for Units, Rows, Columns, Rows:Columns, Treatments and Residual are given by the quadratic forms Y Q U Y = D G D G, Y Q R Y = R er e, Y Q C Y = C ec e, Y Q RC Y = D RC D RC, Y Q T Y = T et e and Y Q RCRes Y = D R+C+T D R+C+T, respectively, where Q U = M U M G, Q R = M R M G, Q C = M C M G, Q RC = M RC M R M C + M G, Q T = M T M G, Q RCRes = M U M R M C M T + 2M G, Y = I n Y = M U Y = (I t I t )Y, Ḡ = 1 t J 2 n Y = M G Y = (t 2 J t J t )Y, R = M R Y = (t 1 I t J t )Y, C = M C Y = (t 1 J t I t )Y, T = M T Y. All the M s and Q s are symmetric (M = M, Q = Q ) and idempotent (MM = M, QQ = Q).

27 Estatística Experimental: Session 4 27 So the analysis of variance table is constructed as follows: Source df SSq MSq F Prob Rows t 1 Y Q R Y s 2 R Columns t 1 Y Q C Y s 2 C Rows:Columns (t 1) 2 Y Q RC Y Treatments t 1 Y Q T Y s 2 T Residual (t 1)(t 2) Y Q RCRes Y s 2 RC Res Total t 2 1 Y Q U Y s 2 R s 2 RC Res s 2 C s 2 RC Res s 2 T s 2 RC Res p R p C p T where s 2 R = Y Q R Y t 1, s2 C = Y Q C Y t 1 s 2 RC Res = Y Q RCRes Y (t 1)(t 2)., s2 T = Y Q T Y t 1 and

28 Estatística Experimental: Session 4 28 Y Q U Y = n i=1 Y i 2 correction, where correction = ( n i=1 Y i) 2 n Y Q R Y = 1 t Y Q C Y = 1 t Y Q T Y = 1 t t Rj 2 correction, where R j is total for row j j=1 t Ck 2 correction, where C k is total for column k k=1 t T(l) 2 correction, where T (l) is total for treatment l l=1 Y Q RCRes Y = Y Q U Y Y Q R Y Y Q C Y Y Q T Y

29 Estatística Experimental: Session 4 29 c) Expected mean squares The expected means squares when both Rows and Columns effects are fixed are given in the following table: Source df MSq E(MSq) F Rows t 1 Y Q R Y t 1 σ 2 + q R (Ψ) Columns t 1 Y Q C Y t 1 σ 2 + q C (Ψ) Rows:Columns (t 1) 2 Y Q T Y Treatments t 1 t 1 σ 2 + q T (Ψ) Residual (t 1)(t 2) Y Q RCRes Y (t 1)(t 2) σ2 Total t 2 1 s 2 R s 2 RC Res s 2 C s 2 RC Res s 2 T s 2 RC Res where q R (Ψ) = Ψ Q R Ψ t 1 q C (Ψ) = Ψ Q C Ψ t 1 = t(β j β.) 2 t 1 = t(γ k γ.) 2 t 1,, q T (Ψ) = Ψ Q T Ψ t 1 = t(τ l τ.) 2 t 1.

30 Estatística Experimental: Session 4 30 The expected means squares when both Rows and Columns effects are random are given in the following table: Source df MSq E(MSq) F Rows t 1 Y Q R Y t 1 σ 2 + tσr 2 Rows t 1 Y Q C Y t 1 σ 2 + tσc 2 Rows:Columns (t 1) 2 Treatments t 1 Y Q T Y t 1 σ 2 + q T (Ψ) Residual (t 1)(t 2) Y Q RCRes Y (t 1)(t 2) σ2 Total t 2 1 s 2 R s 2 RC Res s 2 C s 2 RC Res s 2 T s 2 RC Res

31 Estatística Experimental: Session 4 31 Also is possible to show that (Chapter XII of Chris Brien s notes) - Y Q RCRes Y σ 2 χ 2 (t 1)(t 2) - Y Q T Y σ 2 χ 2 t 1, under H 0 - Y Q RCRes Y σ 2 - F = and Y Q T Y σ 2 Treatments MSq Residual MSq - Y Q R Y σ 2 χ 2 t 1, under H 0 - Y Q RCRes Y - F = σ 2 and Y Q R Y are independent F t 1,(t 1)(t 2) σ 2 are independent Rows MSq Residual MSq F t 1,(t 1)(t 2) - Y Q RCRes Y - F = σ 2 and Y Q C Y σ 2 are independent Columns MSq Residual MSq F t 1,(t 1)(t 2)

32 Estatística Experimental: Session 4 32 d) Summary of the hypothesis test Step 1: Set up hypotheses a) H 0 : τ 1 = τ 2 =... = τ t (or X T τ not required in the model) H 1 : not all population Treatment means are equal b) H 0 : β 1 = β 2 =... = β t (or X R β not required in the model) H 1 : not all population Row means are equal b) H 0 : γ 1 = γ 2 =... = γ t (or X C γ not required in the model) H 1 : not all population Column means are equal Set α = 0.05 (or 0.01).

33 Estatística Experimental: Session 4 33 Step 2: Calculate test statistic Source df SSq MSq E(MSq) F Prob Rows t 1 Y Q R Y s 2 R σ 2 + q R (Ψ) Columns t 1 Y Q C Y s 2 C σ 2 + q C (Ψ) v Rows:Columns (t 1) 2 Y Q RC Y s 2 R s 2 RC Res s 2 C s 2 RC Res p R p C Treatments t 1 Y Q T Y s 2 T σ 2 + q T (Ψ) Residual (t 1)(t 2) Y Q RCRes Y s 2 RC Res σ 2 Total t 2 1 Y Q U Y s 2 T s 2 RC Res p T where s 2 R = Y Q R Y t 1 s 2 RC Res = Y Q RCRes Y (t 1)(t 2)., s2 C = Y Q C Y t 1, s2 T = Y Q T Y t 1 and Step 3: Decide between hypotheses If P(F F 0 ) = p α then the evidence suggests that the null hypothesis H 0 should be rejected.

34 Estatística Experimental: Session 4 34 e) Comparison with traditional two-way ANOVA The above analysis of variance table and the traditional Latin-square ANOVA table are essentially the same at any rate the values of the F -statistics are exactly the same. Source df Source in LS ANOVA Rows t 1 Between Rows Columns t 1 Between Columns Rows:Columns (t 1) 2 Treatments t 1 Between Treatments Residual (t 1)(t 2) Error Total t 2 1 The two tables have in common four sources that are labelled differently; they differ in that our table includes the line Rows:Columns.

35 Estatística Experimental: Session 4 35 Rows:Columns reflects the variation of column differences from row to row or the differences in row-column combinations after overall row and overall column differences have been removed - it is uncontrolled variation in the units. The Rows:Columns sum of squares is partitioned into Treatments and Residual sums of squares. The advantage of the table we have presented is that it exhibits the confounding in the experiment. The indenting of Treatments under Rows:Columns signifies that treatment differences are confounded or mixed-up with row-column differences, adjusted for overall row and overall column differences, as a result of the randomization of treatments to row-column combinations. This is not obvious from the traditional table.

36 Estatística Experimental: Session 4 36 IV.D Diagnostic checking We have assumed a model on which the analysis outlined above is based, that Y N(Ψ, σ 2 I) where, for the maximal model, Ψ R+C+T = E(Y) = X R β + X C γ + X T τ. For this model to be appropriate requires a set of behaviours as: a) the response is operating additively, that is, that a treatment has about the same additive effect on each unit; b) that the variability of the units within the row (column) are the same for each row (column); c) each observation displays the covariance implied by the model (independence for Rows and Column fixed and equal correlation within rows (columns) for Rows (Columns) random); and d) that the response of the units is normally distributed.

37 Estatística Experimental: Session 4 37 constant variance plot e i against fitted values ˆψ i and look at pattern of spread often easier to see any pattern by using absolute values e i tabulate sample variance of e i for any obvious subsets, e.g. by any classifying factors. Normality Plot the ordered residuals e (i) against the quantiles of a standard normal distribution, Φ 1 (i/(n + 1). A straight line = normality. Normal-plot with simulated envelope. Nonadditivity Use Tukey s one-degree-of-freedom-for-nonadditivity.

38 Estatística Experimental: Session 4 38 Example V.1 Sugarcane data (continued): Source df SSq MSq F Prob Rows Columns * Rows:Columns Varieties *** Residual Nonadditivity Deviation Total The hypotheses for the one-degree-of-freedom is: H 0 : Rows, Columns and Varieties are additive H 1 : Rows, Columns and Varieties are nonadditive The null hypothesis cannot be rejected and there is no evidence of transformable nonadditivity.

39 Estatística Experimental: Session 4 39 Normal Q Q Plot res fit Theoretical Quantiles Studentized Residuals(LSSugarcane.lm) Sample Quantiles t Quantiles Figure 2: Sugarcane LS. Residual plots

40 Estatística Experimental: Session 4 40 IV.E Treatment differences For the purposes of the scientist the effect of rows and columns are not of primary interest. Rather, attention is likely to be focused on variety differences which can be investigated using the variety means. Example V.1 Sugarcane data (continued) The variety means (kg/plot) are: Varieties A B C D E As the variety levels are qualitative a multiple comparison procedure will be used to examine the differences between the varieties if they were significant.

41 Estatística Experimental: Session 4 41 Tukey s HSD procedure Hypotheses: H 0 : µ k = µ k versus H 1 : µ k µ k w(5%) = q t,ν,α 1 r Residual MSq = = Varieties E D B A Means D B A C * 191.4* 164.0* 112.2*

42 Estatística Experimental: Session % family wise confidence level E D E C D C E B D B C B E A D A C A B A Differences in mean levels of Treats

43 Estatística Experimental: Session 4 43 Conclusion: Evidence at the 5% level of significance that µ C µ A, µ B, µ D, µ E There is one variety (Co 419) more productive that differs from the others. E D B A C b b b b a or

44 Estatística Experimental: Session 4 44 R program for LS Sugarcane data library(dae) library(car) LSSugarcane.dat <- data.frame(rows=factor(rep(c(1,2,3,4,5), times=c(5,5,5,5,5))), Columns = factor(rep(c(1,2,3,4,5), times=5))) LSSugarcane.dat$Treats <- factor(c("d","a","b","c","e","c","e","a","b","d", "E","B","C","D","A","B","D","E","A","C","A","C","D","E","B")) LSSugarcane.dat$Yields <- c(432,518,458,583,331,724,478,524,550,400, 489,384,556,297,420,494,500,313,486,501,515,660,438,394,318) LSSugarcane.dat attach(lssugarcane.dat) # boxplots par(mfrow=c(1,3)) boxplot(split(yields, Rows), style.bxp = "old", xlab = "Rows", ylab = "Yields", medchar = T, medpch = 8) boxplot(split(yields, Columns), style.bxp = "old", xlab = "Columns", ylab = "Yields", medchar = T, medpch = 8) boxplot(split(yields, Treats), style.bxp = "old", xlab = "Treatments", ylab = "Yields", medchar = T, medpch = 8) par(mfrow=c(1,1)) # Variety means, variances and standard erros v <- tapply(yields, Treats,var) data.frame(mean= tapply(yields, Treats,mean), Variance=v,StandardError= sqrt(v)) rm(v) # ANOVA using aov without error term LSSugarcane.NoError.aov <- aov(yields ~ Rows + Columns + Treats, LSSugarcane.dat) summary(lssugarcane.noerror.aov) # ANOVA using aov with error term

45 Estatística Experimental: Session 4 45 LSSugarcane.aov <- aov(yields ~ Rows + Columns + Treats + Error(Rows * Columns), LSSugarcane.dat) summary(lssugarcane.aov) #Compute Drivers and Cars Fs and p-values Rows.F <- 7620/2843 Rows.p <- 1 - pf(rows.f, 4, 12) Columns.F < /2843 Columns.p <- 1 - pf(columns.f, 4, 12) data.frame(rows.f, Rows.p, Columns.F, Columns.p) # ANOVA using lm LSSugarcane.lm <- lm(yields ~ Rows + Columns + Treats, LSSugarcane.dat) anova(lssugarcane.lm) # Diagnostic checking fit<-fitted(lssugarcane.lm) res<-residuals(lssugarcane.lm) data.frame(rows, Columns, Treats, Yields, res, fit) par(mfrow=c(1,2)) plot(fit, res, pch = 16) qqnorm(res, pch = 16) qqline(res) par(mfrow=c(1,1)) # normal-plot with simulation envelope library(car) qq.plot(lssugarcane.lm,simulate=true,reps=999) #click on the point, use ESC in R to esc # Test of nonadditivity - Tukey # directly from the package diagnostic.checking.r tukey.1df(lssugarcane.aov, LSSugarcane.dat, error.term = "Rows:Columns") # or using lm LSSugarcane.lm <- lm(yields ~ Rows + Columns + Treats) anova(lssugarcane.lm, test="f") LP2 <- (predict(lssugarcane.lm ))^2 LSSugarcane.lm2 <-update(lssugarcane.lm,.~. +LP2) anova(lssugarcane.lm,lssugarcane.lm2, test="f") # Multiple comparisons - Tukey s HSD procedure

46 Estatística Experimental: Session 4 46 model.tables(lssugarcane.aov, type="means") q <- qtukey(0.95, 5, 12) q w <- qtukey(0.95, 5, 12)*summary(LSSugarcane.lm)$sigma/sqrt(5) w summary(lssugarcane.aov <- aov(yields ~ Rows + Columns + Treats)) TukeyHSD(LSSugarcane.aov, "Treats", ordered = TRUE) plot(tukeyhsd(lssugarcane.aov, "Treats")) # Tukeys test using laercio library require(laercio) # same as library(laercio) LTukey(LSSugarcane.aov,"Treats",conf.level=0.95) TUKEY TEST TO COMPARE MEANS Confidence level: 0.95 Dependent variable: Yields Variation Coefficient: % Independent variable: Factors Means C a A b B b D b E 401 b Treats detach(lssugarcane.dat) search()

47 Estatística Experimental: Session 4 47 IV.H Summary In this chapter we have: described how to design an experiment using a Latin square design; formulated a linear model using indicator variables to describe the results from a Latin square design; given the estimators of the parameters in the linear model, the fitted values and the residuals as functions of M or mean operator matrices; outlined an ANOVA hypothesis test for choosing between expectation models; the partition of the total sums of squares was given with the sums of squares expressed as the sums of squares of the elements of vectors and as quadratic forms where the matrices of the quadratic forms, Q matrices, are symmetric idempotents;

48 Estatística Experimental: Session 4 48 discussed the differences between the analyses where Rows and Columns are fixed and where they are random; the expected mean squares under the alternative expectation models are used to justify the choice of F test statistic; shown how to obtain a layout and the analysis of variance in R; discussed procedures for checking the adequacy of the proposed models; subsequent to the hypothesis test, examined treatment differences in detail;

49 Estatística Experimental: Session 4 49 Exercise Pig experiment The following data are from a 4 4 LS experiment at Animal Science Department, ESALQ/USP with 4 treatments (A Castration at 56 old, B without castration, C Castration at 7 days old, D Castration at 21 days old). The response variable was weight gain (kg), after 252 days. The rows were litters and the columns were initial weight intervals (inside the litters) Columns Litters A B C D B 96.5 D 77.9 A C C 94.9 A D 96.0 B D C B 97.6 A

Randomized Complete Block Designs. Clarice G. B. Demétrio

Randomized Complete Block Designs. Clarice G. B. Demétrio Topics in Biometry Course: Session 3 1 Randomized Complete Block Designs based on Chris Brien s notes (University of South Australia, Adelaide), http://chris.brien.name/ee2/ Clarice G. B. Demétrio Departamento

More information

Topics in Biometry Factorial and Split-plot experiments. Clarice G. B. Demétrio

Topics in Biometry Factorial and Split-plot experiments. Clarice G. B. Demétrio Topics in Biometry Course: Session 5 1 Topics in Biometry Factorial and Split-plot experiments based on Chris Brien s notes (University of South Australia, Adelaide), http://chris.brien.name/ee2/ Clarice

More information

STATISTICAL MODELLING V. Latin squares designs (LS) (Mead sec.8.1)

STATISTICAL MODELLING V. Latin squares designs (LS) (Mead sec.8.1) V-1 STATISTICAL MODELLING V. Latin squares designs (LS) (Mead sec.8.1) V.A Design of Latin squares... V-1 a) Obtaining a layout for a Latin square in R... V- V.B Indicator-variable models and estimation

More information

STATISTICAL MODELLING

STATISTICAL MODELLING III-1 SAISICAL MODELLING III. Completely Randomized Design (ref. Myers and Milton, sec. 5. and 6.; Mead, sec. 6.) III.A III.B III.C III.D III.E III.F III.G Design of a CRD... III-1 Models and estimation

More information

STATISTICAL MODELLING

STATISTICAL MODELLING VIII-1 STATISTICAL MODELLING VIII. Factorial designs at two levels VIII.A Replicated 2 k experiments... VIII-2 a) Design of replicated 2 k experiments, including R expressions... VIII-2 b) Analysis of

More information

STATISTICAL MODELLING PRACTICAL IX SOLUTIONS

STATISTICAL MODELLING PRACTICAL IX SOLUTIONS IX-1. STATISTICAL MODELLING PRACTICAL IX SOLUTIONS IX.1 An experiment was designed to evaluate alternative processes for pigment dispersion in aqueous media. Six solutions of each of two specific dispersion

More information

Chap The McGraw-Hill Companies, Inc. All rights reserved.

Chap The McGraw-Hill Companies, Inc. All rights reserved. 11 pter11 Chap Analysis of Variance Overview of ANOVA Multiple Comparisons Tests for Homogeneity of Variances Two-Factor ANOVA Without Replication General Linear Model Experimental Design: An Overview

More information

DESAIN EKSPERIMEN BLOCKING FACTORS. Semester Genap 2017/2018 Jurusan Teknik Industri Universitas Brawijaya

DESAIN EKSPERIMEN BLOCKING FACTORS. Semester Genap 2017/2018 Jurusan Teknik Industri Universitas Brawijaya DESAIN EKSPERIMEN BLOCKING FACTORS Semester Genap Jurusan Teknik Industri Universitas Brawijaya Outline The Randomized Complete Block Design The Latin Square Design The Graeco-Latin Square Design Balanced

More information

Chapter 1 Statistical Inference

Chapter 1 Statistical Inference Chapter 1 Statistical Inference causal inference To infer causality, you need a randomized experiment (or a huge observational study and lots of outside information). inference to populations Generalizations

More information

Orthogonal contrasts and multiple comparisons

Orthogonal contrasts and multiple comparisons BIOL 933 Lab 4 Fall 2017 Orthogonal contrasts Class comparisons in R Trend analysis in R Multiple mean comparisons Orthogonal contrasts and multiple comparisons Orthogonal contrasts Planned, single degree-of-freedom

More information

Introduction. Chapter 8

Introduction. Chapter 8 Chapter 8 Introduction In general, a researcher wants to compare one treatment against another. The analysis of variance (ANOVA) is a general test for comparing treatment means. When the null hypothesis

More information

Stat 6640 Solution to Midterm #2

Stat 6640 Solution to Midterm #2 Stat 6640 Solution to Midterm #2 1. A study was conducted to examine how three statistical software packages used in a statistical course affect the statistical competence a student achieves. At the end

More information

One-way ANOVA. Experimental Design. One-way ANOVA

One-way ANOVA. Experimental Design. One-way ANOVA Method to compare more than two samples simultaneously without inflating Type I Error rate (α) Simplicity Few assumptions Adequate for highly complex hypothesis testing 09/30/12 1 Outline of this class

More information

Lecture 15 Topic 11: Unbalanced Designs (missing data)

Lecture 15 Topic 11: Unbalanced Designs (missing data) Lecture 15 Topic 11: Unbalanced Designs (missing data) In the real world, things fall apart: plants are destroyed/trampled/eaten animals get sick volunteers quit assistants are sloppy accidents happen

More information

Laboratory Topics 4 & 5

Laboratory Topics 4 & 5 PLS205 Lab 3 January 23, 2014 Orthogonal contrasts Class comparisons in SAS Trend analysis in SAS Multiple mean comparisons Laboratory Topics 4 & 5 Orthogonal contrasts Planned, single degree-of-freedom

More information

EPSE 592: Design & Analysis of Experiments

EPSE 592: Design & Analysis of Experiments EPSE 592: Design & Analysis of Experiments Ed Kroc University of British Columbia ed.kroc@ubc.ca October 3 & 5, 2018 Ed Kroc (UBC) EPSE 592 October 3 & 5, 2018 1 / 41 Last Time One-way (one factor) fixed

More information

Math 423/533: The Main Theoretical Topics

Math 423/533: The Main Theoretical Topics Math 423/533: The Main Theoretical Topics Notation sample size n, data index i number of predictors, p (p = 2 for simple linear regression) y i : response for individual i x i = (x i1,..., x ip ) (1 p)

More information

Unit 6: Orthogonal Designs Theory, Randomized Complete Block Designs, and Latin Squares

Unit 6: Orthogonal Designs Theory, Randomized Complete Block Designs, and Latin Squares Unit 6: Orthogonal Designs Theory, Randomized Complete Block Designs, and Latin Squares STA 643: Advanced Experimental Design Derek S. Young 1 Learning Objectives Understand the basics of orthogonal designs

More information

Multiple Predictor Variables: ANOVA

Multiple Predictor Variables: ANOVA Multiple Predictor Variables: ANOVA 1/32 Linear Models with Many Predictors Multiple regression has many predictors BUT - so did 1-way ANOVA if treatments had 2 levels What if there are multiple treatment

More information

EE290H F05. Spanos. Lecture 5: Comparison of Treatments and ANOVA

EE290H F05. Spanos. Lecture 5: Comparison of Treatments and ANOVA 1 Design of Experiments in Semiconductor Manufacturing Comparison of Treatments which recipe works the best? Simple Factorial Experiments to explore impact of few variables Fractional Factorial Experiments

More information

Topic 21 Goodness of Fit

Topic 21 Goodness of Fit Topic 21 Goodness of Fit Contingency Tables 1 / 11 Introduction Two-way Table Smoking Habits The Hypothesis The Test Statistic Degrees of Freedom Outline 2 / 11 Introduction Contingency tables, also known

More information

Review: General Approach to Hypothesis Testing. 1. Define the research question and formulate the appropriate null and alternative hypotheses.

Review: General Approach to Hypothesis Testing. 1. Define the research question and formulate the appropriate null and alternative hypotheses. 1 Review: Let X 1, X,..., X n denote n independent random variables sampled from some distribution might not be normal!) with mean µ) and standard deviation σ). Then X µ σ n In other words, X is approximately

More information

Multiple comparisons The problem with the one-pair-at-a-time approach is its error rate.

Multiple comparisons The problem with the one-pair-at-a-time approach is its error rate. Multiple comparisons The problem with the one-pair-at-a-time approach is its error rate. Each confidence interval has a 95% probability of making a correct statement, and hence a 5% probability of making

More information

ANOVA (Analysis of Variance) output RLS 11/20/2016

ANOVA (Analysis of Variance) output RLS 11/20/2016 ANOVA (Analysis of Variance) output RLS 11/20/2016 1. Analysis of Variance (ANOVA) The goal of ANOVA is to see if the variation in the data can explain enough to see if there are differences in the means.

More information

Oct Analysis of variance models. One-way anova. Three sheep breeds. Finger ridges. Random and. Fixed effects model. The random effects model

Oct Analysis of variance models. One-way anova. Three sheep breeds. Finger ridges. Random and. Fixed effects model. The random effects model s s Oct 2017 1 / 34 s Consider N = n 0 + n 1 + + n k 1 observations, which form k groups, of sizes n 0, n 1,..., n k 1. The r-th group has sample mean Ȳ r The overall mean (for all groups combined) is

More information

Chapter 4: Randomized Blocks and Latin Squares

Chapter 4: Randomized Blocks and Latin Squares Chapter 4: Randomized Blocks and Latin Squares 1 Design of Engineering Experiments The Blocking Principle Blocking and nuisance factors The randomized complete block design or the RCBD Extension of the

More information

Sleep data, two drugs Ch13.xls

Sleep data, two drugs Ch13.xls Model Based Statistics in Biology. Part IV. The General Linear Mixed Model.. Chapter 13.3 Fixed*Random Effects (Paired t-test) ReCap. Part I (Chapters 1,2,3,4), Part II (Ch 5, 6, 7) ReCap Part III (Ch

More information

Multiple Predictor Variables: ANOVA

Multiple Predictor Variables: ANOVA What if you manipulate two factors? Multiple Predictor Variables: ANOVA Block 1 Block 2 Block 3 Block 4 A B C D B C D A C D A B D A B C Randomized Controlled Blocked Design: Design where each treatment

More information

STAT 525 Fall Final exam. Tuesday December 14, 2010

STAT 525 Fall Final exam. Tuesday December 14, 2010 STAT 525 Fall 2010 Final exam Tuesday December 14, 2010 Time: 2 hours Name (please print): Show all your work and calculations. Partial credit will be given for work that is partially correct. Points will

More information

Analysis of Variance. Read Chapter 14 and Sections to review one-way ANOVA.

Analysis of Variance. Read Chapter 14 and Sections to review one-way ANOVA. Analysis of Variance Read Chapter 14 and Sections 15.1-15.2 to review one-way ANOVA. Design of an experiment the process of planning an experiment to insure that an appropriate analysis is possible. Some

More information

Stat 5102 Final Exam May 14, 2015

Stat 5102 Final Exam May 14, 2015 Stat 5102 Final Exam May 14, 2015 Name Student ID The exam is closed book and closed notes. You may use three 8 1 11 2 sheets of paper with formulas, etc. You may also use the handouts on brand name distributions

More information

DESAIN EKSPERIMEN Analysis of Variances (ANOVA) Semester Genap 2017/2018 Jurusan Teknik Industri Universitas Brawijaya

DESAIN EKSPERIMEN Analysis of Variances (ANOVA) Semester Genap 2017/2018 Jurusan Teknik Industri Universitas Brawijaya DESAIN EKSPERIMEN Analysis of Variances (ANOVA) Semester Jurusan Teknik Industri Universitas Brawijaya Outline Introduction The Analysis of Variance Models for the Data Post-ANOVA Comparison of Means Sample

More information

PLSC PRACTICE TEST ONE

PLSC PRACTICE TEST ONE PLSC 724 - PRACTICE TEST ONE 1. Discuss briefly the relationship between the shape of the normal curve and the variance. 2. What is the relationship between a statistic and a parameter? 3. How is the α

More information

Lec 5: Factorial Experiment

Lec 5: Factorial Experiment November 21, 2011 Example Study of the battery life vs the factors temperatures and types of material. A: Types of material, 3 levels. B: Temperatures, 3 levels. Example Study of the battery life vs the

More information

RCB - Example. STA305 week 10 1

RCB - Example. STA305 week 10 1 RCB - Example An accounting firm wants to select training program for its auditors who conduct statistical sampling as part of their job. Three training methods are under consideration: home study, presentations

More information

(1) The explanatory or predictor variables may be qualitative. (We ll focus on examples where this is the case.)

(1) The explanatory or predictor variables may be qualitative. (We ll focus on examples where this is the case.) Introduction to Analysis of Variance Analysis of variance models are similar to regression models, in that we re interested in learning about the relationship between a dependent variable (a response)

More information

Topic 22 Analysis of Variance

Topic 22 Analysis of Variance Topic 22 Analysis of Variance Comparing Multiple Populations 1 / 14 Outline Overview One Way Analysis of Variance Sample Means Sums of Squares The F Statistic Confidence Intervals 2 / 14 Overview Two-sample

More information

Topic 6. Two-way designs: Randomized Complete Block Design [ST&D Chapter 9 sections 9.1 to 9.7 (except 9.6) and section 15.8]

Topic 6. Two-way designs: Randomized Complete Block Design [ST&D Chapter 9 sections 9.1 to 9.7 (except 9.6) and section 15.8] Topic 6. Two-way designs: Randomized Complete Block Design [ST&D Chapter 9 sections 9.1 to 9.7 (except 9.6) and section 15.8] The completely randomized design Treatments are randomly assigned to e.u. such

More information

9 Correlation and Regression

9 Correlation and Regression 9 Correlation and Regression SW, Chapter 12. Suppose we select n = 10 persons from the population of college seniors who plan to take the MCAT exam. Each takes the test, is coached, and then retakes the

More information

Wiley. Methods and Applications of Linear Models. Regression and the Analysis. of Variance. Third Edition. Ishpeming, Michigan RONALD R.

Wiley. Methods and Applications of Linear Models. Regression and the Analysis. of Variance. Third Edition. Ishpeming, Michigan RONALD R. Methods and Applications of Linear Models Regression and the Analysis of Variance Third Edition RONALD R. HOCKING PenHock Statistical Consultants Ishpeming, Michigan Wiley Contents Preface to the Third

More information

Independent Samples ANOVA

Independent Samples ANOVA Independent Samples ANOVA In this example students were randomly assigned to one of three mnemonics (techniques for improving memory) rehearsal (the control group; simply repeat the words), visual imagery

More information

Figure 9.1: A Latin square of order 4, used to construct four types of design

Figure 9.1: A Latin square of order 4, used to construct four types of design 152 Chapter 9 More about Latin Squares 9.1 Uses of Latin squares Let S be an n n Latin square. Figure 9.1 shows a possible square S when n = 4, using the symbols 1, 2, 3, 4 for the letters. Such a Latin

More information

1 Introduction to Minitab

1 Introduction to Minitab 1 Introduction to Minitab Minitab is a statistical analysis software package. The software is freely available to all students and is downloadable through the Technology Tab at my.calpoly.edu. When you

More information

Applied Statistics Preliminary Examination Theory of Linear Models August 2017

Applied Statistics Preliminary Examination Theory of Linear Models August 2017 Applied Statistics Preliminary Examination Theory of Linear Models August 2017 Instructions: Do all 3 Problems. Neither calculators nor electronic devices of any kind are allowed. Show all your work, clearly

More information

Mathematical Notation Math Introduction to Applied Statistics

Mathematical Notation Math Introduction to Applied Statistics Mathematical Notation Math 113 - Introduction to Applied Statistics Name : Use Word or WordPerfect to recreate the following documents. Each article is worth 10 points and should be emailed to the instructor

More information

Math 141. Lecture 16: More than one group. Albyn Jones 1. jones/courses/ Library 304. Albyn Jones Math 141

Math 141. Lecture 16: More than one group. Albyn Jones 1.   jones/courses/ Library 304. Albyn Jones Math 141 Math 141 Lecture 16: More than one group Albyn Jones 1 1 Library 304 jones@reed.edu www.people.reed.edu/ jones/courses/141 Comparing two population means If two distributions have the same shape and spread,

More information

Chapter 12. Analysis of variance

Chapter 12. Analysis of variance Serik Sagitov, Chalmers and GU, January 9, 016 Chapter 1. Analysis of variance Chapter 11: I = samples independent samples paired samples Chapter 1: I 3 samples of equal size J one-way layout two-way layout

More information

BIOL Biometry LAB 6 - SINGLE FACTOR ANOVA and MULTIPLE COMPARISON PROCEDURES

BIOL Biometry LAB 6 - SINGLE FACTOR ANOVA and MULTIPLE COMPARISON PROCEDURES BIOL 458 - Biometry LAB 6 - SINGLE FACTOR ANOVA and MULTIPLE COMPARISON PROCEDURES PART 1: INTRODUCTION TO ANOVA Purpose of ANOVA Analysis of Variance (ANOVA) is an extremely useful statistical method

More information

Part II { Oneway Anova, Simple Linear Regression and ANCOVA with R

Part II { Oneway Anova, Simple Linear Regression and ANCOVA with R Part II { Oneway Anova, Simple Linear Regression and ANCOVA with R Gilles Lamothe February 21, 2017 Contents 1 Anova with one factor 2 1.1 The data.......................................... 2 1.2 A visual

More information

Statistics For Economics & Business

Statistics For Economics & Business Statistics For Economics & Business Analysis of Variance In this chapter, you learn: Learning Objectives The basic concepts of experimental design How to use one-way analysis of variance to test for differences

More information

http://www.statsoft.it/out.php?loc=http://www.statsoft.com/textbook/ Group comparison test for independent samples The purpose of the Analysis of Variance (ANOVA) is to test for significant differences

More information

Hotelling s One- Sample T2

Hotelling s One- Sample T2 Chapter 405 Hotelling s One- Sample T2 Introduction The one-sample Hotelling s T2 is the multivariate extension of the common one-sample or paired Student s t-test. In a one-sample t-test, the mean response

More information

SEVERAL μs AND MEDIANS: MORE ISSUES. Business Statistics

SEVERAL μs AND MEDIANS: MORE ISSUES. Business Statistics SEVERAL μs AND MEDIANS: MORE ISSUES Business Statistics CONTENTS Post-hoc analysis ANOVA for 2 groups The equal variances assumption The Kruskal-Wallis test Old exam question Further study POST-HOC ANALYSIS

More information

Introduction to Analysis of Variance (ANOVA) Part 2

Introduction to Analysis of Variance (ANOVA) Part 2 Introduction to Analysis of Variance (ANOVA) Part 2 Single factor Serpulid recruitment and biofilms Effect of biofilm type on number of recruiting serpulid worms in Port Phillip Bay Response variable:

More information

ANALYSIS OF VARIANCE OF BALANCED DAIRY SCIENCE DATA USING SAS

ANALYSIS OF VARIANCE OF BALANCED DAIRY SCIENCE DATA USING SAS ANALYSIS OF VARIANCE OF BALANCED DAIRY SCIENCE DATA USING SAS Ravinder Malhotra and Vipul Sharma National Dairy Research Institute, Karnal-132001 The most common use of statistics in dairy science is testing

More information

10 One-way analysis of variance (ANOVA)

10 One-way analysis of variance (ANOVA) 10 One-way analysis of variance (ANOVA) A factor is in an experiment; its values are. A one-way analysis of variance (ANOVA) tests H 0 : µ 1 = = µ I, where I is the for one factor, against H A : at least

More information

Statistical inference (estimation, hypothesis tests, confidence intervals) Oct 2018

Statistical inference (estimation, hypothesis tests, confidence intervals) Oct 2018 Statistical inference (estimation, hypothesis tests, confidence intervals) Oct 2018 Sampling A trait is measured on each member of a population. f(y) = propn of individuals in the popn with measurement

More information

STAT 135 Lab 6 Duality of Hypothesis Testing and Confidence Intervals, GLRT, Pearson χ 2 Tests and Q-Q plots. March 8, 2015

STAT 135 Lab 6 Duality of Hypothesis Testing and Confidence Intervals, GLRT, Pearson χ 2 Tests and Q-Q plots. March 8, 2015 STAT 135 Lab 6 Duality of Hypothesis Testing and Confidence Intervals, GLRT, Pearson χ 2 Tests and Q-Q plots March 8, 2015 The duality between CI and hypothesis testing The duality between CI and hypothesis

More information

One-way between-subjects ANOVA. Comparing three or more independent means

One-way between-subjects ANOVA. Comparing three or more independent means One-way between-subjects ANOVA Comparing three or more independent means ANOVA: A Framework Understand the basic principles of ANOVA Why it is done? What it tells us? Theory of one-way between-subjects

More information

Stats fest Analysis of variance. Single factor ANOVA. Aims. Single factor ANOVA. Data

Stats fest Analysis of variance. Single factor ANOVA. Aims. Single factor ANOVA. Data 1 Stats fest 2007 Analysis of variance murray.logan@sci.monash.edu.au Single factor ANOVA 2 Aims Description Investigate differences between population means Explanation How much of the variation in response

More information

Randomized Blocks, Latin Squares, and Related Designs. Dr. Mohammad Abuhaiba 1

Randomized Blocks, Latin Squares, and Related Designs. Dr. Mohammad Abuhaiba 1 Randomized Blocks, Latin Squares, and Related Designs Dr. Mohammad Abuhaiba 1 HomeWork Assignment Due Sunday 2/5/2010 Solve the following problems at the end of chapter 4: 4-1 4-7 4-12 4-14 4-16 Dr. Mohammad

More information

Chapter 12 - Lecture 2 Inferences about regression coefficient

Chapter 12 - Lecture 2 Inferences about regression coefficient Chapter 12 - Lecture 2 Inferences about regression coefficient April 19th, 2010 Facts about slope Test Statistic Confidence interval Hypothesis testing Test using ANOVA Table Facts about slope In previous

More information

STAT22200 Spring 2014 Chapter 5

STAT22200 Spring 2014 Chapter 5 STAT22200 Spring 2014 Chapter 5 Yibi Huang April 29, 2014 Chapter 5 Multiple Comparisons Chapter 5-1 Chapter 5 Multiple Comparisons Note the t-tests and C.I. s are constructed assuming we only do one test,

More information

Chapte The McGraw-Hill Companies, Inc. All rights reserved.

Chapte The McGraw-Hill Companies, Inc. All rights reserved. er15 Chapte Chi-Square Tests d Chi-Square Tests for -Fit Uniform Goodness- Poisson Goodness- Goodness- ECDF Tests (Optional) Contingency Tables A contingency table is a cross-tabulation of n paired observations

More information

I i=1 1 I(J 1) j=1 (Y ij Ȳi ) 2. j=1 (Y j Ȳ )2 ] = 2n( is the two-sample t-test statistic.

I i=1 1 I(J 1) j=1 (Y ij Ȳi ) 2. j=1 (Y j Ȳ )2 ] = 2n( is the two-sample t-test statistic. Serik Sagitov, Chalmers and GU, February, 08 Solutions chapter Matlab commands: x = data matrix boxplot(x) anova(x) anova(x) Problem.3 Consider one-way ANOVA test statistic For I = and = n, put F = MS

More information

Question. Hypothesis testing. Example. Answer: hypothesis. Test: true or not? Question. Average is not the mean! μ average. Random deviation or not?

Question. Hypothesis testing. Example. Answer: hypothesis. Test: true or not? Question. Average is not the mean! μ average. Random deviation or not? Hypothesis testing Question Very frequently: what is the possible value of μ? Sample: we know only the average! μ average. Random deviation or not? Standard error: the measure of the random deviation.

More information

Notes on Maxwell & Delaney

Notes on Maxwell & Delaney Notes on Maxwell & Delaney PSY710 9 Designs with Covariates 9.1 Blocking Consider the following hypothetical experiment. We want to measure the effect of a drug on locomotor activity in hyperactive children.

More information

Lecture 2: Basic Concepts and Simple Comparative Experiments Montgomery: Chapter 2

Lecture 2: Basic Concepts and Simple Comparative Experiments Montgomery: Chapter 2 Lecture 2: Basic Concepts and Simple Comparative Experiments Montgomery: Chapter 2 Fall, 2013 Page 1 Random Variable and Probability Distribution Discrete random variable Y : Finite possible values {y

More information

Written Exam (2 hours)

Written Exam (2 hours) M. Müller Applied Analysis of Variance and Experimental Design Summer 2015 Written Exam (2 hours) General remarks: Open book exam. Switch off your mobile phone! Do not stay too long on a part where you

More information

Lecture 28 Chi-Square Analysis

Lecture 28 Chi-Square Analysis Lecture 28 STAT 225 Introduction to Probability Models April 23, 2014 Whitney Huang Purdue University 28.1 χ 2 test for For a given contingency table, we want to test if two have a relationship or not

More information

FACTORIAL DESIGNS and NESTED DESIGNS

FACTORIAL DESIGNS and NESTED DESIGNS Experimental Design and Statistical Methods Workshop FACTORIAL DESIGNS and NESTED DESIGNS Jesús Piedrafita Arilla jesus.piedrafita@uab.cat Departament de Ciència Animal i dels Aliments Items Factorial

More information

STT 843 Key to Homework 1 Spring 2018

STT 843 Key to Homework 1 Spring 2018 STT 843 Key to Homework Spring 208 Due date: Feb 4, 208 42 (a Because σ = 2, σ 22 = and ρ 2 = 05, we have σ 2 = ρ 2 σ σ22 = 2/2 Then, the mean and covariance of the bivariate normal is µ = ( 0 2 and Σ

More information

Outline. Remedial Measures) Extra Sums of Squares Standardized Version of the Multiple Regression Model

Outline. Remedial Measures) Extra Sums of Squares Standardized Version of the Multiple Regression Model Outline 1 Multiple Linear Regression (Estimation, Inference, Diagnostics and Remedial Measures) 2 Special Topics for Multiple Regression Extra Sums of Squares Standardized Version of the Multiple Regression

More information

STAT 213 Two-Way ANOVA II

STAT 213 Two-Way ANOVA II STAT 213 Two-Way ANOVA II Colin Reimer Dawson Oberlin College May 2, 2018 1 / 21 Outline Two-Way ANOVA: Additive Model FIT: Estimating Parameters ASSESS: Variance Decomposition Pairwise Comparisons 2 /

More information

Analysis of 2x2 Cross-Over Designs using T-Tests

Analysis of 2x2 Cross-Over Designs using T-Tests Chapter 234 Analysis of 2x2 Cross-Over Designs using T-Tests Introduction This procedure analyzes data from a two-treatment, two-period (2x2) cross-over design. The response is assumed to be a continuous

More information

Cuckoo Birds. Analysis of Variance. Display of Cuckoo Bird Egg Lengths

Cuckoo Birds. Analysis of Variance. Display of Cuckoo Bird Egg Lengths Cuckoo Birds Analysis of Variance Bret Larget Departments of Botany and of Statistics University of Wisconsin Madison Statistics 371 29th November 2005 Cuckoo birds have a behavior in which they lay their

More information

Lec 1: An Introduction to ANOVA

Lec 1: An Introduction to ANOVA Ying Li Stockholm University October 31, 2011 Three end-aisle displays Which is the best? Design of the Experiment Identify the stores of the similar size and type. The displays are randomly assigned to

More information

An Old Research Question

An Old Research Question ANOVA An Old Research Question The impact of TV on high-school grade Watch or not watch Two groups The impact of TV hours on high-school grade Exactly how much TV watching would make difference Multiple

More information

Analysis of Covariance. The following example illustrates a case where the covariate is affected by the treatments.

Analysis of Covariance. The following example illustrates a case where the covariate is affected by the treatments. Analysis of Covariance In some experiments, the experimental units (subjects) are nonhomogeneous or there is variation in the experimental conditions that are not due to the treatments. For example, a

More information

21.0 Two-Factor Designs

21.0 Two-Factor Designs 21.0 Two-Factor Designs Answer Questions 1 RCBD Concrete Example Two-Way ANOVA Popcorn Example 21.4 RCBD 2 The Randomized Complete Block Design is also known as the two-way ANOVA without interaction. A

More information

The legacy of Sir Ronald A. Fisher. Fisher s three fundamental principles: local control, replication, and randomization.

The legacy of Sir Ronald A. Fisher. Fisher s three fundamental principles: local control, replication, and randomization. 1 Chapter 1: Research Design Principles The legacy of Sir Ronald A. Fisher. Fisher s three fundamental principles: local control, replication, and randomization. 2 Chapter 2: Completely Randomized Design

More information

Statistical Tests. Matthieu de Lapparent

Statistical Tests. Matthieu de Lapparent Statistical Tests Matthieu de Lapparent matthieu.delapparent@epfl.ch Transport and Mobility Laboratory, School of Architecture, Civil and Environmental Engineering, Ecole Polytechnique Fédérale de Lausanne

More information

The entire data set consists of n = 32 widgets, 8 of which were made from each of q = 4 different materials.

The entire data set consists of n = 32 widgets, 8 of which were made from each of q = 4 different materials. One-Way ANOVA Summary The One-Way ANOVA procedure is designed to construct a statistical model describing the impact of a single categorical factor X on a dependent variable Y. Tests are run to determine

More information

Vladimir Spokoiny Design of Experiments in Science and Industry

Vladimir Spokoiny Design of Experiments in Science and Industry W eierstraß-institut für Angew andte Analysis und Stochastik Vladimir Spokoiny Design of Experiments in Science and Industry www.ndt.net/index.php?id=8310 Mohrenstr. 39, 10117 Berlin spokoiny@wias-berlin.de

More information

Diagnostics and Remedial Measures

Diagnostics and Remedial Measures Diagnostics and Remedial Measures Yang Feng http://www.stat.columbia.edu/~yangfeng Yang Feng (Columbia University) Diagnostics and Remedial Measures 1 / 72 Remedial Measures How do we know that the regression

More information

Practice Problems Section Problems

Practice Problems Section Problems Practice Problems Section 4-4-3 4-4 4-5 4-6 4-7 4-8 4-10 Supplemental Problems 4-1 to 4-9 4-13, 14, 15, 17, 19, 0 4-3, 34, 36, 38 4-47, 49, 5, 54, 55 4-59, 60, 63 4-66, 68, 69, 70, 74 4-79, 81, 84 4-85,

More information

One-way between-subjects ANOVA. Comparing three or more independent means

One-way between-subjects ANOVA. Comparing three or more independent means One-way between-subjects ANOVA Comparing three or more independent means Data files SpiderBG.sav Attractiveness.sav Homework: sourcesofself-esteem.sav ANOVA: A Framework Understand the basic principles

More information

POLI 443 Applied Political Research

POLI 443 Applied Political Research POLI 443 Applied Political Research Session 6: Tests of Hypotheses Contingency Analysis Lecturer: Prof. A. Essuman-Johnson, Dept. of Political Science Contact Information: aessuman-johnson@ug.edu.gh College

More information

Analysis of Variance: Part 1

Analysis of Variance: Part 1 Analysis of Variance: Part 1 Oneway ANOVA When there are more than two means Each time two means are compared the probability (Type I error) =α. When there are more than two means Each time two means are

More information

HYPOTHESIS TESTING: THE CHI-SQUARE STATISTIC

HYPOTHESIS TESTING: THE CHI-SQUARE STATISTIC 1 HYPOTHESIS TESTING: THE CHI-SQUARE STATISTIC 7 steps of Hypothesis Testing 1. State the hypotheses 2. Identify level of significant 3. Identify the critical values 4. Calculate test statistics 5. Compare

More information

STAT 501 EXAM I NAME Spring 1999

STAT 501 EXAM I NAME Spring 1999 STAT 501 EXAM I NAME Spring 1999 Instructions: You may use only your calculator and the attached tables and formula sheet. You can detach the tables and formula sheet from the rest of this exam. Show your

More information

STA2601. Tutorial letter 203/2/2017. Applied Statistics II. Semester 2. Department of Statistics STA2601/203/2/2017. Solutions to Assignment 03

STA2601. Tutorial letter 203/2/2017. Applied Statistics II. Semester 2. Department of Statistics STA2601/203/2/2017. Solutions to Assignment 03 STA60/03//07 Tutorial letter 03//07 Applied Statistics II STA60 Semester Department of Statistics Solutions to Assignment 03 Define tomorrow. university of south africa QUESTION (a) (i) The normal quantile

More information

The One-Way Repeated-Measures ANOVA. (For Within-Subjects Designs)

The One-Way Repeated-Measures ANOVA. (For Within-Subjects Designs) The One-Way Repeated-Measures ANOVA (For Within-Subjects Designs) Logic of the Repeated-Measures ANOVA The repeated-measures ANOVA extends the analysis of variance to research situations using repeated-measures

More information

Introduction to Design and Analysis of Experiments with the SAS System (Stat 7010 Lecture Notes)

Introduction to Design and Analysis of Experiments with the SAS System (Stat 7010 Lecture Notes) Introduction to Design and Analysis of Experiments with the SAS System (Stat 7010 Lecture Notes) Asheber Abebe Discrete and Statistical Sciences Auburn University Contents 1 Completely Randomized Design

More information

COMPARISON OF MEANS OF SEVERAL RANDOM SAMPLES. ANOVA

COMPARISON OF MEANS OF SEVERAL RANDOM SAMPLES. ANOVA Experimental Design and Statistical Methods Workshop COMPARISON OF MEANS OF SEVERAL RANDOM SAMPLES. ANOVA Jesús Piedrafita Arilla jesus.piedrafita@uab.cat Departament de Ciència Animal i dels Aliments

More information

MEMORIAL UNIVERSITY OF NEWFOUNDLAND DEPARTMENT OF MATHEMATICS AND STATISTICS FINAL EXAM - STATISTICS FALL 1999

MEMORIAL UNIVERSITY OF NEWFOUNDLAND DEPARTMENT OF MATHEMATICS AND STATISTICS FINAL EXAM - STATISTICS FALL 1999 MEMORIAL UNIVERSITY OF NEWFOUNDLAND DEPARTMENT OF MATHEMATICS AND STATISTICS FINAL EXAM - STATISTICS 350 - FALL 1999 Instructor: A. Oyet Date: December 16, 1999 Name(Surname First): Student Number INSTRUCTIONS

More information

" M A #M B. Standard deviation of the population (Greek lowercase letter sigma) σ 2

 M A #M B. Standard deviation of the population (Greek lowercase letter sigma) σ 2 Notation and Equations for Final Exam Symbol Definition X The variable we measure in a scientific study n The size of the sample N The size of the population M The mean of the sample µ The mean of the

More information

Unit 8: 2 k Factorial Designs, Single or Unequal Replications in Factorial Designs, and Incomplete Block Designs

Unit 8: 2 k Factorial Designs, Single or Unequal Replications in Factorial Designs, and Incomplete Block Designs Unit 8: 2 k Factorial Designs, Single or Unequal Replications in Factorial Designs, and Incomplete Block Designs STA 643: Advanced Experimental Design Derek S. Young 1 Learning Objectives Revisit your

More information

Notes on Maxwell & Delaney

Notes on Maxwell & Delaney Notes on Maxwell & Delaney PSY710 12 higher-order within-subject designs Chapter 11 discussed the analysis of data collected in experiments that had a single, within-subject factor. Here we extend those

More information

STATISTICS 141 Final Review

STATISTICS 141 Final Review STATISTICS 141 Final Review Bin Zou bzou@ualberta.ca Department of Mathematical & Statistical Sciences University of Alberta Winter 2015 Bin Zou (bzou@ualberta.ca) STAT 141 Final Review Winter 2015 1 /

More information