ANOVA test.

Slides:



Advertisements
Similar presentations
“Students” t-test.
Advertisements

Lecture (11,12) Parameter Estimation of PDF and Fitting a Distribution Function.
Analysis of Variance (ANOVA) ANOVA can be used to test for the equality of three or more population means We want to use the sample results to test the.
Research Methods for Counselors COUN 597 University of Saint Joseph Class # 8 Copyright © 2015 by R. Halstead. All rights reserved.
BHS Methods in Behavioral Sciences I April 25, 2003 Chapter 6 (Ray) The Logic of Hypothesis Testing.
Independent Sample T-test Formula
Comparing Two Samples: Part II
Hypothesis Testing :The Difference between two population mean :
Introduction to Analysis of Variance (ANOVA)
Richard M. Jacobs, OSA, Ph.D.
AM Recitation 2/10/11.
Fundamentals of Data Analysis Lecture 4 Testing of statistical hypotheses.
Chapter 9 Hypothesis Testing and Estimation for Two Population Parameters.
Chapter 11 HYPOTHESIS TESTING USING THE ONE-WAY ANALYSIS OF VARIANCE.
Statistical Decision Making. Almost all problems in statistics can be formulated as a problem of making a decision. That is given some data observed from.
Educational Research: Competencies for Analysis and Application, 9 th edition. Gay, Mills, & Airasian © 2009 Pearson Education, Inc. All rights reserved.
Parametric tests (independent t- test and paired t-test & ANOVA) Dr. Omar Al Jadaan.
Inference and Inferential Statistics Methods of Educational Research EDU 660.
ANALYSIS OF VARIANCE (ANOVA) BCT 2053 CHAPTER 5. CONTENT 5.1 Introduction to ANOVA 5.2 One-Way ANOVA 5.3 Two-Way ANOVA.
Analysis of Variance 1 Dr. Mohammed Alahmed Ph.D. in BioStatistics (011)
© Copyright McGraw-Hill 2000
Chapter 13 - ANOVA. ANOVA Be able to explain in general terms and using an example what a one-way ANOVA is (370). Know the purpose of the one-way ANOVA.
Chapter 12 Introduction to Analysis of Variance PowerPoint Lecture Slides Essentials of Statistics for the Behavioral Sciences Eighth Edition by Frederick.
T tests comparing two means t tests comparing two means.
- We have samples for each of two conditions. We provide an answer for “Are the two sample means significantly different from each other, or could both.
CHAPTER 10 ANOVA - One way ANOVa.
Module 25: Confidence Intervals and Hypothesis Tests for Variances for One Sample This module discusses confidence intervals and hypothesis tests.
Educational Research Inferential Statistics Chapter th Chapter 12- 8th Gay and Airasian.
 List the characteristics of the F distribution.  Conduct a test of hypothesis to determine whether the variances of two populations are equal.  Discuss.
Statistical Decision Making. Almost all problems in statistics can be formulated as a problem of making a decision. That is given some data observed from.
Chapter 12 Introduction to Analysis of Variance
Chapter 9 Introduction to the t Statistic
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.
Review of Central Tendency & Dispersion
Chi-square test.
CHAPTER 3 Analysis of Variance (ANOVA) PART 1
Statistical Significance
Unit 8 Section 7.5.
Lecture Nine - Twelve Tests of Significance.
Part Four ANALYSIS AND PRESENTATION OF DATA
Confidence Intervals and Hypothesis Tests for Variances for One Sample
Inferential Statistics
i) Two way ANOVA without replication
Comparing Three or More Means
“Students” t-test Prof Dr Najlaa Fawzi
Post Hoc Tests on One-Way ANOVA
Post Hoc Tests on One-Way ANOVA
Inferential Statistics and Probability a Holistic Approach
Chapter 14 Repeated Measures
Kin 304 Inferential Statistics
Last class Tutorial 1 Census Overview
Monday, October 19 Hypothesis testing using the normal Z-distribution.
I. Statistical Tests: Why do we use them? What do they involve?
Statistics for the Social Sciences
Inferential Stat Week 13.
One way ANALYSIS OF VARIANCE (ANOVA)
One-Way Analysis of Variance
Psych 231: Research Methods in Psychology
Psych 231: Research Methods in Psychology
Statistics for the Social Sciences
What are their purposes? What kinds?
Psych 231: Research Methods in Psychology
Psych 231: Research Methods in Psychology
1.3. Statistical hypothesis tests
Statistical Inference for the Mean: t-test
BHS Methods in Behavioral Sciences I
Quantitative Methods ANOVA.
STATISTICS INFORMED DECISIONS USING DATA
Presentation transcript:

ANOVA test

ANOVA A specific statement or hypothesis is generated about a population parameter, and sample statistics are used to assess the likehood that the hypothesis is true. ANOVA is a test of hypothesis that is appropriate to compare means of a continuous variable in two or more independent comparison groups. The test statistic must take into account the sample sizes, sample means or sample standard deviations in each of the comparison groups.

ANOVA The ANOVA approach: Consider an example with 3 independent groups and continuous outcome measure. The sample data are organized as follows: Group 1 Group 2 Group 3 Group4 Sample size n1 n2 n3 n4 Sample Mean 𝑥 1 𝑥 2 𝑥 3 𝑥 4 Sample SD s1 s2 s3 s4

ANOVA Hypothesis building: Ho: μ1 = μ2 = μ3 = μ4 Ha: The means are not equal. for ANOVA, the alternative hypothesis captures any differences in means and include, for example the situation where all the means are unique, when one is different from the other three, where two are different…and so on.

ANOVA 2. The test statistic for testing Ho: (μ1 = μ2 = μ3 = μ4 )

ANOVA 3. The critical value is found in a table of probability values for the F distribution with (degrees of freedom) df1 = k-1, df2=N-k.

ANOVA 4. Decision We reject H0 if Ft < Fc We accept H0 if Ft < Fc

Example A study is designed to test whether there is a difference in the mean for the content of N in the soil for three different samples (of 6 observations each) taken in three different positions. The data are shown below: Point 1 Point 2 Point 3 1200 1000 890 1100 650 980 700 900 800 750 500 400 350

ANOVA Is there a statistically difference in mean content of N when comparing three samples for three different positions? We will run the ANOVA using the 4-steps approach.

library(MASS) # load the MASS package data<-c(1200,1000,980,900,750,800,1000,1100,700,800,500,700,890,650,1100,900,400,350) f = c("Point1","Point2","Point3") k = 3 # number of treatment levels n = 6 # observations per treatment tm = gl(k, 1, n*k, factor(f)) # matching treatments av = aov(data ~ tm) summary(av)

ANOVA Analysis of Variance Comparison of means/variance between more than two samples Can also compare within a multi-factorial design Assumptions of linear model apply Can be followed up with a Post-Hoc test to determine which groups are significantly different (e.g. Tukey HSD)

ANOVA

Exercise 5 Does the quantity of N fertilizer applied influence crop growth? 1 kg.ha 10 kg.ha 100 kg.ha 1.00 1.10 0.87 0.95 1.15 0.88 0.98 1.13 0.92 0.94 1.18 0.97 1.16 0.90

Implementation in R A two step process: Use the function: Run a linear model Apply the outcome of the linear model to ANOVA Use the function: aov(response~terms) This runs the linear model followed by ANOVA lm(response~terms) anova(lm) BALANCED DESIGN

Exercise 6 In this exercise we will use the internal dataset “ChickWeight” Ho: Diet does not effect 20 day old chicken weight Create a boxplot of the data Consider we are looking at differences in the mean, can you see if there are any means that look different? Conduct an ANOVA analysis Conduct a post-hoc test (TukeyHSD)

Exercise 6 – R code Data(ChickWeight) Attach(ChickWeight) boxplot(weight[Time==20]~Diet[Time==20]) summary(lm(weight[Time==20]~Diet[Time==20])) summary(aov(weight[Time==20]~Diet[Time==20])) TukeyHSD(aov(weight[Time==20]~Diet[Time==20]))

Exercise 7 Confirm Exercise 2 excel test within R The file can be imported into R (“crop.RData”)

References References: http://www.r-tutor.com http://www.cyclismo.org/tutorial/R/types.html https://www.ijsr.net/archive/v3i8/MDIwMTU0ODU=.pdf Chun and Griffith (2013). Spatial Statistics and Geostatistics (Book) www.sphweb.bumc.bu.edu (Dr. Sullivan Notes) Master of Photogrammetry and Geoinformatics (Dr. Rawirl Notes)