SlideShare une entreprise Scribd logo
1  sur  3
Télécharger pour lire hors ligne
27-08-2012




                                                                                                                 Shudhho Chinta: Part 3
                           Analysis Of VAriance                                                          Are the employees in the five different
                                 ANOVA                                                                            offices equally bad?

                                        Session XVII




                                                                                                                                    Practice problem
                                                                                                     The Govt a/c office is interested in seeing whether
                                                                                                       similar-sized offices spend similar amounts on
       1 way (and 2 way?) ANOVA                                                                        personnel and equipment. Monthly expenses of 3
 Comparing Means of multiple populations                                                               offices have been examined: 1 each in agriculture
                                                                                                       dept, state dept. and Interior dept. The data
                                                                                                       (expense in lakh Rs )from some past months are
                                                                                                       given below:
                                                                                                     Agriculture:     10 8        11 9        12
                                                                                                     State:           15 9        8     10 13 13
                                                                                                     Interior:        8      16 12
                                                                                                     At 1% significance level, are there differences in
                                                                                                       expenses for the different offices?




                  Splitting the SUM OF SQUARES(SS)                                                       Algebra in Splitting the SUM OF SQUARES:
                           Practice Problem 6
                                                                    mean        s.d        n
Agriculture      10       8    11       9     12                    10.00      1.58        5
State            15       9    8        10    13         13
                                                                                                                    ( X ij − X ) = ( X ij − X i ) + ( X i − X )
                                                                    11.33      2.73        6
Interior         8        16   12                                   12.00      4.00        3

                                                 Grand                11       2.602           14
                                                                                                    ∑ ∑        ( X ij − X ) 2 = ∑         ∑    ( X ij − X i ) 2 + ∑    ∑   ( X i − X )2
                                                                                                                                                      2
                               4×1.582 + 5 ×2.732 + 2×42                                                                            = ∑ ( ni − 1) S i + ∑ ni ( X i − X ) 2
           Total SS       = within group SS + Between group SS
                                                                                                    Total SS   χ   2
                                                                                                                          (if H0)
                                                                                                                                                                                          χ
       13×2.6022                5×(10-11)2 + 6 ×(11.33-11)2 +3×(12-11)2
                                                                                                                   n −1
                                                                                                                                    within group SS   χ   2
                                                                                                                                                          n− k
                                                                                                                                                                      Between group SS        2
                                                                                                                                                                                              k −1
                                    2
(after dividing by σ )                                        independent

              χ    2
                   n −1                      χ     2
                                                   n−k                        χ    2
                                                                                  k −1
After dividing by d.f.
                                             MSE                       MS due to ‘group’




                                                                                                                                                                                                     1
27-08-2012




                                            Practice Problem
                                                                                                                                           ANOVA TABLE
                                                 Between group SS
                                                                      k -1
            Test statistic is =                  Within group SS             = Fk −1,n −k
                                                                     n -k                                                                                ANOVA                                    P-value
                                                                                                                    VAR00001
            At α=0.01, the C.R. is TS > 7.21                                                                                           Sum of
                                                                                                                                       Squares         df        Mean Square              F            Sig.
                                                                                                                    Between Groups        8.667              2         4.333               .601           .565
Observed MSE = (4×1.582 + 5 ×2.732 + 2×42 )/11=7.2121                                                               Within Groups        79.333             11         7.212
MS due to group = [5×(10-11)2 + 6 ×(11.33-11)2 +3×(12-11)2 ]/2=4.33                                                 Total                88.000             13
So observed value of TS = 0.60
So do not reject H0 at α =0.01
                                                                                                                                                                        Observed value of TS




                                       ANOVA TABLE                                                                       Three unbiased estimates of σ2
Source of
variation
                         Sum of squares (SS)            Degrees of
                                                         freedom
                                                                                 Mean SS           F Statistic                    (under H0)
                                                           (df)
Between group                                              k-1
                     ∑   n j ( x j − x ) 2 = SSb
                                                                             ˆ2
                                                                             σb =
                                                                                    SS b        σ b2
                                                                                                ˆ
                                                                                                     = Fk −1,n− k   • Usual S2 based on all n observation                           TSS/(n-1)
                                                                                    k −1        ˆ2
                                                                                                σw
                                                                                                                    • Pooled estimate
