Comparing Several Means: ANOVA

Slides:



Advertisements
Similar presentations
Week 2 – PART III POST-HOC TESTS. POST HOC TESTS When we get a significant F test result in an ANOVA test for a main effect of a factor with more than.
Advertisements

Comparing several means: ANOVA (GLM 1)
Model Adequacy Checking in the ANOVA Text reference, Section 3-4, pg
Chapter 10 Analysis of Variance (ANOVA) Part III: Additional Hypothesis Tests Renee R. Ha, Ph.D. James C. Ha, Ph.D Integrative Statistics for the Social.
More on ANOVA. Overview ANOVA as Regression Comparison Methods.
Independent Sample T-test Formula
Analysis of Variance: Inferences about 2 or More Means
Chapter Topics The Completely Randomized Model: One-Factor Analysis of Variance F-Test for Difference in c Means The Tukey-Kramer Procedure ANOVA Assumptions.
Chapter 3 Analysis of Variance
PSY 307 – Statistics for the Behavioral Sciences
Lecture 9: One Way ANOVA Between Subjects
One-way Between Groups Analysis of Variance
ANOVA Single Factor Models Single Factor Models. ANOVA ANOVA (ANalysis Of VAriance) is a natural extension used to compare the means more than 2 populations.
BCOR 1020 Business Statistics
Chapter 9 - Lecture 2 Computing the analysis of variance for simple experiments (single factor, unrelated groups experiments).
Chapter 12: Analysis of Variance
Department of Cognitive Science
Calculations of Reliability We are interested in calculating the ICC –First step: Conduct a single-factor, within-subjects (repeated measures) ANOVA –This.
Which Test Do I Use? Statistics for Two Group Experiments The Chi Square Test The t Test Analyzing Multiple Groups and Factorial Experiments Analysis of.
PSY 307 – Statistics for the Behavioral Sciences Chapter 16 – One-Factor Analysis of Variance (ANOVA)
One-way Analysis of Variance 1-Factor ANOVA. Previously… We learned how to determine the probability that one sample belongs to a certain population.
Testing Hypotheses about Differences among Several Means.
Chapter 14 – 1 Chapter 14: Analysis of Variance Understanding Analysis of Variance The Structure of Hypothesis Testing with ANOVA Decomposition of SST.
ITEC6310 Research Methods in Information Technology Instructor: Prof. Z. Yang Course Website: c6310.htm Office:
Lecture 9-1 Analysis of Variance
Analysis of Variance (One Factor). ANOVA Analysis of Variance Tests whether differences exist among population means categorized by only one factor or.
+ Comparing several means: ANOVA (GLM 1) Chapter 11.
+ Comparing several means: ANOVA (GLM 1) Chapter 10.
Research Methods and Data Analysis in Psychology Spring 2015 Kyle Stephenson.
Introduction to ANOVA Research Designs for ANOVAs Type I Error and Multiple Hypothesis Tests The Logic of ANOVA ANOVA vocabulary, notation, and formulas.
1 1 Slide The Simple Linear Regression Model n Simple Linear Regression Model y =  0 +  1 x +  n Simple Linear Regression Equation E( y ) =  0 + 
Analysis of Variance 11/6. Comparing Several Groups Do the group means differ? Naive approach – Independent-samples t-tests of all pairs – Each test doesn't.
Chapter 13 Understanding research results: statistical inference.
 List the characteristics of the F distribution.  Conduct a test of hypothesis to determine whether the variances of two populations are equal.  Discuss.
The 2 nd to last topic this year!!.  ANOVA Testing is similar to a “two sample t- test except” that it compares more than two samples to one another.
Six Easy Steps for an ANOVA 1) State the hypothesis 2) Find the F-critical value 3) Calculate the F-value 4) Decision 5) Create the summary table 6) Put.
Chapter 11 Analysis of Variance
Comparing Multiple Groups:
ANOVA: Analysis of Variation
Multiple Regression.
ANOVA: Analysis of Variation
Week 2 – PART III POST-HOC TESTS.
Why is this important? Requirement Understand research articles
Comparing several means: ANOVA (GLM 1)
Applied Business Statistics, 7th ed. by Ken Black
Comparing Three or More Means
Analysis of Covariance, ANCOVA (GLM2)
Analysis of Variance.
Analysis of Covariance (ANCOVA)
Psych 706: Stats II Class #2.
Post Hoc Tests on One-Way ANOVA
Post Hoc Tests on One-Way ANOVA
Categorical Variables
Simple Linear Regression
Comparing Multiple Groups: Analysis of Variance ANOVA (1-way)
What if. . . You were asked to determine if psychology and sociology majors have significantly different class attendance (i.e., the number of days a person.
Linear Contrasts and Multiple Comparisons (§ 8.6)
Analysis of Variance (ANOVA)
Multiple Regression.
Chapter 11 Analysis of Variance
Analysis of Variance (ANOVA)
I. Statistical Tests: Why do we use them? What do they involve?
Analysis of Variance (ANOVA)
One-Way Analysis of Variance
Chapter 13 Group Differences
The Analysis of Variance
Conceptual Understanding
Experiments with More Than Two Groups
MGS 3100 Business Analysis Regression Feb 18, 2016
STATISTICS INFORMED DECISIONS USING DATA
Presentation transcript:

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 one-way 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.95n

What Does ANOVA Tell Us? Null hypothesis: Experimental 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 H0 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 (SST). 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 (SSM)... … and how much cannot be explained How much variability is due to individual differences in performance, residual sum of squares (SSR). 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 If the experiment is successful, then the model will explain more variance than it can’t SSM will be greater than SSR Slide 15

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

The Data Slide 17

Step 1: Calculate SST ** where the mean is the grand mean

Total Sum of Squares (SST): Grand Mean Slide 20

SST = sum((observed – Grand Mean)2) SST = S2(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. DFTotal = N - 1 Slide 23

Model Sum of Squares (SSM): Difference between the model estimate and the mean (or “Grand Mean”)

Model Sum of Squares (SSM): Grand Mean Slide 25

Step 2: Calculate SSM Slide 26

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

Residual Sum of Squares (SSR): Grand Mean Df = 4 Slide 28

Step 3: Calculate SSR SSR = sum([xi – xi]2)

Step 3: Calculate SSR 2.5 Slide 30

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

Double Check SST = SSR + SSM 43.74 = 20.14 + 23.60 DFT = DFR + DFM 14 = 2 + 12 Slide 32

Step 4: Calculate the Mean Squared Error Slide 33

Step 5: Calculate the F-Ratio Slide 34

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 S2 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.