ANOVA ANALYSIS Eighth-Grade Pupils in the Netherlands.

Slides:



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

Multivariate statistical analysis Regression analysis.
BA 275 Quantitative Business Methods
Regresión Lineal Simple PlantaCapVol Rosario Coyoacán Acueducto de Guadalupe San Juan de Aragón Ciudad Deportiva
Data Analysis Using R: 5. Analysis of Variance Tuan V. Nguyen Garvan Institute of Medical Research, Sydney, Australia.
5/11/ lecture 71 STATS 330: Lecture 7. 5/11/ lecture 72 Prediction Aims of today’s lecture  Describe how to use the regression model to.
ANOVA: Analysis of Variation
October 6, 2009 Session 6Slide 1 PSC 5940: Running Basic Multi- Level Models in R Session 6 Fall, 2009.
Regression with ARMA Errors. Example: Seat-belt legislation Story: In February 1983 seat-belt legislation was introduced in UK in the hope of reducing.
Multiple Regression Predicting a response with multiple explanatory variables.
Zinc Data SPH 247 Statistical Analysis of Laboratory Data.
Analysis of Variance and Multiple Comparisons Comparing more than two means and figuring out which are different.
x y z The data as seen in R [1,] population city manager compensation [2,] [3,] [4,]
McGraw-Hill/Irwin © 2003 The McGraw-Hill Companies, Inc.,All Rights Reserved. 肆 資料分析與表達.
SPH 247 Statistical Analysis of Laboratory Data 1April 23, 2010SPH 247 Statistical Analysis of Laboratory Data.
民意調查的分析 II 蔡佳泓 政大選舉研究中心 副研究員. 課程大綱 假設的檢定 研究假設 H1: 研究假設 ( 例: X 與 Y 相關 ) H0: 虛無假設 ( 例: X 與 Y 無關 ) 檢定結果:接受虛無假設或拒斥虛無假 設,但不代表接受研究假設.
1 Regression Homework Solutions EPP 245/298 Statistical Analysis of Laboratory Data.
Analysis of Variance (ANOVA) CH 13 變異數分析. What is ANOVA? n 檢定 3 個或 3 個以上的母體平均數是否相等的統計檢定 n 檢定多個母體平均數是否相同 n 比較大二、大三、大四學生實習滿意度是否一樣 ? ( 來 自相同的 population)
Examining Relationship of Variables  Response (dependent) variable - measures the outcome of a study.  Explanatory (Independent) variable - explains.
1 Some R Basics EPP 245/298 Statistical Analysis of Laboratory Data.
&5 二因子實驗設計 二因子無交互作用 &Four DOE Class_90a.
Regression 相關 –Cross table –Bivariate –Contingency Cofficient –Rank Correlation 簡單迴歸 多元迴歸.
Crime? FBI records violent crime, z x y z [1,] [2,] [3,] [4,] [5,]
McGraw-Hill/Irwin © 2003 The McGraw-Hill Companies, Inc.,All Rights Reserved. 肆 資料分析與表達.
Some Analysis of Some Perch Catch Data 56 perch were caught in a freshwater lake in Finland Their weights, lengths, heights and widths were recorded It.
Regression Transformations for Normality and to Simplify Relationships U.S. Coal Mine Production – 2011 Source:
Checking Regression Model Assumptions NBA 2013/14 Player Heights and Weights.
How to plot x-y data and put statistics analysis on GLEON Fellowship Workshop January 14-18, 2013 Sunapee, NH Ari Santoso.
BIOL 582 Lecture Set 19 Matrices, Matrix calculations, Linear models using linear algebra.
PCA Example Air pollution in 41 cities in the USA.
9/14/ Lecture 61 STATS 330: Lecture 6. 9/14/ Lecture 62 Inference for the Regression model Aim of today’s lecture: To discuss how we assess.
SWC Methodology - TWG February 19, 2015 Settlement Document Subject to I.R.E. 408.
Analysis of Covariance Harry R. Erwin, PhD School of Computing and Technology University of Sunderland.
 Combines linear regression and ANOVA  Can be used to compare g treatments, after controlling for quantitative factor believed to be related to response.
