SlideShare a Scribd company logo
MULTIPLE COMPARISON
Presented by: Riaz Khan
Hypothesis Testing
 An indirect form of statistical inference
 We accept or reject a general hypothesis/statement
 H0 : Null/Original Hypothesis
 H1 : Alternate Hypothesis
 Performed based on a significance level, α
Multiple Comparison: Multiple hypothesis testing
simultaneously
2
Motivation
 H0 : 𝜃1 = 𝜃2 = 𝜃3
 H1 : All θ’s are not equal
 Null hypothesis rejected by ANOVA
 Which one different?
 One must compare pairwise 0
0.5
1
1.5
2
2.5
A B C
Independent Variable
DependentVariable
0
0.5
1
1.5
2
2.5
A B C
Independent Variable
DependentVariable
0
0.5
1
1.5
2
2.5
A B C
Independent Variable
DependentVariable
0
0.5
1
1.5
2
2.5
3
3.5
A B C
Independent Variable
DependentVariable
H1
0
0.2
0.4
0.6
0.8
1
1.2
A B C
Independent Variable
DependentVariable
H0
3
Multiplicity: Simultaneous Inference Problem
 If 𝛼 = 0.05, each pairwise
comparison has 5% chance of
doing wrong rejection.
 Overall error can be
significantly larger than the
nominal 𝛼
 Type I error chance increases
 For 10 comparisons, chance of type
I error = 1 − 0.9510
= 𝟒𝟎. 𝟏%
Type I error : wrong rejection
Type II error : wrong acceptance
4
Fixing Multiplicity
 Fix α very small so that overall type I error rate falls below the
pre-specified value (5%)
 For the 10 comparison test, 𝛼 = 0.005
 Decreasing α increases the chance of Type II error rate and
decreases the power of the test as well (Trade Off)
5
Techniques of Multiple Comparison
 Some, of a wide number of methods
 Fisher’s Pairwise t-test
 Fisher’s Least Significant Degree of freedom (LSD)
 Tukey’s Honestly Significant Difference (HSD)
 Generalized Linearized Hypothesis Testing
6
Fisher’s Pairwise t-Test
Assumptions
 All data independent and
normally distributed
 Variance homogeneity
Analysis in R
 pairwise.t.test {stats}
 Can be utilized with no adjustment,
Bonferroni adjustment, Holm adjustment
and many…
7
Fisher’s Pairwise t-Test (cont’d)
Data: flowers
 A subset taken from iris3 data
 50 samples of Setosa, Versicolor and Viginica
 We are interested in the sepal length of the types
## Type 1 = Setosa
## Type 2 = Versicolor
## Type 3 = Virginica
8
Fisher’s Pairwise t-Test (cont’d)
No Adjustment
All pairs are different
Bonferroni Adjustment
 Divides the Type I error rate (α) by the
number of tests (in this case, 3).
 Overly conservative.
All pairs still different, but with
different p values
9
Fisher’s Pairwise t-Test (cont’d)
Holm Adjustment
 Sequentially reduce the α value
 If there is k hypotheses, the nth
level is given by
𝛼 𝑛 =
𝛼 𝑛𝑜𝑚𝑖𝑛𝑎𝑙
𝑘 − 𝑛 + 1
 Generally considered superior to
Bonferroni adjustment
All pairs still different, but
again with different p values
10
Fisher’s LSD
 Very powerful for 3 treatment groups
 Overall type I error control is poor compared to
the t-Test
## LSD.test{agricolae}
 The R package comes with the correction options
as in t-Test (The example here utilizes Holm
correction)
All pairs still different significantly
11
Tukey HSD
 Assumptions
 Independence (within and among the groups)
 Groups are normal
 Within group variance equality
 The HSD are calculated from ANOVA
parameters
 Works good for unequal groups
All pairs still different significantly
12
General Linearized Hypothesis Testing
 General approach for null hypotheses on
arbitrary parameters
 Each hypothesis is expressed as a linear
combination of all the group (parameter)
 All the hypotheses expressed as a matrix
 For or case, matrix 𝐾 =
1 0 −1
−1 1 0
0 −1 1
Again, all pairs different significantly
13
Comments
 The choice of method of method of the
