Analysis of Variance 1 Dr. Mohammed Alahmed Ph.D. in BioStatistics (011) 4674108.

Slides:



Advertisements
Similar presentations
ANALYSIS OF VARIANCE (ONE WAY)
Advertisements

ANOVA: Analysis of Variation
Copyright ©2006 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Variance Chapter 16.
Testing Differences Among Several Sample Means Multiple t Tests vs. Analysis of Variance.
© 2010 Pearson Prentice Hall. All rights reserved The Complete Randomized Block Design.
© 2010 Pearson Prentice Hall. All rights reserved Single Factor ANOVA.
Independent Sample T-test Formula
Analysis of Variance: Inferences about 2 or More Means
PSY 307 – Statistics for the Behavioral Sciences
Intro to Statistics for the Behavioral Sciences PSYC 1900
Lecture 9: One Way ANOVA Between Subjects
Analysis of Variance & Multivariate Analysis of Variance
5-3 Inference on the Means of Two Populations, Variances Unknown
Statistical Analysis. Purpose of Statistical Analysis Determines whether the results found in an experiment are meaningful. Answers the question: –Does.
Two-Way Analysis of Variance STAT E-150 Statistical Methods.
Chi-Square and Analysis of Variance (ANOVA)
Chapter 12 ANOVA.
F-Test ( ANOVA ) & Two-Way ANOVA
Inferential Statistics: SPSS
Repeated Measures ANOVA
Statistical Analysis Statistical Analysis
QNT 531 Advanced Problems in Statistics and Research Methods
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.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on the Least-Squares Regression Model and Multiple Regression 14.
STA291 Statistical Methods Lecture 31. Analyzing a Design in One Factor – The One-Way Analysis of Variance Consider an experiment with a single factor.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Comparing Three or More Means 13.
COURSE: JUST 3900 INTRODUCTORY STATISTICS FOR CRIMINAL JUSTICE Instructor: Dr. John J. Kerbs, Associate Professor Joint Ph.D. in Social Work and Sociology.
Chapter 11 HYPOTHESIS TESTING USING THE ONE-WAY ANALYSIS OF VARIANCE.
 The idea of ANOVA  Comparing several means  The problem of multiple comparisons  The ANOVA F test 1.
