One-Way ANOVA Class 16. HANDS ON STATS PRACTICE SPSS Demo in Computer Lab (Hill Hall Rm. 124) Tuesday, Nov. 17 5:00 to 7:30 Hill Hall, Room 124 Homework.

Slides:



Advertisements
Similar presentations
Comparing Two Population Means The Two-Sample T-Test and T-Interval.
Advertisements

Using Statistics in Research Psych 231: Research Methods in Psychology.
Independent Sample T-test Formula
Using Statistics in Research Psych 231: Research Methods in Psychology.
Experimental Design & Analysis
Analysis of Variance: Inferences about 2 or More Means
Chapter 3 Analysis of Variance
PSY 307 – Statistics for the Behavioral Sciences
Two Groups Too Many? Try Analysis of Variance (ANOVA)
One-way Between Groups Analysis of Variance
Using Statistics in Research Psych 231: Research Methods in Psychology.
Introduction to Analysis of Variance (ANOVA)
Inferential Statistics
Statistical Analysis. Purpose of Statistical Analysis Determines whether the results found in an experiment are meaningful. Answers the question: –Does.
Inferential Statistics
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.
Jeopardy Hypothesis Testing T-test Basics T for Indep. Samples Z-scores Probability $100 $200$200 $300 $500 $400 $300 $400 $300 $400 $500 $400.
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)
Stats Lunch: Day 7 One-Way ANOVA. Basic Steps of Calculating an ANOVA M = 3 M = 6 M = 10 Remember, there are 2 ways to estimate pop. variance in ANOVA:
One-Way Analysis of Variance Comparing means of more than 2 independent samples 1.
t(ea) for Two: Test between the Means of Different Groups When you want to know if there is a ‘difference’ between the two groups in the mean Use “t-test”.
PSY 307 – Statistics for the Behavioral Sciences Chapter 16 – One-Factor Analysis of Variance (ANOVA)
One-way Analysis of Variance 1-Factor ANOVA. Previously… We learned how to determine the probability that one sample belongs to a certain population.
Lecturer’s desk INTEGRATED LEARNING CENTER ILC 120 Screen Row A Row B Row C Row D Row E Row F Row G Row.
1 Chapter 13 Analysis of Variance. 2 Chapter Outline  An introduction to experimental design and analysis of variance  Analysis of Variance and the.
Testing Hypotheses about Differences among Several Means.
Statistics (cont.) Psych 231: Research Methods in Psychology.
Chapter 14 – 1 Chapter 14: Analysis of Variance Understanding Analysis of Variance The Structure of Hypothesis Testing with ANOVA Decomposition of SST.
One-Way ANOVA Class 16. Schedule for Remainder of Semester 1. ANOVA: One way, Two way 2. Planned contrasts 3. Correlation and Regression 4. Moderated.
One-Way ANOVA ANOVA = Analysis of Variance This is a technique used to analyze the results of an experiment when you have more than two groups.
Essential Question:  How do scientists use statistical analyses to draw meaningful conclusions from experimental results?
Jeopardy Hypothesis Testing t-test Basics t for Indep. Samples Related Samples t— Didn’t cover— Skip for now Ancient History $100 $200$200 $300 $500 $400.
Chapter 14 – 1 Chapter 14: Analysis of Variance Understanding Analysis of Variance The Structure of Hypothesis Testing with ANOVA Decomposition of SST.
Previous Lecture: Phylogenetics. Analysis of Variance This Lecture Judy Zhong Ph.D.
1 ANALYSIS OF VARIANCE (ANOVA) Heibatollah Baghi, and Mastee Badii.
Comparing Two Means Dependent and Independent T-Tests Class 14.
Three Broad Purposes of Quantitative Research 1. Description 2. Theory Testing 3. Theory Generation.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics S eventh Edition By Brase and Brase Prepared by: Lynn Smith.
Inferential Statistics Inferential statistics allow us to infer the characteristic(s) of a population from sample data Slightly different terms and symbols.
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.
One-Way Analysis of Variance Recapitulation Recapitulation 1. Comparing differences among three or more subsamples requires a different statistical test.
CHAPTER 10 ANOVA - One way ANOVa.
Introduction to ANOVA Research Designs for ANOVAs Type I Error and Multiple Hypothesis Tests The Logic of ANOVA ANOVA vocabulary, notation, and formulas.
Oneway/Randomized Block Designs Q560: Experimental Methods in Cognitive Science Lecture 8.
ANOVA I Class 13. Schedule for Remainder of Semester 1. ANOVA: One way, Two way 2. Planned contrasts 3. Moderated multiple regression 4. Data management.
Chapter 9 Introduction to the Analysis of Variance Part 1: Oct. 22, 2013.
ANOVA II (Part 1) Class 15. Follow-up Points size of sample (n) and power of test. How are “inferential stats” inferential?
Statistics (cont.) Psych 231: Research Methods in Psychology.
Chapter 13 Understanding research results: statistical inference.
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.
BIOL 582 Lecture Set 2 Inferential Statistics, Hypotheses, and Resampling.
Statistics (cont.) Psych 231: Research Methods in Psychology.
©2013, The McGraw-Hill Companies, Inc. All Rights Reserved Chapter 4 Investigating the Difference in Scores.
CHAPTER 10: ANALYSIS OF VARIANCE(ANOVA) Leon-Guerrero and Frankfort-Nachmias, Essentials of Statistics for a Diverse Society.
Inferential Statistics Psych 231: Research Methods in Psychology.
Introduction to Statistics for the Social Sciences SBS200, COMM200, GEOG200, PA200, POL200, or SOC200 Lecture Section 001, Spring 2016 Room 150 Harvill.
ANOVA I (Part 2) Class 14. How Do You Regard Those Who Disclose? EVALUATIVE DIMENSION GoodBad Beautiful;Ugly SweetSour POTENCY DIMENSION StrongWeak.
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.
Six Easy Steps for an ANOVA 1) State the hypothesis 2) Find the F-critical value 3) Calculate the F-value 4) Decision 5) Create the summary table 6) Put.
T-Tests and ANOVA I Class 15.
Schedule for Remainder of Semester
Psych 231: Research Methods in Psychology
Psych 231: Research Methods in Psychology
Psych 231: Research Methods in Psychology
Psych 231: Research Methods in Psychology
Psych 231: Research Methods in Psychology
Chapter 10 – Part II Analysis of Variance
Presentation transcript:

One-Way ANOVA Class 16

HANDS ON STATS PRACTICE SPSS Demo in Computer Lab (Hill Hall Rm. 124) Tuesday, Nov. 17 5:00 to 7:30 Hill Hall, Room 124 Homework : Extra Credit: 3 Pts full credit, 1 pt partial credit Homework corresponds to Computer Lab

Schedule for Remainder of Semester 1. ANOVA: One way, Two way 2. Planned contrasts 3. Correlation and Regression 4. Moderated Multiple Regression 5. Survey design 6. Non-experimental designs IF TIME PERMITS 7. Writing up research Quiz 2: Nov up to and including one-way ANOVA Quiz 3:Dec. 3 – What we’ve covered by Dec. 3 Class Assignment: Assigned Dec. 1, Due Dec. 10

ANOVA ANOVA = Analysis of Variance Next 4-5 classes focus on ANOVA and Planned Contrasts One-Way ANOVA – tests differences between 2 or more independent groups. (t-test only 2 groups) Goals for ANOVA series : 1. What is ANOVA, tasks it can do, how it works. 2. Provide intro to SPSS for Windows ANOVA 3. Objective: you will be able to run ANOVA on SPSS, and be able to interpret results. Notes on Keppel reading: 1. Clearest exposition on ANOVA 2. Assumes no math background, very intuitive 3. Language not gender neutral, more recent eds. are.

Basic Principle of ANOVA Amount Distributions Differ Amount Distributions Overlap Amount Distinct Variance Amount Shared Variance Amount Treatment Groups Differ Amount Treatment Groups the Same Same as

How Do You Regard Those Who Disclose? EVALUATIVE DIMENSION GoodBad Beautiful;Ugly SweetSour POTENCY DIMENSION StrongWeak LargeSmall HeavyLight ACTIVITY DIMENSION ActivePassive FastSlow HotCold

Birth Order Means

Activity Ratings of People Who Disclose Emotions As a Function of Birth Order Activity Rating

Do Means Significantly Differ? OldestYoungest OldestYoungest

Logic of Inferential Statistics: Is the null hypothesis supported? Null Hypothesis Different sub-samples are equivalent representations of same overall population. Differences between sub-samples are random. “First Born and Last Born rate disclosers equally” Alternative Hypothesis Different sub-samples do not represent the same overall population. Instead each represent distinct populations. Differences between them are systematic, not random. “First Born rate disclosers differently than do Last Born ”

