Hypothesis testing: ANOVA Test of the equality of means among c groups. Flow-chart

Similar documents
Chapter 9, Part B Hypothesis Tests

A few things to remember about ANOVA

THE LATENT DEMAND METHOD

8.5. Solving Equations II. Goal Solve equations by balancing.

Week 7 One-way ANOVA

University of California, Los Angeles Department of Statistics. Measures of central tendency and variation Data display

SPH4U Transmission of Waves in One and Two Dimensions LoRusso

GENETICS 101 GLOSSARY

Analysis of Variance. Copyright 2014 Pearson Education, Inc.

Introduction to Algorithms 6.046J/18.401J/SMA5503

MGB 203B Homework # LSD = 1 1

Introduction to Analysis of Variance (ANOVA) The Structural Model, The Summary Table, and the One- Way ANOVA

Unit 4: Inference for numerical variables Lecture 3: ANOVA

Unit4: Inferencefornumericaldata 4. ANOVA. Sta Spring Duke University, Department of Statistical Science

number in a data set adds (or subtracts) that value to measures of center but does not affect measures of spread.

MINNESOTA DEER MANAGEMENT

A SECOND SOLUTION FOR THE RHIND PAPYRUS UNIT FRACTION DECOMPOSITIONS

Factorial Analysis of Variance

Stat 139 Homework 3 Solutions, Spring 2015

Patrick Boston (Leeds University) and Mark Chapman (Edinburgh University)

AN ESTIMATION OF INTER-ZONAL BUS DEMAND ON COLOMBO - KALUTARA TRANSPORT CORRIDOR

Lecture #5.1 Electromagnetic Waves During our study of classical mechanics we discussed mechanical waves. The most important everyday phenomenon to

Appendix E-1 Values of Wildlife (Tables)

PLANNED ORTHOGONAL CONTRASTS

Characterization of Refrigeration System Compressor Performance

THE EFFECTS OF COUPLED INDUCTORS IN PARALLEL INTERLEAVED BUCK CONVERTERS

SYMMETRY AND VARIABILITY OF VERTICAL GROUND REACTION FORCE AND CENTER OF PRESSURE IN ABLE-BODIED GAIT

Projection Based Data Depth Procedure with Application in Discriminant Analysis

Available online at ScienceDirect. Procedia Engineering 113 (2015 )

ICC WORLD TWENTY ( WORLD CUP-2014 )- A CASE STUDY

Experimental Design and Data Analysis Part 2

Influences of Teaching Styles and Motor Educability on Learning Outcomes of Volleyball

ANALYSIS AND MODELING TIME HEADWAY DISTRIBUTIONS UNDER HEAVY TRAFFIC FLOW CONDITIONS IN THE URBAN HIGHWAYS: CASE OF ISFAHAN

Field Studies Tom Habib, Barry Nobert, Eric Brownrigg, & Dr. Evelyn Merrill. University of Alberta 1 October 2009 Deer Tracks

Basic Gas Spring Theory

The structure of the Fibonacci numbers in the modular ring Z 5

Lower Fraser River Sockeye Recreational Hook and Release Mortality Study

Precautions for Total Hip Replacement Patients Only

The Analysis of Bullwhip Effect in Supply Chain Based on Strategic Alliance

One-way ANOVA: round, narrow, wide

Analytical and numerical prediction of water sorptivity in cement-based materials

draft final report NGSIM Arterial-Lane Selection Mode Federal Highway Administration Cambridge Systematics, Inc.

A Data Envelopment Analysis Evaluation and Financial Resources Reallocation for Brazilian Olympic Sports

Lower Fraser River Sockeye Recreational Hook and Release Mortality Study

Policy sensitivity analysis of Karachi commuters

An Integrated Prediction Model of Wave Groups and their Associated Long Waves in the Coupling Field of Surf and Breaking Zones on Bar- Type Beaches

Application of a Statistical Method to investigate patterns of beach evolution in the vicinity of a seawall

MST 121: Supplementary resource material for Chapter A1, Sequences

