SlideShare a Scribd company logo
1 of 14
Presented by :
Saumya Bhatnagar
Fisher’s exact test
1) Lady Bristol’s claim
• H0 = her ability to distinguish the teas is mere chance
• In Fisher’s approach, no Ha
• 8 cups, p= 0.014 (=1/8C4 = 1/70) <0.05 (association is random = reject H0)
2) Lady tasting tea
• two-alternative forced choice
3) Increase the #observations in each group
• How these groups are varied?
. . … . .
. . … . .
. . … . .
Table of Content
1) Fisher’s exact test
2) Anova
1) Anova & t-test
2) Anova Designs
3) One way Anova
4) Assumptions Anova
5) Computing F score & Anova table
3) Anova in R
4) Why Anova
Anova & t-test
What is Anova?
• Omnibus to t-tests or Generalized t-test
• 𝑡 − 𝑠𝑐𝑜𝑟𝑒 =
𝑑𝑖𝑓𝑓𝑒𝑟𝑒𝑛𝑐𝑒 𝑏𝑒𝑡𝑤𝑒𝑒𝑛 𝑔𝑟𝑜𝑢𝑝𝑠
𝑑𝑖𝑓𝑓𝑒𝑟𝑒𝑛𝑐𝑒 𝑤𝑖𝑡ℎ𝑖𝑛 𝑡ℎ𝑒 𝑔𝑟𝑜𝑢𝑝
⇒ 𝑔𝑟𝑜𝑢𝑝𝑠 𝑎𝑟𝑒 𝑡 𝑡𝑖𝑚𝑒𝑠 𝑎𝑠 𝑑𝑖𝑓𝑓𝑒𝑟𝑒𝑛𝑡 𝑓𝑟𝑜𝑚 𝑒𝑎𝑐ℎ 𝑜𝑡ℎ𝑒𝑟 𝑎𝑠 𝑡ℎ𝑒𝑦 𝑎𝑟𝑒 𝑤𝑖𝑡ℎ𝑖𝑛 𝑒𝑎𝑐ℎ 𝑜𝑡ℎ𝑒𝑟
• Analysis of data from two samples by both a t test and an ANOVA shows that the
observed F values equals the observed t value squared
F = t2, (degree of freedom=1)
T-test & type of errors
1) Null Hypothesis & errors
2) T-test
1) t-score
2) p-value(probability that results are by chance)
3) An Independent Samples t-test compares the means for two groups.
4) A Paired sample t-test compares means from the same group at different times
5) A One sample t-test tests the mean of a single group against a known mean
Decision H0 = True H0 = False
H0=
reject
Type 1 error,
(false positive)
Denoted as α
Aka “significance level of a test”
Correct
inference
(True Positive)
H0 = Fail
to reject
Correct inference
(True Negative)
Type II error
(False Negative)
Denoted as β
One way Anova
Two or more samples
One factor or independent variable
One dependent variable
e.g. Tea taste is being tested at one level – what was poured
first?
Factorial Anova
Two or more samples
Multiple independent variable
One dependent variable
e.g. Tea taste is being tested at various levels - sugar, tea
content etc.
Repeated Measures Anova
Same sample
e.g. Tea being poured to the same set thrice a day and tested
M-AN-O-VA
Two or more samples
Multiple independent variable
Multiple dependent variables
e.g. Tea being tested for color + taste at various levels
AN-O-VA
designs
One-way Anova
• Do differences exist between two or more groups on one DV?
• a priori vs. post-hoc (a posteriori) tests
• Post hoc is the multiple comparison test of groups. it compares all possible pairs of
means.
othersthefromdifferentismeanstheofoneleastAt:
:
321
a
k
o
H
H   
Assumptions One-way Anova
One way ANOVA is based on the following assumptions:
1) Normal distribution of the population
2) Two or more than two categorical independent groups in an independent variable.
3) Independence of samples
4) σ1
2 = σ2
2 = σ3
2 = ….
Computing F-score
ANOVA is computed with the three sums of squares
• Total – Total Sum of Squares, a measure of all variations in the dependent variable, SST
• Treatment (Between) – Sum of Squares Treatments (Between), SSC
• Error (Within) – Sum of Squares of Errors; yields the variations within treatments (or columns), SSE
 