Logic of F Test and Hypothesis Testing Form of F Test: Between Group Differences Within Group Differences Meaningful Differences Random Differences Purpose: Test null hypothesis: Between Group = Within Group = Random Error Interpretation: If null hypothesis is not supported then Between Group diffs are not simply random error, but instead reflect effect of the independent variable. Result: Null hypothesis is rejected, alt. hypothesis is supported

F Ratio F = Between Group Difference Within Group Differences F = Treatment Effects + Error Error Ronald Fisher,

F Ratio if Null True, VS. if Alt. True Null Hyp true: F = (Treatment Effects = 0) + Error Error Null Hyp true: F = Error = Error Alt. Hyp true: F = (Treatment Effects > 0) + Error Error Alt. Hyp true: F = (Treatment Effects) + Error = Error 1 >1

ANOVA JOB: Estimate Magnitude of Variances NEED TWO MEASURES OF VARIABILTY TO ANSWER THIS QUESTION 1.Treatment effects (Between Group Var.) 2. Random diffs between subjects (Within Group Var.) Thus, ANOVA = Analysis of Variances How much do systematic (meaningful) diffs. between experimental conditions exceed random error?

Key Point : Each score contains both group effect and random error

Rating made by Sub. 1, Oldest Group

Birth Order and Ratings of “Activity” Deviation Scores AS Total Between Within (AS – T) = (A – T) +(AS – A) 1.33 (-2.97)= (-1.17) +(-1.80) 2.00(-2.30)=(-1.17) +(-1.13) 3.33(-0.97)=(-1.17) + ( 0.20) 4.33(0.03)=(-1.17) +( 1.20) 4.67(0.37)=(-1.17) + ( 1.54) 4.33 (0.03)= (1.17) +(-1.14) 5.00(0.07)= (1.17) +(-0.47) 5.33(1.03)= (1.17) + (-0.14) 5.67(1.37)= (1.17) +( 0.20) 7.00(2.70)= (1.17) + ( 1.53) Sum: (0) = (0) + (0) Mean scores : Oldest (a 1 ) = 3.13 Youngest ( a 2 ) = 5.47 Total (T) = 4.30 Why are these "0" sums a problem? How do we fix this? Level a 1: Oldest Child; A 1 = 3.13 Level a 2: Youngest Child: A 2 = 5.47

AS 1 (AS 1 - A)(AS 1 -A) Average 3.13 = A Average Scores Around the Mean “Oldest Child” Group Only, as Example AS 1 = individual scores in condition 1 (Oldest: 1.33, 2.00…) A = Mean of all scores in a condition (e.g., 3.13) (AS - A) 2 = Squared deviation between individual score and condition mean

Sum of Squared Deviations Total Sum of Squares = Sum of Squared between-group deviations + Sum of Squared within-group deviations SS Total = SS Between + SS Within

Computing Sums of Squares from Deviation Scores Birth Order and Activity Ratings (continued) SS = Sum of squared diffs., AKA “sum of squares” SS T =Sum of squares., total (all subjects) SS A = Sum of squares, between groups (treatment) SS s/A =Sum of squares, within groups (error) SS T = (2.97) 2 + (2.30) 2 + … + (1.37) 2 + (2.70) 2 = SS A = (-1.17) 2 + (-1.17) 2 + … + (1.17) 2 + (1.17) 2 = SS s/A = (-1.80) 2 + (-1.13) 2 + … + (0.20) 2 + (1.53) 2 = Total (SS A + SS s/A ) = 25.88

Hey, Can We Compute F Now? Why the F Not? F = Estimate Between Group Diffs Estimate Within Group Diffs SS A = Total Btwn Diffs = SS W = Total Within Diffs = F = = 1.11 ? Does NO!Why not? Need AVERAGE estimates of Btwn. Diffs. variability and Within Diffs. variability.

SS A = Total Btwn Diffs = SS W = Total Within Diffs = How Do We Obtain AVERAGE Variance Estimates? Can we get Ave. Between by dividing SS A by number of groups? Can we get Ave. Within by dividing SS W by number of subjects within each group? NO Why not? Why must life be so hard and complicated? Because we need est. of average of scores that can vary, not average of all scores.

