Top Banner
EPI809/Spring 2008 EPI809/Spring 2008 1 Chapter 12 Chapter 12 Multisample inference: Multisample inference: Analysis of Variance Analysis of Variance
78

EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

Apr 01, 2015

Download

Documents

Moses Biggers
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 11

Chapter 12Chapter 12

Multisample inference:Multisample inference:

Analysis of VarianceAnalysis of Variance

Page 2: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 22

Learning ObjectivesLearning Objectives

1.1.Describe Analysis of Variance (ANOVA)Describe Analysis of Variance (ANOVA)

2.2.Explain the Rationale of ANOVAExplain the Rationale of ANOVA

3.3.Compare Experimental DesignsCompare Experimental Designs

4.4.Test the Equality of 2 or More MeansTest the Equality of 2 or More Means Completely Randomized DesignCompletely Randomized Design Randomized Block DesignRandomized Block Design Factorial DesignFactorial Design

Page 3: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 33

Analysis of VarianceAnalysis of Variance

A analysis of varianceA analysis of variance is a technique that is a technique that partitions the total sum of squares of partitions the total sum of squares of deviations of the observations about their deviations of the observations about their mean into portions associated with mean into portions associated with independent variables in the independent variables in the experimentexperiment and a portion associated with errorand a portion associated with error

Page 4: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 44

Analysis of VarianceAnalysis of Variance

The ANOVA table was previously discussed The ANOVA table was previously discussed in the context of regression models with in the context of regression models with quantitative independent variables, in this quantitative independent variables, in this chapter the focus will be on nominal chapter the focus will be on nominal independent variables (factors)independent variables (factors)

Page 5: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 55

Analysis of VarianceAnalysis of Variance

A A factorfactor refers to a categorical refers to a categorical quantity under examination in an quantity under examination in an

experiment as a possible cause of experiment as a possible cause of variation in the response variable.variation in the response variable.

Page 6: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 66

Analysis of VarianceAnalysis of Variance

LevelsLevels refer to the categories, refer to the categories, measurements, or strata of a factor of measurements, or strata of a factor of

interest in the experiment.interest in the experiment.

Page 7: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 77

Types of Experimental DesignsTypes of Experimental Designs

ExperimentalDesigns

One-Way Anova

Completely Randomized

Randomized Block

Two-Way Anova

Factorial

Page 8: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 88

Completely Randomized Completely Randomized DesignDesign

Page 9: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 99

Completely Randomized DesignCompletely Randomized Design

1.1. Experimental Units (Subjects) Are Experimental Units (Subjects) Are Assigned Randomly to TreatmentsAssigned Randomly to Treatments Subjects are Assumed HomogeneousSubjects are Assumed Homogeneous

2.2. One Factor or Independent Variable One Factor or Independent Variable 2 or More Treatment Levels or groups2 or More Treatment Levels or groups

3.3. Analyzed by One-Way ANOVA Analyzed by One-Way ANOVA

Page 10: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 1010

One-Way ANOVA F-TestOne-Way ANOVA F-Test

1.1. Tests the Equality of 2 or More (Tests the Equality of 2 or More (pp) ) Population MeansPopulation Means

2.2. VariablesVariables One Nominal Independent VariableOne Nominal Independent Variable One Continuous Dependent VariableOne Continuous Dependent Variable

Page 11: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 1111

One-Way ANOVA F-Test One-Way ANOVA F-Test AssumptionsAssumptions

1.1. Randomness & Independence of Errors Randomness & Independence of Errors

2.2. Normality Normality Populations (for each condition) are Populations (for each condition) are

Normally DistributedNormally Distributed

3.3.Homogeneity of VarianceHomogeneity of Variance Populations (for each condition) have Equal Populations (for each condition) have Equal

VariancesVariances

Page 12: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 1212

One-Way ANOVA F-Test One-Way ANOVA F-Test HypothesesHypotheses

HH00: : 11 = = 22 = = 33 = ... = = ... = pp

All Population Means All Population Means are Equalare Equal

No Treatment EffectNo Treatment Effect

HHaa: Not All : Not All jj Are Equal Are Equal At Least 1 Pop. Mean At Least 1 Pop. Mean

is Differentis Different Treatment EffectTreatment Effect 11 22 ... ... pp

Page 13: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 1313

One-Way ANOVA F-Test One-Way ANOVA F-Test HypothesesHypotheses

HH00: : 11 = = 22 = = 33 = ... = = ... = pp All Population Means All Population Means

are Equalare Equal No Treatment EffectNo Treatment Effect

HHaa: Not All : Not All jj Are Equal Are Equal At Least 1 Pop. Mean is At Least 1 Pop. Mean is

DifferentDifferent Treatment EffectTreatment Effect 11 = = 22 = ... = = ... = pp

OrOr ii ≠≠ jj for some for some ii, , jj..

XX

f(X)f(X)