7.1 - Motivation Motivation Correlation / Simple Linear Regression Correlation / Simple Linear Regression Extensions of Simple.
STATISTICAL INFERENCE PART IX HYPOTHESIS TESTING - APPLICATIONS – MORE THAN TWO POPULATION.
23-1 Analysis of Covariance (Chapter 16) A procedure for comparing treatment means that incorporates information on a quantitative explanatory variable,
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.
Use of Weighted Least Squares. In fitting models of the form y i = f(x i ) +  i i = 1………n, least squares is optimal under the condition  1 ……….  n.
1 Peter Fox Data Analytics – ITWS-4963/ITWS-6965 Week 4b, February 20, 2015 Lab: regression, kNN and K- means results, interpreting and evaluating models.
Regression and Analysis Variance Linear Models in R.
Exercise 8.25 Stat 121 KJ Wang. Votes for Bush and Buchanan in all Florida Counties Palm Beach County (outlier)
Collaboration and Data Sharing What have I been doing that’s so bad, and how could it be better? August 1 st, 2010.
Lecture 9: ANOVA tables F-tests BMTRY 701 Biostatistical Methods II.
Regression Model Building LPGA Golf Performance
Using R for Marketing Research Dan Toomey 2/23/2015
FACTORS AFFECTING HOUSING PRICES IN SYRACUSE Sample collected from Zillow in January, 2015 Urban Policy Class Exercise - Lecy.
Exercise 1 The standard deviation of measurements at low level for a method for detecting benzene in blood is 52 ng/L. What is the Critical Level if we.
Tutorial 4 MBP 1010 Kevin Brown. Correlation Review Pearson’s correlation coefficient – Varies between – 1 (perfect negative linear correlation) and 1.
Applied Statistics Week 4 Exercise 3 Tick bites and suspicion of Borrelia Mihaela Frincu
Lecture 6: Multiple Linear Regression Adjusted Variable Plots BMTRY 701 Biostatistical Methods II.
Determining Factors of GPA Natalie Arndt Allison Mucha MA /6/07.
Lecture 6: Multiple Linear Regression Adjusted Variable Plots BMTRY 701 Biostatistical Methods II.
Lecture 3 Linear Models II Olivier MISSA, Advanced Research Skills.
Linear Models Alan Lee Sample presentation for STATS 760.
ANOVA. The same slopes, but different intercepts versicolor verginica setosa.
EPP 245 Statistical Analysis of Laboratory Data 1April 23, 2010SPH 247 Statistical Analysis of Laboratory Data.
Tutorial 5 Thursday February 14 MBP 1010 Kevin Brown.
The Effect of Race on Wage by Region. To what extent were black males paid less than nonblack males in the same region with the same levels of education.
1 Analysis of Variance (ANOVA) EPP 245/298 Statistical Analysis of Laboratory Data.
Linear Models in R Fish 552: Lecture 10. Supplemental Readings Practical Regression and ANOVA using R (Faraway, 2002) –Chapters 2,3,6,7,8,10,16 –
Lecture 10 Linear models in R Trevor A. Branch FISH 552 Introduction to R.
Chapter 12 Simple Linear Regression and Correlation
STAT Single-Factor ANOVA
Résolution de l’ex 1 p40 t=c(2:12);N=c(55,90,135,245,403,665,1100,1810,3000,4450,7350) T=data.frame(t,N,y=log(N));T; > T t N y
Statistical Significance Test
Console Editeur : myProg.R 1
Chapter 12 Simple Linear Regression and Correlation
Estimating the Variance of the Error Terms
Analysis of Variance (ANOVA)
Presentation transcript:

ANOVA ANALYSIS Eighth-Grade Pupils in the Netherlands

宋汶達 孫偉傑 陳盈志 徐健豪 朱明興 第八組

Eighth-Grade Pupils in the Netherlands Description Snijders and Bosker (1999) use as a running example a study of 2287 eighth- grade pupils (aged about 11) in 132 classes in 131 schools in the Netherlands. Only the variables used in our examples are supplied. Usage nlschools Format This data frame contains 2287 rows and the following columns: lang language test score. IQ verbal IQ. class class ID. GS class size: number of eighth-grade pupils recorded in the class (there may be others: see COMB, and some may have been omitted with missing values). SES social-economic status of pupil's family. COMB were the pupils taught in a multi-grade class (0/1)? Classes which contained pupils from grades 7 and 8 are coded 1, but only eighth-graders were tested.