k
i
n
j
iij xxSSE
1 1
2
)(
 

k
i
n
j
ij xxSST
1 1
2
)(
  

k
i
ii
k
i
n
j
i xxnxxSSC
1
2
1 1
2
)()(
SST = SSC + SSE
Anova Table
The table is as follows:
Anova in R
One way Anova
Import data set
Check null values and mine data
Plot box-plots
Run aov
Save in another variable
Export the summary
Anova in R
(where y = dependent variable, A=independent variable)One way Anova
• fit <- aov(y ~ A, data)
(For two way Anova)Factorial Anova
• fit <- aov(y ~ A + B + A:B, data)
fit <- aov(y ~ A*B, data)
(Considering two dependent variables Y & Y’)MANOVA
• fit <- manova(cbind(Y, Y’) ~ A*B, data)
Why Anova?
1) Gives an exploratory data analysis
1) Effect of many variables at once
2) Generates ‘F’ statistics : allows testing of a nested sequence of models
3) organization of an additive data decomposition,
4) sums of squares indicate the variance of each component of the decomposition (or,
equivalently, each set of terms of a linear model).
2) Analysis of a variety of experimental designs.
3) Handles experimental error
1) Reduces chances of Type 1 error
2) The more statistical tests run, the greater likelihood that the researcher will obtain seemingly
significant effects due to chance alone. (ANOVA determines whether the amount of variance
between the groups is greater than the variance within the groups)
Thank you

More Related Content

What's hot

Anova (f test) and mean differentiation
Anova (f test) and mean differentiationAnova (f test) and mean differentiation
Anova (f test) and mean differentiationSubramani Parasuraman
 
Introduction to ANOVAs
Introduction to ANOVAsIntroduction to ANOVAs
Introduction to ANOVAsflorentinoz
 
Statistical inference concept, procedure of hypothesis testing
Statistical inference   concept, procedure of hypothesis testingStatistical inference   concept, procedure of hypothesis testing
Statistical inference concept, procedure of hypothesis testingAmitaChaudhary19
 
Analysis of variance
Analysis of varianceAnalysis of variance
Analysis of varianceAndi Koentary
 
Research method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anovaResearch method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anovanaranbatn
 
F test and ANOVA
F test and ANOVAF test and ANOVA
F test and ANOVAParag Shah
 
9. basic concepts_of_one_way_analysis_of_variance_(anova)
9. basic concepts_of_one_way_analysis_of_variance_(anova)9. basic concepts_of_one_way_analysis_of_variance_(anova)
9. basic concepts_of_one_way_analysis_of_variance_(anova)Irfan Hussain
 
Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Sneh Kumari
 
One way anova final ppt.
One way anova final ppt.One way anova final ppt.
One way anova final ppt.Aadab Mushrib
 
Presentation On Regression
Presentation On RegressionPresentation On Regression
Presentation On Regressionalok tiwari
 
hypothesis testing-tests of proportions and variances in six sigma
hypothesis testing-tests of proportions and variances in six sigmahypothesis testing-tests of proportions and variances in six sigma
hypothesis testing-tests of proportions and variances in six sigmavdheerajk
 
Advance Statistics - Wilcoxon Signed Rank Test
Advance Statistics - Wilcoxon Signed Rank TestAdvance Statistics - Wilcoxon Signed Rank Test
Advance Statistics - Wilcoxon Signed Rank TestJoshua Batalla
 
Wilcoxon signed rank test
Wilcoxon signed rank testWilcoxon signed rank test
Wilcoxon signed rank testBiswash Sapkota
 

What's hot (20)

F test
F testF test
F test
 
Anova (f test) and mean differentiation
Anova (f test) and mean differentiationAnova (f test) and mean differentiation
Anova (f test) and mean differentiation
 
Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)Analysis of Variance (ANOVA)
Analysis of Variance (ANOVA)
 
Introduction to ANOVAs
Introduction to ANOVAsIntroduction to ANOVAs
Introduction to ANOVAs
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
Statistical inference concept, procedure of hypothesis testing
Statistical inference   concept, procedure of hypothesis testingStatistical inference   concept, procedure of hypothesis testing
Statistical inference concept, procedure of hypothesis testing
 
The Sign Test
The Sign TestThe Sign Test
The Sign Test
 
Analysis of variance anova
Analysis of variance anovaAnalysis of variance anova
Analysis of variance anova
 
Analysis of variance
Analysis of varianceAnalysis of variance
Analysis of variance
 
Research method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anovaResearch method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anova
 
F test and ANOVA
F test and ANOVAF test and ANOVA
F test and ANOVA
 
SIGN TEST SLIDE.ppt
SIGN TEST SLIDE.pptSIGN TEST SLIDE.ppt
SIGN TEST SLIDE.ppt
 
9. basic concepts_of_one_way_analysis_of_variance_(anova)
9. basic concepts_of_one_way_analysis_of_variance_(anova)9. basic concepts_of_one_way_analysis_of_variance_(anova)
9. basic concepts_of_one_way_analysis_of_variance_(anova)
 
Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)
 