post hoc test depends on the nature of the
problem
 Simple, k = 3, Fisher’s LSD
 k > 3, variance homogeneity, group
inequality, Tukey HSD
 Trying to decrease type I error always
tends to increase type II error and
decrease the power of comparison
(tradeoff)
14

More Related Content

What's hot

Chi – square test
Chi – square testChi – square test
Chi – square test
Dr.M.Prasad Naidu
 
Analysis of variance
Analysis of varianceAnalysis of variance
Analysis of variance
Ravi Rohilla
 
Chi square test final
Chi square test finalChi square test final
Chi square test final
Har Jindal
 
Brm (one tailed and two tailed hypothesis)
Brm (one tailed and two tailed hypothesis)Brm (one tailed and two tailed hypothesis)
Brm (one tailed and two tailed hypothesis)
Upama Dwivedi
 
Introduction to ANOVAs
Introduction to ANOVAsIntroduction to ANOVAs
Introduction to ANOVAs
florentinoz
 
Repeated Measures ANOVA
Repeated Measures ANOVARepeated Measures ANOVA
Repeated Measures ANOVA
Kaori Kubo Germano, PhD
 
Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)
Avjinder (Avi) Kaler
 
Chi squared test
Chi squared testChi squared test
Chi squared test
Ramakanth Gadepalli
 
Test for independence
Test for independence Test for independence
Test for independence
Sofia Marie Escultura
 
Anova (f test) and mean differentiation
Anova (f test) and mean differentiationAnova (f test) and mean differentiation
Anova (f test) and mean differentiation
Subramani Parasuraman
 
General Linear Model | Statistics
General Linear Model | StatisticsGeneral Linear Model | Statistics
General Linear Model | Statistics
Transweb Global Inc
 
Mixed between-within groups ANOVA
Mixed between-within groups ANOVAMixed between-within groups ANOVA
Mixed between-within groups ANOVA
Mahsa Farahanynia
 
Bayesian inference
Bayesian inferenceBayesian inference
Bayesian inference
CharthaGaglani
 
Two way ANOVA
Two way ANOVATwo way ANOVA
Two way ANOVA
D-kay Verma
 
Multiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA IMultiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA I
James Neill
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
Kaori Kubo Germano, PhD
 
Latin square design
Latin square designLatin square design
Latin square design
anghelsalupa_120407
 
Analysis of variance anova
Analysis of variance anovaAnalysis of variance anova
Anova in easyest way
Anova in easyest wayAnova in easyest way
Anova in easyest way
Bidyut Ghosh
 
Analysis of variance ppt @ bec doms
Analysis of variance ppt @ bec domsAnalysis of variance ppt @ bec doms
Analysis of variance ppt @ bec doms
Babasab Patil
 

What's hot (20)

Chi – square test
Chi – square testChi – square test
Chi – square test
 
Analysis of variance
Analysis of varianceAnalysis of variance
Analysis of variance
 
Chi square test final
Chi square test finalChi square test final
Chi square test final
 
Brm (one tailed and two tailed hypothesis)
Brm (one tailed and two tailed hypothesis)Brm (one tailed and two tailed hypothesis)
Brm (one tailed and two tailed hypothesis)
 
Introduction to ANOVAs
Introduction to ANOVAsIntroduction to ANOVAs
Introduction to ANOVAs
 
Repeated Measures ANOVA
Repeated Measures ANOVARepeated Measures ANOVA
Repeated Measures ANOVA
 
Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)
 
Chi squared test
Chi squared testChi squared test
Chi squared test
 
Test for independence
Test for independence Test for independence
Test for independence
 
Anova (f test) and mean differentiation
Anova (f test) and mean differentiationAnova (f test) and mean differentiation
Anova (f test) and mean differentiation
 
General Linear Model | Statistics
General Linear Model | StatisticsGeneral Linear Model | Statistics
General Linear Model | Statistics
 
Mixed between-within groups ANOVA
Mixed between-within groups ANOVAMixed between-within groups ANOVA
Mixed between-within groups ANOVA
 
Bayesian inference
Bayesian inferenceBayesian inference
Bayesian inference
 
Two way ANOVA
Two way ANOVATwo way ANOVA
Two way ANOVA
 
Multiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA IMultiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA I
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Latin square design
Latin square designLatin square design
Latin square design
 