Levels We set IQ for 3 levels Level 1. 4~ 9.5 Level 2. 10~13.5 Level 3. 14~18 We set SES for 3 levels Level ~ 17 Level ~ 38 Level ~ 50 We set COMB for 2 levels Level 1. 0 N Level 2. 1 Y

假設 虛無假設 :IQ 對於 lang 沒有顯著差異 對立假設 :IQ 對於 lang 有顯著差異

IQ 與成績的關係圖

IQ 的 ANOVA TABLE Analysis of Variance Table Response: lang Df Sum Sq Mean Sq F value Pr(>F) IQ < 2.2e-16 *** Residuals Signif. codes: 0 ‘***’ ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

IQ 的迴歸式 Call: lm(formula = lang ~ IQ) Residuals: Min 1Q Median 3Q Max Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) <2e-16 *** IQII <2e-16 *** IQIII <2e-16 *** --- Signif. codes: 0 ‘***’ ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Residual standard error: on 2284 degrees of freedom Multiple R-squared: , Adjusted R-squared: F-statistic: on 2 and 2284 DF, p-value: < 2.2e-16

假設 虛無假設 :SES 對於 lang 沒有顯著差異 對立假設 :SES 對於 lang 有顯著差異

SES 與成績的關係圖

SES 的 ANOVA TABLE Analysis of Variance Table Response: lang Df Sum Sq Mean Sq F value Pr(>F) SES < 2.2e-16 *** Residuals Signif. codes: 0 ‘***’ ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

SES 的迴歸式 Call: lm(formula = lang ~ SES) Residuals: Min 1Q Median 3Q Max Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) <2e-16 *** SESB <2e-16 *** SESC <2e-16 *** --- Signif. codes: 0 ‘***’ ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Residual standard error: on 2284 degrees of freedom Multiple R-squared: , Adjusted R-squared: F-statistic: on 2 and 2284 DF, p-value: < 2.2e-16

虛無假設 :COMB 對於 lang 沒有顯著差異 對立假設 :COMB 對於 lang 有顯著差異 假設

COMB 與成績的關係圖

COMB 的 ANOVA TABLE Analysis of Variance Table Response: lang Df Sum Sq Mean Sq F value Pr(>F) COMB e-09 *** Residuals Signif. codes: 0 ‘***’ ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

COMB 的迴歸式 Call: lm(formula = lang ~ COMB) Residuals: Min 1Q Median 3Q Max Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) < 2e-16 *** COMBY e-09 *** --- Signif. codes: 0 ‘***’ ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Residual standard error: 8.94 on 2285 degrees of freedom Multiple R-squared: , Adjusted R-squared: F-statistic: 33.5 on 1 and 2285 DF, p-value: 8.1e-09

交互影響 虛無假設 :IQ 與 SES 的交互作用 對於 lang 沒有顯著差異 對立假設 :IQ 與 SES 對於 lang 有顯著差異 虛無假設 :IQ 與 COMB 的交互作用 對於 lang 沒有顯著差異 對立假設 :IQ 與 COMB 對於 lang 有顯著差異 虛無假設 :SES 與 COMB 的交互作用 對於 lang 沒有顯著差 異 對立假設 :SES 與 COMB 對於 lang 有顯著差異

> anova(lm(lang~IQ*SES*COMB)) Analysis of Variance Table Response: lang Df Sum Sq Mean Sq F value Pr(>F) IQ < 2.2e-16 *** SES < 2.2e-16 *** COMB e-09 *** IQ:SES IQ:COMB *** SES:COMB IQ:SES:COMB Residuals Signif. codes: 0 ‘***’ ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0--- Signif. codes: 0 ‘***’ ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0 ANOVA TABLE

IQ 與 COMB 的交互影響圖

進階分析 -1 > TukeyHSD(aov(lm(lang~IQ))) Tukey multiple comparisons of means 95% family-wise confidence level Fit: aov(formula = lm(lang ~ IQ)) $IQ diff lwr upr p adj II-I III-I III-II

進階分析 -2 > TukeyHSD(aov(lm(lang~SES))) Tukey multiple comparisons of means 95% family-wise confidence level Fit: aov(formula = lm(lang ~ SES)) $SES diff lwr upr p adj B-A C-A C-B

進階分析 -3 > TukeyHSD(aov(lm(lang~COMB))) Tukey multiple comparisons of means 95% family-wise confidence level Fit: aov(formula = lm(lang ~ COMB)) $COMB diff lwr upr p adj Y-N

Thank for your attention