Two Way ANOVA ©2005 Dr. B. C. Paul. ANOVA Application ANOVA allows us to review data and determine whether a particular effect is changing our results.

Slides:



Advertisements
Similar presentations
T-test Charmaine Bird.
Advertisements

ANALYSIS OF VARIANCE (ONE WAY)
BPS - 5th Ed. Chapter 241 One-Way Analysis of Variance: Comparing Several Means.
Introduction to Regression ©2005 Dr. B. C. Paul. Things Favoring ANOVA Analysis ANOVA tells you whether a factor is controlling a result It requires that.
Independent t -test Features: One Independent Variable Two Groups, or Levels of the Independent Variable Independent Samples (Between-Groups): the two.
1 Hypothesis Testing Chapter 8 of Howell How do we know when we can generalize our research findings? External validity must be good must have statistical.
Limitations of ANOVA ©2005 Dr. B. C. Paul. The Data Size Effect We Did ANOVA with one factor We Did ANOVA with one factor We Did it with two factors (Driver.
Bivariate Analysis Cross-tabulation and chi-square.
ANOVA: Analysis of Variance
Conceptual Review Conceptual Formula, Sig Testing Calculating in SPSS
PSY 340 Statistics for the Social Sciences Chi-Squared Test of Independence Statistics for the Social Sciences Psychology 340 Spring 2010.
Statistics Are Fun! Analysis of Variance
Lecture 9: One Way ANOVA Between Subjects
1 1 Slide © 2003 South-Western/Thomson Learning™ Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Analysis of Variance & Multivariate Analysis of Variance
Chapter 9 - Lecture 2 Computing the analysis of variance for simple experiments (single factor, unrelated groups experiments).
Independent Sample T-test Classical design used in psychology/medicine N subjects are randomly assigned to two groups (Control * Treatment). After treatment,
Statistics made simple Modified from Dr. Tammy Frank’s presentation, NOVA.
Assumption of Homoscedasticity
Statistical Analysis. Purpose of Statistical Analysis Determines whether the results found in an experiment are meaningful. Answers the question: –Does.
Lecture 5 Correlation and Regression
Statistics for the Social Sciences Psychology 340 Fall 2013 Thursday, November 21 Review for Exam #4.
T Test for One Sample. Why use a t test? The sampling distribution of t represents the distribution that would be obtained if a value of t were calculated.
Psy B07 Chapter 1Slide 1 ANALYSIS OF VARIANCE. Psy B07 Chapter 1Slide 2 t-test refresher  In chapter 7 we talked about analyses that could be conducted.
AM Recitation 2/10/11.
Correlation and Linear Regression
Unequal Variance and ANOVA ©2005 Dr. B. C. Paul. ANOVA Assumptions ANOVA assumes the populations sampled in each class are normally distributed Also assumes.
Statistical Analysis Statistical Analysis
Analysis of Variance or ANOVA. In ANOVA, we are interested in comparing the means of different populations (usually more than 2 populations). Since this.
ANOVA Greg C Elvers.
1 Tests with two+ groups We have examined tests of means for a single group, and for a difference if we have a matched sample (as in husbands and wives)
1 1 Slide © 2005 Thomson/South-Western Chapter 13, Part A Analysis of Variance and Experimental Design n Introduction to Analysis of Variance n Analysis.
STA291 Statistical Methods Lecture 31. Analyzing a Design in One Factor – The One-Way Analysis of Variance Consider an experiment with a single factor.
Analysis of Covariance David Markham
Proportions for the Binomial Distribution ©2005 Dr. B. C. Paul.
One Way ANOVA ©2005 Dr. B. C. Paul modified 2009 Note – The concepts presented in these slides are considered common knowledge to those familiar with statistics.
1 1 Slide © 2004 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS St. Edward’s University Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Chi-square (χ 2 ) Fenster Chi-Square Chi-Square χ 2 Chi-Square χ 2 Tests of Statistical Significance for Nominal Level Data (Note: can also be used for.
Chapter 14 – 1 Chapter 14: Analysis of Variance Understanding Analysis of Variance The Structure of Hypothesis Testing with ANOVA Decomposition of SST.
INTRODUCTION TO ANALYSIS OF VARIANCE (ANOVA). COURSE CONTENT WHAT IS ANOVA DIFFERENT TYPES OF ANOVA ANOVA THEORY WORKED EXAMPLE IN EXCEL –GENERATING THE.
6/4/2016Slide 1 The one sample t-test compares two values for the population mean of a single variable. The two-sample t-test of population means (aka.
Analysis of Variance 1 Dr. Mohammed Alahmed Ph.D. in BioStatistics (011)
ANOVA: Analysis of Variance.
Chapter 14 – 1 Chapter 14: Analysis of Variance Understanding Analysis of Variance The Structure of Hypothesis Testing with ANOVA Decomposition of SST.
Multiple Regression ©2005 Dr. B. C. Paul. Problems with Regression So Far We have only been able to consider one factor as controlling at a time Everything.
SW318 Social Work Statistics Slide 1 One-way Analysis of Variance  1. Satisfy level of measurement requirements  Dependent variable is interval (ordinal)
1 ANALYSIS OF VARIANCE (ANOVA) Heibatollah Baghi, and Mastee Badii.
1 1 Slide © 2003 South-Western/Thomson Learning™ Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Copyright © Cengage Learning. All rights reserved. 12 Analysis of Variance.
Quadratic Regression ©2005 Dr. B. C. Paul. Fitting Second Order Effects Can also use least square error formulation to fit an equation of the form Math.
Hypothesis test flow chart frequency data Measurement scale number of variables 1 basic χ 2 test (19.5) Table I χ 2 test for independence (19.9) Table.
Statistics for Political Science Levin and Fox Chapter Seven
Comparing Different Samples ©2005 Dr. B. C. Paul modified 2009 Note- The concepts in these slides are considered common knowledge to those familiar with.
While you wait: Enter the following in your calculator. Find the mean and sample variation of each group. Bluman, Chapter 121.
Outline of Today’s Discussion 1.Independent Samples ANOVA: A Conceptual Introduction 2.Introduction To Basic Ratios 3.Basic Ratios In Excel 4.Cumulative.
Copyright © Cengage Learning. All rights reserved. 12 Analysis of Variance.
HYPOTHESIS TESTING FOR DIFFERENCES BETWEEN MEANS AND BETWEEN PROPORTIONS.
Problems with Variance ©2005 Dr. B. C. Paul. Determining What To Do We have looked at techniques that depend on normally distributed data with variance.
Independent Samples ANOVA. Outline of Today’s Discussion 1.Independent Samples ANOVA: A Conceptual Introduction 2.The Equal Variance Assumption 3.Cumulative.
 List the characteristics of the F distribution.  Conduct a test of hypothesis to determine whether the variances of two populations are equal.  Discuss.
DSCI 346 Yamasaki Lecture 4 ANalysis Of Variance.
Make Sure You Have Your Dependent Variable and Factor Selected
Lecture Slides Elementary Statistics Twelfth Edition
i) Two way ANOVA without replication
CHAPTER 3 Analysis of Variance (ANOVA)
Basic Practice of Statistics - 5th Edition
Hypothesis Testing and Comparing Two Proportions
Hypothesis tests for the difference between two proportions
What if. . . You were asked to determine if psychology and sociology majors have significantly different class attendance (i.e., the number of days.
One-Way Analysis of Variance
Presentation transcript:

Two Way ANOVA ©2005 Dr. B. C. Paul

ANOVA Application ANOVA allows us to review data and determine whether a particular effect is changing our results ANOVA allows us to review data and determine whether a particular effect is changing our results We tried the Red Rooster Carburetor on different types of cars and found that the type of car used made little difference compared to other things. We tried the Red Rooster Carburetor on different types of cars and found that the type of car used made little difference compared to other things. Sometimes we are interested in more than one possible cause Sometimes we are interested in more than one possible cause Remember too that we are only determining whether an effect is important relative to other things Remember too that we are only determining whether an effect is important relative to other things A big unaccounted for variable can mask everything else A big unaccounted for variable can mask everything else

Fuel Economy Improvement of Red Rooster Does not appear to be car dependent How about Driver Dependent How about Driver Dependent We could keep on going and testing one effect at a time We could keep on going and testing one effect at a time That could get pretty long That could get pretty long Remember too that any effect not accounted for is treated as a random variation Remember too that any effect not accounted for is treated as a random variation Random variation goes in the denominator of the F test Random variation goes in the denominator of the F test The larger the “random” variation the harder it is to see a major effect The larger the “random” variation the harder it is to see a major effect One Solution is ANOVA on more than one variable at a time One Solution is ANOVA on more than one variable at a time

Our Case Suppose we had our 10 drivers drive each of the first four cars four times, twice without the RR carburetor and twice with. Suppose we had our 10 drivers drive each of the first four cars four times, twice without the RR carburetor and twice with. Suppose we paired the results before and after and calculated % improvement Suppose we paired the results before and after and calculated % improvement The scatter in the data can now be viewed as The scatter in the data can now be viewed as Total Scatter = Difference by type of car + Difference by Driver + Difference due to interactions of Driver and Car + Everything else in the universe that we didn’t account for. Total Scatter = Difference by type of car + Difference by Driver + Difference due to interactions of Driver and Car + Everything else in the universe that we didn’t account for. Statistician’s Language Statistician’s Language SS Total =SS Treatment 1 +SS Treatement 2 +SS Interaction +SS error SS Total =SS Treatment 1 +SS Treatement 2 +SS Interaction +SS error

Enter Our Data in SPSS We have our Gas Mileage Improvement Column For each value we enter a number To tell which of the 4 cars was Tested and which of the 10 drivers Was operating the vehicle.

Oh- By the Way How Did You Get Those Cute Variable Names Up Top? Click on the Variable View Tab at the bottom.

The Result Can Enter Variable Name Can also enter width and Decimal places

Oh Yes We Were About to Run a Two Way ANOVA Go to Analyze and Click the Pull down menu Highlight General Linear Model On the pop down menu. A menu Opens to the side Highlight Univariate and Click

The Two ANOVA Menu Comes Up Highlight Your Dependent Variable (ie – in this case improvement in gas Mileage) Prepare to click on the Arrow to move it to the Dependent variable box.

Identify Your Fixed Factors Highlight Auto Click the arrow to move to Fixed factor. Next do the same with Driver We have now indicated that our gas mileage Improvement is believed to depend on the type Of car and who is driving it.

When You Are Done, Click Ok OK

Two Way ANOVA Comes Up

Looking at My Results We have effects for Auto type, Driver, and Interaction Between the auto and driver

As before the computer calculates the square of the values in each cell, calculates degrees of freedom and then divides the sum of squares by the degrees of freedom to get the mean square

We Divide our Mean Square for Treatments and interaction by the mean square error. The resulting statistic has a F distribution.

Check the Significance of Our Results For Driver our F score is which is over 99.9% Significant – English Translation “There’s not a snowballs Chance in Hell that the gas mileage improvement does not Depend on the driver. We will make sure our advertisement says “Individual Results may vary”

Checking Up on Auto Auto effect is 17.3% significant – ie there is almost A 20% chance of producing these numbers when The type of car makes no difference. Probably cannot reject the null hypothesis – we simply cannot Conclude with confidence that the type of car made a difference.

What Happened to Auto When we did our one way ANOVA we had no significance When we did our one way ANOVA we had no significance F value was something like 0.11 F value was something like 0.11 Now the number is making us wonder even though we can’t prove anything Now the number is making us wonder even though we can’t prove anything Answer is we pulled other variables out of the “error” category Answer is we pulled other variables out of the “error” category We know that the driver made a huge difference and yet we were calling that random We know that the driver made a huge difference and yet we were calling that random Not accounting for other effects can mask things that might be significant otherwise Not accounting for other effects can mask things that might be significant otherwise

Interaction There is a definite car and driver effect, ie the same driver will Achieve different results in different types of cars.

Assumptions We Made Our results and random error distributions were all normal Our results and random error distributions were all normal The error variance (unaccounted for errors) were the same for each category or car and driver The error variance (unaccounted for errors) were the same for each category or car and driver