Statistical Analysis of PGA Tour Skill Rankings USGA Research and Test Center June 1, 2007

operate regenerator top without boiling aq. amine solution.

Active Travel The Role of Self-Selection in Explaining the Effect of Built Environment on Active Travel

Section I: Multiple Choice Select the best answer for each problem.

ELIGIBILITY / LEVELS / VENUES

ELIGIBILITY / LEVELS / VENUES

Lecture 13a: Chunks. Announcements. Announcements (III) Announcements (II) Project #3 Preview 4/18/18. Pipeline of NLP Tools

Sequential parimutuel games

ELIGIBILITY / LEVELS / VENUES

ELIGIBILITY / LEVELS / VENUES

A Comparison of MOEA/D, NSGA II and SPEA2 Algorithms

One-factor ANOVA by example

HURRICANE SANDY LIMITED REEVALUATION REPORT UNION BEACH, NEW JERSEY DRAFT ENGINEERING APPENDIX SUB APPENDIX E OVERTOPPING & FAILURE ANALYSIS

2) What s the Purpose of Your Project?

This report presents an assessment of existing and future parking & traffic requirements, for the site based on the current development proposal.

1. Write down the ideal gas law and define all its variable and parameters. 2. Calculate the values and units of the ideal gas law constant R.

Select Boxplot -> Multiple Y's (simple) and select all variable names.

Intuitive Understanding of Throughput-Delay Tradeoff in Ad hoc Wireless Networks

Traffic conflicts at roundabouts: risk analysis under car-following conditions

Introductory Rules of Officiating Small Sided Games Under 6 &Under 8 HANDBOOK

Footwork is the foundation for a skilled basketball player, involving moves

Appendix: Tables. Table XI. Table I. Table II. Table XII. Table III. Table IV

WIND TUNNEL EXPERIMENT ON THE EFFECT OF WIND ON SMOKE EXHAUST SYSTEMS FOR A HIGH RISE BUILDING

Chapter 12 Practice Test

HYDRAULIC MOTORS MM APPLICATION CONTENTS GENERAL MOTORS

Our club has a rich history that dates back to the turn of the 20th century.

Factorial ANOVA Problems

Extensible Detection and Indexing of Highlight Events in Broadcasted Sports Video

A multivariate approach for defining fishing tactics from commercial catch and effort data

PERFORMANCE TEAM EVALUATION IN 2008 BEIJING OLYMPIC GAMES

Real time lane departure warning system based on principal component analysis of grayscale distribution and risk evaluation model

DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING, THE UNIVERSITY OF NEW MEXICO ECE-238L: Computer Logic Design Fall Notes - Chapter 6.

Name May 3, 2007 Math Probability and Statistics

A LIBRARY OF HVAC COMPONENT MODELS FOR USE IN AUTOMATED DIAGNOSTICS. Peng Xu, Philip Haves, Dimitri Curtil Lawrence Berkeley National Laboratory

Catenary Analysis and Calculation Method of Track Rope of Cargo Cableway with Multiple Loads

Congruence Axioms. Data Required for Solving Oblique Triangles. 1 of 8 8/6/ THE LAW OF SINES

DAMAGE ASSESSMENT OF FIBRE ROPES FOR OFFSHORE MOORING

Example 1: One Way ANOVA in MINITAB

Brian Hayes. A reprint from. American Scientist. the magazine of Sigma Xi, the Scientific Research Society

n UL Listed and FM Approved for n Solenoid control n Quick pressure relief valve 73Q n Pressure sustaining & reducing valve 723

1973, 1975, A.w. Argue, B. Hillaby, and CD. Shepard

HEEL RETENTION SYSTEMS

Welcome to the world of the Rube Goldberg!

ANALYSIS AND ASSESSMENT OF LITHUANIAN ROAD ACCIDENTS BY AHP METHOD

Research Article. Relative analysis of Taekwondo back kick skills biomechanics based on 3D photograph parsing. Mingming Guo

securing your safety

Gregarious Behaviour of Evasive Prey