Analysis of variance Petter Mostad Comparing more than two groups Up to now we have studied situations with –One observation per object One.
PSY 307 – Statistics for the Behavioral Sciences Chapter 16 – One-Factor Analysis of Variance (ANOVA)
ANOVA (Analysis of Variance) by Aziza Munir
Basic concept Measures of central tendency Measures of central tendency Measures of dispersion & variability.
Psychology 301 Chapters & Differences Between Two Means Introduction to Analysis of Variance Multiple Comparisons.
10/22/20151 PUAF 610 TA Session 8. 10/22/20152 Recover from midterm.
Testing Hypotheses about Differences among Several Means.
INTRODUCTION TO ANALYSIS OF VARIANCE (ANOVA). COURSE CONTENT WHAT IS ANOVA DIFFERENT TYPES OF ANOVA ANOVA THEORY WORKED EXAMPLE IN EXCEL –GENERATING THE.
Comparing Three or More Means ANOVA (One-Way Analysis of Variance)
6/2/2016Slide 1 To extend the comparison of population means beyond the two groups tested by the independent samples t-test, we use a one-way analysis.
Essential Question:  How do scientists use statistical analyses to draw meaningful conclusions from experimental results?
ANOVA: Analysis of Variance. The basic ANOVA situation Two variables: 1 Nominal, 1 Quantitative Main Question: Do the (means of) the quantitative variables.
Analysis of Variance (ANOVA) Brian Healy, PhD BIO203.
ANOVA: Analysis of Variance.
Chapter 12: Analysis of Variance. Chapter Goals Test a hypothesis about several means. Consider the analysis of variance technique (ANOVA). Restrict the.
CHAPTER 4 Analysis of Variance One-way ANOVA
Previous Lecture: Phylogenetics. Analysis of Variance This Lecture Judy Zhong Ph.D.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 14 Comparing Groups: Analysis of Variance Methods Section 14.1 One-Way ANOVA: Comparing.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
While you wait: Enter the following in your calculator. Find the mean and sample variation of each group. Bluman, Chapter 121.
1 ANALYSIS OF VARIANCE (ANOVA) Heibatollah Baghi, and Mastee Badii.
Copyright © Cengage Learning. All rights reserved. 12 Analysis of Variance.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics S eventh Edition By Brase and Brase Prepared by: Lynn Smith.
Chapter 12 Introduction to Analysis of Variance PowerPoint Lecture Slides Essentials of Statistics for the Behavioral Sciences Eighth Edition by Frederick.
Psych 230 Psychological Measurement and Statistics Pedro Wolf November 18, 2009.
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.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved Lecture Slides Elementary Statistics Eleventh Edition and the Triola.
McGraw-Hill, Bluman, 7th ed., Chapter 12
McGraw-Hill, Bluman, 7th ed., Chapter 12
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Analysis of Variance STAT E-150 Statistical Methods.
Analysis of variance Tron Anders Moger
While you wait: Enter the following in your calculator. Find the mean and sample variation of each group. Bluman, Chapter 121.
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Lecture Slides Elementary Statistics Tenth Edition and the.
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.
Chapter 15 Analysis of Variance. The article “Could Mean Platelet Volume be a Predictive Marker for Acute Myocardial Infarction?” (Medical Science Monitor,
When the means of two groups are to be compared (where each group consists of subjects that are not related) then the excel two-sample t-test procedure.
Chapter 13 f distribution and 0ne-way anova
i) Two way ANOVA without replication
Comparing Three or More Means
STATISTICS INFORMED DECISIONS USING DATA
Presentation transcript:

Analysis of Variance 1 Dr. Mohammed Alahmed Ph.D. in BioStatistics (011)

Introduction Analysis of variance (ANOVA), as the name implies, is a statistical technique that is intended to analyze variability in data in order to infer the inequality among population means The purpose of ANOVA is much the same as the t- tests presented in the preceding sections. The goal is to determine whether the mean differences that are obtained for sample data are sufficiently large to justify a conclusion that there are mean differences between the populations from which the samples were obtained. 2

The difference between ANOVA and the t-tests is that ANOVA can be used in situations where there are more than two means being compared, whereas the t-tests are limited to situations where only two means are involved. If more than two means are compared, repeated use of the independent-samples t-test will lead to a higher Type I error rate  than the  level set for each t-test. (multiple comparison problem) 3

The basic ANOVA situation Variables in ANOVA: –Dependent variable is metric. –Independent variable(s) is nominal with two or more levels – also called treatment, manipulation, or factor. One-Way ANOVA: –Two variables: 1 Categorical, 1 Quantitative –Main Question: Do the (means of) the quantitative variables depend on which group (given by categorical variable) the individual is in? –If categorical variable has only 2 values: 2-sample t-test –ANOVA allows for 3 or more groups. 4

AVOVA Hypotheses The null hypothesis: – The means for all groups are the same (equal). H 0 :  1 =  2 = ………. =  k The alternative hypothesis: – The means are different for at least one pair of groups. H 1 :  1   2  ……….   k If we reject H 0 How do you determine which means are significantly different? 5

Before we begin, we must consider the assumptions required to use ANOVA –The underlying distributions of the populations are normal. –The variance of each group is equal (This is critical for ANOVA). 6

If all of the groups had the same means, the distributions for all of the populations would look exactly the same (overlaid graphs) 7 Now, if the means of the populations were different, the picture would look like this. Notice that the variability between the groups is much greater than within a group

Sources of variance When we take samples from each group, there will be two sources of variability: –Within group variability - when we sample from a group there will be variability from person to person in the same group –Between group variability – the difference from group to group If the between group variability is large, the means of the groups are likely not to bethe same We can use the two types of variability to determine if the means are likely different 8

