Analysis of Variance Comparisons among multiple populations.

Slides:



Advertisements
Similar presentations
03/19/2003 Week #4 江支弘 Chapter 4 Making Predictions: Regression Analysis.
Advertisements

Chapter 11 Analysis of Variance
Chapter 12 ANALYSIS OF VARIANCE.
Analysis and Interpretation Inferential Statistics ANOVA
Section 1.2 Describing Distributions with Numbers 用數字描述分配.
Statistics for Managers Using Microsoft® Excel 5th Edition
亂數產生器安全性評估 之統計測試 SEC HW7 姓名:翁玉芬 學號:
Section 2.3 Least-Squares Regression 最小平方迴歸
Chapter 9 Hypothesis tests with the t statistic. 當母體  為未知時 ( 我們通常不知 ) ,用樣本 s 來取代 因為用 s 來估計  ,所呈現出來的分佈已不 是 z distribution ,而是 t distribution.
Part I – MULTIVARIATE ANALYSIS
2009fallStat_samplec.i.1 Chap10 Sampling distribution (review) 樣本必須是隨機樣本 (random sample) ,才能代表母體 Sample mean 是一隨機變數,隨著每一次抽出來的 樣本值不同,它的值也不同,但會有規律性 為了要知道估計的精確性,必需要知道樣本平均數.
民意調查的分析 II 蔡佳泓 政大選舉研究中心 副研究員. 課程大綱 假設的檢定 研究假設 H1: 研究假設 ( 例: X 與 Y 相關 ) H0: 虛無假設 ( 例: X 與 Y 無關 ) 檢定結果:接受虛無假設或拒斥虛無假 設,但不代表接受研究假設.
Chapter 11 Analysis of Variance
Regression model A prediction approach. Prediction Independent variable (input/operating variable) Dependent variable (response variable) Prediction error.
Analysis of Variance: Inferences about 2 or More Means
Monte Carlo Simulation Part.1 Dept. Phys., Tunghai Univ. Numerical Methods, C. T. Shih.
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.
Chapter Topics The Completely Randomized Model: One-Factor Analysis of Variance F-Test for Difference in c Means The Tukey-Kramer Procedure ANOVA Assumptions.
Chapter 3 Analysis of Variance
PSY 307 – Statistics for the Behavioral Sciences
Unit 3 : 變異數分析 --ANOVA 3.1 範例說明 行銷研究方面, One-Way ANOVA 可 用以研擬市場區隔及目標選擇策略。 教育研究方面,此一模式可用以評估 教師之教學績效。 農業研究方面,此一模式則可用以挑 選使玉米收穫量極大化的肥料。
Chapter 17 Analysis of Variance
第十二章 變異數分析 12.1 單因子變異數分析 1-way ANOVA Subject : 比較三組以上的母體平均數 k 組資料,母體平均數為 μ 1, …, μ i, …, μ k Data : k 組資料,樣本數為 n 1,…, n k. x ij --- 第 i 組的第 j 個觀察值 N =
Inference for Simple Regression Social Research Methods 2109 & 6507 Spring 2006 March 15, 16, 2006.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 15 Analysis of Variance.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Analysis of Variance Statistics for Managers Using Microsoft.
Chap 10-1 Analysis of Variance. Chap 10-2 Overview Analysis of Variance (ANOVA) F-test Tukey- Kramer test One-Way ANOVA Two-Way ANOVA Interaction Effects.
Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall 12-1 Business Statistics: A Decision-Making Approach 8 th Edition Chapter 12 Analysis.
ANOVA Chapter 12.
F-Test ( ANOVA ) & Two-Way ANOVA
Statistics for Business and Economics Chapter 8 Design of Experiments and Analysis of Variance.
INFERENTIAL STATISTICS: Analysis Of Variance ANOVA
© 2003 Prentice-Hall, Inc.Chap 11-1 Analysis of Variance IE 340/440 PROCESS IMPROVEMENT THROUGH PLANNED EXPERIMENTATION Dr. Xueping Li University of Tennessee.
© 2002 Prentice-Hall, Inc.Chap 9-1 Statistics for Managers Using Microsoft Excel 3 rd Edition Chapter 9 Analysis of Variance.
Analyzing Data: Comparing Means Chapter 8. Are there differences? One of the fundament questions of survey research is if there is a difference among.
© Copyright McGraw-Hill CHAPTER 12 Analysis of Variance (ANOVA)
Chapter 10 Analysis of Variance.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap th Lesson Analysis of Variance.
ENGR 610 Applied Statistics Fall Week 9
Extensive study I assume the mean age of this class is not 23.5!
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Two-Sample Tests and One-Way ANOVA Business Statistics, A First.
1 1 Slide The Simple Linear Regression Model n Simple Linear Regression Model y =  0 +  1 x +  n Simple Linear Regression Equation E( y ) =  0 + 
Chapter 19 Analysis of Variance (ANOVA). ANOVA How to test a null hypothesis that the means of more than two populations are equal. H 0 :  1 =  2 =
Education 793 Class Notes Presentation 10 Chi-Square Tests and One-Way ANOVA.
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.
Factorial Analysis of Variance
Lecture 9-1 Analysis of Variance
1 Always be mindful of the kindness and not the faults of others.
Previous Lecture: Phylogenetics. Analysis of Variance This Lecture Judy Zhong Ph.D.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics S eventh Edition By Brase and Brase Prepared by: Lynn Smith.
1 The Analysis and Comparison of Gauge Variance Estimators Peng-Sen Wang and Jeng-Jung Fang Southern Taiwan University of Technology Tainan, Taiwan.
ONE WAY ANALYSIS OF VARIANCE ANOVA o It is used to investigate the effect of one factor which occurs at h levels (≥3). Example: Suppose that we wish to.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 8 th Edition Chapter 15 Analysis of Variance.
Chapter 4 Analysis of Variance
Chap 11-1 A Course In Business Statistics, 4th © 2006 Prentice-Hall, Inc. A Course In Business Statistics 4 th Edition Chapter 11 Analysis of Variance.
CHAPTER 12 ANALYSIS OF VARIANCE Prem Mann, Introductory Statistics, 7/E Copyright © 2010 John Wiley & Sons. All right reserved.
IE241: Introduction to Design of Experiments. Last term we talked about testing the difference between two independent means. For means from a normal.
CHAPTER 10 ANOVA - One way ANOVa.
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.
ENGR 610 Applied Statistics Fall Week 8 Marshall University CITE Jack Smith.
DSCI 346 Yamasaki Lecture 4 ANalysis Of Variance.
Chapter 11 Analysis of Variance
Chapter 10 Two-Sample Tests and One-Way ANOVA.
Chapter 10 Two-Sample Tests and One-Way ANOVA.
Chapter 11 Analysis of Variance
Chapter 15 Analysis of Variance
Chapter 10 – Part II Analysis of Variance
Presentation transcript:

Analysis of Variance Comparisons among multiple populations

More than two populations GroupABCD observations X A,1 X A,2 X A,3 X A,4 … X A,na X B,1 X B,2 X B,3 … X B,nb X C,1 X C,2 X C,3 X C,4 X C,5 … X C,nc X D,1 X D,2 X D,3 X D,4 … X D,nd H 0 : μ A =μ B =μ C =μ D Discuss in the Chapter 8 H0: μ A =μ B H0: μ B =μ C H0: μ C =μ D

Basic assumptions and the hypothesis testing logic The observed data are normally distributed with the same variance (although unknown) σ2. Derive two estimators for σ2 The first is always valid whether the hypothesis, H0: μA=μB=μC=μD, is true or not. The second one is usually greater than the real parameter σ2 when H0: μA=μB=μC=μD is not true. Compare these two estimators (2 nd /1 st ) through the sample. If the ratio is too large, then reject H 0

ANOVA testing ANalysis Of VAriance To test the considered hypothesis by analyzing the variance σ2 Search the proper estimators Decomposition of variance …

E.g., Decomposition of Syy, Syy=SSr+SSm X Y Yi (Yi- ) ( - ) 如果離差越大, 表示 Y^ 不太可能是水平線, 因 為若是水平線, 則差的 平方和將會很小 如果離差越小, 表示 迴歸線越接近真實 值, 預測得越準確 ! Y 的離差, 因給 定 sample 之後 固定不變

Review x 2 distribution X1, X2, X3,…Xn are independent random variables ~N(0,1) () ~ ~ N(0,1) ~

One-way ANOVA approach (i) # of groups # of obs. In each group Total d.f =# of group × obs. in each group The ith group mean Replace the group mean by sample mean ~ Total d.f =# of group ×( obs. in each group-1). Equal group size, n