11 = = 22 = = 33

XX

f(X)f(X)

11 = = 22 33

Page 14: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 1414

1.1. Compares 2 Types of Variation to Test Compares 2 Types of Variation to Test

Equality of MeansEquality of Means

2. If Treatment Variation Is Significantly 2. If Treatment Variation Is Significantly Greater Than Random Variation then Greater Than Random Variation then Means Are Means Are NotNot Equal Equal

3.Variation Measures Are Obtained by 3.Variation Measures Are Obtained by ‘Partitioning’ Total Variation‘Partitioning’ Total Variation

One-Way ANOVAOne-Way ANOVA Basic IdeaBasic Idea

Page 15: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 1515

One-Way ANOVAOne-Way ANOVA Partitions Total VariationPartitions Total Variation

Page 16: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 1616

One-Way ANOVAOne-Way ANOVA Partitions Total VariationPartitions Total Variation

Total variationTotal variation

Page 17: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 1717

One-Way ANOVAOne-Way ANOVA Partitions Total VariationPartitions Total Variation

Variation due to treatment

Variation due to treatment

Total variationTotal variation

Page 18: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 1818

One-Way ANOVAOne-Way ANOVA Partitions Total VariationPartitions Total Variation

Variation due to treatment

Variation due to treatment

Variation due to random samplingVariation due to

random sampling

Total variationTotal variation

Page 19: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 1919

One-Way ANOVAOne-Way ANOVA Partitions Total VariationPartitions Total Variation

Variation due to treatment

Variation due to treatment

Variation due to random samplingVariation due to

random sampling

Total variationTotal variation

Sum of Squares AmongSum of Squares AmongSum of Squares BetweenSum of Squares BetweenSum of Squares TreatmentSum of Squares TreatmentAmong Groups VariationAmong Groups Variation

Page 20: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 2020

One-Way ANOVAOne-Way ANOVA Partitions Total VariationPartitions Total Variation

Variation due to treatment

Variation due to treatment

Variation due to random samplingVariation due to

random sampling

Total variationTotal variation

Sum of Squares WithinSum of Squares WithinSum of Squares Error Sum of Squares Error

(SSE)(SSE)Within Groups VariationWithin Groups Variation

Sum of Squares AmongSum of Squares AmongSum of Squares BetweenSum of Squares BetweenSum of Squares Treatment Sum of Squares Treatment

(SST)(SST)Among Groups VariationAmong Groups Variation

Page 21: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 2121

Total VariationTotal Variation

YY

Group 1Group 1 Group 2Group 2 Group 3Group 3

Response, YResponse, Y

2221

211 YYYYYYTotalSS ij 22

212

11 YYYYYYTotalSS ij

Page 22: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 2222

Treatment VariationTreatment Variation

YY

YY33

YY22YY11

Group 1Group 1 Group 2Group 2 Group 3Group 3

Response, YResponse, Y

2222

211 YYnYYnYYnSST pp 22

222

11 YYnYYnYYnSST pp

Page 23: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 2323

Random (Error) VariationRandom (Error) Variation

YY22YY11

YY33

Group 1Group 1 Group 2Group 2 Group 3Group 3

Response, YResponse, Y

22121

2111 ppj YYYYYYSSE 22

1212

111 ppj YYYYYYSSE

Page 24: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 2424

One-Way ANOVA F-Test One-Way ANOVA F-Test Test StatisticTest Statistic

1.1. Test StatisticTest Statistic FF = = MSTMST / / MSEMSE

• MSTMST Is Mean Square for Treatment Is Mean Square for Treatment• MSEMSE Is Mean Square for Error Is Mean Square for Error

2.2. Degrees of FreedomDegrees of Freedom 11 = = pp -1 -1 22 = = nn - - pp

• pp = # Populations, Groups, or Levels = # Populations, Groups, or Levels• nn = Total Sample Size = Total Sample Size

pnSSEpSTT

/1/

Page 25: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 2525

One-Way ANOVA One-Way ANOVA Summary TableSummary Table

Source ofSource ofVariationVariation

DegreesDegreesofof

FreedomFreedom

Sum ofSum ofSquaresSquares

MeanMeanSquareSquare

(Variance)(Variance)

FF

TreatmentTreatment p - 1p - 1 SSTSST MST =MST =SST/(p - 1)SST/(p - 1)

MSTMSTMSEMSE

ErrorError n - pn - p SSESSE MSE =MSE =SSE/(n - p)SSE/(n - p)

TotalTotal n - 1n - 1 SS(Total) =SS(Total) =SST+SSESST+SSE

Page 26: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 2626

One-Way ANOVA F-Test One-Way ANOVA F-Test Critical ValueCritical Value

If means are equal, If means are equal, FF = = MSTMST / / MSEMSE 1. 1. Only reject large Only reject large FF!!

Always One-Tail!Always One-Tail!