Analysis of variance anova
Analysis of variance anovaAnalysis of variance anova
Analysis of variance anova
 
Anova in easyest way
Anova in easyest wayAnova in easyest way
Anova in easyest way
 
Analysis of variance ppt @ bec doms
Analysis of variance ppt @ bec domsAnalysis of variance ppt @ bec doms
Analysis of variance ppt @ bec doms
 

Similar to Multiple Comparison_Applied Statistics, Data Science

Hypothesis Testing in Six Sigma
Hypothesis Testing in Six SigmaHypothesis Testing in Six Sigma
Hypothesis Testing in Six Sigma
Body of Knowledge
 
Assessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docxAssessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docx
galerussel59292
 
Math3010 week 5
Math3010 week 5Math3010 week 5
Math3010 week 5
stanbridge
 
Assessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docxAssessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docx
festockton
 
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesis
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesisTesting of Hypothesis, p-value, Gaussian distribution, null hypothesis
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesis
svmmcradonco1
 
ANOVA
ANOVAANOVA
One way AVOVA
One way AVOVA  One way AVOVA
One way AVOVA
Long Beach City College
 
Hypothesis
HypothesisHypothesis
Hypothesis
debarati roy
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
Sathish Rajamani
 
Testing of Hypothesis (Terminologies)
Testing of Hypothesis (Terminologies)Testing of Hypothesis (Terminologies)
Testing of Hypothesis (Terminologies)
Tanuj Kumar Pandey
 
Ebd1 lecture7 2010
Ebd1 lecture7 2010Ebd1 lecture7 2010
Ebd1 lecture7 2010
Reko Kemo
 
Parametric tests
Parametric  testsParametric  tests
Parametric tests
shefali jain
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
RuchiJainRuchiJain
 
Spss session 1 and 2
Spss session 1 and 2Spss session 1 and 2
Spss session 1 and 2
Judianto Nugroho
 
Unit 4 Tests of Significance
Unit 4 Tests of SignificanceUnit 4 Tests of Significance
Unit 4 Tests of Significance
Rai University
 
Practice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anovaPractice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anova
Long Beach City College
 
single factor ANOVA animal.pptx
single factor ANOVA animal.pptxsingle factor ANOVA animal.pptx
single factor ANOVA animal.pptx
dawitg2
 
Applied statistics part 3
Applied statistics part 3Applied statistics part 3
Hypothesistesting2
Hypothesistesting2Hypothesistesting2
Hypothesistesting2
Nithin Ramachandran
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
Sanjay Basukala
 

Similar to Multiple Comparison_Applied Statistics, Data Science (20)

Hypothesis Testing in Six Sigma
Hypothesis Testing in Six SigmaHypothesis Testing in Six Sigma
Hypothesis Testing in Six Sigma
 
Assessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docxAssessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docx
 
Math3010 week 5
Math3010 week 5Math3010 week 5
Math3010 week 5
 
Assessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docxAssessment 4 ContextRecall that null hypothesis tests are of.docx
Assessment 4 ContextRecall that null hypothesis tests are of.docx
 
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesis
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesisTesting of Hypothesis, p-value, Gaussian distribution, null hypothesis
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesis
 
ANOVA
ANOVAANOVA
ANOVA
 
One way AVOVA
One way AVOVA  One way AVOVA
One way AVOVA
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Testing of Hypothesis (Terminologies)
Testing of Hypothesis (Terminologies)Testing of Hypothesis (Terminologies)
Testing of Hypothesis (Terminologies)
 
Ebd1 lecture7 2010
Ebd1 lecture7 2010Ebd1 lecture7 2010
Ebd1 lecture7 2010
 
Parametric tests
Parametric  testsParametric  tests
Parametric tests
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
 
Spss session 1 and 2
Spss session 1 and 2Spss session 1 and 2
Spss session 1 and 2
 
Unit 4 Tests of Significance
Unit 4 Tests of SignificanceUnit 4 Tests of Significance
Unit 4 Tests of Significance
 
Practice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anovaPractice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anova
 
single factor ANOVA animal.pptx
single factor ANOVA animal.pptxsingle factor ANOVA animal.pptx
single factor ANOVA animal.pptx
 