One way anova final ppt.
One way anova final ppt.One way anova final ppt.
One way anova final ppt.
 
Presentation On Regression
Presentation On RegressionPresentation On Regression
Presentation On Regression
 
hypothesis testing-tests of proportions and variances in six sigma
hypothesis testing-tests of proportions and variances in six sigmahypothesis testing-tests of proportions and variances in six sigma
hypothesis testing-tests of proportions and variances in six sigma
 
Student t-test
Student t-testStudent t-test
Student t-test
 
Advance Statistics - Wilcoxon Signed Rank Test
Advance Statistics - Wilcoxon Signed Rank TestAdvance Statistics - Wilcoxon Signed Rank Test
Advance Statistics - Wilcoxon Signed Rank Test
 
Wilcoxon signed rank test
Wilcoxon signed rank testWilcoxon signed rank test
Wilcoxon signed rank test
 

Similar to Analysis Of Variance - ANOVA

Similar to Analysis Of Variance - ANOVA (20)

Analysis of data in research
Analysis of data in researchAnalysis of data in research
Analysis of data in research
 
Testing of hypothesis anova copy
Testing of hypothesis anova   copyTesting of hypothesis anova   copy
Testing of hypothesis anova copy
 
Anova, ancova
Anova, ancovaAnova, ancova
Anova, ancova
 
Shovan anova main
Shovan anova mainShovan anova main
Shovan anova main
 
Tugasan kumpulan anova
Tugasan kumpulan anovaTugasan kumpulan anova
Tugasan kumpulan anova
 
Parametric test - t Test, ANOVA, ANCOVA, MANOVA
Parametric test  - t Test, ANOVA, ANCOVA, MANOVAParametric test  - t Test, ANOVA, ANCOVA, MANOVA
Parametric test - t Test, ANOVA, ANCOVA, MANOVA
 
Analysis of variance(one way ANOVA).pptx
Analysis of variance(one way ANOVA).pptxAnalysis of variance(one way ANOVA).pptx
Analysis of variance(one way ANOVA).pptx
 
univariate and bivariate analysis in spss
univariate and bivariate analysis in spss univariate and bivariate analysis in spss
univariate and bivariate analysis in spss
 
Comparing means
Comparing meansComparing means
Comparing means
 
Statistics for Anaesthesiologists
Statistics for AnaesthesiologistsStatistics for Anaesthesiologists
Statistics for Anaesthesiologists
 
Applied statistics lecture_8
Applied statistics lecture_8Applied statistics lecture_8
Applied statistics lecture_8
 
One way AVOVA
One way AVOVA  One way AVOVA
One way AVOVA
 
Applied statistics part 3
Applied statistics part 3Applied statistics part 3
Applied statistics part 3
 
Anova one way sem 1 20142015 dk
Anova one way sem 1 20142015 dkAnova one way sem 1 20142015 dk
Anova one way sem 1 20142015 dk
 
Anova - One way and two way
Anova - One way and two wayAnova - One way and two way
Anova - One way and two way
 
Analysis of Variance
Analysis of VarianceAnalysis of Variance
Analysis of Variance
 
Lecture 6. univariate and bivariate analysis
Lecture 6. univariate and bivariate analysisLecture 6. univariate and bivariate analysis
Lecture 6. univariate and bivariate analysis
 
Presentation1.pptx
Presentation1.pptxPresentation1.pptx
Presentation1.pptx
 
Introduction and crd
Introduction and crdIntroduction and crd
Introduction and crd
 
Anova.pptx
Anova.pptxAnova.pptx
Anova.pptx
 

Recently uploaded

Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionfulawalesam
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSAishani27
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystSamantha Rae Coolbeth
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一ffjhghh
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 

Recently uploaded (20)

Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICS
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data Analyst
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 