FFaa pp nn pp(( ,, )) 1100

Reject HReject H00

Do NotDo NotReject HReject H00

FF

© 1984-1994 T/Maker Co.© 1984-1994 T/Maker Co.

Page 27: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 2727

One-Way ANOVA F-Test One-Way ANOVA F-Test ExampleExample

As a vet epidemiologist you As a vet epidemiologist you want to see if 3 food want to see if 3 food supplements have different supplements have different mean milk yields. You mean milk yields. You assign 15 cows, 5 per food assign 15 cows, 5 per food supplement. supplement.

Question: At the Question: At the .05.05 level, is level, is there a difference in there a difference in meanmean yields?yields?

Food1Food1 Food2 Food3 Food2 Food325.4025.40 23.4023.40 20.0020.0026.3126.31 21.8021.80 22.2022.2024.1024.10 23.5023.50 19.7519.7523.7423.74 22.7522.75 20.6020.6025.1025.10 21.6021.60 20.4020.40

Page 28: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 2828

FF00 3.893.89

One-Way ANOVA F-Test One-Way ANOVA F-Test SolutionSolution

HH00: : 11 = = 22 = = 33

HHaa: : Not All EqualNot All Equal = = .05.05 11 = = 2 2 22 = = 12 12 Critical Value(s):Critical Value(s):

Test Statistic: Test Statistic:

Decision:Decision:

Conclusion:Conclusion:

Reject at Reject at = .05 = .05

There Is Evidence Pop. There Is Evidence Pop. Means Are DifferentMeans Are Different

= .05= .05

FFMSTMST

MSEMSE

2323 58205820

921192112525 66

..

....

Page 29: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 2929

Summary TableSummary TableSolutionSolution

Source ofSource ofVariationVariation

Degrees ofDegrees ofFreedomFreedom

Sum ofSum ofSquaresSquares

MeanMeanSquareSquare

(Variance)(Variance)

FF

FoodFood 3 - 1 = 23 - 1 = 2 47.164047.1640 23.582023.5820 25.6025.60

ErrorError 15 - 3 = 1215 - 3 = 12 11.053211.0532 .9211.9211

TotalTotal 15 - 1 = 1415 - 1 = 14 58.217258.2172

Page 30: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 3030

SAS CODES FOR ANOVASAS CODES FOR ANOVA DataData Anova; Anova; input group$ milk @@;input group$ milk @@; cards;cards; food1 25.40food1 25.40 food2 23.40food2 23.40 food3 20.00 food3 20.00 food1 26.31food1 26.31 food2 21.80food2 21.80 food3 22.20food3 22.20 food1 24.10food1 24.10 food2 23.50food2 23.50 food3 19.75food3 19.75 food1 23.74food1 23.74 food2 22.75food2 22.75 food3 20.60food3 20.60 food1 25.10food1 25.10 food2 21.60food2 21.60 food3 20.40food3 20.40 ;; runrun;;

procproc anovaanova; /* or PROC GLM */ ; /* or PROC GLM */ class group;class group; model milk=group;model milk=group; runrun;;

Page 31: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 3131

SAS OUTPUT - ANOVASAS OUTPUT - ANOVA

Sum of Source DF Squares Mean Square F Value Pr > F

Model 2 47.16400000 23.58200000 25.60 <.0001

Error 12 11.05320000 0.92110000

Corrected Total 14 58.21720000

Page 32: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 3232

Pair-wise comparisonsPair-wise comparisons

Needed when the overall F test is rejected Needed when the overall F test is rejected

Can be done without adjustment of type I error if Can be done without adjustment of type I error if other comparisons were planned in advance other comparisons were planned in advance (least significant difference - LSD method)(least significant difference - LSD method)

Type I error needs to be adjusted if other Type I error needs to be adjusted if other comparisons were not planned in advance comparisons were not planned in advance (Bonferroni’s and scheffe’s methods) (Bonferroni’s and scheffe’s methods)

Page 33: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 3333

Fisher’s Least Fisher’s Least Significant Significant Difference (LSD) TestDifference (LSD) Test

To compare level 1 and level 2 To compare level 1 and level 2

Compare this to tCompare this to t/2/2 = Upper-tailed value or - = Upper-tailed value or - t t/2 /2

lowerlower-tailed-tailed from Student’s t-distribution for from Student’s t-distribution for /2 and /2 and (n - p) degrees of freedom(n - p) degrees of freedom

MSE = Mean square within from ANOVA tableMSE = Mean square within from ANOVA table nn = Number of subjects = Number of subjects p = Number of levelsp = Number of levels

2121

11nn

MSEyyt

Page 34: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 3434

Bonferroni’s methodBonferroni’s method

To compare level 1 and level 2To compare level 1 and level 2

Adjust the significance level Adjust the significance level αα by taking by taking the new significance level the new significance level αα**

2121

11nn