Within group                                               n-k
                     ∑    (n j − 1) S 2 = SS w
                                      j                                      ˆ2
                                                                             σw =
                                                                                    SS w                                – SSE/(n-k)
                                                                                                                                                        2
                                                                                    n−k                             • Indirect estimate from           σX
                                                                                                                        – SS due to treatment/(k-1)
TOTAL                                                      n-1
                     ∑∑        ( xij − x ) 2 = SST
                                                                             S2 =
                                                                                    SST
                                                                                    n −1                                 The last estimate is likely to be large compared to the second
                                                                                                                                        if the null hypothesis is not true

                                                                       This column does not add up!                 E (Mean square error/within group)=σ 2 ;
                                                                                                                                                                          k
                                 Usually not included in the ANOVA table

                                                                                                                                                                    2
                                                                                                                                                                        ∑ n (µ
                                                                                                                                                                         i =1
                                                                                                                                                                                i     i   − µ )2
                                                                                                                    E (Mean square between group)=σ +                                              .
                                                                                                                                                                                    k −1




                                                                  ANOVA:
                                                                                                                               The Model in ANOVA and
                                    A comparison of three estimates of σ2                                                      estimating the parameters
                µ3        µ2      µ1
                                                                                                                                     in the model

                                                              Sampling distribution of      X
                                                                                                                                      X ij ֏ N ( µ + α i , σ 2 )
               µ1=µ2=µ3
                                                         Assume temporarily that n1=n2=n3.
                                                                                                                                      µ = X ..
                                                                                                                                      ˆ
( X A − X )2 + ( X S − X )2 + ( X I − X ) 2                         σ2                                                               α i = X i. − X ..
                                                                                                                                     ˆ
                                            is an estimate for σ2 =
                                                                X
                     2                                              ni
                                                                                                                                     σ 2 = MSE
                                                                                                                                      ˆ
                     2                             2                         2
n A ( X A − X ) + nS ( X S − X ) + nI ( X I − X )
                                                  is an estimate for σ2
                          2




                                                                                                                                                                                                                     2
27-08-2012




                                                         Post Hoc Analysis
  Assumptions in one-way ANOVA                     Multiple pair-wise comparison
                                                           Controversial
• Each population is normal
• Each population has equal variance           • Post-Anova analysis: if one rejects H0, then
• Samples are drawn independently from the       what ?
  different population                           – Fisher’s LSD: Check if

                                                                               1 1
                                                  | X i − X j | > tν × MSE ×     +
                                                                               ni n j




                 Exercise
• Complete the work on Shudhho Chinta: Pt2,3




                                                                                                        3

Contenu connexe

Tendances

Math ia farmville final
Math ia  farmville finalMath ia  farmville final
Math ia farmville finalarieteno
 
Cernei workshoptesting
Cernei workshoptestingCernei workshoptesting
Cernei workshoptestingIrina K
 
Day 9 proportional relationships
Day 9 proportional relationshipsDay 9 proportional relationships
Day 9 proportional relationshipsErik Tjersland
 
Day 15 graphing lines stations
Day 15 graphing lines stationsDay 15 graphing lines stations
Day 15 graphing lines stationsErik Tjersland
 
Lesson32 Second Order Difference Equations Slides
Lesson32   Second Order Difference Equations SlidesLesson32   Second Order Difference Equations Slides
Lesson32 Second Order Difference Equations SlidesMatthew Leingang
 
Lesson30 First Order Difference Equations Slides
Lesson30   First Order Difference Equations SlidesLesson30   First Order Difference Equations Slides
Lesson30 First Order Difference Equations SlidesMatthew Leingang
 
Scatter diagrams and correlation and simple linear regresssion
Scatter diagrams and correlation and simple linear regresssionScatter diagrams and correlation and simple linear regresssion
Scatter diagrams and correlation and simple linear regresssionAnkit Katiyar
 
The use of epidemiology to support decision making
The use of epidemiology to support decision makingThe use of epidemiology to support decision making
The use of epidemiology to support decision makingChaidate Inchaisri
 
Vert&Hor Equating 111024
Vert&Hor Equating 111024Vert&Hor Equating 111024
Vert&Hor Equating 111024egebhardt72
 
Lesson 1: Functions and their representations (handout)
Lesson 1: Functions and their representations (handout)Lesson 1: Functions and their representations (handout)
Lesson 1: Functions and their representations (handout)Matthew Leingang
 
