ANOVA ANOVA. Two-Way ANOVA. One-Way ANOVA. When to use ANOVA ANOVA. Analysis of Variance. Chapter 16. A procedure for comparing more than two groups



Similar documents
Chapter 5 Analysis of variance SPSS Analysis of variance

INTERPRETING THE ONE-WAY ANALYSIS OF VARIANCE (ANOVA)

Analysis of Data. Organizing Data Files in SPSS. Descriptive Statistics

Section 13, Part 1 ANOVA. Analysis Of Variance

One-Way Analysis of Variance

Study Guide for the Final Exam

One-Way Analysis of Variance (ANOVA) Example Problem

Randomized Block Analysis of Variance

A Basic Guide to Analyzing Individual Scores Data with SPSS

One-Way ANOVA using SPSS SPSS ANOVA procedures found in the Compare Means analyses. Specifically, we demonstrate

COMPARISONS OF CUSTOMER LOYALTY: PUBLIC & PRIVATE INSURANCE COMPANIES.

Two Related Samples t Test

Chapter 7. One-way ANOVA

Experimental Designs (revisited)

Introduction to Analysis of Variance (ANOVA) Limitations of the t-test

Recall this chart that showed how most of our course would be organized:

Statistiek II. John Nerbonne. October 1, Dept of Information Science

Data Analysis in SPSS. February 21, If you wish to cite the contents of this document, the APA reference for them would be

An analysis method for a quantitative outcome and two categorical explanatory variables.

13: Additional ANOVA Topics. Post hoc Comparisons

Using Microsoft Excel to Analyze Data

Descriptive Statistics

Two-sample hypothesis testing, II /16/2004

Chapter 14: Repeated Measures Analysis of Variance (ANOVA)

Multivariate Analysis of Variance. The general purpose of multivariate analysis of variance (MANOVA) is to determine

12: Analysis of Variance. Introduction

STATISTICS FOR PSYCHOLOGISTS

Testing Group Differences using T-tests, ANOVA, and Nonparametric Measures

Main Effects and Interactions

KSTAT MINI-MANUAL. Decision Sciences 434 Kellogg Graduate School of Management

t Tests in Excel The Excel Statistical Master By Mark Harmon Copyright 2011 Mark Harmon

Chapter 9. Two-Sample Tests. Effect Sizes and Power Paired t Test Calculation

Analysis of Variance. MINITAB User s Guide 2 3-1

SPSS Tests for Versions 9 to 13

January 26, 2009 The Faculty Center for Teaching and Learning

How To Run Statistical Tests in Excel

IBM SPSS Statistics 20 Part 4: Chi-Square and ANOVA

1 Overview. Fisher s Least Significant Difference (LSD) Test. Lynne J. Williams Hervé Abdi

Statistics Review PSY379

" Y. Notation and Equations for Regression Lecture 11/4. Notation:

1.5 Oneway Analysis of Variance

Multiple-Comparison Procedures

How To Check For Differences In The One Way Anova

individualdifferences

CHAPTER 13. Experimental Design and Analysis of Variance

Unit 31 A Hypothesis Test about Correlation and Slope in a Simple Linear Regression

Regression step-by-step using Microsoft Excel

Multiple Regression in SPSS This example shows you how to perform multiple regression. The basic command is regression : linear.

Independent t- Test (Comparing Two Means)

NCSS Statistical Software Principal Components Regression. In ordinary least squares, the regression coefficients are estimated using the formula ( )

Multivariate Analysis of Variance (MANOVA): I. Theory

Simple Tricks for Using SPSS for Windows

UNDERSTANDING THE DEPENDENT-SAMPLES t TEST

Introduction to Statistics with GraphPad Prism (5.01) Version 1.1