MSEyyt

* /2

p

Page 35: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 3535

SAS CODES FOR multiple SAS CODES FOR multiple comparisonscomparisons

procproc a anovanova; ; class group;class group;model milk=group;model milk=group;means group/ lsd bon;means group/ lsd bon;runrun;;

Page 36: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 3636

SAS OUTPUT - LSDSAS OUTPUT - LSD t Tests (LSD) for milk

NOTE: This test controls the Type I comparisonwise error rate, not the experimentwise error rate.

Alpha 0.05 Error Degrees of Freedom 12 Error Mean Square 0.9211 Critical Value of t 2.17881 = t.975,12

Least Significant Difference 1.3225

Means with the same letter are not significantly different.

t Grouping Mean N group

A 24.9300 5 food1 B 22.6100 5 food2 C 20.5900 5 food3

Page 37: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 3737

SAS OUTPUT - BonferroniSAS OUTPUT - Bonferroni Bonferroni (Dunn) t Tests for milk

NOTE: This test controls the Type I experimentwise error rate

Alpha 0.05 Error Degrees of Freedom 12 Error Mean Square 0.9211 Critical Value of t 2.77947=t1-0.05/3/2,12

Minimum Significant Difference 1.6871

Means with the same letter are not significantly different.

Bon Grouping Mean N group

A 24.9300 5 food1 B 22.6100 5 food2 C 20.5900 5 food3

Page 38: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 3838

Randomized Block Randomized Block DesignDesign

Page 39: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 3939

Randomized Block DesignRandomized Block Design

1.1.Experimental Units (Subjects) Are Assigned Experimental Units (Subjects) Are Assigned Randomly within BlocksRandomly within Blocks Blocks are Assumed HomogeneousBlocks are Assumed Homogeneous

2.2.One Factor or Independent Variable of One Factor or Independent Variable of InterestInterest 2 or More Treatment Levels or Classifications2 or More Treatment Levels or Classifications

3. One Blocking Factor3. One Blocking Factor

Page 40: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 4040

Randomized Block DesignRandomized Block Design

Factor Levels: (Treatments) A, B, C, D    

Experimental Units Treatments are randomly

assigned within blocks

Block 1 A C D B

Block 2 C D B A

Block 3 B A D C . . .

.

.

.

.

.

.

.

.

.

.

.

.

Block b D C A B

Page 41: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 4141

Randomized Block F-TestRandomized Block F-Test

1.1.Tests the Equality of 2 or More (Tests the Equality of 2 or More (pp) ) Population MeansPopulation Means

2.2.VariablesVariables One Nominal Independent VariableOne Nominal Independent Variable One Nominal Blocking VariableOne Nominal Blocking Variable One Continuous Dependent VariableOne Continuous Dependent Variable

Page 42: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 4242

Randomized Block F-Test Randomized Block F-Test AssumptionsAssumptions

1.1.NormalityNormality Probability Distribution of each Block-Probability Distribution of each Block-

Treatment combination is NormalTreatment combination is Normal

2.2.Homogeneity of VarianceHomogeneity of Variance Probability Distributions of all Block-Probability Distributions of all Block-

Treatment combinations have Equal Treatment combinations have Equal VariancesVariances

Page 43: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 4343

Randomized Block F-Test Randomized Block F-Test HypothesesHypotheses

HH00: : 11 = = 22 = = 33 = ... = = ... = pp

All Population Means are All Population Means are EqualEqual

No Treatment EffectNo Treatment Effect

HHaa: Not All : Not All jj Are Equal Are Equal At Least 1 Pop. Mean is At Least 1 Pop. Mean is

DifferentDifferent Treatment EffectTreatment Effect 11 22 ... ... p p Is Is wrongwrong

Page 44: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 4444

Randomized Block F-Test Randomized Block F-Test HypothesesHypotheses

HH00: : 11 = = 22 = ... = = ... = pp

All Population Means All Population Means are Equalare Equal

No Treatment EffectNo Treatment Effect

HHaa: Not All : Not All jj Are Equal Are Equal At Least 1 Pop. Mean is At Least 1 Pop. Mean is

DifferentDifferent Treatment EffectTreatment Effect 11 22 ... ... p p Is Is

wrongwrong

XX

f(X)f(X)

11 = = 22 = = 33

XX

f(X)f(X)

11 = = 22 33

Page 45: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

The F Ratio for Randomized The F Ratio for Randomized Block DesignsBlock Designs

SS=SSE+SSB+SSTSS=SSE+SSB+SST

/ 1MST

MSE / 1 1 1

/ 1

/ 1

SST pF

SSE n p b

SST p

SSE n p b

Page 46: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 4646

Randomized Block F-Test Randomized Block F-Test Test StatisticTest Statistic

1.1. Test StatisticTest Statistic FF = = MSTMST / / MSEMSE