Blue arrow: within group, red arrow: between group Notice that when the distribution are separate, the between group variability is much greater than the within group 9

Notation for ANOVA All groups: n = number of individuals all together K = number of groups = mean for entire data set is Group i has: n i = # of individuals in group k x ij = value for individual j in group k = mean for group k s i = standard deviation for group k 10

Sources of variability ANOVA measures two sources of variation in the data and compares their relative sizes: 1. variation BETWEEN groups: for each data value look at the difference between its group mean and the overall mean. 2. variation WITHIN groups: for each data value we look at the difference between that value and the mean of its group. 11

F-statistic The F-statistic assesses whether you can conclude that statistical differences are present somewhere between the group means. The F-statistic is a ratio of the Between Group Variation divided by the Within Group Variation: This test statistic is compared to an F-table with k-1 and n-k degrees of freedom A large F is evidence against H 0, since it indicates that there is more difference between groups than within groups. 12

ANOVA Table Source of variation SSdfMSFp-value BetweenSS B k - 1MS B MS B /MS W WithinSS W n - kMS W TotalSS T n Total sum of squares (SS T ) Within group sum of squares (SS W ) Between group sum of squares (SS B ) + =

Example A researcher wishes to try three different techniques to lower the blood pressure of individuals diagnosed with high blood pressure. The subjects are randomly assigned to three groups; the first group takes medication, the second group exercises, and the third group follows a special diet. After four weeks, the reduction in each person’s blood pressure is recorded. 14

The data are: 15 At α = 0.05, test the claim that there is no difference among the means The hypotheses to be tested are: H 0 : μ 1 = μ 2 = μ 3 H 1 : At least one mean is different from the others

Analyze → Compare Means → One-Way Anova In the One-Way ANOVA menu window, place “Bp” in the Dependent List box and “Treatment” in the Factor box, 16

To complete the process described in the text, select OK in this window without doing anything else. The resulting output is the ANOVA table shown below. 17 As mentioned in the text, this result allows us only to conclude that at least one (true) treatment mean differs from the others; we can say nothing about the relative sizes of the (true) treatment means Further tests can be performed to determine which treatment mean(s) differ and, consequently, determine which (true) treatment mean(s) might have the highest (or lowest) values since p <α, the null hypothesis is rejected.

Verifying the Assumptions for the One- Way ANOVA F-test The assumptions for the one-way ANOVA F-test, as expressed in in the text, are: 1.The populations from which the samples were obtained must be normally or approximately normally distributed. 2.The samples must be independent of one another 3.The variances of the populations must be equal 18

Assessing the normality and constant variance assumptions 19 Analyze → Descriptive Statistics → Explore

This table provides results of the test of the following hypotheses: H 0 : The population random variable is normally distributed H 1 : The population random variable is not normally distributed An ideal Normal QQ Plot will have plotted points that appear to approximately fit a linear trend; If the error bars are close to each other in length, as appears to be the case here, one might expect the constant variance assumption to be approximately valid. 20

The second table of use is that of the “Test of Homogeneity of Variances” shown below The test to use here is the one that is “Based on Median”. This table provides results of the test of the following hypotheses: H 0 : The population variances are equal H 1 : The population variances are not equal. The p-value given in the last column is sufficiently large to conclude that the assumption of constant variances should not be rejected – The constant variance assumption may be assumed valid. Verifying the validity of the independence assumption: The validity of the independence assumption can be difficult to assess. The best approach is to ensure that the independence of the samples is ensured by proper sampling and data collection practices. 21

Pair-wise Comparisons of Treatment Means Where’s the Difference? –Once ANOVA indicates that the groups do not all appear to have the same means, what do we do? –We can do pair wise comparisons to determine which specific means are different, but we must still take into account the problem with multiple comparisons! 22

click on the Post Hoc 23

We conclude that there is a significant difference between the medication group and exercise group, but no difference between the medication and diet and exercise and diet. 24