Capacity of Shared-Short Lanes at Unsignalised Intersections

A Comparative Investigation of Reheat In Gas Turbine Cycles

APPLICATION»» Conveyors Metal working machines» Agricultural machines Road building machines Mining machinery Food industries Special vehicles etc.

Vaccine Storage and Handling Guidelines

Held under the sanction of USA Swimming, issued by North Carolina Swimming, Inc. Sanction No. NC11117

Transcription:

Hypothesis testig: ANOVA Test of the equality of meas amog groups February 6, 200 Moez Hababou() Flow-hart Desribig iformatios Drawig olusios Foreastig Improve busiess proesses Data Colletio Probability & Probability Distributio Regressio Aalysis Time-series Aalysis Summary tables ad harts estimatio Hypothesis testig Simple Regressio model Multiple Regressio model Desriptive Statistis Oe sample Two samples Two or more samples February 6, 200 Moez Hababou() 2

Proedure for hypothesis testig for the mea differee betwee two samples State ull hypothesis H o : µ =µ 2 = =µ State alterative hypothesis H A : at least oe µ is differet Determie test statistis F=(SSA/-)/(SSW/-) Determie reetio regios Choose ofidee level Make olusios February 6, 200 Moez Hababou() 3 Illustratig ull ad alterative hypotheses µ µ2 µ3 Η Α : µ=µ3<µ2 µ µ2 µ3 Η ο : µ=µ3=µ2 February 6, 200 Moez Hababou() 4 2

Deomposig total variatio Total Variatio (SST) df=- Amog group variatio (SSA) df= - withi group variatio (SSW) df= - February 6, 200 Moez Hababou() 5 SST = Deomposig variatio: Total variatio SST = = umber of observatio s i group# = total umber of observatio s i all group ombied = i= = i= + 2 ( +... + ) = grad mea = observatio #i i group# i = umber of groups i i February 6, 200 Moez Hababou() 6 3

SSA = Amog-group variatio: SSA = = = umber = total umber = + = = i= i= = ( 2 ) grad mea for group# +... + = umber of groups i i mea of observatio s i group# of observatio s i all group 2 ombied February 6, 200 Moez Hababou() 7 Withi-group variatio: SSW SSW = i = = = umber = total umber = + ( mea for group# observatio #ii group# i= = = i= 2 +... + = umber of groups i i ) of observatio s i group# of observatio s i all group 2 ombied February 6, 200 Moez Hababou() 8 4

Calulatig the mea squares ad the oe-way ANOVA F-test statisti SSA MSA = SSW MSW = SST MST = MSA F = = MSW SSA SSW Mea squared sum amog groups Mea squared sum withi groups Total mea squared sum oe-way ANOVA F-test statisti February 6, 200 Moez Hababou() 9 ANOVA summary table Soure of variatio Degrees of freedom Sum of squares Mea square F P-value Amog groups - SSA MSA=SSA/(-) F=MSA/MS W Withi groups - SSW MSW=SSW/(-) Total - SST=SSA+ SSW Exerise: LKB 7.42 pp394 February 6, 200 Moez Hababou() 0 5

Deisio rule F=MSA/MSW follows F-distributio with -, - degree of freedom At a level of sigifiae α, we would Reet Ho: µ =µ 2 =... =µ if F>F U(α,-,-) I that ase olude that at least oe group mea µ is statistially differet from the other group meas Do ot Reet Ho: µ =µ 2 =... =µ if F<F U(α,-,-) I that ase olude that we a ot ifer at least o µ is statistially differet from the other group meas February 6, 200 Moez Hababou() Reetio ad aeptae regio -a Do ot Reet Ho Reet Ho a F U,α February 6, 200 Moez Hababou() 2 6