• MSTMST Is Mean Square for Treatment Is Mean Square for Treatment• MSEMSE Is Mean Square for Error Is Mean Square for Error

2.2. Degrees of FreedomDegrees of Freedom 11 = = pp -1 -1

22 = = n – b – p +1n – b – p +1• pp = # Treatments, = # Treatments, bb = # Blocks, = # Blocks, nn = Total Sample Size = Total Sample Size

Page 47: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 4747

Randomized Block F-Test Randomized Block F-Test Critical ValueCritical Value

If means are equal, If means are equal, FF = = MSTMST / / MSEMSE 1. 1. Only reject large Only reject large FF!!

Always One-Tail!Always One-Tail!

FFaa pp nn pp(( ,, )) 1100

Reject HReject H00

Do NotDo NotReject HReject H00

FF

© 1984-1994 T/Maker Co.© 1984-1994 T/Maker Co.

Page 48: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 4848

Randomized Block F-Test Randomized Block F-Test ExampleExample

You wish to determine which of four brands of tires has You wish to determine which of four brands of tires has the longest tread life. You randomly assign one of each the longest tread life. You randomly assign one of each brand (A, B, C, and D) to a tire location on each of 5 brand (A, B, C, and D) to a tire location on each of 5 cars. At the cars. At the .05.05 level, is there a difference in level, is there a difference in meanmean tread life?tread life?

Tire Location

Block Left Front Right Front Left Rear Right Rear

Car 1 A: 42,000 C: 58,000 B: 38,000 D: 44,000

Car 2 B: 40,000 D: 48,000 A: 39,000 C: 50,000

Car 3 C: 48,000 D: 39,000 B: 36,000 A: 39,000

Car 4 A: 41,000 B: 38,000 D: 42,000 C: 43,000

Car 5 D: 51,000 A: 44,000 C: 52,000 B: 35,000

Page 49: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 4949

FF00 3.493.49

Randomized Block F-Test Randomized Block F-Test SolutionSolution

HH00: : 11 = = 22 = = 33= = 44

HHaa: : Not All EqualNot All Equal = = .05.05 11 = = 3 3 22 = = 12 12 Critical Value(s):Critical Value(s):

Test Statistic: Test Statistic:

Decision:Decision:

Conclusion:Conclusion:

Reject at Reject at = .05 = .05

There Is Evidence Pop. There Is Evidence Pop. Means Are DifferentMeans Are Different

= .05= .05

F = 11.9933F = 11.9933

Page 50: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 5050

SAS CODES FOR ANOVASAS CODES FOR ANOVAdatadata block; block;input Block$ trt$ resp @@;input Block$ trt$ resp @@;cards;cards;Car1Car1 A: 42000 Car1 C: 58000 Car1 B: 38000 Car1 D: 44000A: 42000 Car1 C: 58000 Car1 B: 38000 Car1 D: 44000Car2Car2 B: 40000 Car2 D: 48000 Car2 A: 39000 Car2 C: 50000B: 40000 Car2 D: 48000 Car2 A: 39000 Car2 C: 50000Car3Car3 C: 48000 Car3 D: 39000 Car3 B: 36000 Car3 A: 39000C: 48000 Car3 D: 39000 Car3 B: 36000 Car3 A: 39000Car4Car4 A: 41000 Car4 B: 38000 Car4 D: 42000 Car4 C: 43000A: 41000 Car4 B: 38000 Car4 D: 42000 Car4 C: 43000Car5Car5 D: 51000 Car5 A: 44000 Car5 C: 52000 Car5 B: 35000D: 51000 Car5 A: 44000 Car5 C: 52000 Car5 B: 35000;;runrun;;

procproc anovaanova;;class trt block;class trt block;model resp=trt block;model resp=trt block;Means trt /lsd bon; Means trt /lsd bon; runrun;;

Page 51: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 5151

SAS OUTPUT - ANOVASAS OUTPUT - ANOVADependent Variable: resp

Sum of Source DF Squares Mean Square F Value Pr > F

Model 7 544550000.0 77792857.1 6.22 0.0030 Error 12 150000000.0 12500000.0 Corrected Total 19 694550000.0

R-Square Coeff Var Root MSE resp Mean 0.784033 8.155788 3535.534 43350.00

Source DF Anova SS Mean Square F Value Pr > F

trt 3 449750000.0 149916666.7 11.99 0.0006 Block 4 94800000.0 23700000.0 1.90 0.1759

Page 52: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 5252

SAS OUTPUT - LSDSAS OUTPUT - LSD

Means with the same letter are not significantly different.

t Grouping Mean N trt

A 50200 5 C:

B 44800 5 D: B C B 41000 5 A: C C 37400 5 B:

Page 53: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 5353

SAS OUTPUT - BonferroniSAS OUTPUT - Bonferroni

Means with the same letter are not significantly different.

Bon Grouping Mean N trt

