TWO π 2 S: COMPARISONS Business Statistics
CONTENTS Comparing the variance of two populations The πΊ -distribution The πΊ -test Leveneβs test Old exam question Further study
COMPARING THE VARIANCE OF TWO POPULATIONS βͺ So far, the emphasis was on differences in centrality βͺ There are also questions on differences in dispersion βͺ Context: βͺ you can choose between two drilling machines βͺ both make holes of the specified size βͺ but the precision of the two may be different βͺ so you do an experiment (intended hole size: 3 mm)
COMPARING THE VARIANCE OF TWO POPULATIONS βͺ A second case βͺ Recall that we can compare two population means under the assumption of equal population variances βͺ using the pooled variance βͺ Thus, we may need to check if the populations variances are indeed equal
COMPARING THE VARIANCE OF TWO POPULATIONS Test statistic to consider 2 and S π 2 βͺ A combination of S π 2 is problematic 2 β π π βͺ but the null distribution of π π 2 π π βͺ Instead, 2 is possible π π 2 π π βͺ or 2 (sometimes easier) π π These hypotheses are βͺ What is the hypothesis? 2 equivalent to π π 2 = π π 2 = 1 2 βͺ πΌ 0 : π π π π 2 β₯ π π (or β₯ 1 or β€ 1 ) 2 βͺ πΌ 0 : π π 2 β€ π π 2 βͺ πΌ 0 : π π 2 = π π 2 + 3 etc. is not possible! βͺ but π π
THE πΊ -DISTRIBUTION βͺ For normally distributed populations, it is known that: 2 = π π βͺ under πΌ 0 : π π 2 : 2 π π 2 ~πΊ π π β1,π π β1 π π βͺ where πΊ df 1 ,df 2 is the F -distribution βͺ with df 1 and df 2 degrees of freedom βͺ note: πΊ is a ratio of two variances, use df 1 for the numerator and df 2 for the denominator
THE πΊ -DISTRIBUTION βͺ So, we compute the value of a test statistic 2 πΊ calc = π‘ π 2 π‘ π βͺ and expect it to be around 1 if πΌ 0 is true βͺ and reject πΌ 0 if πΊ calc is βtooβ small or βtooβ large βͺ we need to look up the critical values of the πΊ -distribution πΊ crit,lower 1 πΊ ππ ππ’,π£ππππ Of course (!) you expect πΊ = 1 when πΌ 0 is true
THE πΊ -DISTRIBUTION βͺ πΊ -distribution βͺ like π 2 not symmetrical and strictly positive βͺ need to find πΊ crit,lower and πΊ crit,upper
THE πΊ -DISTRIBUTION df 1 Looking up critical values for πΊ π½/2 Is this πΊ crit,lower or πΊ crit,upper ? df 2
THE πΊ -DISTRIBUTION βͺ Finding πΊ crit,lower when you know πΊ crit,upper 1 πΊ crit,lower df 1 , df 2 = πΊ crit,upper df 2 , df 1 1 βͺ so πΊ crit,lower = 3.85 = 0.26 2 2 π 1 2 > π β π 2 2 < 1 π 2 π 1 π
THE πΊ -TEST Step 1: 2 = π 2 2 β π 2 2 ; πΌ 1 : π 1 2 ; π½ = 0.05 βͺ πΌ 0 : π 1 Step 2: 2 π 1 βͺ sample statistic: πΊ = 2 ; reject for βtoo smallβ and βtoo largeβ π 2 values Step 3: βͺ null distribution: πΊ~πΊ df 1 ,df 2 βͺ both populations must be normally distributed (no CLT here!) Step 4: 2 π‘ 1 2 ; πΊ crit,lower = β― ; πΊ crit,upper = β― (use π½/2 ) βͺ πΊ calc = π‘ 2 Step 5: βͺ reject πΌ 0 if πΊ calc < πΊ crit,lower or πΊ calc > πΊ crit,upper
THE πΊ -TEST Example: 2 = 0.012 with π 1 = 6 βͺ machine 1 gives π‘ 1 2 = 0.016 with π 2 = 7 βͺ machine 2 gives π‘ 2 Computations: upper critical values 0.012 can be read in the πΊ - βͺ πΊ calc = 0.016 = 0.75 table, so easier to look up πΊ crit,upper βͺ swap the two machines 0.016 βͺ πΊ calc = 0.012 = 1.33 βͺ null distribution: πΊ~πΊ 6,5 βͺ πΊ crit;upper = πΊ 6,5;0.025 = 6.98 βͺ πΊ calc < πΊ crit;upper , do not reject πΌ 0
THE πΊ -TEST 2 = π 2 Trick to avoid the use of πΊ crit,lower in πΌ 0 : π 1 2 βͺ put largest sample variance in numerator 2 π‘ 1 βͺ so calculated value of test statistic is πΊ calc = 2 or πΊ calc = π‘ 2 2 π‘ 2 2 π‘ 1 βͺ with this, πΊ ππππ > 1 , so we need only consider πΊ ππ ππ’,π£ππππ βͺ because πΊ ππ ππ’,πππ₯ππ is always < 1 βͺ formally reject for βtoo largeβ and βtoo smallβ βͺ so keep using π½/2 and not π½ (it is still a two-sided test)
THE πΊ -TEST One-sided tests: what is different compared to two-sided? Step 1: 2 β₯ π 2 2 < π 2 2 ; πΌ 1 : π 1 2 ; π½ = 0.05 βͺ πΌ 0 : π 1 2 β€ π 1 2 > π 1 βͺ reformulate as πΌ 0 : π 2 2 ; πΌ 1 : π 2 2 ; π½ = 0.05 Step 2: 2 π 2 βͺ sample statistic: πΊ = 2 ; reject for βtoo largeβ values π 1 Step 3: βͺ null distribution: πΊ~πΊ df 2 ,df 1 βͺ both populations must be normally distributed Step 4: 2 π‘ 2 2 ; πΊ crit,upper = β― (use π½ ) βͺ πΊ calc = π‘ 1 Step 5: βͺ reject πΌ 0 if πΊ ππππ > πΊ crit,upper
EXERCISE 1 Given a sample 1 with π 1 = 9 and π‘ 1 = 4 and a sample 2 2 = π 2 2 . with π 2 = 7 and π‘ 2 = 5 . We want to test πΌ 0 : π 1 a. What is step 2? b. What is step 3?
LEVENEβS TEST Recall that SPSS also did a comparison of two variances when we asked for comparing two means βͺ Leveneβs test
LEVENEβS TEST The Levene test βͺ is based on a different principle βͺ requires no normal populations (!) βͺ also yields an πΊ calc βͺ but with different values of df βͺ reject for large values only 2 = π 2 2 βͺ yields a π -value for πΌ 0 : π 1
LEVENEβS TEST βͺ When comparing two π s with the π’ -test, we needed to 2 and π 2 2 estimate π 1 2 by π‘ 1 2 and π 2 2 by π‘ 2 βͺ we could estimate π 1 2 2 to estimate both 2 and use the pooled π‘ P 2 = π 2 βͺ or assume π 1 βͺ The second is only allowed if the two sample variances π‘ 1 2 2 are not βtoo unequalβ and π‘ 2 Usually, a low π - βͺ Leveneβs test tests this value means bingo, but not so here ... βͺ a low π - value means: unequal, so donβt do it βͺ do not necessarily use the same π½ Rule of thumb: βͺ Why Levene and not the βnormalβ πΊ -test? use π½ = 0.1 Levene is a non-parametric test ...
OLD EXAM QUESTION 26 March 2015, Q1c
FURTHER STUDY Doane & Seward 5/E 10.7 Tutorial exercises week 3 Fisher πΊ -test
Recommend
More recommend