Assumptios Radomess ad idepedee betwee samples (samples draw from idepedet radom populatios) Pseudo-ormality of eah sampled group Homogeeity of variae σ 2 =σ2 2 =... =σ2 February 6, 200 Moez Hababou() 3 Example# It is widely believed that eduatio ad holdig additioal degrees irease salary. Verify this statemet, a sample of 44 employees from ompay A were radomly seleted. They a either hold o degree, or a ollege, or a uiversity degree. Is it true, at the 5% level, that all three groups of employees have equal average salaries at ompay A? February 6, 200 Moez Hababou() 4 7

ANOVA: umerial appliatio Salary Degree i-barbar (i-barbar) 2 (i-bar) (i-bar) 2 23,253-3,284 0,782,244 -,82,398,99 26,399-38 8,943,964 3,855,5 9,876-6,66 44,364,028-4,559 20,788,626 23,602-2,935 8,62,069-833 694,646 2,864-4,673 2,833,497-2,57 6,62,378 9,33-7,224 52,80,870-5,22 26,239,54 22,98-3,556 2,642,524 -,454 2,5,438 25,0 -,427 2,035,28 675 455,02 30,83 4,294 8,44,590 6,396 40,903,002 30,657 4,20 6,977,426 6,222 38,707,628 24,904 -,633 2,665,490 469 29,535 26,209 2-328 07,343 89 7,846 2,69 2-4,98 24,83,2-4,50 20,262,79 23,602 2-2,935 8,62,069-2,58 6,342,444 22,447 2-4,090 6,725,096-3,673 3,494,02 23,602 2-2,935 8,62,069-2,58 6,342,444 23,43 2-3,24 9,757,08-2,707 7,330,28 2,455 2-5,082 25,822,99-4,665 2,766,53 25,072 2 -,465 2,45,49 -,048,099,86 2,669 2-4,868 23,693,848-4,45 9,85,48 24,740 2 -,797 3,227,889 -,380,905,562 23,602 2-2,935 8,64,006-2,59 6,344,06 25,784 2-753 566,456-336 3,79 26,20 2-47 73,583 0 0 23,449 2-3,087 9,532,426-2,67 7,35,582 29,598 2 3,06 9,37,970 3,478 2,093,556 33,675 2 7,38 50,956,287 7,555 57,07,665 27,29 2 592 350,899,009,07,232 32,70 2 6,64 37,999,424 6,58 43,304,02 3,728 2 5,9 26,950,294 5,608 3,444,943 29,87 2 2,650 7,024,447 3,067 9,403,907 3,728 2 5,9 26,950,294 5,608 3,444,943 3,728 3 5,9 26,950,294 2,537 6,435,946 34,6 3 7,624 58,30,976 4,970 24,700,072 30,00 3 3,473 2,064,280 89 670,625 33,675 3 7,38 50,956,287 4,484 20,05,509 35,33 3 8,596 73,897,530 5,942 35,306,374 22,897 3-3,640 3,246,926-6,294 39,65,485 24,450 3-2,087 4,354,036-4,74 22,477,87 34,34 3 7,597 57,79,989 4,943 24,432,425 24,772 3 -,765 3,3,929-4,49 9,528,298 28,775 3 2,238 5,00,288-46 73,25 24,740 3 -,797 3,227,889-4,45 9,82,43 25,88 3-79 56,433-3,373,377,69 SST= 80,9,555 SSW= 664,363,935 February 6, 200 Moez Hababou() 5 Computig SST, SSW, SSA SST=80,9,555 groups divided by degree group = No degree -bar=24,435 group2 = ollege degree 2-bar= 26,20 group3 = uiversity degree 3-bar= 29,9 SSW = = i= ( i ) 2 = 664,363,935 SST=SSA+SSW => SSA=SST-SSW =3675562 February 6, 200 Moez Hababou() 6 8