A 50200 5 C: A B A 44800 5 D: B B C 41000 5 A: C C 37400 5 B:

Page 54: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 5454

Factorial ExperimentsFactorial Experiments

Page 55: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 5555

Factorial DesignFactorial Design

1.1. Experimental Units (Subjects) Are Experimental Units (Subjects) Are Assigned Randomly to TreatmentsAssigned Randomly to Treatments Subjects are Assumed HomogeneousSubjects are Assumed Homogeneous

2.2. Two or More Two or More FactorsFactors or Independent or Independent VariablesVariables Each Has 2 or More Treatments (Levels)Each Has 2 or More Treatments (Levels)

3.3. Analyzed by Two-Way ANOVAAnalyzed by Two-Way ANOVA

Page 56: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 5656

Advantages Advantages of Factorial Designsof Factorial Designs

1.1.Saves Time & EffortSaves Time & Effort e.g., Could Use Separate Completely e.g., Could Use Separate Completely

Randomized Designs for Each VariableRandomized Designs for Each Variable

2.2.Controls Confounding Effects by Putting Controls Confounding Effects by Putting Other Variables into ModelOther Variables into Model

3.3.Can Explore Interaction Between VariablesCan Explore Interaction Between Variables

Page 57: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 5757

Two-Way ANOVATwo-Way ANOVA

1.1. Tests the Equality of 2 or More Tests the Equality of 2 or More Population Means When Several Population Means When Several Independent Variables Are UsedIndependent Variables Are Used

2.2. Same Results as Separate One-Way Same Results as Separate One-Way ANOVA on Each VariableANOVA on Each Variable

- But Interaction Can Be TestedBut Interaction Can Be Tested

Page 58: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 5858

Two-Way ANOVA Two-Way ANOVA AssumptionsAssumptions

1.1.NormalityNormality Populations are Normally DistributedPopulations are Normally Distributed

2.2.Homogeneity of VarianceHomogeneity of Variance Populations have Equal VariancesPopulations have Equal Variances

3.3.Independence of ErrorsIndependence of Errors Independent Random Samples are DrawnIndependent Random Samples are Drawn

Page 59: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 5959

Two-Way ANOVA Two-Way ANOVA Data TableData Table

YYiijjkk

Level i Level i Factor Factor

AA

Level j Level j Factor Factor

BB

Observation kObservation k

FactorFactor Factor BFactor BAA 11 22 ...... bb

11 YY111111 YY121121 ...... YY1b11b1

YY112112 YY122122 ...... YY1b21b2

22 YY211211 YY221221 ...... YY2b12b1

YY212212 YY222222 ...... YXYX2b22b2

:: :: :: :: ::

aa YYa11a11 YYa21a21 ...... YYab1ab1

YYa12a12 YYa22a22 ...... YYab2ab2

Page 60: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 6060

Two-Way ANOVA Two-Way ANOVA Null HypothesesNull Hypotheses

1.1.No Difference in Means Due to Factor ANo Difference in Means Due to Factor A HH00: : 11.. = = 22.. =... = =... = aa..

2.2.No Difference in Means Due to Factor BNo Difference in Means Due to Factor B HH00: : ..11 = = ..22 =... = =... = ..bb

3.3.No Interaction of Factors A & BNo Interaction of Factors A & B HH00: AB: ABijij = 0 = 0

Page 61: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 6161

Total VariationTotal VariationTotal VariationTotal Variation

Two-Way ANOVA Two-Way ANOVA Total Variation Partitioning Total Variation Partitioning

Variation Due to Variation Due to Treatment ATreatment A

Variation Due to Variation Due to Treatment ATreatment A

Variation Due to Variation Due to Random SamplingRandom Sampling

Variation Due to Variation Due to Random SamplingRandom Sampling

Variation Due to Variation Due to InteractionInteraction

Variation Due to Variation Due to InteractionInteraction

SSESSE

SSASSA

SS(AB)SS(AB)

SS(Total)SS(Total)

Variation Due to Variation Due to Treatment BTreatment B

Variation Due to Variation Due to Treatment BTreatment B

SSBSSB

Page 62: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 6262

Source ofSource ofVariationVariation

Degrees ofDegrees ofFreedomFreedom

Sum ofSum ofSquaresSquares

MeanMeanSquareSquare

FF

AA(Row)(Row)

a - 1a - 1 SS(A)SS(A) MS(A)MS(A) MS(A)MS(A)MSEMSE

BB(Column)(Column)

b - 1b - 1 SS(B)SS(B) MS(B)MS(B) MS(B)MS(B)MSEMSE

ABAB(Interaction)(Interaction)

(a-1)(b-1)(a-1)(b-1) SS(AB)SS(AB) MS(AB)MS(AB) MS(AB)MS(AB)MSEMSE

ErrorError n - abn - ab SSESSE MSEMSE

TotalTotal n - 1n - 1 SS(Total)SS(Total)

