Dr. Omar Al Jadaan Assistant Professor – Computer Science & Mathematics ANalysis Of VAriance: ANOVA.

Slides:



Advertisements
Similar presentations
BPS - 5th Ed. Chapter 241 One-Way Analysis of Variance: Comparing Several Means.
Advertisements

CHAPTER 25: One-Way Analysis of Variance Comparing Several Means
ANOVA (Analysis of Variance)
ANOVA: Analysis of Variation
Nonparametric tests and ANOVAs: What you need to know.
© 2010 Pearson Prentice Hall. All rights reserved Single Factor ANOVA.
Copyright ©2011 Brooks/Cole, Cengage Learning Analysis of Variance Chapter 16 1.
Statistics for Managers Using Microsoft® Excel 5th Edition
Chapter Seventeen HYPOTHESIS TESTING
Lecture 13 – Tues, Oct 21 Comparisons Among Several Groups – Introduction (Case Study 5.1.1) Comparing Any Two of the Several Means (Chapter 5.2) The One-Way.
Analysis of Variance. Experimental Design u Investigator controls one or more independent variables –Called treatment variables or factors –Contain two.
ANOVA Determining Which Means Differ in Single Factor Models Determining Which Means Differ in Single Factor Models.
Statistics 303 Chapter 12 ANalysis Of VAriance. ANOVA: Comparing Several Means The statistical methodology for comparing several means is called analysis.
Statistics Are Fun! Analysis of Variance
Statistics for Managers Using Microsoft® Excel 5th Edition
Chapter 14 Conducting & Reading Research Baumgartner et al Chapter 14 Inferential Data Analysis.
Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide Are the Means of Several Groups Equal? Ho:Ha: Consider the following.
Chapter 17 Analysis of Variance
13-1 Designing Engineering Experiments Every experiment involves a sequence of activities: Conjecture – the original hypothesis that motivates the.
Lecture 12 One-way Analysis of Variance (Chapter 15.2)
Biostatistics in Research Practice: Non-parametric tests Dr Victoria Allgar.
January 7, morning session 1 Statistics Micro Mini Multi-factor ANOVA January 5-9, 2008 Beth Ayers.
13 Design and Analysis of Single-Factor Experiments:
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Analysis of Variance Statistics for Managers Using Microsoft.
Chapter 12: Analysis of Variance
F-Test ( ANOVA ) & Two-Way ANOVA
STAT 3130 Statistical Methods I Session 2 One Way Analysis of Variance (ANOVA)
QNT 531 Advanced Problems in Statistics and Research Methods
11. Analysis of Variance (ANOVA). Analysis of Variance Review of T-Test ✔ The basic ANOVA situation How ANOVA works One factor ANOVA model ANCOVA and.
STA291 Statistical Methods Lecture 31. Analyzing a Design in One Factor – The One-Way Analysis of Variance Consider an experiment with a single factor.
INFERENTIAL STATISTICS: Analysis Of Variance ANOVA
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Comparing Three or More Means 13.
Chapter 10 Comparing Two Means Target Goal: I can use two-sample t procedures to compare two means. 10.2a h.w: pg. 626: 29 – 32, pg. 652: 35, 37, 57.
© 2002 Prentice-Hall, Inc.Chap 9-1 Statistics for Managers Using Microsoft Excel 3 rd Edition Chapter 9 Analysis of Variance.
 The idea of ANOVA  Comparing several means  The problem of multiple comparisons  The ANOVA F test 1.
ANOVA One Way Analysis of Variance. ANOVA Purpose: To assess whether there are differences between means of multiple groups. ANOVA provides evidence.
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
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Parametric tests (independent t- test and paired t-test & ANOVA) Dr. Omar Al Jadaan.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Analysis of Variance Statistics for Managers Using Microsoft.
Comparing Three or More Means ANOVA (One-Way Analysis of Variance)
Analysis of Variance 1 Dr. Mohammed Alahmed Ph.D. in BioStatistics (011)
ANOVA: Analysis of Variance. The basic ANOVA situation Two variables: 1 Nominal, 1 Quantitative Main Question: Do the (means of) the quantitative variables.
Chapter 15 – Analysis of Variance Math 22 Introductory Statistics.
Lecture 9-1 Analysis of Variance
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.
The Analysis of Variance. One-Way ANOVA  We use ANOVA when we want to look at statistical relationships (difference in means for example) between more.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 14 Comparing Groups: Analysis of Variance Methods Section 14.3 Two-Way ANOVA.
AP Statistics: ANOVA Section 1. In section 13.1 A, we used a t-test to compare the means between two groups. An ANOVA (ANalysis Of VAriance) test is used.
Chapter 4 Analysis of Variance
One-way ANOVA Example Analysis of Variance Hypotheses Model & Assumptions Analysis of Variance Multiple Comparisons Checking Assumptions.
Analysis of Variance STAT E-150 Statistical Methods.
Analysis of variance Tron Anders Moger
Formula for Linear Regression y = bx + a Y variable plotted on vertical axis. X variable plotted on horizontal axis. Slope or the change in y for every.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Experimental Design and Analysis of Variance Chapter 11.
The basic ANOVA situation Two variables: 1 Categorical, other variable interval or ratio Main Question: Do the (means of) the quantitative variables depend.
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,
ANOVA: Analysis of Variation
ANOVA: Analysis of Variation
ANOVA: Analysis of Variation
ANOVA: Analysis of Variation
Two-Sample Hypothesis Testing
i) Two way ANOVA without replication
ANOVA: Analysis of Variance
Presentation transcript:

Dr. Omar Al Jadaan Assistant Professor – Computer Science & Mathematics ANalysis Of VAriance: ANOVA

ANOVA is a parametric test which assumes that the data analyzed:parametric test Be continuous, interval data comprising a whole population or sampled randomly from a population.continuous, interval data Has a normal distribution. Moderate departure from the normal distribution does not unduly disturb the outcome of ANOVA, especially as sample sizes increase. Highly skewed datasets result in inaccurate conclusions.normal distribution The groups are independent of each other. The variances in the two groups should be similar.variances For two-way ANOVA, the sample size the groups is equal (for one- way ANOVA, sample sizes need not be equal, but should not differ hugely between the groups).

One-way (or one-factor) ANOVA: Tests the hypothesis that means from two or more samples are equal (drawn from populations with the same mean). Student's t-test is actually a particular application of one-way ANOVA (two groups compared) and results in the same conclusions. ANOVA allows for 3 or more groups

Two-way (or two-factor) ANOVA: Simultaneously tests the hypothesis that the means of two variables ("factors") from two or more groups are equal (drawn from populations with the same mean), e.g. the difference between a control and an experimental variable, or whether there is a difference between alcohol consumption and liver disease in several different countries. Does not include more than one sampling per group. This test allows comments to be made about the interaction between factors as well as between groups.

The F ratio The F (Fisher) ratio compares the variance within sample groups ("inherent variance") with the variance between groups ("treatment effect") and is the basis for ANOVA:variance F = variance between groups / variance within sample groups

An example ANOVA situation Subjects: 25 patients with blisters Treatments: Treatment A, Treatment B, Placebo Measurement: # of days until blisters heal Data [and means]: A: 5,6,6,7,7,8,9,10 [7.25] B: 7,7,8,9,9,10,10,11 [8.875] P: 7,9,9,10,10,10,11,12,13 [10.11] Are these differences significant?

Informal Investigation Graphical investigation: side-by-side box plots multiple histograms Whether the differences between the groups are significant depends on the difference in the means the standard deviations of each group the sample sizes ANOVA determines P-value from the F statistic

Side by Side Boxplots

What does ANOVA do? At its simplest (there are extensions) ANOVA tests the following hypotheses: H 0 : The means of all the groups are equal. H a : Not all the means are equal doesn’t say how or which ones differ. Can follow up with “multiple comparisons” Note: we usually refer to the sub-populations as “groups” when doing ANOVA.

Assumptions of ANOVA each group is approximately normal · check this by looking at histograms and/or normal quantile plots, or use assumptions · can handle some nonnormality, but not severe outliers standard deviations of each group are approximately equal · rule of thumb: ratio of largest to smallest sample st. dev. must be less than 2:1

Normality Check We should check for normality using: assumptions about population histograms for each group normal quantile plot for each group With such small data sets, there really isn’t a really good way to check normality from data, but we make the common assumption that physical measurements of people tend to be normally distributed.

Standard Deviation Check Variable treatment N Mean Median StDev days A B P Compare largest and smallest standard deviations: largest: smallest: x 2 = > Note: variance ratio of 4:1 is equivalent.

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

How ANOVA works (outline) ANOVA measures two sources of variation in the data and compares their relative sizes variation BETWEEN groups for each data value look at the difference between its group mean and the overall mean variation WITHIN groups for each data value we look at the difference between that value and the mean of its group

The ANOVA F-statistic is a ratio of the Between Group Variaton divided by the Within Group Variation: A large F is evidence against H 0, since it indicates that there is more difference between groups than within groups.

How are these computations made? We want to measure the amount of variation due to BETWEEN group variation and WITHIN group variation For each data value, we calculate its contribution to: BETWEEN group variation: WITHIN group variation:

An even smaller example Suppose we have three groups Group 1: 5.3, 6.0, 6.7 Group 2: 5.5, 6.2, 6.4, 5.7 Group 3: 7.5, 7.2, 7.9 We get the following statistics:

Excel ANOVA Output 1 less than number of groups number of data values - number of groups (equals df for each group added together) 1 less than number of individuals (just like other situations)

Computing ANOVA F statistic overall mean: 6.44F = / =

So How big is F? Since F is Mean Square Between / Mean Square Within = MSG / MSE A large value of F indicates relatively more difference between groups than within groups (evidence against H 0 )