General Regression Formulae ) (N-2) (1 - r 2 YX

ABSORBENCY OF PAPER TOWELS

8. Comparing Means Using One Way ANOVA

Using Microsoft Excel to Analyze Data from the Disk Diffusion Assay

Unit 31: One-Way ANOVA

Post-hoc comparisons & two-way analysis of variance. Two-way ANOVA, II. Post-hoc testing for main effects. Post-hoc testing 9.

SPSS Explore procedure

Profile analysis is the multivariate equivalent of repeated measures or mixed ANOVA. Profile analysis is most commonly used in two cases:

UNDERSTANDING ANALYSIS OF COVARIANCE (ANCOVA)

Chapter 7. Comparing Means in SPSS (t-tests) Compare Means analyses. Specifically, we demonstrate procedures for running Dependent-Sample (or

THE UNIVERSITY OF TEXAS AT TYLER COLLEGE OF NURSING COURSE SYLLABUS NURS 5317 STATISTICS FOR HEALTH PROVIDERS. Fall 2013

SPSS Guide: Regression Analysis

PSYCHOLOGY 320L Problem Set #3: One-Way ANOVA and Analytical Comparisons

Chapter 2 Probability Topics SPSS T tests

UNDERSTANDING THE TWO-WAY ANOVA

Part 2: Analysis of Relationship Between Two Variables

Regression Analysis: A Complete Example

Lesson 1: Comparison of Population Means Part c: Comparison of Two- Means

Additional sources Compilation of sources:

PSYC 381 Statistics Arlo Clark-Foos, Ph.D.

Module 4 (Effect of Alcohol on Worms): Data Analysis

An Introduction to Statistics Course (ECOE 1302) Spring Semester 2011 Chapter 10- TWO-SAMPLE TESTS

Multivariate analyses

Introduction to Regression and Data Analysis

Two-Sample T-Tests Assuming Equal Variance (Enter Means)

Reporting Statistics in Psychology

Two-Sample T-Tests Allowing Unequal Variance (Enter Difference)

research/scientific includes the following: statistical hypotheses: you have a null and alternative you accept one and reject the other

UNDERSTANDING THE INDEPENDENT-SAMPLES t TEST

Univariate Regression

Guide to Microsoft Excel for calculations, statistics, and plotting data

One-Way Analysis of Variance: A Guide to Testing Differences Between Multiple Groups

EXCEL Analysis TookPak [Statistical Analysis] 1. First of all, check to make sure that the Analysis ToolPak is installed. Here is how you do it:

15. Analysis of Variance

1. What is the critical value for this 95% confidence interval? CV = z.025 = invnorm(0.025) = 1.96

The Statistics Tutor s Quick Guide to

CHAPTER 11 CHI-SQUARE AND F DISTRIBUTIONS

THE KRUSKAL WALLLIS TEST

Linear Models in STATA and ANOVA

Two-sample t-tests. - Independent samples - Pooled standard devation - The equal variance assumption

SPSS Advanced Statistics 17.0

Chapter 7 Section 7.1: Inference for the Mean of a Population

Chi Square Distribution

Introduction to. Hypothesis Testing CHAPTER LEARNING OBJECTIVES. 1 Identify the four steps of hypothesis testing.

Chapter 13 Introduction to Linear Regression and Correlation Analysis

Transcription:

ANOVA ANOVA Analysis of Variance Chapter 6 A procedure for comparing more than two groups independent variable: smoking status non-smoking one pack a day > two packs a day dependent variable: number of coughs per day k number of conditions (in this case, 3) One-Way ANOVA One-Way ANOVA has one independent variable ( factor) with > conditions conditions levels treatments e.g., for a brand of cola factor, the levels are: Coke, Pepsi, RC Cola Independent variables factors Two-Way ANOVA Two-Way ANOVA has independent variables (factors) each can have multiple conditions Example Two Independent Variables (IV s) IV: Brand; and IV: Calories Three levels of Brand: Coke, Pepsi, RC Cola Two levels of Calories: Regular, Diet When to use ANOVA One-way ANOVA: you have more than two levels (conditions) of a single IV EXAMPLE: studying effectiveness of three types of pain reliever aspirin vs. tylenol vs. ibuprofen Two-way ANOVA: you have more than one IV (factor) EXAMPLE: studying pain relief based on pain reliever and type of pain Factor A: Pain reliever (aspirin vs. tylenol) Factor B: type of pain (headache vs. back pain) ANOVA When a factor uses independent samples in all conditions, it is called a betweensubjects factor between-subjects ANOVA When a factor uses related samples in all conditions, it is called a within-subjects factor within-subjects ANOVA PASW: referred to as repeated measures

ANOVA & PASW Why bother with ANOVA? 5 Independent Samples Related Samples samples Independent Samples t-test Paired Samples t-test or more samples Between Subjects ANOVA Repeated Measures ANOVA Mean Pain level 4 3 Tylenol Aspirin Ibuprofen Gin Pain Reliever Would require six t-tests, each with an associated Type I (false alarm) rate. Familywise rate Overall probability of making a Type I (false alarm) somewhere in an experiment One t-test, familywise rate is equal to α (e.g.,.05) Multiple t-tests result in a familywise rate much larger than the α we selected ANOVA keeps the familywise rate equal to α Post-hoc Tests If the ANOVA is significant at least one significant difference between conditions In that case, we follow the ANOVA with posthoc tests that compare two conditions at a time post-hoc comparisons identify the specific significant differences between each pair Mean Pain level 5 4 3 Tylenol Aspirin Ibuprofen Gin Pain Reliever ANOVA Assumptions Partitioning Variance Homogeneity of variance σ σ σ 3 σ 4 σ 5 Normality scores in each population are normally distributed Mean Pain level 5 4 3 Tylenol Aspirin Ibuprofen Gin Pain Reliever

Partitioning Variance Total Variance in Scores Partitioning Variance Total Variance in Scores Variance Within Groups () Variance Between Groups group (chance variance) (systematic variance: treatment effect) Mean Square; short for mean squared deviation Similar to variance (s x ) t obt F obt X X s X X difference between sample means difference expected by chance (standard ) variance between sample means variance expected by chance () systematic variance chance variance is an estimate of the variability as measured by differences within the conditions sometimes called the within group variance or the term chance variance (random + individual differences) Tylenol Aspirin Ibuprofen 5 Gin 4 3.6..3.7.6 3.3 3.7.4.4.9 systematic variance.9.7 chance variance 3.3. Mean:.4.8. Pain level variance (within groups) Tylenol Aspirin Ibuprofen Gin Pain Reliever group is an estimate of the differences in scores that occurs between the levels in a factor also called between Treatment effect (systematic variance) Total Variance (variability among all the scores in the data set) X: Tylenol 3.3.7 Aspirin.6.7.4 3.3.4 Ibuprofen..6.4.9.8 Gin 3.3.9.7.. Overall X. Between Groups Variance. Treatment effect (systematic). Chance (random + individual differences) Error Variance (within groups). Chance (random + individual differences) group variance between groups 3

F-Ratio When H 0 is TRUE (there is no treatment effect): F between group variance variance (within groups) Treatment effect + Chance F-Ratio Chance 0 + Chance Chance In ANOVA, variance Mean Square () between group variance F-Ratio variance (within groups) group When H 0 is FALSE (there is a treatment effect): F Treatment effect + Chance Chance > Signal-to Noise Ratio ANOVA is about looking at the signal relative to noise group is the signal is the noise We want to see if the between-group variance (signal), is comparable to the within-group variance (noise) Logic Behind ANOVA If there is no true difference between groups at the population level: the only differences we get between groups in the sample should be due to. if that s the case, differences between groups should be about the same as differences among individual scores within groups (). group and will be about the same. Logic Behind ANOVA If there are true differences between groups: variance between groups will exceed variance (within groups) F obt will be much greater than F obt F obt can also deviate from by chance alone we need a sampling distribution to tell how high F obt needs to be before we reject the H 0 compare F obt to critical value (e.g., F.05 ) group Logic Behind ANOVA The critical value (F.05 ) depends on degrees of freedom between groups: df group k - (within): df k ( n - ) Total: df total N - alpha (α) e.g.,.05,.0 4

ANOVA Example: Cell phones Research Question: Is your reaction time when driving slowed by a cell phone? Does it matter if it s a hands-free phone? Twelve participants went into a driving simulator.. A random subset of 4 drove while listening to the radio (control group).. Another 4 drove while talking on a cell phone. 3. Remaining 4 drove while talking on a hands-free cell phone. Every so often, participants would approach a traffic light that was turning red. The time it took for participants to hit the breaks was measured. A 6 Step Program for Hypothesis Testing. State your research question. Choose a statistical test 3. Select alpha which determines the critical value (F.05 ) 4. State your statistical hypotheses (as equations) 5. Collect data and calculate test statistic (F obt ) 6. Interpret results in terms of hypothesis Report results Explain in plain language A 6 Step Program for Hypothesis Testing. State your research question Is your reaction time when driving influenced by cell-phone usage?. Choose a statistical test three levels of a single independent variable (cell; hands-free; control) One-Way ANOVA, between subjects 3. Select α, which determines the critical value α.05 in this case See F-tables (page 543 in the Appendix) df group k 3 (numerator) df k (n - ) 3(4-) 9 (denominator) F.05? 4.6 F Distribution critical values (alpha.05) df group k 3 (numerator) 4. State Hypotheses df k (n - ) 3(4-) 9 (denominator) H 0 : μ μ μ 3 H : not all μ s are equal referred to as the omnibus null hypothesis When rejecting the Null in ANOVA, we can only conclude that there is at least one significant difference among conditions. If ANOVA significant pinpoint the actual difference(s), with post-hoc comparisons 5

Examine Data and Calculate F obt DV: Response time (seconds) X Control.50.55.45.40 Is there at least one significant difference between conditions? X Normal Cell.75.65.60.60 X 3 Hands-free Cell.65.50.65.70 A Reminder about Variance Variance: the average squared deviation from the mean X, 4, 6 X 4 Sample Variance Definitional Formula s X (X - X) N- Sum of the squared deviation scores X X-X (X-X) - 4 4 0 0 6 4 (X - X) 8 s X 8/ 4 ANOVA Summary Table Source Sum of df Mean F Squares Squares Group SS group df group group F obt Error SS df Total SS total df total SS Sum of squared deviations or Sum of Squares ANOVA Summary Table Source Sum of df Mean F Squares Squares Group.07 df group group F obt Error.050 df Total. df total SS total SS + SS group SS total.07 +.050. ANOVA Summary Table Source Sum of df Mean F Squares Squares Group.07 group F obt Error.050 9 Total. df between groups k - df (within groups ) k (n -) df total N (the sum of df group and df ) Examine Data and Calculate F obt Compute the mean squares SS group df SS df group group.07.0360.050.0056 9 6

Examine Data and Calculate F obt ANOVA Summary Table Compute F obt F obt group.0360.0056 6.45 Source Sum of df Mean F Squares Squares Group.07.0360 6.45 Error.050 9.0056 Total. ANOVA Example: Cell phones Interpret results in terms of hypothesis 6.45 > 4.6; Reject H 0 and accept H Report results F(, 9) 6.45, p <.05 Explain in plain language Among those three groups, there is at least one significant difference X Interpret F obt.475.65.65 Figure 6.3 Probability of a Type I as a function of the number of pairwise comparisons where α.05 for any one comparison Post-hoc Comparisons Fisher s Least Signficant Difference Test (LSD) uses t-tests to perform all pairwise comparisons between group means. good with three groups, risky with > 3 this is a liberal test; i.e., it gives you high power to detect a difference if there is one, but at an increased risk of a Type I 7

Post-hoc Comparisons Bonferroni procedure uses t-tests to perform pairwise comparisons between group means, but controls overall rate by setting the rate for each test to the familywise rate divided by the total number of tests. Hence, the observed significance level is adjusted for the fact that multiple comparisons are being made. e.g., if six comparisons are being made (all possibilities for four groups), then alpha.05/6.0083 Post-hoc Comparisons Tukey HSD (Honestly Significant Difference) sets the familywise rate at the rate for the collection for all pairwise comparisons. very common test Other post-hoc tests also seen: e.g., Newman-Keuls, Duncan, Scheffe Effect Size: Partial Eta Squared Partial Eta squared (η ) indicates the proportion of variance attributable to a factor 0.0 small effect 0.50 medium effect 0.80 large effect Calculation: PASW Effect Size: Omega Squared A less biased indicator of variance explained in the population by a predictor variable SSgroup ( k ) ω SS total +.07 (3 )(.0056) ω 0.48. +.0056 48% of the variability in response times can be attributed to group membership (medium effect) PASW: One-Way ANOVA (Between Subjects) Setup a one-way between subjects ANOVA as you would an independent samples t-test: Create two variables one variable contains levels of your independent variable (here called group ). there are three groups in this case numbered -3. second variable contains the scores of your dependent variable (here called time ) PASW : One-Way ANOVA (Between Subjects) 8

Label the numbers you used to differentiate groups: Go to Variable View, then click on the Values box, then the gray box labeled Enter Value (in this case, or 3) and the Value Label (in this case: control, cell, hands) Click Add, and then add the next two variables. Performing Test Select from Menu: Analyze -> General Linear Model -> Univariate Select your dependent variable (here: time ) in the Dependent Variable box Select your independent variable (here: group ) in the Fixed Factor(s) box Click Options button, checkdescriptives (this will print the means for each of your levels) check Estimates of effect size for Partial Eta Squared Click the Post Hoc button for post hoc comparisons; move factor to Post Hoc Tests for box; then check LSD, Bonferroni, or Tukey Click OK Dependent Variable: rt Tukey HSD control and cell groups are significantly different if p <.05, then significant effect (I) condition control cell hands (J) condition cell hands control hands control cell *. The mean difference is significant at the.05 level. Mean Difference 95% Confidence Interval (I-J) Std. Error Sig. Lower Bound Upper Bound -.7500*.0570.0 -.3 -.078 -.5000*.0570.046 -.97 -.008.7500*.0570.0.078.3.0500.0570.885 -..7.5000*.0570.046.008.97 -.0500.0570.885 -.7. hands and cell groups are NOT significantly different Complete explanation Any kind of cell phone conversation can cause a longer reaction time compared to listening to the radio. There is no significant difference between reaction times in the normal cell phone and hands-free conditions. PASW and Effect Size Click Options menu; then check Estimates of effect size box This option produces partial eta squared Partial Eta Squared 9

PASW Data Example ANOVA Summary Three groups with three in each group (N 9) Fast Medium Slow 0.0.0.0 44.0.0.0 30.0.0.0 X 3.3 8.7.0 if p <.05, then significant effect Effect size Post Hoc Comparisons slow and medium groups are not significantly different slow and fast groups are significantly different Shamay-Tsoory SG, Tomer R, Aharon-Peretz J. (005) The neuroanatomical basis of understanding sarcasm and its relationship to social cognition. Neuropsychology. 9(3), 88-300. A Sarcastic Version Item Joe came to work, and instead of beginning to work, he sat down to rest. His boss noticed his behavior and said, Joe, don t work too hard! A Neutral Version Item Joe came to work and immediately began to work. His boss noticed his behavior and said, Joe, don t work too hard! Following each story, participants were asked: Did the manager believe Joe was working hard? 0