Two-Way ANOVA Two-Way ANOVA Summary TableSummary Table

Same as Same as Other Other DesignsDesigns

Page 63: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 6363

InteractionInteraction

1.1.Occurs When Effects of One Factor Vary Occurs When Effects of One Factor Vary According to Levels of Other FactorAccording to Levels of Other Factor

2.2.When Significant, Interpretation of Main When Significant, Interpretation of Main Effects (A & B) Is ComplicatedEffects (A & B) Is Complicated

3.3.Can Be DetectedCan Be Detected In Data Table, Pattern of Cell Means in One In Data Table, Pattern of Cell Means in One

Row Differs From Another RowRow Differs From Another Row In Graph of Cell Means, Lines CrossIn Graph of Cell Means, Lines Cross

Page 64: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 6464

Graphs of InteractionGraphs of Interaction

Effects of Gender (male or female) & dietary Effects of Gender (male or female) & dietary groupgroup (sv, lv, nor) on systolic blood pressure(sv, lv, nor) on systolic blood pressure

InteractionInteraction No InteractionNo Interaction

AverageAverageResponseResponse

svsv lvlv nornor

malemale

femalefemale

AverageAverageResponseResponse

svsv lvlv nornor

malemale

femalefemale

Page 65: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 6565

Two-Way ANOVA F-Test Two-Way ANOVA F-Test ExampleExample

Effect of diet (sv-strict vegetarians, lv-Effect of diet (sv-strict vegetarians, lv-lactovegetarians, nor-normal) and gender (female, lactovegetarians, nor-normal) and gender (female, male) on systolic blood pressure. male) on systolic blood pressure.

Question: Test for interaction and main effects at Question: Test for interaction and main effects at the the .05.05 level. level.

Page 66: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 6666

SAS CODES FOR ANOVASAS CODES FOR ANOVAdatadata factorial; factorial;input dietary$ sex$ sbp;input dietary$ sex$ sbp;cards;cards;sv male 109.9 sv male 109.9 sv male 101.9 sv male 101.9 sv male 100.9 sv male 100.9 sv male 119.9 sv male 119.9 sv male 104.9 sv male 104.9 sv male 189.9 sv male 189.9

sv female 102.6 sv female 102.6 sv female 99 sv female 99 sv female 83 .6 sv female 83 .6 sv female 99.6 sv female 99.6 sv female 102.6 sv female 102.6 sv female 112.6 sv female 112.6

lv male 116.5 lv male 116.5 lv male 118.5 lv male 118.5 lv male 119.5 lv male 119.5 lv male 110.5 lv male 110.5 lv male 115.5 lv male 115.5 lv male 105.2 lv male 105.2

nor male 128.3 nor male 128.3 nor male 129.3 nor male 129.3 nor male 126.3 nor male 126.3 nor male 127.3 nor male 127.3 nor male 126.3 nor male 126.3 nor male 125.3 nor male 125.3

nor female 119.1 nor female 119.1 nor female 119.2 nor female 119.2 nor female 115.6 nor female 115.6 nor female 119.9 nor female 119.9 nor female 119.8 nor female 119.8 nor female 119.7 nor female 119.7 ;;runrun; ;

Page 67: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 6767

SAS CODES FOR ANOVASAS CODES FOR ANOVA

procproc glmglm;;class dietary sex;class dietary sex;model sbp=dietary sex dietary*sex;model sbp=dietary sex dietary*sex;runrun;;

procproc glmglm;;class dietary sex;class dietary sex;model sbp=dietary sex;model sbp=dietary sex;runrun;;

Page 68: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 6868

SAS OUTPUT - ANOVASAS OUTPUT - ANOVADependent Variable: sbp

Sum of Source DF Squares Mean Square F Value Pr > F Model 5 2627.399667 525.479933 1.96 0.1215 Error 24 6435.215000 268.133958 Corrected Total 29 9062.614667

R-Square Coeff Var Root MSE sbp Mean 0.289916 14.08140 16.37480 116.2867

Source DF Type I SS Mean Square F Value Pr > F dietary 2 958.870500 479.435250 1.79 0.1889 sex 1 1400.686992 1400.686992 5.22 0.0314 dietary*sex 2 267.842175 133.921087 0.50 0.6130

Source DF Type III SS Mean Square F Value Pr > F dietary 2 1039.020874 519.510437 1.94 0.1659 sex 1 877.982292 877.982292 3.27 0.0829 dietary*sex 2 267.842175 133.921087 0.50 0.6130

Page 69: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 6969

Linear ContrastLinear Contrast Linear Contrast is a linear combination of the Linear Contrast is a linear combination of the

means of populations means of populations

Purpose: to test relationship among different group Purpose: to test relationship among different group meansmeans

