STAT22200 Spring 2014 Chapter 8A

Size: px
Start display at page:

Download "STAT22200 Spring 2014 Chapter 8A"

Transcription

1 STAT22200 Spring 2014 Chapter 8A Yibi Huang May 13, Two-Way Factorial Designs Chapter 8A - 1

2 Problem 81 Sprouting Barley (p166 in Oehlert) Brewer s malt is produced from germinating barley, so brewers like to know under what conditions they should germinate their barley The following is part of an experiment on barley germination 30 lots of barley seeds, 100 seeds per lot, are randomly divided into 10 groups of 3 lots Each group receives a treatment according to water amount used in germination 4 ml or 8 ml age of seeds in weeks after harvest 1, 3, 6, 9, or 12 Response: # of seeds germinating Age of Seeds (weeks) water (ml) (ml) Chapter 8A - 2

3 Basic Terminology The sprouting barley experiment has 10 treatments The 10 treatments has a factorial structure A factor is an experimentally adjustable variable, eg water amount used in germination, age of seeds in weeks after harvest, Factors have levels, eg water amount is a factor with 2 levels (4 ml or 8 ml) age of seeds is a factor with 5 levels (1, 3, 6, 9, 12 weeks) A treatment is a combination of factors In the barley experiment, the treatments are the 2 5 combinations of the possible levels of the two factors (4ml, 1 wk) (4ml, 3 wks) (4ml, 6 wks) (4ml, 9 wks) (4ml, 12 wks) (8ml, 1 wk) (8ml, 3 wks) (8ml, 6 wks) (8ml, 9 wks) (8ml, 12 wks) Chapter 8A - 3

4 Full k-way Factorial Design Consider k factors with respectively L 1, L 2,, L k levels, a full k-way factorial design include all the L 1 L 2 L k combination of the k factors as treatments A factorial design is said to be balanced if all the treatment groups have the same number of replicates Otherwise, the design is unbalanced Question: How many units are there in a 3 2 design with 4 replicates? Balanced designs have many advantages, but not always necessary sometimes if a unit fails (ex, a test tube gets dropped) we might end up with unbalanced results even if the original design was balanced Chapter 8A - 4

5 Data for a Two-Way a b Design with n Replicates B-level 1 B-level 2 B-level b A-level 1 A-level 2 A-level a y 111 y 112 y 11n y 211 y 212 y 21n y a11 y a12 y a1n y 121 y 122 y 12n y 221 y 222 y 22n y a21 y a22 y a2n Chapter 8A - 5 y 1b1 y 1b2 y 1bn y 2b1 y 2b2 y 2bn y ab1 y ab2 y abn

6 Display of Data from Two Way Factorial Designs Age of Seeds (weeks) y ijk water 4(ml) water 8(ml) Age of Seeds (weeks) Row means Cell means y ij y i water 4(ml) water 8(ml) Column means y j y = 142 overall mean Does water have an effect on gemination? Does the age of seeds have an effect? Chapter 8A - 6

7 How to Get Cell Means in R? To get cell means (average of the 3 values in each cell) > barley = readtable("sproutingbarleytxt",header=t) > attach(barley) > tapply(y,list(water,week),mean) To get the row means > tapply(y,water,mean) To get the column means > tapply(y,week,mean) Chapter 8A - 7

8 Graphical Display of Data Interaction Plots cell means Age of Seeds (weeks) y ij water 4(ml) water 8(ml) Interaction plots: plotting cell means (y ij ) against levels of one factor (A or B), with different lines for the other factor (B or A) mean of y water mean of y week Age of Seed (week) 4 8 Water Amount (ml) > interactionplot(week,water,y,type="b",xlab="age of Seed (week)") > interactionplot(water,week,y,type="b",xlab="water Amount (ml)") Chapter 8A - 8

