SlideShare a Scribd company logo
Hypothesis Testing
First import files: cs2m, grades,
wmps, wmpl, mws, mwl, kw
Next: install.packages(“psych”)
1
Dr Vinod on Hypothesis Testing,
8971073111, vinod@inurture.co.in
One Sample t test
File: cs2m.csv [Ho: Mean Age = 40]
2
Dr Vinod on Hypothesis Testing,
8971073111, vinod@inurture.co.in
Paired Sample t test
File: grades.csv [Ho: Mean Quiz1 –
Mean Quiz 2 = 0]
3
Dr Vinod on Hypothesis Testing,
8971073111, vinod@inurture.co.in
Paired Sample t test
File: grades.csv [Ho: Mean Quiz1 –
Mean Quiz 2 = 0]
4
Dr Vinod on Hypothesis Testing,
8971073111, vinod@inurture.co.in
Independent Samples t test {assuming
unequal variance}
File: cs2m.csv [Ho: Mean BP across
Anxiety Levels are same]
5
Dr Vinod on Hypothesis Testing,
8971073111, vinod@inurture.co.in
Independent Samples t test {assuming
equal variance}
File: cs2m.csv [Ho: Mean BP across
Anxiety Levels are same]
6
Dr Vinod on Hypothesis Testing,
8971073111, vinod@inurture.co.in
One Sample Proportion Test
A researcher believes that market size of diesel cars is 30%. For testing his
belief, he had taken a sample of 130 cars and found 50 diesel cars.
Ho: p=0.30
7
Dr Vinod on Hypothesis Testing,
8971073111, vinod@inurture.co.in
Two Samples Proportion Test
A researcher has found 10 stressed faculties out of a sample of 40 at Christ
college and 22 out of 50 at St. John.
Ho: p1-p2 = 0
8
Dr Vinod on Hypothesis Testing,
8971073111, vinod@inurture.co.in
One Way ANOVA
Data of sales in 6 cities [Ho: All sales are same]
Type sale = 22, 22.5…….21, 20
Type city = c(rep(“A”,6),…….rep(“D”,6))
Type sc = data.frame(sale,city)
Type sc and press ENTER [You will see data as shown in next
slide]
Dr Vinod on Hypothesis Testing,
8971073111, vinod@inurture.co.in
9
Dr Vinod on Hypothesis Testing,
8971073111, vinod@inurture.co.in
10
Dr Vinod on Hypothesis Testing,
8971073111, vinod@inurture.co.in
11
Chi-Square Test
File: cs2m [Ho: There is no association
between Anxiety and Drug Reaction
Dr Vinod on Hypothesis Testing,
8971073111, vinod@inurture.co.in
12
Chi-Square Test
File: cs2m [Ho: There is no association
between Anxiety and Drug Reaction
Dr Vinod on Hypothesis Testing,
8971073111, vinod@inurture.co.in
13
Wilcoxon Matched Paired (Small Sample)
File: wmps [Ho: Md = 0]
Dr Vinod on Hypothesis Testing,
8971073111, vinod@inurture.co.in
14
Wilcoxon Matched Paired (Large Sample)
File: wmpl [Ho: Md = 0]
First install.packages(“exactRankTests”)
Type library(exactRankTests)
Dr Vinod on Hypothesis Testing,
8971073111, vinod@inurture.co.in
15
Mann-Whitney (Small Sample)
File: mws [Ho: Md = 0]
Dr Vinod on Hypothesis Testing,
8971073111, vinod@inurture.co.in
16
Mann-Whitney (Large Sample)
File: mws [Ho: Md = 0]
Dr Vinod on Hypothesis Testing,
8971073111, vinod@inurture.co.in
17
Kruskal Wallis
File: kw
Dr Vinod on Hypothesis Testing,
8971073111, vinod@inurture.co.in
18
Friedman ANOVA
File: fm.xlsx
Dr Vinod on Hypothesis Testing,
8971073111, vinod@inurture.co.in
19
Friedman ANOVA
File: fm.xlsx
Dr Vinod on Hypothesis Testing,
8971073111, vinod@inurture.co.in
20
Friedman ANOVA
File: fm.xlsx
Dr Vinod on Hypothesis Testing,
8971073111, vinod@inurture.co.in
21

More Related Content

Viewers also liked

Manutel partner wind business
Manutel partner wind businessManutel partner wind business
Manutel partner wind business
Manutel Business
 
Brochure wind business 18032013
Brochure wind business 18032013Brochure wind business 18032013
Brochure wind business 18032013
Manutel Business
 
Routes les plus spectaculaires
Routes les plus spectaculairesRoutes les plus spectaculaires
Routes les plus spectaculaires
Balcon60
 
Guia de pràctiques correctes d’higiene específica per a la cuina al buit
Guia de pràctiques correctes d’higiene específica per a la cuina al buitGuia de pràctiques correctes d’higiene específica per a la cuina al buit
Guia de pràctiques correctes d’higiene específica per a la cuina al buit
Jaume Armengol Alert
 
Principios básicos de la ecología
Principios básicos de la ecologíaPrincipios básicos de la ecología
Principios básicos de la ecologíaKarlaSaldana
 
Kimia organik-i
Kimia organik-iKimia organik-i
Kimia organik-i
Loy Siti Rohayu
 
J. derrida. prezentacja
J. derrida. prezentacjaJ. derrida. prezentacja
J. derrida. prezentacja
Klaudia Zduńczuk
 
چگونه ضمیر ناخودآگاه را برنامه ریزی کنیم؟
چگونه ضمیر ناخودآگاه را برنامه ریزی کنیم؟چگونه ضمیر ناخودآگاه را برنامه ریزی کنیم؟
چگونه ضمیر ناخودآگاه را برنامه ریزی کنیم؟
Amir Sharifi
 
Células troncos
Células troncosCélulas troncos
Células troncos
Camila Araújo
 

Viewers also liked (13)

Apresentação1
Apresentação1Apresentação1
Apresentação1
 
Manutel partner wind business
Manutel partner wind businessManutel partner wind business
Manutel partner wind business
 
Brochure wind business 18032013
Brochure wind business 18032013Brochure wind business 18032013
Brochure wind business 18032013
 
Routes les plus spectaculaires
Routes les plus spectaculairesRoutes les plus spectaculaires
Routes les plus spectaculaires
 
Chapter2
Chapter2Chapter2
Chapter2
 
Rupa indonesia
Rupa indonesiaRupa indonesia
Rupa indonesia
 
Guia de pràctiques correctes d’higiene específica per a la cuina al buit
Guia de pràctiques correctes d’higiene específica per a la cuina al buitGuia de pràctiques correctes d’higiene específica per a la cuina al buit
Guia de pràctiques correctes d’higiene específica per a la cuina al buit
 
Principios básicos de la ecología
Principios básicos de la ecologíaPrincipios básicos de la ecología
Principios básicos de la ecología
 
Kimia organik-i
Kimia organik-iKimia organik-i
Kimia organik-i
 
J. derrida. prezentacja
J. derrida. prezentacjaJ. derrida. prezentacja
J. derrida. prezentacja
 
Kaz 1073 (ri)
Kaz 1073 (ri)Kaz 1073 (ri)
Kaz 1073 (ri)
 
چگونه ضمیر ناخودآگاه را برنامه ریزی کنیم؟
چگونه ضمیر ناخودآگاه را برنامه ریزی کنیم؟چگونه ضمیر ناخودآگاه را برنامه ریزی کنیم؟
چگونه ضمیر ناخودآگاه را برنامه ریزی کنیم؟
 
Células troncos
Células troncosCélulas troncos
Células troncos
 

Recently uploaded

Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
2023240532
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
balafet
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
John Andrews
 
Empowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptxEmpowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptx
benishzehra469
 
一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单
ocavb
 
一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单
ewymefz
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
ukgaet
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
mbawufebxi
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
ahzuo
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
74nqk8xf
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
slg6lamcq
 
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
nscud
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
vcaxypu
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
enxupq
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Subhajit Sahu
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
v3tuleee
 
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
pchutichetpong
 
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdfSample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Linda486226
 
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptxData_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
AnirbanRoy608946
 

Recently uploaded (20)

Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
 
Empowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptxEmpowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptx
 
一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单
 
一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
 
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
 
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
 
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdfSample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
 
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptxData_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
 

Hypothesis Testing

  • 1. Hypothesis Testing First import files: cs2m, grades, wmps, wmpl, mws, mwl, kw Next: install.packages(“psych”) 1 Dr Vinod on Hypothesis Testing, 8971073111, vinod@inurture.co.in
  • 2. One Sample t test File: cs2m.csv [Ho: Mean Age = 40] 2 Dr Vinod on Hypothesis Testing, 8971073111, vinod@inurture.co.in
  • 3. Paired Sample t test File: grades.csv [Ho: Mean Quiz1 – Mean Quiz 2 = 0] 3 Dr Vinod on Hypothesis Testing, 8971073111, vinod@inurture.co.in
  • 4. Paired Sample t test File: grades.csv [Ho: Mean Quiz1 – Mean Quiz 2 = 0] 4 Dr Vinod on Hypothesis Testing, 8971073111, vinod@inurture.co.in
  • 5. Independent Samples t test {assuming unequal variance} File: cs2m.csv [Ho: Mean BP across Anxiety Levels are same] 5 Dr Vinod on Hypothesis Testing, 8971073111, vinod@inurture.co.in
  • 6. Independent Samples t test {assuming equal variance} File: cs2m.csv [Ho: Mean BP across Anxiety Levels are same] 6 Dr Vinod on Hypothesis Testing, 8971073111, vinod@inurture.co.in
  • 7. One Sample Proportion Test A researcher believes that market size of diesel cars is 30%. For testing his belief, he had taken a sample of 130 cars and found 50 diesel cars. Ho: p=0.30 7 Dr Vinod on Hypothesis Testing, 8971073111, vinod@inurture.co.in
  • 8. Two Samples Proportion Test A researcher has found 10 stressed faculties out of a sample of 40 at Christ college and 22 out of 50 at St. John. Ho: p1-p2 = 0 8 Dr Vinod on Hypothesis Testing, 8971073111, vinod@inurture.co.in
  • 9. One Way ANOVA Data of sales in 6 cities [Ho: All sales are same] Type sale = 22, 22.5…….21, 20 Type city = c(rep(“A”,6),…….rep(“D”,6)) Type sc = data.frame(sale,city) Type sc and press ENTER [You will see data as shown in next slide] Dr Vinod on Hypothesis Testing, 8971073111, vinod@inurture.co.in 9
  • 10. Dr Vinod on Hypothesis Testing, 8971073111, vinod@inurture.co.in 10
  • 11. Dr Vinod on Hypothesis Testing, 8971073111, vinod@inurture.co.in 11
  • 12. Chi-Square Test File: cs2m [Ho: There is no association between Anxiety and Drug Reaction Dr Vinod on Hypothesis Testing, 8971073111, vinod@inurture.co.in 12
  • 13. Chi-Square Test File: cs2m [Ho: There is no association between Anxiety and Drug Reaction Dr Vinod on Hypothesis Testing, 8971073111, vinod@inurture.co.in 13
  • 14. Wilcoxon Matched Paired (Small Sample) File: wmps [Ho: Md = 0] Dr Vinod on Hypothesis Testing, 8971073111, vinod@inurture.co.in 14
  • 15. Wilcoxon Matched Paired (Large Sample) File: wmpl [Ho: Md = 0] First install.packages(“exactRankTests”) Type library(exactRankTests) Dr Vinod on Hypothesis Testing, 8971073111, vinod@inurture.co.in 15
  • 16. Mann-Whitney (Small Sample) File: mws [Ho: Md = 0] Dr Vinod on Hypothesis Testing, 8971073111, vinod@inurture.co.in 16
  • 17. Mann-Whitney (Large Sample) File: mws [Ho: Md = 0] Dr Vinod on Hypothesis Testing, 8971073111, vinod@inurture.co.in 17
  • 18. Kruskal Wallis File: kw Dr Vinod on Hypothesis Testing, 8971073111, vinod@inurture.co.in 18
  • 19. Friedman ANOVA File: fm.xlsx Dr Vinod on Hypothesis Testing, 8971073111, vinod@inurture.co.in 19
  • 20. Friedman ANOVA File: fm.xlsx Dr Vinod on Hypothesis Testing, 8971073111, vinod@inurture.co.in 20
  • 21. Friedman ANOVA File: fm.xlsx Dr Vinod on Hypothesis Testing, 8971073111, vinod@inurture.co.in 21