Day 13 graphing linear equations from tables
Day 13 graphing linear equations from tablesDay 13 graphing linear equations from tables
Day 13 graphing linear equations from tablesErik Tjersland
 
Mth 4108-1 b (ans)
Mth 4108-1 b (ans)Mth 4108-1 b (ans)
Mth 4108-1 b (ans)outdoorjohn
 
Day 16 representing with equations
Day 16 representing with equationsDay 16 representing with equations
Day 16 representing with equationsErik Tjersland
 
Cl dys of p and s 5 ed
Cl dys of p and s 5 edCl dys of p and s 5 ed
Cl dys of p and s 5 edroctaiwan101
 

Tendances (19)

Math ia farmville final
Math ia  farmville finalMath ia  farmville final
Math ia farmville final
 
C13s
C13sC13s
C13s
 
C1 january 2012_mark_scheme
C1 january 2012_mark_schemeC1 january 2012_mark_scheme
C1 january 2012_mark_scheme
 
Cernei workshoptesting
Cernei workshoptestingCernei workshoptesting
Cernei workshoptesting
 
Jan 2008 qp
Jan 2008 qpJan 2008 qp
Jan 2008 qp
 
Day 9 proportional relationships
Day 9 proportional relationshipsDay 9 proportional relationships
Day 9 proportional relationships
 
Day 15 graphing lines stations
Day 15 graphing lines stationsDay 15 graphing lines stations
Day 15 graphing lines stations
 
Lesson32 Second Order Difference Equations Slides
Lesson32   Second Order Difference Equations SlidesLesson32   Second Order Difference Equations Slides
Lesson32 Second Order Difference Equations Slides
 
Lesson30 First Order Difference Equations Slides
Lesson30   First Order Difference Equations SlidesLesson30   First Order Difference Equations Slides
Lesson30 First Order Difference Equations Slides
 
Scatter diagrams and correlation and simple linear regresssion
Scatter diagrams and correlation and simple linear regresssionScatter diagrams and correlation and simple linear regresssion
Scatter diagrams and correlation and simple linear regresssion
 
The use of epidemiology to support decision making
The use of epidemiology to support decision makingThe use of epidemiology to support decision making
The use of epidemiology to support decision making
 
Vert&Hor Equating 111024
Vert&Hor Equating 111024Vert&Hor Equating 111024
Vert&Hor Equating 111024
 
Bina item
Bina itemBina item
Bina item
 
Lesson 1: Functions and their representations (handout)
Lesson 1: Functions and their representations (handout)Lesson 1: Functions and their representations (handout)
Lesson 1: Functions and their representations (handout)
 
Day 13 graphing linear equations from tables
Day 13 graphing linear equations from tablesDay 13 graphing linear equations from tables
Day 13 graphing linear equations from tables
 
EC6012 Lecture 7
EC6012 Lecture 7EC6012 Lecture 7
EC6012 Lecture 7
 
Mth 4108-1 b (ans)
Mth 4108-1 b (ans)Mth 4108-1 b (ans)
Mth 4108-1 b (ans)
 
Day 16 representing with equations
Day 16 representing with equationsDay 16 representing with equations
Day 16 representing with equations
 
Cl dys of p and s 5 ed
Cl dys of p and s 5 edCl dys of p and s 5 ed
Cl dys of p and s 5 ed
 

Plus de vivek_shaw

Lecture 11 market structure- perfect competition
Lecture 11  market structure- perfect competitionLecture 11  market structure- perfect competition
Lecture 11 market structure- perfect competitionvivek_shaw
 
Lecture 9 costs
Lecture 9  costsLecture 9  costs
Lecture 9 costsvivek_shaw
 
Lecture 8 production, optimal inputs
Lecture 8  production, optimal inputsLecture 8  production, optimal inputs
Lecture 8 production, optimal inputsvivek_shaw
 
Lecture 8 production, optimal inputs (1)
Lecture 8  production, optimal inputs (1)Lecture 8  production, optimal inputs (1)
Lecture 8 production, optimal inputs (1)vivek_shaw
 
Lecture 3 dds sand elasticity
Lecture 3  dds sand elasticityLecture 3  dds sand elasticity
Lecture 3 dds sand elasticityvivek_shaw
 
Consumertheory1
Consumertheory1Consumertheory1
Consumertheory1vivek_shaw
 