df=Number of independent Observations -Number of restraints df=Number of independent Observations -Number of population estimates Degrees of Freedom df = Number of observations free to vary = 24 Number of observations = n = 5 Number of estimates = 1 (i.e. sum, which = 24) df = (n - # estimates) = (5 -1) = = X = 24 = 20 + X = 24 = X = 4

Degrees of Freedom for Fun and Fortune Coin flip = __ df? Dice = __ df? Japanese game that rivals cross-word puzzle? 1 5

Sudoku – The Exciting Degrees of Freedom Game df for just this section? = 4

Degrees of Freedom Formulas for the Single Factor (One Way) ANOVA SourceTypeFormula General Meaning. Groupsdf A a – 1df for Tx groups; Between-groups df Scoresdf s/A a(s –1)df for individual scores Within-groups df Totaldf T as – 1Total df (note: df T = df A + df s/A ) SourceTypeFormula “Disclosers” Study Groupsdf A a – 1 2 –1 = 1 Scoresdf s/A a(s –1) 2 (5 –1 ) = 8 Totaldf T as – 1 (2 * 5) - 1 = 9 (note: df T = df A + df s/A ) Note: a = # levels in factor A; s = # subjects per condition

Variance CodeCalculationMeaning Mean Square Between Groups MS A SS A df A Between groups variance Mean Square Within Groups MS S/A SS S/A df S/A Within groups variance Variance CodeCalculationDataResult Mean Square Between Groups MS A SS A df A Mean Square Within Groups MS S/A SS S/A df S/A Mean Squares (MS) Calculations Note: What happens to MS/W as n increases?

F Ratio Computation F = = 8.78 F = MS A = Ave. Between Group Variance MS S/A Ave. Within Group Variance Thus, between groups difference is 8.78 times greater than random difference.

A (Between Groups) SS A a - 1SS A df A MS A MS S/A S/A (Within Groups) SS S/A a (s- 1)SS S/A df S/A TotalSS T as - 1 Source of VariationSum of Squares (SS) dfMean Square (MS) F Ratio Analysis of Variance Summary Table: One Factor (One Way) ANOVA

Between Groups Within Groups Total Source of Variation Sum of Squares dfMean Square (MS) FSignificance of F Analysis of Variance Summary Table: One Factor (One Way) ANOVA Note: Totals = Between + Within

Analysis of Variance Summary Table: SPSS

F Distribution Notation " F (1, 8)" means: The F distribution with: 1 df in the numerator (1 df associated with treatment groups (= between-group variation)) and 8 df in the denominator (8 df associated with the overall sample (= within-group variation))

F Distribution for (2, 42) df

Criterion F and p Value For F (2, 42) = 3.48

F and F' Distributions (from Monte Carlo Experiments)

Which Distribution Do Data Support: F or F′? If F is correct, then Ho supported: u 1 = u 2 (First born = Last born) If F' is correct, then H 1 supported : u 1  u 2 (First born ≠ Last born)

Critical Values for F (1, 8) What must our F be in order to reject null hypothesis? ≥ 5.32

Decision Rule Regarding F Reject null hypothesis when F observed >  (m, n) Reject null hypothesis when F observed > 5.32 (1, 8). F (1,8) = 8.88 >  = 5.32 Decision: Reject or Accept null hypothesis? Reject or Accept alternative hypothesis? Have we proved alt. hypothesis? Format for reporting our result: F (1,8) = 8.88, p <.05 F (1,8) = 8.88, p <.02 also OK, based on our results. Conclusion: First Borns regard help-seekers as less "active" than do Last Borns. No, we supported it. There's a chance (p <.05), that we are wrong.

Summary of One Way ANOVA 1. Specify null and alt. hypotheses 2. Conduct experiment 3. Calculate F ratio = Between Group Diffs Within Group Diffs 4. Does F support the null hypothesis? i.e., is Observed F > Criterion F, at p <.05? p >.05, accept null hyp. p <.05, accept alt. hyp.

TYPE I AND TYPE II ERRORS

Reality Null Hyp. True Null Hyp. False Alt. Hyp. FalseAlt. Hyp. True Decision Reject Null Incorrect:Correct Accept Alt. Type I Error Accept Null CorrectIncorrect: Reject Null Type II Error Errors in Hypothesis Testing Type I Error Type II Error

Avoiding Type I and Type II Errors Avoiding Type I error: 1. Reduce the size of the Type I rejection region (i.e., go from p <.05 to p <.01 for example). Avoiding Type II error 1. Reduce size of Type II rejection region, BUT a. Not permitted by basic sci. community b. But, OK in some rare applied contexts 2. Increase sample size 3. Reduce random error a. Standardized instructions b. Train experimenters c. Pilot testing, etc.