Where we’ve been & where we’re going We can use data to address following questions: 1.Question:Is a mean = some number? Large sample z-test and CI Small.

Slides:



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

Hypothesis Testing Steps in Hypothesis Testing:
ANOVA: Analysis of Variation
Copyright ©2006 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Variance Chapter 16.
MARE 250 Dr. Jason Turner Analysis of Variance (ANOVA)
© 2010 Pearson Prentice Hall. All rights reserved Single Factor ANOVA.
One-Way Between Subjects ANOVA. Overview Purpose How is the Variance Analyzed? Assumptions Effect Size.
Copyright ©2011 Brooks/Cole, Cengage Learning Analysis of Variance Chapter 16 1.
Chapters 7-8 Key Points and JMP Instructions. Example 1: Comparing Two Sample Means Means are different at the  =.05 level.
Independent Sample T-test Formula
Part I – MULTIVARIATE ANALYSIS
ANOVA Analysis of Variance: Why do these Sample Means differ as much as they do (Variance)? Standard Error of the Mean (“variance” of means) depends upon.
Announcements: Next Homework is on the Web –Due next Tuesday.
Statistics Are Fun! Analysis of Variance
HW: –Due Next Thursday (4/18): –Project proposal due next Thursday (4/18).
Lesson #23 Analysis of Variance. In Analysis of Variance (ANOVA), we have: H 0 :  1 =  2 =  3 = … =  k H 1 : at least one  i does not equal the others.
ANalysis Of VAriance (ANOVA) Comparing > 2 means Frequently applied to experimental data Why not do multiple t-tests? If you want to test H 0 : m 1 = m.
Chapter 3 Analysis of Variance
PSY 307 – Statistics for the Behavioral Sciences
Final Review Session.
Analysis of Variance (ANOVA) MARE 250 Dr. Jason Turner.
HW: See Web Project proposal due next Thursday. See web for more detail.
Lecture 9: One Way ANOVA Between Subjects
One-way Between Groups Analysis of Variance
Statistical Methods in Computer Science Hypothesis Testing II: Single-Factor Experiments Ido Dagan.
6.1 - One Sample One Sample  Mean μ, Variance σ 2, Proportion π Two Samples Two Samples  Means, Variances, Proportions μ 1 vs. μ 2.
Chapter 12: Analysis of Variance
Testing Group Difference
HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2010 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Chapter 14 Analysis.
Announcements: Homework 10: –Due next Thursday (4/25) –Assignment will be on the web by tomorrow night.
Intermediate Applied Statistics STAT 460
Statistical Techniques I EXST7005 Conceptual Intro to ANOVA.
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 Comparing Three or More Means 13.
More About Significance Tests
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.
PSY 307 – Statistics for the Behavioral Sciences Chapter 16 – One-Factor Analysis of Variance (ANOVA)
ANOVA (Analysis of Variance) by Aziza Munir
Testing Multiple Means and the Analysis of Variance (§8.1, 8.2, 8.6) Situations where comparing more than two means is important. The approach to testing.
Chapter 10: Analyzing Experimental Data Inferential statistics are used to determine whether the independent variable had an effect on the dependent variance.
Learning Objectives Copyright © 2002 South-Western/Thomson Learning Statistical Testing of Differences CHAPTER fifteen.
Analysis of Variance (ANOVA) Brian Healy, PhD BIO203.
Analysis of Variance (One Factor). ANOVA Analysis of Variance Tests whether differences exist among population means categorized by only one factor or.
Previous Lecture: Phylogenetics. Analysis of Variance This Lecture Judy Zhong Ph.D.
The general linear test approach to regression analysis.
12-1 Chapter Twelve McGraw-Hill/Irwin © 2006 The McGraw-Hill Companies, Inc., All Rights Reserved.
Business Statistics: A First Course (3rd Edition)
Experimental Statistics - week 3
MARE 250 Dr. Jason Turner Analysis of Variance (ANOVA)
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.
McGraw-Hill, Bluman, 7th ed., Chapter 12
IE241: Introduction to Design of Experiments. Last term we talked about testing the difference between two independent means. For means from a normal.
One-way ANOVA Example Analysis of Variance Hypotheses Model & Assumptions Analysis of Variance Multiple Comparisons Checking Assumptions.
Introduction to ANOVA Research Designs for ANOVAs Type I Error and Multiple Hypothesis Tests The Logic of ANOVA ANOVA vocabulary, notation, and formulas.
Homework and project proposal due next Thursday. Please read chapter 10 too…
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.
MARE 250 Dr. Jason Turner Analysis of Variance (ANOVA)
Slide 1 Copyright © 2004 Pearson Education, Inc. Chapter 11 Multinomial Experiments and Contingency Tables 11-1 Overview 11-2 Multinomial Experiments:
Copyright © 2008 by Nelson, a division of Thomson Canada Limited Chapter 18 Part 5 Analysis and Interpretation of Data DIFFERENCES BETWEEN GROUPS AND RELATIONSHIPS.
 List the characteristics of the F distribution.  Conduct a test of hypothesis to determine whether the variances of two populations are equal.  Discuss.
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 14 Introduction to Multiple Regression
Where we’ve been & where we’re going
ANOVA Econ201 HSTS212.
Comparing Three or More Means
Basic Practice of Statistics - 5th Edition
Hypothesis Tests: One Sample
Comparing Three or More Means
Presentation transcript:

Where we’ve been & where we’re going We can use data to address following questions: 1.Question:Is a mean = some number? Large sample z-test and CI Small sample t-test and CI 2.Question:Is a proportion = some %? Proportion version of large sample z-test and CI

Where we’ve been & where we’re going 3.Question:Is a diff between two means = some # Independent samples: large sample z test and CI small sample t test and CI paired samples: small sample paired t test and CI 4.Question:Is diff between 2 proportions = some % Proportion version of large sample z test and CI

Topics to be covered in remaining 8 classes (including today) Analysis of Variance and Linear Regression (Chapters 11, 12 and 13) “response =  0 +  1 covariate 1 + … +  p covariate p + error” Categorical Data / Contingency Tables “when response is discrete…”

Fabric B u r n T i m e Back to Fabric Data: Tried to light 4 samples of 4 different (unoccupied!) pajama fabrics on fire. Higher # means less flamable Mean=16.85 std dev=0.94 Mean=10.95 std dev=1.237 Mean=10.50 std dev=1.137 Mean=11.00 std dev=1.299

Suppose we want to test: H 0 :         H A : at least one mean is not equal. at level  = Note that this is the probability of making a false claim (if they are all equal). First idea for how to do this: do four tests at level  (         etc  and reject H 0 if at least one is rejected.

Test 1 H 0 :     H A : not equal Level  Test 2 H 0 :     H A : not equal Level  Test 3 H 0 :     H A : not equal Level  Test 4 H 0 :     H A : not equal Level  Reject all means equal if at least one test fails. This will give you a decision, but what’s the overall probability of making a false claim (if all means are equal) (  level) for this procedure? >,<, or equal to  ?

Overall  = Pr(Falsely reject H 0 :         ) =Pr( at least one test falsely rejects) =1-Pr(none falsely reject) =1-Pr( test 1 doesn’t and … and test 4 doesn’t) =1-(0.95^4) = 0.19 (last step uses independence…) Point: We thought we were doing a level 0.05 test, but it’s actually level 0.18! That’s a problem! Name for this problem: multiple testing problem. What’s one solution?

Solution 1: Do the 4 tests each at a level less than  Many methods to do this: Bonferroni and Tukey are some common ones. We won’t go into much mathematical detail, but these test are often conservative. (True  is smaller than the planned  and power is lower than planned.) For instance, divide  by # of tests you do: 1-(1-(  /4)) 4 = 1-(1-0.05/4) 4 = …

Solution 2: Analysis of Variance! Idea: 1.Variability in the fabric data occurs at two levels: within fabric type and across fabric types. 2.If across fabric type variability is “large” relative to variability within each fabric type, then the means are not equal.

Fabric B u r n T i m e Vertical spread of data points within each oval is one type of variability. Vertical spread of the ovals is another type of variability.

Suppose  1 2 =  2 2 If  1 2 is estimated by s 1 2 from n 1 data points and  2 2 is estimated with s 2 2 from n 2 data points (and the data are normal and independent), then s 2 2 / s 1 2 ~ F n2-1,n1-1 To use the idea to test, we need a fact about variances: Another distribution. The F distribution. n2-1 = numerator df n1-1 = denominator df

Use the test to define “large” H 0 :       H A :       Level  test: reject H 0 at level  if s 2 2 / s 1 2 > F 1- ,n2-1,n1-1

Test for fabric: Formally: –At least one of the means is different if: –Variance among fabric types is greater than the variance within fabric types –Variance among fabric types / Variance within fabric types > F 1- ,3-1,16-3 When one does the test, one uses software that produce: Analysis of variance or ANOVA tables.

Suppose there are k treatments and n data points. ANOVA table: Source Sum ofMean of VariationdfSquaresSquare F P Treatmentk-1SSTMST=SST/(k-1)MST/MSE Errorn-kSSEMSE=SSE/(n-k) Totaln-1total SS ESTIMATE OF “WITHIN FABRIC TYPE” VARIABILITY ESTIMATE OF “AMONG FABRIC TYPE” VARIABILITY “SUM OF SQUARES” IS WHAT GOES INTO NUMERATOR OF s 2 : “(X 1 -X) 2 + … + (X n -X) 2” P-VALUE FOR TEST. (REJECT IF LESS THAN  )

One-way ANOVA: Burn Time versus Fabric Analysis of Variance for Burn Time Source DF SS MS F P Fabric Error Total Explaining why ANOVA is an analysis of variance: MST = / 3 = Sqrt(MST) describes standard deviation among the fabrics. MSE = / 12 = 1.35 Sqrt(MSE) describes standard deviation of burn time within each fabric type. (MSE is estimate of variance of each burn time.) F = MST / MSE = It makes sense that this is large and p-value = Pr(F 4-1,16-4 > 27.15) = 0 is small because the variance “among treatments” is much larger than variance within the units that get each treatment. (Note that the F test assumes the burn times are independent and normal with the same variance.)