Consumer theory 2
Consumer theory 2Consumer theory 2
Consumer theory 2vivek_shaw
 
Class2 market, demand and supply
Class2  market, demand and supplyClass2  market, demand and supply
Class2 market, demand and supplyvivek_shaw
 
Policy implications
Policy implicationsPolicy implications
Policy implicationsvivek_shaw
 
Man org session 3-org and technology_5th july 2012
Man org session 3-org and technology_5th july 2012Man org session 3-org and technology_5th july 2012
Man org session 3-org and technology_5th july 2012vivek_shaw
 
Man org session 14_org decision making_16th august 2012
Man org session 14_org decision making_16th august 2012Man org session 14_org decision making_16th august 2012
Man org session 14_org decision making_16th august 2012vivek_shaw
 
Man org session 12_org learning_3rd august 2012
Man org session 12_org learning_3rd august 2012Man org session 12_org learning_3rd august 2012
Man org session 12_org learning_3rd august 2012vivek_shaw
 
Man org session 11 interorganizational relationships_2nd august 2012
Man org session 11 interorganizational relationships_2nd august 2012Man org session 11 interorganizational relationships_2nd august 2012
Man org session 11 interorganizational relationships_2nd august 2012vivek_shaw
 
Man org session 10_org control_27th july 2012
Man org session 10_org control_27th july 2012Man org session 10_org control_27th july 2012
Man org session 10_org control_27th july 2012vivek_shaw
 

Plus de vivek_shaw (20)

Lecture 11 market structure- perfect competition
Lecture 11  market structure- perfect competitionLecture 11  market structure- perfect competition
Lecture 11 market structure- perfect competition
 
Lecture 9 costs
Lecture 9  costsLecture 9  costs
Lecture 9 costs
 
Lecture 8 production, optimal inputs
Lecture 8  production, optimal inputsLecture 8  production, optimal inputs
Lecture 8 production, optimal inputs
 
Lecture 8 production, optimal inputs (1)
Lecture 8  production, optimal inputs (1)Lecture 8  production, optimal inputs (1)
Lecture 8 production, optimal inputs (1)
 
Lecture 3 dds sand elasticity
Lecture 3  dds sand elasticityLecture 3  dds sand elasticity
Lecture 3 dds sand elasticity
 
Game theory 3
Game theory 3Game theory 3
Game theory 3
 
Game theory 1
Game theory 1Game theory 1
Game theory 1
 
Game theory 2
Game theory 2Game theory 2
Game theory 2
 
Ford motors
Ford motorsFord motors
Ford motors
 
Consumertheory1
Consumertheory1Consumertheory1
Consumertheory1
 
Consumer theory 2
Consumer theory 2Consumer theory 2
Consumer theory 2
 
Class2 market, demand and supply
Class2  market, demand and supplyClass2  market, demand and supply
Class2 market, demand and supply
 
Auctions 1
Auctions 1Auctions 1
Auctions 1
 
Costs2
Costs2Costs2
Costs2
 
Policy implications
Policy implicationsPolicy implications
Policy implications
 
Man org session 3-org and technology_5th july 2012
Man org session 3-org and technology_5th july 2012Man org session 3-org and technology_5th july 2012
Man org session 3-org and technology_5th july 2012
 
Man org session 14_org decision making_16th august 2012
Man org session 14_org decision making_16th august 2012Man org session 14_org decision making_16th august 2012
Man org session 14_org decision making_16th august 2012
 
Man org session 12_org learning_3rd august 2012
Man org session 12_org learning_3rd august 2012Man org session 12_org learning_3rd august 2012
Man org session 12_org learning_3rd august 2012
 
Man org session 11 interorganizational relationships_2nd august 2012
Man org session 11 interorganizational relationships_2nd august 2012Man org session 11 interorganizational relationships_2nd august 2012
Man org session 11 interorganizational relationships_2nd august 2012
 
Man org session 10_org control_27th july 2012
Man org session 10_org control_27th july 2012Man org session 10_org control_27th july 2012
Man org session 10_org control_27th july 2012
 