One-way ANOVA approach (ii) By definition Called as “ within samples sum of squares ” SSw/σ2 ~ ∴ ∵ By definition Called as “ between samples sum of squares ” Group sample mean Total sample mean ∵ ∴ Replaced total mean by total sample mean X.. d.f.=# of group -1 Var(Xi.)=V ar(Xij)/n i,e., assume all Xi. population means are equal to μ in order to replace μ by total sample mean X.. SSb/σ2 ~

One-way ANOVA approach (iii) i.e., the numerator is sufficiently large, while the denominator is smaller =TS Or reject H0 when <α

Decomposition of Var(X ij ) (i) Xij A group B groupC group Total mean X.. A group mean B group mean X B. C group mean Total deviation Between deviation Within deviation If the group difference is smaller, the deviation from the center should be caused by the within randomness.

Decomposition of Var(X ij ) (ii) In usual, define SST as the total sum of squares =

If H0 is not accepted? Xi.~N(μi, σ2/n) Yi~N(μ., σ2/n) Set ∴ & ∵ Xi.=Yi+μi-μ. X..=Y. Within deviation =E[Yi]-E[Y.] =μ.-μ.=0

ANOVA table ∴ SS T= If p-value<α

The meaning of ANOVA table SourceSum of error squares Degree of freedom Mean of SSF Between SS b m-1 (# of group -1) MS b =SS b /(m-1) MS b /MS w Within SS w nm-m= m(n-1) MS w =SS w /(nm-m) total SS T nm-1 (# of observation -1) SST=SSb+SSw, 如果 SSb 越大, SSw 將越小,則在不變的組數 m 之下, MSb 將越大,MSw 越小, 於 是 F 值就越大,越可能 reject H0: 各組平均值無差異。也就是說觀察的變數 Xij 與 X 之總平均數 的差異,大部份肇因於 Xi. 類別平均數之間的差異。

Unbalanced case — unequal sample size within the groups Different group size n i conditional estimator of σ2 unconditional estimator of σ2

Unbalanced F-test for ANOVA A balanced design is suitable over an unbalanced one because of the insensitivity to slight departures from the assumption of equal population variances.

Two classification factors ABCD a X a,A,1 X a,A,2, …, X a,A,k X a,B,1 X a,B,2, …, X a,B,k X a,C,1 X a,C,2, …, X a,C,k X a,D,1 X a,D,2, …, X a,D,k b X b,A,1 X b,A,2 …, X b,A,k X b,B,1 X b,B,2 …, X b,B,k X b,C,1 X b,C,2 …, X b,C,k X b,D,1, X b,D,2 …, X b,Dk C X c,A,1, X c,A,2, …, X c,A,k X c,B,1, X c,B,2, …, X c,B,k X c,C,1, X c,C,2, …, X c,C,k X c,D,1, X c,D,2, …, X c,D,k Column factor Row factor

Two-way ANOVA approach (i) m types n types Review (α i =μ i -μ, the deviation from total μ) (∵(∵ ) Only one observation within each cell

Two-way ANOVA approach (ii) The cell mean of size k or other Supposed an additive model for cell mean, composed by a i and b j The ith row mean The jth column mean The total mean Average row factor Average column factor The ith row mean=the average column factor+ the specific ith row factor jj Deviation from average row factor, column factor &

Two-way ANOVA approach (iii)

Two-way ANOVA approach (iv) i.e., The expected value of specific ij cell could be decomposed into: Total mean + the ith deviation from average row factor (the ith row deviation from the total mean) + the jth deviation from average column factor (the jth column deviation from total mean) & Use the unbiased estimators to test the objective hypothesis The assumed two-way ANOVA model

Two-way ANOVA approach (v) Apply each unbiased estimator ? Reduced n-1 d.f. Reduced m-1 d.f. Reduced 1 d.f.

Two-way ANOVA approach (vi) If is true then Define the row sum of squares 2

Two way ANOVA table =m

Two-way ANOVA with interaction (i)

Two-way ANOVA with interaction (ii)

Two-way ANOVA with interaction (iii)

Two-way ANOVA with interaction (iv)

Two-way ANOVA with interaction (v)

Two-way ANOVA with interaction (vi)

Homework #3 Problem 5, 15, 19, 20, 25