Comparing Several Means: ANOVA

Similar documents
COMPARING SEVERAL MEANS: ANOVA

8/23/2018. One-Way ANOVA F-test. 1. Situation/hypotheses. 2. Test statistic. 3.Distribution. 4. Assumptions

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

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

Difference in two or more average scores in different groups

Extensions of One-Way ANOVA.

Extensions of One-Way ANOVA.

Analysis of Variance (ANOVA)

What Does the F-Ratio Tell Us?

Multiple t Tests. Introduction to Analysis of Variance. Experiments with More than 2 Conditions

Analysis of Variance: Part 1

Multiple Comparisons

The One-Way Independent-Samples ANOVA. (For Between-Subjects Designs)

Introduction to Analysis of Variance. Chapter 11

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

One-Way ANOVA Source Table J - 1 SS B / J - 1 MS B /MS W. Pairwise Post-Hoc Comparisons of Means

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

Preview from Notesale.co.uk Page 3 of 63

Introduction to the Analysis of Variance (ANOVA)

Analysis of Variance (ANOVA)

ANOVA Situation The F Statistic Multiple Comparisons. 1-Way ANOVA MATH 143. Department of Mathematics and Statistics Calvin College

Introduction to the Analysis of Variance (ANOVA) Computing One-Way Independent Measures (Between Subjects) ANOVAs

4:3 LEC - PLANNED COMPARISONS AND REGRESSION ANALYSES

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

ANOVA continued. Chapter 11

Hypothesis T e T sting w ith with O ne O One-Way - ANOV ANO A V Statistics Arlo Clark Foos -

ANCOVA. Psy 420 Andrew Ainsworth

PSYC 331 STATISTICS FOR PSYCHOLOGISTS

One-Way ANOVA Cohen Chapter 12 EDUC/PSY 6600

Analysis of Variance: Repeated measures

Keppel, G. & Wickens, T. D. Design and Analysis Chapter 4: Analytical Comparisons Among Treatment Means

10/31/2012. One-Way ANOVA F-test

ANALYTICAL COMPARISONS AMONG TREATMENT MEANS (CHAPTER 4)

ANOVA. Testing more than 2 conditions

Analyses of Variance. Block 2b

ANOVA Analysis of Variance

ANOVA continued. Chapter 10

Review. One-way ANOVA, I. What s coming up. Multiple comparisons

PLSC PRACTICE TEST ONE

Note: k = the # of conditions n = # of data points in a condition N = total # of data points

Introduction. Chapter 8

Lec 1: An Introduction to ANOVA

N J SS W /df W N - 1

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

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

20.0 Experimental Design

psyc3010 lecture 2 factorial between-ps ANOVA I: omnibus tests

Analysis of variance

A discussion on multiple regression models

ANOVA continued. Chapter 10

Independent Samples ANOVA

One-Way Analysis of Variance (ANOVA) Paul K. Strode, Ph.D.

H0: Tested by k-grp ANOVA

H0: Tested by k-grp ANOVA

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

Degrees of freedom df=1. Limitations OR in SPSS LIM: Knowing σ and µ is unlikely in large

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

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

An Old Research Question

Regression models. Categorical covariate, Quantitative outcome. Examples of categorical covariates. Group characteristics. Faculty of Health Sciences

Multiple Comparison Procedures Cohen Chapter 13. For EDUC/PSY 6600

WELCOME! Lecture 13 Thommy Perlinger

Using SPSS for One Way Analysis of Variance

ANOVA: Analysis of Variation

Unit 12: Analysis of Single Factor Experiments

Factorial designs. Experiments

8/04/2011. last lecture: correlation and regression next lecture: standard MR & hierarchical MR (MR = multiple regression)

Inferences for Regression

A posteriori multiple comparison tests

Factorial Independent Samples ANOVA

One-way Analysis of Variance. Major Points. T-test. Ψ320 Ainsworth

1. What does the alternate hypothesis ask for a one-way between-subjects analysis of variance?

8/28/2017. Repeated-Measures ANOVA. 1. Situation/hypotheses. 2. Test statistic. 3.Distribution. 4. Assumptions

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

7.2 One-Sample Correlation ( = a) Introduction. Correlation analysis measures the strength and direction of association between

Hypothesis testing: Steps

Repeated-Measures ANOVA in SPSS Correct data formatting for a repeated-measures ANOVA in SPSS involves having a single line of data for each

Your schedule of coming weeks. One-way ANOVA, II. Review from last time. Review from last time /22/2004. Create ANOVA table

Unit 27 One-Way Analysis of Variance

Multiple Pairwise Comparison Procedures in One-Way ANOVA with Fixed Effects Model

Area1 Scaled Score (NAPLEX) .535 ** **.000 N. Sig. (2-tailed)

Six Sigma Black Belt Study Guides

Study Guide #3: OneWay ANALYSIS OF VARIANCE (ANOVA)

Repeated Measures Analysis of Variance

Sampling distribution of t. 2. Sampling distribution of t. 3. Example: Gas mileage investigation. II. Inferential Statistics (8) t =

Regression With a Categorical Independent Variable

Factorial Analysis of Variance

Remedial Measures, Brown-Forsythe test, F test

DESIGNING EXPERIMENTS AND ANALYZING DATA A Model Comparison Perspective

Hypothesis testing: Steps

Advanced Experimental Design

STA441: Spring Multiple Regression. This slide show is a free open source document. See the last slide for copyright information.

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

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

Chemometrics. Matti Hotokka Physical chemistry Åbo Akademi University

Specific Differences. Lukas Meier, Seminar für Statistik

R 2 and F -Tests and ANOVA

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