0jc j jL c ExampleExample: 4 populations on treatments T1, T2, T3 and T4. : 4 populations on treatments T1, T2, T3 and T4. Contrast T1 T2 T3 T4Contrast T1 T2 T3 T4 relation to test relation to test

LL11 1 0 -1 0 1 0 -1 0 μμ11 - - μμ33 = 0 = 0L2L2 1 -1/2 -1/2 0 1 -1/2 -1/2 0 μμ11 – – μμ22/2 – /2 – μμ33/2 = 0/2 = 0

with

Page 70: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 7070

T-test for Linear Contrast (LSD)T-test for Linear Contrast (LSD)

Construct a Construct a tt statistic involving statistic involving kk group means. group means. Degrees of freedom of Degrees of freedom of t - t - test:test: df df = = n-k.n-k.

Compare with critical value t1-α/2,, n-k.

Reject H0 if |t| ≥ t1-α/2,, n-k.

SAS uses contrast statement and performs an F – test df (1, n-k);

Or estimate statement and perform a t-test df (n-k).

1

0k

j jj

L c

To test H0: Construct2

2

1

kj

j j

Lt

cs

n

Page 71: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 7171

T-test for Linear Contrast (Scheffe)T-test for Linear Contrast (Scheffe)

Construct multiple contrasts involving Construct multiple contrasts involving kk group group means. Trying to search for significant contrastmeans. Trying to search for significant contrast

22

1

kj

j j

Lt

cs

n

Compare with critical value.

1

0k

j jj

L c

To test H0: Construct

1, ,1( 1) k n ka k F

Reject H0 if |t| ≥ a

Page 72: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 7272

SAS Code for contrast testingSAS Code for contrast testing proc glm; class trt block; model resp=trt block; Means trt /lsd bon scheffe; contrast 'A - B = 0' trt 1 -1 0 0 ; contrast 'A - B/2 - C/2 = 0' trt 1 -.5 -.5 0 ; contrast 'A - B/3 - C/3 -D/3 = 0' trt 3 -1 -1 -1 ; contrast 'A + B - C - D = 0' trt 1 1 -1 -1 ; lsmeans trt/stderr pdiff; lsmeans trt/stderr pdiff adjust=scheffe; /* Scheffe's test */ lsmeans trt/stderr pdiff adjust=bon; /* Boneferoni's test

*/ estimate ‘A - B' trt 1 -1 0 0 0;

run;

Page 73: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 7373

Regression representation of Anova Regression representation of Anova

Page 74: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 7474

Regression representation of Regression representation of Anova Anova

One-way anova: One-way anova:

Two-way anova: Two-way anova:

SAS uses a different constraintSAS uses a different constraint

1

0

ij i ij i ij

p

ii

y e e

1 1 1 1

0, 0, 0 0

ijk ij ijk i j ij ijk

a b b a

i j ij iji j j i

y e e

for all i and for all j

Page 75: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 7575

Regression representation of Regression representation of Anova Anova

One-way anova: Dummy variables of factor One-way anova: Dummy variables of factor with p levelswith p levels

This is the parameterization used by SASThis is the parameterization used by SAS

0 1 1 2 2 1 1...

1

0

p p

i

y x x x e

if level iwhere x

if otherwise

Page 76: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 7676

Conclusion: should be able toConclusion: should be able to

1. Recognize the applications that uses ANOVA1. Recognize the applications that uses ANOVA

2. Understand the logic of analysis of variance.2. Understand the logic of analysis of variance.

3. Be aware of several different analysis of 3. Be aware of several different analysis of variance designs and understand when to use variance designs and understand when to use each one.each one.

4. Perform a single factor hypothesis test using 4. Perform a single factor hypothesis test using analysis of variance manually and with the aid of analysis of variance manually and with the aid of SAS or any statistical software.SAS or any statistical software.

Page 77: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 7777

Conclusion: should be able toConclusion: should be able to5. Conduct and interpret post-analysis of 5. Conduct and interpret post-analysis of variance pairwise comparisons procedures.variance pairwise comparisons procedures.

6. Recognize when randomized block 6. Recognize when randomized block analysis of variance is useful and be able to analysis of variance is useful and be able to perform the randomized block analysis.perform the randomized block analysis.

7. Perform two factor analysis of variance 7. Perform two factor analysis of variance tests with replications using SAS and tests with replications using SAS and interpret the output.interpret the output.

Page 78: EPI809/Spring 2008 1 Chapter 12 Multisample inference: Analysis of Variance Analysis of Variance.

EPI809/Spring 2008EPI809/Spring 2008 7878

Key TermsKey Terms

Between-Sample Between-Sample VariationVariation

Completely Completely Randomized DesignRandomized Design

Experiment-Wide Experiment-Wide Error RateError Rate

FactorFactor

Levels Levels One-Way Analysis One-Way Analysis

of Varianceof Variance Total VariationTotal Variation TreatmentTreatment Within-Sample Within-Sample

VariationVariation