Session 17

  • 1. 27-08-2012 Shudhho Chinta: Part 3 Analysis Of VAriance Are the employees in the five different ANOVA offices equally bad? Session XVII Practice problem The Govt a/c office is interested in seeing whether similar-sized offices spend similar amounts on 1 way (and 2 way?) ANOVA personnel and equipment. Monthly expenses of 3 Comparing Means of multiple populations offices have been examined: 1 each in agriculture dept, state dept. and Interior dept. The data (expense in lakh Rs )from some past months are given below: Agriculture: 10 8 11 9 12 State: 15 9 8 10 13 13 Interior: 8 16 12 At 1% significance level, are there differences in expenses for the different offices? Splitting the SUM OF SQUARES(SS) Algebra in Splitting the SUM OF SQUARES: Practice Problem 6 mean s.d n Agriculture 10 8 11 9 12 10.00 1.58 5 State 15 9 8 10 13 13 ( X ij − X ) = ( X ij − X i ) + ( X i − X ) 11.33 2.73 6 Interior 8 16 12 12.00 4.00 3 Grand 11 2.602 14 ∑ ∑ ( X ij − X ) 2 = ∑ ∑ ( X ij − X i ) 2 + ∑ ∑ ( X i − X )2 2 4×1.582 + 5 ×2.732 + 2×42 = ∑ ( ni − 1) S i + ∑ ni ( X i − X ) 2 Total SS = within group SS + Between group SS Total SS χ 2 (if H0) χ 13×2.6022 5×(10-11)2 + 6 ×(11.33-11)2 +3×(12-11)2 n −1 within group SS χ 2 n− k Between group SS 2 k −1 2 (after dividing by σ ) independent χ 2 n −1 χ 2 n−k χ 2 k −1 After dividing by d.f. MSE MS due to ‘group’ 1
  • 2. 27-08-2012 Practice Problem ANOVA TABLE Between group SS k -1 Test statistic is = Within group SS = Fk −1,n −k n -k ANOVA P-value VAR00001 At α=0.01, the C.R. is TS > 7.21 Sum of Squares df Mean Square F Sig. Between Groups 8.667 2 4.333 .601 .565 Observed MSE = (4×1.582 + 5 ×2.732 + 2×42 )/11=7.2121 Within Groups 79.333 11 7.212 MS due to group = [5×(10-11)2 + 6 ×(11.33-11)2 +3×(12-11)2 ]/2=4.33 Total 88.000 13 So observed value of TS = 0.60 So do not reject H0 at α =0.01 Observed value of TS ANOVA TABLE Three unbiased estimates of σ2 Source of variation Sum of squares (SS) Degrees of freedom Mean SS F Statistic (under H0) (df) Between group k-1 ∑ n j ( x j − x ) 2 = SSb ˆ2 σb = SS b σ b2 ˆ = Fk −1,n− k • Usual S2 based on all n observation TSS/(n-1) k −1 ˆ2 σw • Pooled estimate Within group n-k ∑ (n j − 1) S 2 = SS w j ˆ2 σw = SS w – SSE/(n-k) 2 n−k • Indirect estimate from σX – SS due to treatment/(k-1) TOTAL n-1 ∑∑ ( xij − x ) 2 = SST S2 = SST n −1 The last estimate is likely to be large compared to the second if the null hypothesis is not true This column does not add up! E (Mean square error/within group)=σ 2 ; k Usually not included in the ANOVA table 2 ∑ n (µ i =1 i i − µ )2 E (Mean square between group)=σ + . k −1 ANOVA: The Model in ANOVA and A comparison of three estimates of σ2 estimating the parameters µ3 µ2 µ1 in the model Sampling distribution of X X ij ֏ N ( µ + α i , σ 2 ) µ1=µ2=µ3 Assume temporarily that n1=n2=n3. µ = X .. ˆ ( X A − X )2 + ( X S − X )2 + ( X I − X ) 2 σ2 α i = X i. − X .. ˆ is an estimate for σ2 = X 2 ni σ 2 = MSE ˆ 2 2 2 n A ( X A − X ) + nS ( X S − X ) + nI ( X I − X ) is an estimate for σ2 2 2
  • 3. 27-08-2012 Post Hoc Analysis Assumptions in one-way ANOVA Multiple pair-wise comparison Controversial • Each population is normal • Each population has equal variance • Post-Anova analysis: if one rejects H0, then • Samples are drawn independently from the what ? different population – Fisher’s LSD: Check if 1 1 | X i − X j | > tν × MSE × + ni n j Exercise • Complete the work on Shudhho Chinta: Pt2,3 3