DETAILED CONTENTS PART I INTRODUCTION AND DESCRIPTIVE STATISTICS. 1. Introduction to Statistics

Multiple Linear Regression

Transcription:

Comparing Several Means: ANOVA Understand the basic principles of ANOVA Why it is done? What it tells us? Theory of one way independent ANOVA Following up an ANOVA: Planned contrasts/comparisons Choosing contrasts Coding contrasts Post hoc tests Slide 1

When and Why When we want to compare means we can use a t test. This test has limitations: You can compare only 2 means: often we would like to compare means from 3 or more groups. It can be used only with one predictor/independent variable. ANOVA Compares several means. Can be used when you have manipulated more than one independent variable. It is an extension of regression (the general linear model). Slide 2

ANOVA Fisher: British statistician and geneticists. Introduced this analysis Let us assume that we test four different feeds and want to see if the body weights in pigs changes using the different feeds. We are going to test the effect of one factor feed type. The analysis is termed a one factor test or oneway ANOVA. A population of pigs is assigned, at random to each of the four treatments. To be specific there are four treatment levels. Parametric test

Why Not Use Lots of t Tests? If we want to compare several means why don t we compare pairs of means with t tests? Can t look at several independent variables Inflates the Type I error rate Type one error rate = 1 0.95 n

What Does ANOVA Tell Us? Null hypothesis: Like a t test, ANOVA tests the null hypothesis that the means are the same. Experimental hypothesis: The means differ. ANOVA is an omnibus test It test for an overall difference between groups. It tells us that the group means are different. It doesn t tell us exactly which means differ. Slide 5

What Does ANOVA Tell Us? If H 0 is rejected, there is al least one difference among the four means.

ANOVA as Regression

Placebo Group

High Dose Group

Low Dose Group

Output from Regression

Experiments vs. Correlation ANOVA in regression: Used to assess whether the regression model is good at predicting an outcome. ANOVA in experiments: Used to see whether experimental manipulations lead to differences in performance on an outcome. By manipulating a predictor variable can we cause (and therefore predict) a change in behavior? Same question is of interest in regression and experimental maniupulations: In experiments we systematically manipulate the predictor, in regression we don t. Slide 12

Theory of ANOVA We calculate how much variability there is between scores Total sum of squares (SS T ). We then calculate how much of this variability can be explained by the model we fit to the data How much variability is due to the experimental manipulation, model sum of squares (SS M )... and how much cannot be explained How much variability is due to individual differences in performance, residual sum of squares (SS R ). Slide 13

Theory of ANOVA We compare the amount of variability explained by the model (experiment), to the error in the model (individual differences) This ratio is called the F ratio. If the model explains a lot more variability than it can t explain, then the experimental manipulation has had a significant effect on the outcome. Slide 14

Theory of ANOVA Slide 15 If the experiment is successful, then the model will explain more variance than it can t SS M will be greater than SS R

ANOVA by Hand Testing the effects of Viagra on libido using three groups: Placebo (sugar pill) Low dose viagra High dose viagra The outcome/dependent variable (DV) was an objective measure of libido. Slide 16

Slide 17 The Data

Step 1: Calculate SS T ** where the mean is the grand mean

Total Sum of Squares (SS T ): 8 7 6 5 4 3 2 1 0 Grand Mean 0 1 2 3 4 Slide 20

Response Value 8 7 6 5 4 3 2 1 0 1 6 11 Participant Number

SS T = sum((observed Grand Mean) 2 ) SS T = S 2 (N 1)

Degrees of Freedom Degrees of freedom (df) are the number of values that are free to vary. In general, the df are one less than the number of values used to calculate the SS. DF Total = N 1 Slide 23

Model Sum of Squares (SS M ): Difference between the model estimate and the mean (or Grand Mean )

Model Sum of Squares (SS M ): 8 7 6 5 4 3 2 1 0 Grand Mean 0 1 2 3 4 Slide 25

Slide 26 Step 2: Calculate SS M

Model Degrees of Freedom How many values did we use to calculate SS M? We used the 3 means. Slide 27

Residual Sum of Squares (SS R ): 8 7 6 5 4 3 2 1 0 Grand Mean 0 1 2 3 4 Df = 4 Df = 4 Df = 4 Slide 28

Step 3: Calculate SS R SS R = sum([x i x i ] 2 )

Step 3: Calculate SS R 2.5 Slide 30

Residual Degrees of Freedom How many values did we use to calculate SS R? We used the 5 scores for each of the SS for each group. Slide 31

Double Check SS T = SS R + SS M 43.74 = 20.14 + 23.60 DF T = DF R + DF M 14 = 2 + 12 Slide 32

Step 4: Calculate the Mean Squared Error Slide 33

Slide 34 Step 5: Calculate the F Ratio

Step 6: Construct a Summary Table Source SS df MS F Model 20.14 2 10.067 5.12* Residual 23.60 12 1.967 Total 43.74 14 Slide 35

Multiple comparison tests The anova that you examined is used to test the hypothesis that there is no difference in the sample means among k treatment levels However we cannot conclude, after doing the test, which of the mean values are different from one another.

Tukey Test Tukey test balanced, orthogonal designs Step one: is to arrange and number all five sample means in order of increasing magnitude Calculate the pairwise difference in sample means. We use a t test analog to calculate a q statistic

Tukey Test S 2 is the error mean sqare by anova computation n is the of data in each of groups B and A Remember this is a completely balanced design.

Tukey Test Start with the largest mean, vs. the smallest mean. Then when the first largest mean has been compared with increasingly large second means, use the second largest mean. If the null hypothesis is accepted between two means then all other means within that range cannot be different.