Applied statistics part 3
Applied statistics part 3Applied statistics part 3
Applied statistics part 3
 
Hypothesistesting2
Hypothesistesting2Hypothesistesting2
Hypothesistesting2
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
 

Recently uploaded

The debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically youngThe debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically young
Sérgio Sacani
 
8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf
by6843629
 
Basics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different formsBasics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different forms
MaheshaNanjegowda
 
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
hozt8xgk
 
Gadgets for management of stored product pests_Dr.UPR.pdf
Gadgets for management of stored product pests_Dr.UPR.pdfGadgets for management of stored product pests_Dr.UPR.pdf
Gadgets for management of stored product pests_Dr.UPR.pdf
PirithiRaju
 
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Leonel Morgado
 
Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...
Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...
Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...
PsychoTech Services
 
Randomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNERandomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNE
University of Maribor
 
11.1 Role of physical biological in deterioration of grains.pdf
11.1 Role of physical biological in deterioration of grains.pdf11.1 Role of physical biological in deterioration of grains.pdf
11.1 Role of physical biological in deterioration of grains.pdf
PirithiRaju
 
The cost of acquiring information by natural selection
The cost of acquiring information by natural selectionThe cost of acquiring information by natural selection
The cost of acquiring information by natural selection
Carl Bergstrom
 
Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.
Aditi Bajpai
 
AJAY KUMAR NIET GreNo Guava Project File.pdf
AJAY KUMAR NIET GreNo Guava Project File.pdfAJAY KUMAR NIET GreNo Guava Project File.pdf
AJAY KUMAR NIET GreNo Guava Project File.pdf
AJAY KUMAR
 
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
vluwdy49
 
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdfMending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Selcen Ozturkcan
 
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
Advanced-Concepts-Team
 
Farming systems analysis: what have we learnt?.pptx
Farming systems analysis: what have we learnt?.pptxFarming systems analysis: what have we learnt?.pptx
Farming systems analysis: what have we learnt?.pptx
Frédéric Baudron
 
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of ProteinsGBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
Areesha Ahmad
 
HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1
Shashank Shekhar Pandey
 
aziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobelaziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobel
İsa Badur
 
Sciences of Europe journal No 142 (2024)
Sciences of Europe journal No 142 (2024)Sciences of Europe journal No 142 (2024)
Sciences of Europe journal No 142 (2024)
Sciences of Europe
 

Recently uploaded (20)

The debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically youngThe debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically young
 
8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf8.Isolation of pure cultures and preservation of cultures.pdf
8.Isolation of pure cultures and preservation of cultures.pdf
 
Basics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different formsBasics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different forms
 
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
 
Gadgets for management of stored product pests_Dr.UPR.pdf
Gadgets for management of stored product pests_Dr.UPR.pdfGadgets for management of stored product pests_Dr.UPR.pdf
Gadgets for management of stored product pests_Dr.UPR.pdf
 
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
 
Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...
Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...
Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...
 
Randomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNERandomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNE
 
11.1 Role of physical biological in deterioration of grains.pdf
11.1 Role of physical biological in deterioration of grains.pdf11.1 Role of physical biological in deterioration of grains.pdf
11.1 Role of physical biological in deterioration of grains.pdf
 
The cost of acquiring information by natural selection
The cost of acquiring information by natural selectionThe cost of acquiring information by natural selection
The cost of acquiring information by natural selection
 
Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.
 
AJAY KUMAR NIET GreNo Guava Project File.pdf
AJAY KUMAR NIET GreNo Guava Project File.pdfAJAY KUMAR NIET GreNo Guava Project File.pdf
AJAY KUMAR NIET GreNo Guava Project File.pdf
 
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
 
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdfMending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
 
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
 
Farming systems analysis: what have we learnt?.pptx
Farming systems analysis: what have we learnt?.pptxFarming systems analysis: what have we learnt?.pptx
Farming systems analysis: what have we learnt?.pptx
 
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of ProteinsGBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
 
HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1
 
aziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobelaziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobel
 
Sciences of Europe journal No 142 (2024)
Sciences of Europe journal No 142 (2024)Sciences of Europe journal No 142 (2024)
Sciences of Europe journal No 142 (2024)
 