9 Means Model for a Two-Way Factorial Design For a a b two-way factorial experiment with n replicates means model : y ijk = µ ij + ε ijk for { i = 1,, a, j = 1,, b, k = 1,, n y ijk = the kth replicate in the treatment formed from the ith level of factor A and jth level of factor B ε ijk s are iid N(0, σ 2 ) µ ij = the mean response in the treatment formed from the ith level of factor A and jth level of factor B The means model regards the 2-way factorial design as a CRD with a b treatments, ignoring the factorial structure of the treatments Chapter 8A - 9

10 Main Effects (1) Though the means model y ijk = µ ij + ε ijk ignores factorial structure of the treatments, one can use appropriate contrasts to explore the effects of the two factors Eg, if one wants to compare the effects of level 1 and 2 of factor A, one can use the contrast C = µ 11 + µ 12 + µ 1b b µ 21 + µ 22 + µ 2b b = µ 1 µ 2 In general, if one wants to compare between levels of factor A, the contrasts are all of the form C = µ i1 µ i2 Observe µ i = mean response at the ith level of factor A, averaged over all levels of factor B We call µ i, i = 1,, a, as the main effects of factor A Similarly, µ j, j = 1,, b, are called the main effects of factor B Chapter 8A - 10

11 Main Effects (2) As µ i s and µ j s are important parameters We thus give them new notations µ i = µ + α i = overall effect + effect due to factor A µ j = µ + β j = overall effect + effect due to factor B in which, µ = µ is the overall average of all µ ij s We also call α i s as the main effect of factor A, and β j s as the main effect of factor B Observe that only a 1 of the α i s can be arbitrary since α i = i=1 µ i aµ = i=1 i=1 y i ( {}}{ 1 ) b b µ ij aµ j=1 = 1 b µ a ab µ = 0 Similarly, one can show that b j=1 β j = 0 Chapter 8A - 11

12 Interaction (1) Two factors A and B are said to have a two-way interaction if the effects of factor A change with the levels of factor B To be more specific, based on the means model y ijk = µ ij + ε ijk, the effect of changing factor A from level i 1 to level i 2 is { µ i2 j 1 µ i1 j 1 if factor B is fixed at level j 1 If µ i2 j 2 µ i1 j 2 if factor B is fixed at level j 2 µ i2 j 2 µ i1 j 2 (µ i2 j 1 µ i1 j 1 ) = µ i1 j 1 µ i1 j 2 µ i2 j 1 + µ i2 j 2 = 0, then level (i 1, i 2 ) of factor A doesn t interact with level (j 1, j 2 ) of factor B If none of the levels of factor A interact the levels of factor B, ie, µ i1 j 1 µ i1 j 2 µ i2 j 1 + µ i2 j 2 = 0, for all i 1, i 2, j 1, j 2, then we say factor A and factor B have no interaction Chapter 8A - 12

13 Interaction (2) If factor A and factor B have no interaction, we claim that µ ij = µ + α i + β j, for all i, j, in which µ = µ, α i = µ i µ, and β i = µ j µ Proof µ ij µ α i β j = µ ij µ i µ j + µ = µ ij 1 µ im 1 m µ lj + 1 b a ab = 1 ab = 1 ab m=1 l=1 m=1 l=1 m=1 µ ij 1 ab l=1 l=1 m=1 l=1 m=1 µ im 1 ab (µ ij µ im µ lj + µ lm ) = 0 }{{} = 0, since no interaction Chapter 8A - 13 µ lm l=1 m=1 µ lj + 1 ab l=1 m=1 µ lm

14 Interaction (3) In view of the result on the previous slide, we define the interaction terms of factor A and factor B as αβ ij def = µ ij µ α i β j, for all i = 1,, a, j = 1,, b The interaction terms αβ ij s have the following properties αβ ij = 0, for all i, j if the two factors do not interact a i=1 αβ ij = 0 for all j and b j=1 αβ ij = 0 for all i In other words, the row sums and column sums of the array below are all 0 αβ 11 αβ 12 αβ ab αβ 21 αβ 22 αβ 2b αβ a1 αβ a2 αβ ab See the next slide for proofs Chapter 8A - 14

15 Interaction (4) αβ ij = i=1 (µ ij µ i µ j + µ ) i=1 ( 1 ) = µ j b µ i aµ j + aµ i=1 which is valid for all j = 1,, b = µ j 1 b µ a a µ j + a ab µ = 0, HW today: Show that a j=1 αβ ij = 0 for all i Chapter 8A - 15

16 Main-Effect-Interaction Model for 2-Way Factorial Designs The main-effect-interaction model for a two-way factorial design is y ijk = µ + α i + β j + αβ ij + ε ijk for { i = 1,, a, j = 1,, b, k = 1,, n Unlike the means model y ijk = µ ij + ε ijk that there is no constraints on the parameter µ ij s, the main-effect-interaction model has several constraints α i = i=1 β j = j=1 αβ ij = i=1 αβ ij = 0, for all i, j The means model and the main-effect-interaction model are related as follows j=1 µ = µ, α i = µ i µ, β j = µ j µ αβ ij = µ ij µ i µ j + µ Chapter 8A - 16

17 Main-Effect-Interaction Model for 2-Way Factorial Designs µ 11 µ 12 µ ab µ 21 µ 22 µ 2b µ a1 µ a2 µ ab = µ + α 1 α 2 α a + β 1 β 2 β b + αβ 11 αβ 12 αβ ab αβ 21 αβ 22 αβ 2b αβ a1 αβ a2 αβ ab Chapter 8A - 17

18 Additive Model A model is said to be additive if all interaction terms are 0 y ijk = µ + α i + β j + ε ijk for { i = 1,, a, j = 1,, b, k = 1,, n In other words, additive models for two-way factorial designs assume no interactions between the two factors An additive model also has constraints on parameters α i = i=1 β j = 0 j=1 Chapter 8A - 18

19 Interaction Plot Revisit Plot cell means (y ij ) against levels of one factor (i or j), with different lines for the other factor (j or i) > barley = readtable("sproutingbarleytxt",header=t) > attach(barley) > interactionplot(week,water,y,type="b",xlab="age of Seed (week)") > interactionplot(water,week,y,type="b",xlab="water Amount (ml)") mean of y water mean of y week Age of Seed (week) 4 8 Water Amount (ml) Chapter 8A - 19

20 Interaction Plots Revisit(2) Parallel lines indicate no interaction Interaction No Interaction Mean of Y Factor B = 1 Factor B = 2 Mean of Y Factor B = 1 Factor B = Factor A Factor A Chapter 8A - 20

21 Interaction Plot Revisit (3) What does the interaction plot below tell us? Mean of Y Factor B = 1 Factor B = Factor A Chapter 8A - 21

22 Estimation of Parameters (1) Parameter estimation in a balanced factorial design is straightforward For the means model and the effects model, y ijk = µ ij + ε ijk (means model) y ijk = µ + α i + β j + αβ ij + ε ijk (main-effect-interaction model) the parameter estimates are µ ij = y ij µ = y, α i = y i y, β j = y j y αβ ij = y ij y i y j + y Observe the estimates also satisfy the zero-sum constraints: α i = i=1 β j = j=1 αβ ij = i=1 αβ ij = 0, for all i, j j=1 Chapter 8A - 22

23 Estimation of Parameters (2) Since the design is balanced, for any of the reduced models below, y ijk = µ + ε ijk (no main effects, no interaction) y ijk = µ + α i + ε ijk (main effects of A only) y ijk = µ + β j + ε ijk (main effects of B only) y ijk = µ + α i + β j + ε ijk (additive model) the estimates of µ, α i s, and β j s are the same as in the main-effects-interaction model: µ = y, α i = y i y, βj = y j y If NOT balanced, the estimate will change with the model Recall in a regression model, the estimate of a coefficient will change with the model formula Chapter 8A - 23

24 Fitted Values for a Main-Effect-Interaction Model For a main-effect-interaction model, the fitted value for y ijk is simply y ij because ŷ ijk = µ + α i + β j + αβ ij = y + (y i y ) + (y j y ) + (y ij y i y j + y ) = y ij = cell mean Chapter 8A - 24

25 Fitted Values for an Additive Model For an additive model (no interaction), the fitted value for y ijk is ŷ ijk = µ + α i + β j = y + (y i y ) + (y j y ) = y i + y j y = row mean + column mean overall mean Chapter 8A - 25

26 Example 86 Bacteria in Cheese (p178 in Oehlert) Factor A: Bacteria R50#10, added or not Factor B: Bacteria R21#2, added or not 3 replicates Response: total free amino acids in cheddar cheese after 56 days of ripening No R21 R21 added No R R added Is there interaction? No R21 R21 added No R50 y 11 = 1709 y 12 = 1952 R50 added y 21 = 2153 y 22 = 2444 mean of y R21 added No R21 No R50 Chapter 8A - 26 R50 added

27 Example 86 Bacteria in Cheese (p178 in Oehlert) B-level 1 B-level 2 row mean A-level 1 y 11 = 1709 y 12 = 1952 y 1 = 1831 A-level 2 y 21 = 2153 y 22 = 2444 y 2 = 2299 column mean y 1 = 1931 y 2 = 2198 y = 2065 µ = y = 2065 α 1 = y 1 y = = 0234 β 1 = y 1 y = = 0134 αβ 11 = y 11 y 1 y 1 + y = = 0012 The estimates of all other parameters can be computed using the zero-sum constraints α 1 + α 2 = 0 α 2 = α 1 = 0234 β 1 + β 2 = 0 β 2 = β 2 = 0134 αβ 11 + αβ 12 = 0 αβ 12 = αβ 11 = 0012 αβ 11 + αβ 21 = 0 αβ 21 = αβ 11 = 0012 αβ 12 + αβ 22 = 0 αβ 22 = αβ 12 = 0012 Chapter 8A - 27

28 Sum of Squares for Balanced 2-Way Factorial Designs (1) An balanced a b two-way factorial design with n replicates is also a CRD with ab treatments, so the sum of squares identity is still valid SST = SS trt + SSE where SST = SS trt = n i=1 j=1 k=1 i=1 j=1 n (y ijk y ) 2 and (y ij y ) 2, SS E = i=1 j=1 k=1 df for SST = total # of observations 1 = abn 1 df for SS trt = # of treatments 1 = ab 1 n (y ijk y ij ) 2 df for SSE = total # of observations # of treatments = abn ab = ab(n 1) Chapter 8A - 28

29 Sum of Squares for Balanced 2-Way Factorial Designs (2) As the ab treatments have a factorial structure, SS trt can be decomposed further in which SS trt = SS A + SS B + SS AB SS formula df SS A SS B SS AB SS trt n a n a n a n a b i=1 b i=1 b i=1 b i=1 j=1 (y i y ) 2 a 1 j=1 (y j y ) 2 b 1 j=1 (y ij y i y j +y ) 2 (a 1)(b 1) j=1 (y ij y ) 2 ab 1 Observe the df for the SS of the main effects or interactions = (number of parameters) (number of constraint(s)) Chapter 8A - 29

30 Sum of Squares for Balanced 2-Way Factorial Designs (3) In summary SST = SS A + SS B + SS AB + SSE SST = SS A = SS B = SS AB = SS E = i=1 j=1 k=1 i=1 j=1 k=1 i=1 j=1 k=1 i=1 j=1 k=1 i=1 j=1 k=1 n (y ijk y ) 2 n (y i y }{{ ) } α i n (y j y ) }{{} β j 2 = bn 2 = an i=1 j=1 α 2 i β 2 j n (y ij y i y j + y ) }{{} αβ ij n (y ijk y ij ) 2 Chapter 8A = n i=1 j=1 αβ 2 ij

31 Expected Values for the Mean Squares Just like CRD, the mean squares for factorial design are the sum of squares divided by the corresponding df MS A = SS A a 1, MS B = SS B b 1, MS AB = SS AB (a 1)(b 1), MSE = Under the effects model for a balanced two-way factorial, y ijk = µ + α i + β j + αβ ij + ε ijk ε ijk s are iid N(0, σ 2 ) one can show that E(MS A ) = σ 2 + E(MS AB ) = σ 2 + bn a 1 i=1 n (a 1)(b 1) α 2 i, E(MS B ) = σ 2 + an b 1 i=1 j=1 Again the MSE is an unbiased estimator of σ 2 Chapter 8A - 31 SSE ab(n 1) j=1 β 2 j αβij, 2 E(MSE) = σ 2

32 ANOVA Table for Balanced Two-Way Factorial Designs Source df SS MS F Factor A a 1 SS A MS A = SS A a 1 Factor B b 1 SS B MS B = SS B b 1 SS AB F A = MS A MSE F B = MS B MSE AB Interaction (a 1)(b 1) SS AB MS AB = (a 1)(b 1) F AB = MS AB MSE Error ab(n 1) SSE MSE = SSE ab(n 1) Total abn 1 SST Chapter 8A - 32

33 Questions of Interest in a 2-Way Factorial Design 1 Does factor A has an effect on the response? Eg does the age of seeds has an effect on germination? { H 0 : α 1 = =α a =0 F A = MS A H a : not all α i s = 0, MSE F a 1, ab(n 1) under H 0 2 Does factor B has an effect on the response? Eg does the water amount has an effect on germination? { H 0 : β 1 = =β b =0 F B = MS B H a : not all β i s = 0, MSE F b 1, ab(n 1) under H 0 3 Does the effect of factor A interact with that of factor B? Eg, does the effect of age change with water amount? { H 0 : αβ ij =0 for all i, j H a : αβ ij 0 for some i, j F AB = MS AB MSE F (a 1)(b 1), ab(n 1) under H 0 Chapter 8A - 33

34 Example 86 Bacteria in Cheese (p178 in Oehlert) SS A = bn a i=1 α2 i = 2 3 [( 0234) ] = 0656 SS B = an b β j 2 = 2 3 [( 0134) ] = 0214 SS AB = n a j=1 b i=1 j=1 αβ 2 ij = 3 [ ] Computing SSE needs more work It is easier to compute the SST: b n SST = a (y ijk y i=1 j=1 k=1 ) 2 = ( ) 2 + ( ) 2 + ( ) 2 Then we can get + + ( ) 2 = 1598 SSE = SST SS A SS B SS AB = = 0726 Chapter 8A - 34

35 Example 86 Bacteria in Cheese ANOVA table Source df SS MS F -value P-value A(R50) B(R21) AB interaction Error Total Only main effect A (Bacteria R50) is moderately significant Main effect B and interaction are not One can also get the ANOVA table in R as follows > lmcheese = lm(y ~ r50 + r21 + r50*r21, data=cheese) > anova(lmcheese) Analysis of Variance Table Response: y Df Sum Sq Mean Sq F value Pr(>F) r * r r50:r Residuals Chapter 8A - 35

36 Advantage and Disadvantage of Factorial Designs Advantage: Factorial design is superior to one-at-a-time designs that change only one factor at a time because factorial design can test the effects of both factors at once more efficient than one-at-a-time design, taking fewer units to attain the same power; one can investigate interaction of factors in a factorial design, but not in one-at-a-time experiments By trying a wide range of treatments we broaden the inductive base for generalizing our results Disadvantage: If there are many factors or many levels, the size of the experiment grows rapidly Remedy: fractional factorial designs (Chapter 18) If blocking is necessary, natural block size may not be big enough to run a full factorial in one block Chapter 8A - 36

37 Q1: Does the age of seeds has an effect on germination? We can ignore water amount, and analyze the data as a CRD of 5 treatments Though the units are watered at two different levels, this is still a fair comparison because we ensure that half of the units get 4ml and half 8ml for each of the 5 Age of Seeds (weeks) > barley = readtable("sproutingbarleytxt",header=t) > lmage = lm(y ~ asfactor(week), data=barley) > anova(lmage) Analysis of Variance Table Response: y Df Sum Sq Mean Sq F value Pr(>F) asfactor(week) * Residuals Age of seeds has a significant effect on germination Chapter 8A - 37

38 Q2: Does the water amount has an effect on germination? We can ignore seed age, and analyze the data as a CRD of 2 treatments Though the seeds different in age, this is still a fair comparison because the 2 treatment groups have the same distribution in seed age > lmwater = lm(y ~ asfactor(water), data=barley) > anova(lmwater) Analysis of Variance Table water Response (ml) (ml) Response: y Df Sum Sq Mean Sq F value Pr(>F) asfactor(water) ** Residuals Water amount also has a significant effect on germination Chapter 8A - 38

39 You might have realized that a better idea to test the age effect is to block on water amount and analyze like a > lmboth = lm(y ~ asfactor(week) + asfactor(water), data=barley) > anova(lmboth) Analysis of Variance Table Response: y Df Sum Sq Mean Sq F value Pr(>F) asfactor(week) ** asfactor(water) *** Residuals By blocking on water amount, the age effect becomes more significant Conversely, one can also regard water amount as treatment and seed age as block Water effect also become more significant after blocking on seed age Chapter 8A - 39

Two-Way Factorial Designs

Two-Way Factorial Designs 81-86 Two-Way Factorial Designs Yibi Huang 81-86 Two-Way Factorial Designs Chapter 8A - 1 Problem 81 Sprouting Barley (p166 in Oehlert) Brewer s malt is produced from germinating barley, so brewers like

More information

Unbalanced Data in Factorials Types I, II, III SS Part 1

Unbalanced Data in Factorials Types I, II, III SS Part 1 Unbalanced Data in Factorials Types I, II, III SS Part 1 Chapter 10 in Oehlert STAT:5201 Week 9 - Lecture 2 1 / 14 When we perform an ANOVA, we try to quantify the amount of variability in the data accounted

More information

Factorial Treatment Structure: Part I. Lukas Meier, Seminar für Statistik

Factorial Treatment Structure: Part I. Lukas Meier, Seminar für Statistik Factorial Treatment Structure: Part I Lukas Meier, Seminar für Statistik Factorial Treatment Structure So far (in CRD), the treatments had no structure. So called factorial treatment structure exists if

More information

Lecture 10. Factorial experiments (2-way ANOVA etc)

Lecture 10. Factorial experiments (2-way ANOVA etc) Lecture 10. Factorial experiments (2-way ANOVA etc) Jesper Rydén Matematiska institutionen, Uppsala universitet jesper@math.uu.se Regression and Analysis of Variance autumn 2014 A factorial experiment

More information

Power & Sample Size Calculation

Power & Sample Size Calculation Chapter 7 Power & Sample Size Calculation Yibi Huang Chapter 7 Section 10.3 Power & Sample Size Calculation for CRDs Power & Sample Size for Factorial Designs Chapter 7-1 Power & Sample Size Calculation

More information

Nested Designs & Random Effects

Nested Designs & Random Effects Nested Designs & Random Effects Timothy Hanson Department of Statistics, University of South Carolina Stat 506: Introduction to Design of Experiments 1 / 17 Bottling plant production A production engineer

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

STAT22200 Spring 2014 Chapter 14

STAT22200 Spring 2014 Chapter 14 STAT22200 Spring 2014 Chapter 14 Yibi Huang May 27, 2014 Chapter 14 Incomplete Block Designs 14.1 Balanced Incomplete Block Designs (BIBD) Chapter 14-1 Incomplete Block Designs A Brief Introduction to

More information

Factorial designs. Experiments

Factorial designs. Experiments Chapter 5: Factorial designs Petter Mostad mostad@chalmers.se Experiments Actively making changes and observing the result, to find causal relationships. Many types of experimental plans Measuring response

More information

Outline Topic 21 - Two Factor ANOVA

Outline Topic 21 - Two Factor ANOVA Outline Topic 21 - Two Factor ANOVA Data Model Parameter Estimates - Fall 2013 Equal Sample Size One replicate per cell Unequal Sample size Topic 21 2 Overview Now have two factors (A and B) Suppose each

More information

STAT22200 Chapter 14

STAT22200 Chapter 14 STAT00 Chapter 4 Yibi Huang Chapter 4 Incomplete Block Designs 4. Balanced Incomplete Block Designs (BIBD) Chapter 4 - Incomplete Block Designs A Brief Introduction to a Class of Most Useful Designs in

More information

1-Way ANOVA MATH 143. Spring Department of Mathematics and Statistics Calvin College

1-Way ANOVA MATH 143. Spring Department of Mathematics and Statistics Calvin College 1-Way ANOVA MATH 143 Department of Mathematics and Statistics Calvin College Spring 2010 The basic ANOVA situation Two variables: 1 Categorical, 1 Quantitative Main Question: Do the (means of) the quantitative

More information

Topic 13. Analysis of Covariance (ANCOVA) - Part II [ST&D Ch. 17]

Topic 13. Analysis of Covariance (ANCOVA) - Part II [ST&D Ch. 17] Topic 13. Analysis of Covariance (ANCOVA) - Part II [ST&D Ch. 17] 13.5 Assumptions of ANCOVA The assumptions of analysis of covariance are: 1. The X s are fixed, measured without error, and independent

More information

Orthogonal contrasts for a 2x2 factorial design Example p130

Orthogonal contrasts for a 2x2 factorial design Example p130 Week 9: Orthogonal comparisons for a 2x2 factorial design. The general two-factor factorial arrangement. Interaction and additivity. ANOVA summary table, tests, CIs. Planned/post-hoc comparisons for the

More information

Example: Poisondata. 22s:152 Applied Linear Regression. Chapter 8: ANOVA

Example: Poisondata. 22s:152 Applied Linear Regression. Chapter 8: ANOVA s:5 Applied Linear Regression Chapter 8: ANOVA Two-way ANOVA Used to compare populations means when the populations are classified by two factors (or categorical variables) For example sex and occupation

More information

Two-factor studies. STAT 525 Chapter 19 and 20. Professor Olga Vitek

Two-factor studies. STAT 525 Chapter 19 and 20. Professor Olga Vitek Two-factor studies STAT 525 Chapter 19 and 20 Professor Olga Vitek December 2, 2010 19 Overview Now have two factors (A and B) Suppose each factor has two levels Could analyze as one factor with 4 levels

More information

Stat 217 Final Exam. Name: May 1, 2002

Stat 217 Final Exam. Name: May 1, 2002 Stat 217 Final Exam Name: May 1, 2002 Problem 1. Three brands of batteries are under study. It is suspected that the lives (in weeks) of the three brands are different. Five batteries of each brand are

More information

The Random Effects Model Introduction

The Random Effects Model Introduction The Random Effects Model Introduction Sometimes, treatments included in experiment are randomly chosen from set of all possible treatments. Conclusions from such experiment can then be generalized to other

More information

3. Factorial Experiments (Ch.5. Factorial Experiments)

3. Factorial Experiments (Ch.5. Factorial Experiments) 3. Factorial Experiments (Ch.5. Factorial Experiments) Hae-Jin Choi School of Mechanical Engineering, Chung-Ang University DOE and Optimization 1 Introduction to Factorials Most experiments for process

More information

STAT 430 (Fall 2017): Tutorial 8

STAT 430 (Fall 2017): Tutorial 8 STAT 430 (Fall 2017): Tutorial 8 Balanced Incomplete Block Design Luyao Lin November 7th/9th, 2017 Department Statistics and Actuarial Science, Simon Fraser University Block Design Complete Random Complete

More information

Ch 2: Simple Linear Regression

Ch 2: Simple Linear Regression Ch 2: Simple Linear Regression 1. Simple Linear Regression Model A simple regression model with a single regressor x is y = β 0 + β 1 x + ɛ, where we assume that the error ɛ is independent random component

More information

Analysis of Variance and Design of Experiments-I

Analysis of Variance and Design of Experiments-I Analysis of Variance and Design of Experiments-I MODULE VIII LECTURE - 35 ANALYSIS OF VARIANCE IN RANDOM-EFFECTS MODEL AND MIXED-EFFECTS MODEL Dr. Shalabh Department of Mathematics and Statistics Indian

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

Solution to Final Exam

Solution to Final Exam Stat 660 Solution to Final Exam. (5 points) A large pharmaceutical company is interested in testing the uniformity (a continuous measurement that can be taken by a measurement instrument) of their film-coated

More information

One-way ANOVA (Single-Factor CRD)

One-way ANOVA (Single-Factor CRD) One-way ANOVA (Single-Factor CRD) STAT:5201 Week 3: Lecture 3 1 / 23 One-way ANOVA We have already described a completed randomized design (CRD) where treatments are randomly assigned to EUs. There is

More information

Ch. 5 Two-way ANOVA: Fixed effect model Equal sample sizes

Ch. 5 Two-way ANOVA: Fixed effect model Equal sample sizes Ch. 5 Two-way ANOVA: Fixed effect model Equal sample sizes 1 Assumptions and models There are two factors, factors A and B, that are of interest. Factor A is studied at a levels, and factor B at b levels;

More information

Stat 579: Generalized Linear Models and Extensions

Stat 579: Generalized Linear Models and Extensions Stat 579: Generalized Linear Models and Extensions Mixed models Yan Lu Feb, 2018, week 7 1 / 17 Some commonly used experimental designs related to mixed models Two way or three way random/mixed effects

More information

STAT22200 Spring 2014 Chapter 13B

STAT22200 Spring 2014 Chapter 13B STAT22200 Spring 2014 Chapter 13B Yibi Huang May 27, 2014 13.3.1 Crossover Designs 13.3.4 Replicated Latin Square Designs 13.4 Graeco-Latin Squares Chapter 13B - 1 13.3.1 Crossover Design (A Special Latin-Square

More information

Allow the investigation of the effects of a number of variables on some response

Allow the investigation of the effects of a number of variables on some response Lecture 12 Topic 9: Factorial treatment structures (Part I) Factorial experiments Allow the investigation of the effects of a number of variables on some response in a highly efficient manner, and in a

More information

Stat 511 HW#10 Spring 2003 (corrected)

Stat 511 HW#10 Spring 2003 (corrected) Stat 511 HW#10 Spring 003 (corrected) 1. Below is a small set of fake unbalanced -way factorial (in factors A and B) data from (unbalanced) blocks. Level of A Level of B Block Response 1 1 1 9.5 1 1 11.3

More information

Stat 5303 (Oehlert): Randomized Complete Blocks 1

Stat 5303 (Oehlert): Randomized Complete Blocks 1 Stat 5303 (Oehlert): Randomized Complete Blocks 1 > library(stat5303libs);library(cfcdae);library(lme4) > immer Loc Var Y1 Y2 1 UF M 81.0 80.7 2 UF S 105.4 82.3 3 UF V 119.7 80.4 4 UF T 109.7 87.2 5 UF

More information

G. Nested Designs. 1 Introduction. 2 Two-Way Nested Designs (Balanced Cases) 1.1 Definition (Nested Factors) 1.2 Notation. 1.3 Example. 2.

G. Nested Designs. 1 Introduction. 2 Two-Way Nested Designs (Balanced Cases) 1.1 Definition (Nested Factors) 1.2 Notation. 1.3 Example. 2. G. Nested Designs 1 Introduction. 1.1 Definition (Nested Factors) When each level of one factor B is associated with one and only one level of another factor A, we say that B is nested within factor A.

More information

20. REML Estimation of Variance Components. Copyright c 2018 (Iowa State University) 20. Statistics / 36

20. REML Estimation of Variance Components. Copyright c 2018 (Iowa State University) 20. Statistics / 36 20. REML Estimation of Variance Components Copyright c 2018 (Iowa State University) 20. Statistics 510 1 / 36 Consider the General Linear Model y = Xβ + ɛ, where ɛ N(0, Σ) and Σ is an n n positive definite

More information

iron retention (log) high Fe2+ medium Fe2+ high Fe3+ medium Fe3+ low Fe2+ low Fe3+ 2 Two-way ANOVA

iron retention (log) high Fe2+ medium Fe2+ high Fe3+ medium Fe3+ low Fe2+ low Fe3+ 2 Two-way ANOVA iron retention (log) 0 1 2 3 high Fe2+ high Fe3+ low Fe2+ low Fe3+ medium Fe2+ medium Fe3+ 2 Two-way ANOVA In the one-way design there is only one factor. What if there are several factors? Often, we are

More information

Analysis of Variance

Analysis of Variance Statistical Techniques II EXST7015 Analysis of Variance 15a_ANOVA_Introduction 1 Design The simplest model for Analysis of Variance (ANOVA) is the CRD, the Completely Randomized Design This model is also

More information

Design & Analysis of Experiments 7E 2009 Montgomery

Design & Analysis of Experiments 7E 2009 Montgomery 1 What If There Are More Than Two Factor Levels? The t-test does not directly apply ppy There are lots of practical situations where there are either more than two levels of interest, or there are several

More information

Topic 9: Factorial treatment structures. Introduction. Terminology. Example of a 2x2 factorial

Topic 9: Factorial treatment structures. Introduction. Terminology. Example of a 2x2 factorial Topic 9: Factorial treatment structures Introduction A common objective in research is to investigate the effect of each of a number of variables, or factors, on some response variable. In earlier times,

More information

ANOVA: Analysis of Variation

ANOVA: Analysis of Variation ANOVA: Analysis of Variation The basic ANOVA situation Two variables: 1 Categorical, 1 Quantitative Main Question: Do the (means of) the quantitative variables depend on which group (given by categorical

More information

STAT 213 Interactions in Two-Way ANOVA

STAT 213 Interactions in Two-Way ANOVA STAT 213 Interactions in Two-Way ANOVA Colin Reimer Dawson Oberlin College 14 April 2016 Outline Last Time: Two-Way ANOVA Interaction Terms Reading Quiz (Multiple Choice) If there is no interaction present,

More information

1 Use of indicator random variables. (Chapter 8)

1 Use of indicator random variables. (Chapter 8) 1 Use of indicator random variables. (Chapter 8) let I(A) = 1 if the event A occurs, and I(A) = 0 otherwise. I(A) is referred to as the indicator of the event A. The notation I A is often used. 1 2 Fitting

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

Fractional Factorial Designs

Fractional Factorial Designs k-p Fractional Factorial Designs Fractional Factorial Designs If we have 7 factors, a 7 factorial design will require 8 experiments How much information can we obtain from fewer experiments, e.g. 7-4 =

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

CHAPTER 4 Analysis of Variance. One-way ANOVA Two-way ANOVA i) Two way ANOVA without replication ii) Two way ANOVA with replication

CHAPTER 4 Analysis of Variance. One-way ANOVA Two-way ANOVA i) Two way ANOVA without replication ii) Two way ANOVA with replication CHAPTER 4 Analysis of Variance One-way ANOVA Two-way ANOVA i) Two way ANOVA without replication ii) Two way ANOVA with replication 1 Introduction In this chapter, expand the idea of hypothesis tests. We

More information

SMA 6304 / MIT / MIT Manufacturing Systems. Lecture 10: Data and Regression Analysis. Lecturer: Prof. Duane S. Boning

SMA 6304 / MIT / MIT Manufacturing Systems. Lecture 10: Data and Regression Analysis. Lecturer: Prof. Duane S. Boning SMA 6304 / MIT 2.853 / MIT 2.854 Manufacturing Systems Lecture 10: Data and Regression Analysis Lecturer: Prof. Duane S. Boning 1 Agenda 1. Comparison of Treatments (One Variable) Analysis of Variance

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

Confidence Interval for the mean response

Confidence Interval for the mean response Week 3: Prediction and Confidence Intervals at specified x. Testing lack of fit with replicates at some x's. Inference for the correlation. Introduction to regression with several explanatory variables.

More information

Theorem A: Expectations of Sums of Squares Under the two-way ANOVA model, E(X i X) 2 = (µ i µ) 2 + n 1 n σ2

Theorem A: Expectations of Sums of Squares Under the two-way ANOVA model, E(X i X) 2 = (µ i µ) 2 + n 1 n σ2 identity Y ijk Ȳ = (Y ijk Ȳij ) + (Ȳi Ȳ ) + (Ȳ j Ȳ ) + (Ȳij Ȳi Ȳ j + Ȳ ) Theorem A: Expectations of Sums of Squares Under the two-way ANOVA model, (1) E(MSE) = E(SSE/[IJ(K 1)]) = (2) E(MSA) = E(SSA/(I

More information

3. Design Experiments and Variance Analysis

3. Design Experiments and Variance Analysis 3. Design Experiments and Variance Analysis Isabel M. Rodrigues 1 / 46 3.1. Completely randomized experiment. Experimentation allows an investigator to find out what happens to the output variables when

More information

K. Model Diagnostics. residuals ˆɛ ij = Y ij ˆµ i N = Y ij Ȳ i semi-studentized residuals ω ij = ˆɛ ij. studentized deleted residuals ɛ ij =

K. Model Diagnostics. residuals ˆɛ ij = Y ij ˆµ i N = Y ij Ȳ i semi-studentized residuals ω ij = ˆɛ ij. studentized deleted residuals ɛ ij = K. Model Diagnostics We ve already seen how to check model assumptions prior to fitting a one-way ANOVA. Diagnostics carried out after model fitting by using residuals are more informative for assessing

More information

Design of Experiments. Factorial experiments require a lot of resources

Design of Experiments. Factorial experiments require a lot of resources Design of Experiments Factorial experiments require a lot of resources Sometimes real-world practical considerations require us to design experiments in specialized ways. The design of an experiment is

More information

STAT Final Practice Problems

STAT Final Practice Problems STAT 48 -- Final Practice Problems.Out of 5 women who had uterine cancer, 0 claimed to have used estrogens. Out of 30 women without uterine cancer 5 claimed to have used estrogens. Exposure Outcome (Cancer)

More information

Variance Decomposition and Goodness of Fit

Variance Decomposition and Goodness of Fit Variance Decomposition and Goodness of Fit 1. Example: Monthly Earnings and Years of Education In this tutorial, we will focus on an example that explores the relationship between total monthly earnings

More information

Analysis Of Variance Compiled by T.O. Antwi-Asare, U.G

Analysis Of Variance Compiled by T.O. Antwi-Asare, U.G Analysis Of Variance Compiled by T.O. Antwi-Asare, U.G 1 ANOVA Analysis of variance compares two or more population means of interval data. Specifically, we are interested in determining whether differences

More information

23. Fractional factorials - introduction

23. Fractional factorials - introduction 173 3. Fractional factorials - introduction Consider a 5 factorial. Even without replicates, there are 5 = 3 obs ns required to estimate the effects - 5 main effects, 10 two factor interactions, 10 three

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

Topic 17 - Single Factor Analysis of Variance. Outline. One-way ANOVA. The Data / Notation. One way ANOVA Cell means model Factor effects model

Topic 17 - Single Factor Analysis of Variance. Outline. One-way ANOVA. The Data / Notation. One way ANOVA Cell means model Factor effects model Topic 17 - Single Factor Analysis of Variance - Fall 2013 One way ANOVA Cell means model Factor effects model Outline Topic 17 2 One-way ANOVA Response variable Y is continuous Explanatory variable is

More information

CS 147: Computer Systems Performance Analysis

CS 147: Computer Systems Performance Analysis CS 147: Computer Systems Performance Analysis CS 147: Computer Systems Performance Analysis 1 / 34 Overview Overview Overview Adding Replications Adding Replications 2 / 34 Two-Factor Design Without Replications

More information

STAT 705 Chapter 19: Two-way ANOVA

STAT 705 Chapter 19: Two-way ANOVA STAT 705 Chapter 19: Two-way ANOVA Adapted from Timothy Hanson Department of Statistics, University of South Carolina Stat 705: Data Analysis II 1 / 41 Two-way ANOVA This material is covered in Sections

More information

Chapter 12: Multiple Linear Regression

Chapter 12: Multiple Linear Regression Chapter 12: Multiple Linear Regression Seungchul Baek Department of Statistics, University of South Carolina STAT 509: Statistics for Engineers 1 / 55 Introduction A regression model can be expressed as

More information

Chapter 1: Linear Regression with One Predictor Variable also known as: Simple Linear Regression Bivariate Linear Regression

Chapter 1: Linear Regression with One Predictor Variable also known as: Simple Linear Regression Bivariate Linear Regression BSTT523: Kutner et al., Chapter 1 1 Chapter 1: Linear Regression with One Predictor Variable also known as: Simple Linear Regression Bivariate Linear Regression Introduction: Functional relation between

More information

Blocks are formed by grouping EUs in what way? How are experimental units randomized to treatments?

Blocks are formed by grouping EUs in what way? How are experimental units randomized to treatments? VI. Incomplete Block Designs A. Introduction What is the purpose of block designs? Blocks are formed by grouping EUs in what way? How are experimental units randomized to treatments? 550 What if we have

More information

Analysis of Variance

Analysis of Variance Analysis of Variance Math 36b May 7, 2009 Contents 2 ANOVA: Analysis of Variance 16 2.1 Basic ANOVA........................... 16 2.1.1 the model......................... 17 2.1.2 treatment sum of squares.................

More information

Correlation Analysis

Correlation Analysis Simple Regression Correlation Analysis Correlation analysis is used to measure strength of the association (linear relationship) between two variables Correlation is only concerned with strength of the

More information

Design & Analysis of Experiments 7E 2009 Montgomery

Design & Analysis of Experiments 7E 2009 Montgomery Chapter 5 1 Introduction to Factorial Design Study the effects of 2 or more factors All possible combinations of factor levels are investigated For example, if there are a levels of factor A and b levels

More information

Unit 12: Analysis of Single Factor Experiments

Unit 12: Analysis of Single Factor Experiments Unit 12: Analysis of Single Factor Experiments Statistics 571: Statistical Methods Ramón V. León 7/16/2004 Unit 12 - Stat 571 - Ramón V. León 1 Introduction Chapter 8: How to compare two treatments. Chapter

More information

Part 5 Introduction to Factorials

Part 5 Introduction to Factorials More Statistics tutorial at www.dumblittledoctor.com Lecture notes on Experiment Design & Data Analysis Design of Engineering Experiments Part 5 Introduction to Factorials Text reference, Chapter 5 General

More information

SIMPLE REGRESSION ANALYSIS. Business Statistics

SIMPLE REGRESSION ANALYSIS. Business Statistics SIMPLE REGRESSION ANALYSIS Business Statistics CONTENTS Ordinary least squares (recap for some) Statistical formulation of the regression model Assessing the regression model Testing the regression coefficients

More information

The Multiple Regression Model

The Multiple Regression Model Multiple Regression The Multiple Regression Model Idea: Examine the linear relationship between 1 dependent (Y) & or more independent variables (X i ) Multiple Regression Model with k Independent Variables:

More information

Two or more categorical predictors. 2.1 Two fixed effects

Two or more categorical predictors. 2.1 Two fixed effects Two or more categorical predictors Here we extend the ANOVA methods to handle multiple categorical predictors. The statistician has to watch carefully to see whether the effects being considered are properly

More information

STAT 705 Chapter 19: Two-way ANOVA

STAT 705 Chapter 19: Two-way ANOVA STAT 705 Chapter 19: Two-way ANOVA Timothy Hanson Department of Statistics, University of South Carolina Stat 705: Data Analysis II 1 / 38 Two-way ANOVA Material covered in Sections 19.2 19.4, but a bit

More information

Formal Statement of Simple Linear Regression Model

Formal Statement of Simple Linear Regression Model Formal Statement of Simple Linear Regression Model Y i = β 0 + β 1 X i + ɛ i Y i value of the response variable in the i th trial β 0 and β 1 are parameters X i is a known constant, the value of the predictor

More information

Section 7.3 Nested Design for Models with Fixed Effects, Mixed Effects and Random Effects

Section 7.3 Nested Design for Models with Fixed Effects, Mixed Effects and Random Effects Section 7.3 Nested Design for Models with Fixed Effects, Mixed Effects and Random Effects 1 TABLE 25.5 Mean Square MSA MSB Expected Mean Squares for Balanced Two-Factor ANOVA Models. Fixed AN OVA Model

More information

Unit 7: Random Effects, Subsampling, Nested and Crossed Factor Designs

Unit 7: Random Effects, Subsampling, Nested and Crossed Factor Designs Unit 7: Random Effects, Subsampling, Nested and Crossed Factor Designs STA 643: Advanced Experimental Design Derek S. Young 1 Learning Objectives Understand how to interpret a random effect Know the different

More information

Diagnostics and Remedial Measures: An Overview

Diagnostics and Remedial Measures: An Overview Diagnostics and Remedial Measures: An Overview Residuals Model diagnostics Graphical techniques Hypothesis testing Remedial measures Transformation Later: more about all this for multiple regression W.

More information

22s:152 Applied Linear Regression. Take random samples from each of m populations.

22s:152 Applied Linear Regression. Take random samples from each of m populations. 22s:152 Applied Linear Regression Chapter 8: ANOVA NOTE: We will meet in the lab on Monday October 10. One-way ANOVA Focuses on testing for differences among group means. Take random samples from each

More information

Food consumption of rats. Two-way vs one-way vs nested ANOVA

Food consumption of rats. Two-way vs one-way vs nested ANOVA Food consumption of rats Lard Gender Fresh Rancid 709 592 Male 679 538 699 476 657 508 Female 594 505 677 539 Two-way vs one-way vs nested NOV T 1 2 * * M * * * * * * F * * * * T M1 M2 F1 F2 * * * * *

More information

Summary of Chapter 7 (Sections ) and Chapter 8 (Section 8.1)

Summary of Chapter 7 (Sections ) and Chapter 8 (Section 8.1) Summary of Chapter 7 (Sections 7.2-7.5) and Chapter 8 (Section 8.1) Chapter 7. Tests of Statistical Hypotheses 7.2. Tests about One Mean (1) Test about One Mean Case 1: σ is known. Assume that X N(µ, σ

More information

Topic 20: Single Factor Analysis of Variance

Topic 20: Single Factor Analysis of Variance Topic 20: Single Factor Analysis of Variance Outline Single factor Analysis of Variance One set of treatments Cell means model Factor effects model Link to linear regression using indicator explanatory

More information

Linear models and their mathematical foundations: Simple linear regression

Linear models and their mathematical foundations: Simple linear regression Linear models and their mathematical foundations: Simple linear regression Steffen Unkel Department of Medical Statistics University Medical Center Göttingen, Germany Winter term 2018/19 1/21 Introduction

More information

Analysis of variance. Gilles Guillot. September 30, Gilles Guillot September 30, / 29

Analysis of variance. Gilles Guillot. September 30, Gilles Guillot September 30, / 29 Analysis of variance Gilles Guillot gigu@dtu.dk September 30, 2013 Gilles Guillot (gigu@dtu.dk) September 30, 2013 1 / 29 1 Introductory example 2 One-way ANOVA 3 Two-way ANOVA 4 Two-way ANOVA with interactions

More information

Battery Life. Factory

Battery Life. Factory Statistics 354 (Fall 2018) Analysis of Variance: Comparing Several Means Remark. These notes are from an elementary statistics class and introduce the Analysis of Variance technique for comparing several

More information

Chapter Learning Objectives. Regression Analysis. Correlation. Simple Linear Regression. Chapter 12. Simple Linear Regression

Chapter Learning Objectives. Regression Analysis. Correlation. Simple Linear Regression. Chapter 12. Simple Linear Regression Chapter 12 12-1 North Seattle Community College BUS21 Business Statistics Chapter 12 Learning Objectives In this chapter, you learn:! How to use regression analysis to predict the value of a dependent

More information

22s:152 Applied Linear Regression. There are a couple commonly used models for a one-way ANOVA with m groups. Chapter 8: ANOVA

22s:152 Applied Linear Regression. There are a couple commonly used models for a one-way ANOVA with m groups. Chapter 8: ANOVA 22s:152 Applied Linear Regression Chapter 8: ANOVA NOTE: We will meet in the lab on Monday October 10. One-way ANOVA Focuses on testing for differences among group means. Take random samples from each

More information

Inference for Regression Simple Linear Regression

Inference for Regression Simple Linear Regression Inference for Regression Simple Linear Regression IPS Chapter 10.1 2009 W.H. Freeman and Company Objectives (IPS Chapter 10.1) Simple linear regression p Statistical model for linear regression p Estimating

More information

Simple linear regression

Simple linear regression Simple linear regression Biometry 755 Spring 2008 Simple linear regression p. 1/40 Overview of regression analysis Evaluate relationship between one or more independent variables (X 1,...,X k ) and a single

More information

LECTURE 6. Introduction to Econometrics. Hypothesis testing & Goodness of fit

LECTURE 6. Introduction to Econometrics. Hypothesis testing & Goodness of fit LECTURE 6 Introduction to Econometrics Hypothesis testing & Goodness of fit October 25, 2016 1 / 23 ON TODAY S LECTURE We will explain how multiple hypotheses are tested in a regression model We will define

More information

Variance Decomposition in Regression James M. Murray, Ph.D. University of Wisconsin - La Crosse Updated: October 04, 2017

Variance Decomposition in Regression James M. Murray, Ph.D. University of Wisconsin - La Crosse Updated: October 04, 2017 Variance Decomposition in Regression James M. Murray, Ph.D. University of Wisconsin - La Crosse Updated: October 04, 2017 PDF file location: http://www.murraylax.org/rtutorials/regression_anovatable.pdf

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

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

2-way analysis of variance

2-way analysis of variance 2-way analysis of variance We may be considering the effect of two factors (A and B) on our response variable, for instance fertilizer and variety on maize yield; or therapy and sex on cholesterol level.

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

1 Introduction to One-way ANOVA

1 Introduction to One-way ANOVA Review Source: Chapter 10 - Analysis of Variance (ANOVA). Example Data Source: Example problem 10.1 (dataset: exp10-1.mtw) Link to Data: http://www.auburn.edu/~carpedm/courses/stat3610/textbookdata/minitab/

More information

Practice Final Exam. December 14, 2009

Practice Final Exam. December 14, 2009 Practice Final Exam December 14, 29 1 New Material 1.1 ANOVA 1. A purication process for a chemical involves passing it, in solution, through a resin on which impurities are adsorbed. A chemical engineer

More information

MS&E 226. In-Class Midterm Examination Solutions Small Data October 20, 2015

MS&E 226. In-Class Midterm Examination Solutions Small Data October 20, 2015 MS&E 226 In-Class Midterm Examination Solutions Small Data October 20, 2015 PROBLEM 1. Alice uses ordinary least squares to fit a linear regression model on a dataset containing outcome data Y and covariates

More information

STAT 135 Lab 10 Two-Way ANOVA, Randomized Block Design and Friedman s Test

STAT 135 Lab 10 Two-Way ANOVA, Randomized Block Design and Friedman s Test STAT 135 Lab 10 Two-Way ANOVA, Randomized Block Design and Friedman s Test Rebecca Barter April 13, 2015 Let s now imagine a dataset for which our response variable, Y, may be influenced by two factors,

More information

Inferences for Regression

Inferences for Regression Inferences for Regression An Example: Body Fat and Waist Size Looking at the relationship between % body fat and waist size (in inches). Here is a scatterplot of our data set: Remembering Regression In

More information

Suppose we needed four batches of formaldehyde, and coulddoonly4runsperbatch. Thisisthena2 4 factorial in 2 2 blocks.

Suppose we needed four batches of formaldehyde, and coulddoonly4runsperbatch. Thisisthena2 4 factorial in 2 2 blocks. 58 2. 2 factorials in 2 blocks Suppose we needed four batches of formaldehyde, and coulddoonly4runsperbatch. Thisisthena2 4 factorial in 2 2 blocks. Some more algebra: If two effects are confounded with

More information

CS 5014: Research Methods in Computer Science

CS 5014: Research Methods in Computer Science Computer Science Clifford A. Shaffer Department of Computer Science Virginia Tech Blacksburg, Virginia Fall 2010 Copyright c 2010 by Clifford A. Shaffer Computer Science Fall 2010 1 / 254 Experimental

More information

1-Way Fixed Effects ANOVA

1-Way Fixed Effects ANOVA 1-Way Fixed Effects ANOVA James H. Steiger Department of Psychology and Human Development Vanderbilt University James H. Steiger (Vanderbilt University) 1 / 19 1-Way Fixed Effects ANOVA 1 Introduction

More information