Analysis Of Variance - ANOVA

  • 2. Fisher’s exact test 1) Lady Bristol’s claim • H0 = her ability to distinguish the teas is mere chance • In Fisher’s approach, no Ha • 8 cups, p= 0.014 (=1/8C4 = 1/70) <0.05 (association is random = reject H0) 2) Lady tasting tea • two-alternative forced choice 3) Increase the #observations in each group • How these groups are varied? . . … . . . . … . . . . … . .
  • 3. Table of Content 1) Fisher’s exact test 2) Anova 1) Anova & t-test 2) Anova Designs 3) One way Anova 4) Assumptions Anova 5) Computing F score & Anova table 3) Anova in R 4) Why Anova
  • 4. Anova & t-test What is Anova? • Omnibus to t-tests or Generalized t-test • 𝑡 − 𝑠𝑐𝑜𝑟𝑒 = 𝑑𝑖𝑓𝑓𝑒𝑟𝑒𝑛𝑐𝑒 𝑏𝑒𝑡𝑤𝑒𝑒𝑛 𝑔𝑟𝑜𝑢𝑝𝑠 𝑑𝑖𝑓𝑓𝑒𝑟𝑒𝑛𝑐𝑒 𝑤𝑖𝑡ℎ𝑖𝑛 𝑡ℎ𝑒 𝑔𝑟𝑜𝑢𝑝 ⇒ 𝑔𝑟𝑜𝑢𝑝𝑠 𝑎𝑟𝑒 𝑡 𝑡𝑖𝑚𝑒𝑠 𝑎𝑠 𝑑𝑖𝑓𝑓𝑒𝑟𝑒𝑛𝑡 𝑓𝑟𝑜𝑚 𝑒𝑎𝑐ℎ 𝑜𝑡ℎ𝑒𝑟 𝑎𝑠 𝑡ℎ𝑒𝑦 𝑎𝑟𝑒 𝑤𝑖𝑡ℎ𝑖𝑛 𝑒𝑎𝑐ℎ 𝑜𝑡ℎ𝑒𝑟 • Analysis of data from two samples by both a t test and an ANOVA shows that the observed F values equals the observed t value squared F = t2, (degree of freedom=1)
  • 5. T-test & type of errors 1) Null Hypothesis & errors 2) T-test 1) t-score 2) p-value(probability that results are by chance) 3) An Independent Samples t-test compares the means for two groups. 4) A Paired sample t-test compares means from the same group at different times 5) A One sample t-test tests the mean of a single group against a known mean Decision H0 = True H0 = False H0= reject Type 1 error, (false positive) Denoted as α Aka “significance level of a test” Correct inference (True Positive) H0 = Fail to reject Correct inference (True Negative) Type II error (False Negative) Denoted as β
  • 6. One way Anova Two or more samples One factor or independent variable One dependent variable e.g. Tea taste is being tested at one level – what was poured first? Factorial Anova Two or more samples Multiple independent variable One dependent variable e.g. Tea taste is being tested at various levels - sugar, tea content etc. Repeated Measures Anova Same sample e.g. Tea being poured to the same set thrice a day and tested M-AN-O-VA Two or more samples Multiple independent variable Multiple dependent variables e.g. Tea being tested for color + taste at various levels AN-O-VA designs
  • 7. One-way Anova • Do differences exist between two or more groups on one DV? • a priori vs. post-hoc (a posteriori) tests • Post hoc is the multiple comparison test of groups. it compares all possible pairs of means. othersthefromdifferentismeanstheofoneleastAt: : 321 a k o H H   
  • 8. Assumptions One-way Anova One way ANOVA is based on the following assumptions: 1) Normal distribution of the population 2) Two or more than two categorical independent groups in an independent variable. 3) Independence of samples 4) σ1 2 = σ2 2 = σ3 2 = ….
  • 9. Computing F-score ANOVA is computed with the three sums of squares • Total – Total Sum of Squares, a measure of all variations in the dependent variable, SST • Treatment (Between) – Sum of Squares Treatments (Between), SSC • Error (Within) – Sum of Squares of Errors; yields the variations within treatments (or columns), SSE    k i n j iij xxSSE 1 1 2 )(    k i n j ij xxSST 1 1 2 )(     k i ii k i n j i xxnxxSSC 1 2 1 1 2 )()( SST = SSC + SSE
  • 10. Anova Table The table is as follows:
  • 11. Anova in R One way Anova Import data set Check null values and mine data Plot box-plots Run aov Save in another variable Export the summary
  • 12. Anova in R (where y = dependent variable, A=independent variable)One way Anova • fit <- aov(y ~ A, data) (For two way Anova)Factorial Anova • fit <- aov(y ~ A + B + A:B, data) fit <- aov(y ~ A*B, data) (Considering two dependent variables Y & Y’)MANOVA • fit <- manova(cbind(Y, Y’) ~ A*B, data)
  • 13. Why Anova? 1) Gives an exploratory data analysis 1) Effect of many variables at once 2) Generates ‘F’ statistics : allows testing of a nested sequence of models 3) organization of an additive data decomposition, 4) sums of squares indicate the variance of each component of the decomposition (or, equivalently, each set of terms of a linear model). 2) Analysis of a variety of experimental designs. 3) Handles experimental error 1) Reduces chances of Type 1 error 2) The more statistical tests run, the greater likelihood that the researcher will obtain seemingly significant effects due to chance alone. (ANOVA determines whether the amount of variance between the groups is greater than the variance within the groups)