Alterative way to ompute SSA umber of groups =3 total sample size =44 SSA bar bar-barbar (bar-barbar) 2 *(bar-barbar)2 group 24,435-2,0 4,44,950 48564447 group2 2 26,20-46 73,232 3637877 group3 2 29,9 2,654 7,046,08 84553296 barbar= 26,537 SSA 3675562 February 6, 200 Moez Hababou() 7 Hypothesis testig Ho: µ=µ2=µ3 Ha: at least oe µ i is differet Soure of variatio degree of freedom sum of squares mea squared variae F amog groups 2 3675562 6837780.29 4.2980973 betwee groups 4 664,363,935 6203998.4 total 43 80,9,555 reet Ho if F>F U(α, -,-) F U(α, 3-,44-3) =3.2256793 Sie F=4.2> F α,-,- Colusio: Reet Ho, at least oe group of employees has a salary that is statistially differet from the others February 6, 200 Moez Hababou() 8 9

Example#2 The retailig maager would like to kow whether produt pakagig has ay effet o the sale of offee paks. He observed reetly the five more reet daily sales (give ai umber of uits sold) for three types of pakages ad wishes if you a help him i this exerises? Day Day 2 Day 3 Day 4 Day 5 sober 23 22 6 5 24 shiy February 6, 200 Moez Hababou() 9 26 24 25 28 3 vitage 33 2 24 29 30 ANOVA table ANOVA Soure SS df MS F P-value Amog 68.9333 2 84.46667 5.224742 0.023326 Withi 94 2 6.6667 Total 362.9333 4 F.05,2,2 =3.88 F=5.22>F.05,2,2 =3.88 Reet Ho, at least oe group has average daily sales that is statistially differet from the other groups February 6, 200 Moez Hababou() 20 0

ANOVA versus 2 sample T-test ANOVA ust idiates that oe group mea is differet from the other ad does ot tell whether sigifiatly smaller (equivalet to two-tail test). 2 sample T-test a be a prohibitive exerise whe dealig with umerous groups (umber of pairs to ompare = (-)/2. T-tests are usually easier to reet. February 6, 200 Moez Hababou() 2 Sharp proedure for ANOVA (STAT) (TEST) (IputList)(ENTER)(ENTER) Eter data i L, L2,, L (=umber of groups) For this partiular exerise, use L=23, 22, 6, 5, 24 L2=26, 24, 25, 28, 3 L3=33, 2, 24, 29, 30 Hit 2dF (Matrix) Selet ANOVA Number of meas C= (eter 3 for this exerise) February 6, 200 Moez Hababou() 22

ANOVA proedure output SST SSW SSA 362.93, 94, 68 MSA NDF(-) MSW DDF(-) 84.4, 2, 6.6, 2 F P-value 5.22.0233 Group meas 20 26.8 27.4 ANOM H LDL GRAND-MEAN UDL 2.67 20.8 24.73 28.65 February 6, 200 Moez Hababou() 23 Hypothesis testig usig the p-value approah Deisio Rule: Reet Ho if p-value<α February 6, 200 Moez Hababou() 24 2

ANOM The Aalysis of Mea (ANOM) allows us to idetify whih group has a mea that is sigifiatly differet from the others. It also speifies whether it is sigifiatly smaller or sigifiatly larger. It is based o derivig a upper ad lower limits (UDL ad LDL). If -bar (mea group ) is larger tha UDL, we olude that it is sigifiatly larger tha the other groups average. If -bar (mea group ) is less tha LDL, we olude that it is sigifiatly larger tha the other groups average. February 6, 200 Moez Hababou() 25 LDL ad UDL LDL=barbar - h α,,- * square root(msw*(-)/) UDL=barbar + h α,,- * square root(msw*(-)/) barbar = grad mea h α,,- = Nelso s statisti at, - degree of freedom = total umber of observatios MSW = Mea squared sum withi groups MSW = SSW/- February 6, 200 Moez Hababou() 26 3

Sharp 9600-CL output Group meas 20 26.8 27.4 ANOM H LDL GRAND-MEAN UDL 2.67 20.8 24.73 28.65 February 6, 200 Moez Hababou() 27 30 28 26 Graphial represetatio of ANOM UDL 3-bar 2-bar barbar 24 22 LDL 20 -bar February 6, 200 Moez Hababou() 28 4

Suggested exerises LKB 7.42,7.4, 7.44, 7.47 February 6, 200 Moez Hababou() 29 5