Multiple Comparison_Applied Statistics, Data Science

  • 2. Hypothesis Testing  An indirect form of statistical inference  We accept or reject a general hypothesis/statement  H0 : Null/Original Hypothesis  H1 : Alternate Hypothesis  Performed based on a significance level, α Multiple Comparison: Multiple hypothesis testing simultaneously 2
  • 3. Motivation  H0 : 𝜃1 = 𝜃2 = 𝜃3  H1 : All θ’s are not equal  Null hypothesis rejected by ANOVA  Which one different?  One must compare pairwise 0 0.5 1 1.5 2 2.5 A B C Independent Variable DependentVariable 0 0.5 1 1.5 2 2.5 A B C Independent Variable DependentVariable 0 0.5 1 1.5 2 2.5 A B C Independent Variable DependentVariable 0 0.5 1 1.5 2 2.5 3 3.5 A B C Independent Variable DependentVariable H1 0 0.2 0.4 0.6 0.8 1 1.2 A B C Independent Variable DependentVariable H0 3
  • 4. Multiplicity: Simultaneous Inference Problem  If 𝛼 = 0.05, each pairwise comparison has 5% chance of doing wrong rejection.  Overall error can be significantly larger than the nominal 𝛼  Type I error chance increases  For 10 comparisons, chance of type I error = 1 − 0.9510 = 𝟒𝟎. 𝟏% Type I error : wrong rejection Type II error : wrong acceptance 4
  • 5. Fixing Multiplicity  Fix α very small so that overall type I error rate falls below the pre-specified value (5%)  For the 10 comparison test, 𝛼 = 0.005  Decreasing α increases the chance of Type II error rate and decreases the power of the test as well (Trade Off) 5
  • 6. Techniques of Multiple Comparison  Some, of a wide number of methods  Fisher’s Pairwise t-test  Fisher’s Least Significant Degree of freedom (LSD)  Tukey’s Honestly Significant Difference (HSD)  Generalized Linearized Hypothesis Testing 6
  • 7. Fisher’s Pairwise t-Test Assumptions  All data independent and normally distributed  Variance homogeneity Analysis in R  pairwise.t.test {stats}  Can be utilized with no adjustment, Bonferroni adjustment, Holm adjustment and many… 7
  • 8. Fisher’s Pairwise t-Test (cont’d) Data: flowers  A subset taken from iris3 data  50 samples of Setosa, Versicolor and Viginica  We are interested in the sepal length of the types ## Type 1 = Setosa ## Type 2 = Versicolor ## Type 3 = Virginica 8
  • 9. Fisher’s Pairwise t-Test (cont’d) No Adjustment All pairs are different Bonferroni Adjustment  Divides the Type I error rate (α) by the number of tests (in this case, 3).  Overly conservative. All pairs still different, but with different p values 9
  • 10. Fisher’s Pairwise t-Test (cont’d) Holm Adjustment  Sequentially reduce the α value  If there is k hypotheses, the nth level is given by 𝛼 𝑛 = 𝛼 𝑛𝑜𝑚𝑖𝑛𝑎𝑙 𝑘 − 𝑛 + 1  Generally considered superior to Bonferroni adjustment All pairs still different, but again with different p values 10
  • 11. Fisher’s LSD  Very powerful for 3 treatment groups  Overall type I error control is poor compared to the t-Test ## LSD.test{agricolae}  The R package comes with the correction options as in t-Test (The example here utilizes Holm correction) All pairs still different significantly 11
  • 12. Tukey HSD  Assumptions  Independence (within and among the groups)  Groups are normal  Within group variance equality  The HSD are calculated from ANOVA parameters  Works good for unequal groups All pairs still different significantly 12
  • 13. General Linearized Hypothesis Testing  General approach for null hypotheses on arbitrary parameters  Each hypothesis is expressed as a linear combination of all the group (parameter)  All the hypotheses expressed as a matrix  For or case, matrix 𝐾 = 1 0 −1 −1 1 0 0 −1 1 Again, all pairs different significantly 13
  • 14. Comments  The choice of method of method of the post hoc test depends on the nature of the problem  Simple, k = 3, Fisher’s LSD  k > 3, variance homogeneity, group inequality, Tukey HSD  Trying to decrease type I error always tends to increase type II error and decrease the power of comparison (tradeoff) 14