SlideShare a Scribd company logo
1 of 5
Download to read offline
Introduction to Data Analytics
Lecture: Inferential Statistics – Two sample tests
NPTEL MOOC
By
Prof. Nandan Sudarsanam, DoMS, IIT-M and
Prof. B. Ravindran, CS&E, IIT-M
What is the difference?
β€’ Examples from last class:
β€’ Single set of data versus two sets of data
β€’ Think of it as dealing with two variables for the first time
One- Sample situations Two- sample situations
- Average Phosphate levels in Blood
should =<4.8 mg/dl
- Health department only allows 5% of
the toothpastes of each brand to be out
of specification (ratio of fluoride,
abrasives, etc.)
- New garage is inflating repair costs for
accidents. Insurance fraud is suspected.
- Changing the temperature in a foundry
process to see if the mean number of
defects decreases
- Two different manufacturing processes
to compare variance of finished product
in each batch
- Are 10th standard girls taller than 10th
standard boys in India
Steps
β€’ Using the rubric for this example:
β€’ Have a null and alternate hypothesis; H0:πœ‡1 = πœ‡2and Halt:πœ‡1 β‰  πœ‡2
β€’ Do some basic calculations/arithmetic on the data to create a single number called
the β€œtest statistic”;
β€’ z=
(π‘₯1βˆ’π‘₯2)βˆ’π‘‘0
𝜎1
2
𝑛1
+
𝜎2
2
𝑛2
β€’ If we assume the null hypothesis to be true (and make some assumptions about the
distributions of various variables), then the β€˜test statistic’ should be no different than
a single random draw from a specific probability distribution. This is the Z-
distribution or N(0,12)
β€’ Test the probability that the β€œtest statistic” you calculated belongs to this theoretical
distribution. This is the p-value!; Use Z-tables, Excel, Matlab or R
β€’ Low enough p-value is grounds for rejecting the null hypothesis
More explanation
A B
23.3 21.1
27.4 22.1
19.8 23.2
. .
. .
. .
. .
𝑋1 𝑋2
𝑆1/𝜎1 𝑆2/𝜎2
A B Diff
23.3 21.1 2.2
27.4 22.1 5.3
19.8 23.2 -3.4
. . .
. . .
. . .
. . .
𝑑
𝑆𝑑
For paired t-test
For all unpaired tests
Examples and Formulas
Two Sample
Tests
What are you
testing Example
z-test mean Calcium and placebo
t-test mean Call centre
Paired t-test mean Before-after, Left-right
Proportion z-test
proportion/likeli
hood Defective products
F-test
Standard
deviation Manufacturing process
z=
(π‘₯1βˆ’π‘₯2)βˆ’π‘‘0
𝜎1
2
𝑛1
+
𝜎2
2
𝑛2
t=
(π‘₯1βˆ’π‘₯2)βˆ’π‘‘0
𝑠1
2
𝑛1
+
𝑠2
2
𝑛2
df =
𝑠1
2
𝑛1
+
𝑠2
2
𝑛2
2
𝑠1
2
𝑛1
2
𝑛1βˆ’1
+
𝑠2
2
𝑛2
2
𝑛2βˆ’1
t=
(π‘₯1βˆ’π‘₯2)βˆ’π‘‘0
𝑠𝑝
1
𝑛1
+
1
𝑛2
𝑠𝑝 =
𝑛1 βˆ’ 1 𝑠1
2
+ (𝑛2 βˆ’ 1)𝑠2
2
𝑛1 + 𝑛2 βˆ’ 2
df = 𝑛1+𝑛2 βˆ’ 2
Equal Variance
Unequal Variance
𝑑 =
π‘‘βˆ’π‘‘0
(
𝑠𝑑
𝑛
)
; df = n-1
𝑧 =
𝑝1 βˆ’ 𝑝2
𝑝(1 βˆ’ 𝑝)(
1
𝑛1
+
1
𝑛2
) 𝑝 =
π‘₯1 + π‘₯2
𝑛1 + 𝑛2
𝐹 =
𝑠1
2
𝑠2
2 ; df= 𝑛1βˆ’1; 𝑛2 βˆ’ 1

More Related Content

Similar to 9.pdf

Non parametric-tests
Non parametric-testsNon parametric-tests
Non parametric-testsAsmita Bhagdikar
Β 
Sample Size And Gpower Module
Sample Size And Gpower ModuleSample Size And Gpower Module
Sample Size And Gpower Modulellalablink
Β 
sample_size_Determination .pdf
sample_size_Determination .pdfsample_size_Determination .pdf
sample_size_Determination .pdfstatsanjal
Β 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanMYRABACSAFRA2
Β 
Introduction to Business Analytics Course Part 10
Introduction to Business Analytics Course Part 10Introduction to Business Analytics Course Part 10
Introduction to Business Analytics Course Part 10Beamsync
Β 
What So Funny About Proportion Testv3
What So Funny About Proportion Testv3What So Funny About Proportion Testv3
What So Funny About Proportion Testv3ChrisConnors
Β 
Experimental
ExperimentalExperimental
ExperimentalCarla Piper
Β 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testingDenni Domingo
Β 
Mb0050 research methodology
Mb0050   research methodologyMb0050   research methodology
Mb0050 research methodologysmumbahelp
Β 
MARKETING MANAGEMENT PHILOSOPHIESCHAPTER 1 - ASSIGNMENTQuest.docx
MARKETING MANAGEMENT PHILOSOPHIESCHAPTER 1 - ASSIGNMENTQuest.docxMARKETING MANAGEMENT PHILOSOPHIESCHAPTER 1 - ASSIGNMENTQuest.docx
MARKETING MANAGEMENT PHILOSOPHIESCHAPTER 1 - ASSIGNMENTQuest.docxinfantsuk
Β 
Chapter 11
Chapter 11Chapter 11
Chapter 11bmcfad01
Β 
09 ch ken black solution
09 ch ken black solution09 ch ken black solution
09 ch ken black solutionKrunal Shah
Β 
The t Test for Related.docx
The t Test for Related.docxThe t Test for Related.docx
The t Test for Related.docxchristalgrieg
Β 
Ct lecture 16. model selection
Ct lecture 16. model selectionCt lecture 16. model selection
Ct lecture 16. model selectionHau Pham
Β 
Data science
Data scienceData science
Data scienceS. M. Akash
Β 
jhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhg
jhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhgjhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhg
jhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhgUMAIRASHFAQ20
Β 
1192012 155942 f023_=_statistical_inference
1192012 155942 f023_=_statistical_inference1192012 155942 f023_=_statistical_inference
1192012 155942 f023_=_statistical_inferenceDev Pandey
Β 
Data Analysis for Graduate Studies Summary
Data Analysis for Graduate Studies SummaryData Analysis for Graduate Studies Summary
Data Analysis for Graduate Studies SummaryKelvinNMhina
Β 

Similar to 9.pdf (20)

Non parametric-tests
Non parametric-testsNon parametric-tests
Non parametric-tests
Β 
Sample Size And Gpower Module
Sample Size And Gpower ModuleSample Size And Gpower Module
Sample Size And Gpower Module
Β 
sample_size_Determination .pdf
sample_size_Determination .pdfsample_size_Determination .pdf
sample_size_Determination .pdf
Β 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population Mean
Β 
Introduction to Business Analytics Course Part 10
Introduction to Business Analytics Course Part 10Introduction to Business Analytics Course Part 10
Introduction to Business Analytics Course Part 10
Β 
What So Funny About Proportion Testv3
What So Funny About Proportion Testv3What So Funny About Proportion Testv3
What So Funny About Proportion Testv3
Β 
Hm306 week 4
Hm306 week 4Hm306 week 4
Hm306 week 4
Β 
Hm306 week 4
Hm306 week 4Hm306 week 4
Hm306 week 4
Β 
Experimental
ExperimentalExperimental
Experimental
Β 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
Β 
Mb0050 research methodology
Mb0050   research methodologyMb0050   research methodology
Mb0050 research methodology
Β 
MARKETING MANAGEMENT PHILOSOPHIESCHAPTER 1 - ASSIGNMENTQuest.docx
MARKETING MANAGEMENT PHILOSOPHIESCHAPTER 1 - ASSIGNMENTQuest.docxMARKETING MANAGEMENT PHILOSOPHIESCHAPTER 1 - ASSIGNMENTQuest.docx
MARKETING MANAGEMENT PHILOSOPHIESCHAPTER 1 - ASSIGNMENTQuest.docx
Β 
Chapter 11
Chapter 11Chapter 11
Chapter 11
Β 
09 ch ken black solution
09 ch ken black solution09 ch ken black solution
09 ch ken black solution
Β 
The t Test for Related.docx
The t Test for Related.docxThe t Test for Related.docx
The t Test for Related.docx
Β 
Ct lecture 16. model selection
Ct lecture 16. model selectionCt lecture 16. model selection
Ct lecture 16. model selection
Β 
Data science
Data scienceData science
Data science
Β 
jhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhg
jhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhgjhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhg
jhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhg
Β 
1192012 155942 f023_=_statistical_inference
1192012 155942 f023_=_statistical_inference1192012 155942 f023_=_statistical_inference
1192012 155942 f023_=_statistical_inference
Β 
Data Analysis for Graduate Studies Summary
Data Analysis for Graduate Studies SummaryData Analysis for Graduate Studies Summary
Data Analysis for Graduate Studies Summary
Β 

More from ChrisMartin260004 (20)

q.pdf
q.pdfq.pdf
q.pdf
Β 
p.pdf
p.pdfp.pdf
p.pdf
Β 
o.pdf
o.pdfo.pdf
o.pdf
Β 
n.pdf
n.pdfn.pdf
n.pdf
Β 
m.pdf
m.pdfm.pdf
m.pdf
Β 
l.pdf
l.pdfl.pdf
l.pdf
Β 
k.pdf
k.pdfk.pdf
k.pdf
Β 
j.pdf
j.pdfj.pdf
j.pdf
Β 
i.pdf
i.pdfi.pdf
i.pdf
Β 
h.pdf
h.pdfh.pdf
h.pdf
Β 
g.pdf
g.pdfg.pdf
g.pdf
Β 
f.pdf
f.pdff.pdf
f.pdf
Β 
c.pdf
c.pdfc.pdf
c.pdf
Β 
a.pdf
a.pdfa.pdf
a.pdf
Β 
20.pdf
20.pdf20.pdf
20.pdf
Β 
19.pdf
19.pdf19.pdf
19.pdf
Β 
18.pdf
18.pdf18.pdf
18.pdf
Β 
17.pdf
17.pdf17.pdf
17.pdf
Β 
16.pdf
16.pdf16.pdf
16.pdf
Β 
15.pdf
15.pdf15.pdf
15.pdf
Β 

Recently uploaded

Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
Β 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
Β 
HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...
HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...
HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...Nguyen Thanh Tu Collection
Β 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
Β 
Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)
Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)
Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)lakshayb543
Β 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
Β 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
Β 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
Β 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
Β 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
Β 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A BeΓ±a
Β 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
Β 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
Β 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
Β 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
Β 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
Β 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
Β 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
Β 

Recently uploaded (20)

Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
Β 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
Β 
HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...
HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...
HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...
Β 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
Β 
Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)
Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)
Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)
Β 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
Β 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
Β 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
Β 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
Β 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Β 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
Β 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
Β 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
Β 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
Β 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
Β 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
Β 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
Β 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
Β 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
Β 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
Β 

9.pdf

  • 1. Introduction to Data Analytics Lecture: Inferential Statistics – Two sample tests NPTEL MOOC By Prof. Nandan Sudarsanam, DoMS, IIT-M and Prof. B. Ravindran, CS&E, IIT-M
  • 2. What is the difference? β€’ Examples from last class: β€’ Single set of data versus two sets of data β€’ Think of it as dealing with two variables for the first time One- Sample situations Two- sample situations - Average Phosphate levels in Blood should =<4.8 mg/dl - Health department only allows 5% of the toothpastes of each brand to be out of specification (ratio of fluoride, abrasives, etc.) - New garage is inflating repair costs for accidents. Insurance fraud is suspected. - Changing the temperature in a foundry process to see if the mean number of defects decreases - Two different manufacturing processes to compare variance of finished product in each batch - Are 10th standard girls taller than 10th standard boys in India
  • 3. Steps β€’ Using the rubric for this example: β€’ Have a null and alternate hypothesis; H0:πœ‡1 = πœ‡2and Halt:πœ‡1 β‰  πœ‡2 β€’ Do some basic calculations/arithmetic on the data to create a single number called the β€œtest statistic”; β€’ z= (π‘₯1βˆ’π‘₯2)βˆ’π‘‘0 𝜎1 2 𝑛1 + 𝜎2 2 𝑛2 β€’ If we assume the null hypothesis to be true (and make some assumptions about the distributions of various variables), then the β€˜test statistic’ should be no different than a single random draw from a specific probability distribution. This is the Z- distribution or N(0,12) β€’ Test the probability that the β€œtest statistic” you calculated belongs to this theoretical distribution. This is the p-value!; Use Z-tables, Excel, Matlab or R β€’ Low enough p-value is grounds for rejecting the null hypothesis
  • 4. More explanation A B 23.3 21.1 27.4 22.1 19.8 23.2 . . . . . . . . 𝑋1 𝑋2 𝑆1/𝜎1 𝑆2/𝜎2 A B Diff 23.3 21.1 2.2 27.4 22.1 5.3 19.8 23.2 -3.4 . . . . . . . . . . . . 𝑑 𝑆𝑑 For paired t-test For all unpaired tests
  • 5. Examples and Formulas Two Sample Tests What are you testing Example z-test mean Calcium and placebo t-test mean Call centre Paired t-test mean Before-after, Left-right Proportion z-test proportion/likeli hood Defective products F-test Standard deviation Manufacturing process z= (π‘₯1βˆ’π‘₯2)βˆ’π‘‘0 𝜎1 2 𝑛1 + 𝜎2 2 𝑛2 t= (π‘₯1βˆ’π‘₯2)βˆ’π‘‘0 𝑠1 2 𝑛1 + 𝑠2 2 𝑛2 df = 𝑠1 2 𝑛1 + 𝑠2 2 𝑛2 2 𝑠1 2 𝑛1 2 𝑛1βˆ’1 + 𝑠2 2 𝑛2 2 𝑛2βˆ’1 t= (π‘₯1βˆ’π‘₯2)βˆ’π‘‘0 𝑠𝑝 1 𝑛1 + 1 𝑛2 𝑠𝑝 = 𝑛1 βˆ’ 1 𝑠1 2 + (𝑛2 βˆ’ 1)𝑠2 2 𝑛1 + 𝑛2 βˆ’ 2 df = 𝑛1+𝑛2 βˆ’ 2 Equal Variance Unequal Variance 𝑑 = π‘‘βˆ’π‘‘0 ( 𝑠𝑑 𝑛 ) ; df = n-1 𝑧 = 𝑝1 βˆ’ 𝑝2 𝑝(1 βˆ’ 𝑝)( 1 𝑛1 + 1 𝑛2 ) 𝑝 = π‘₯1 + π‘₯2 𝑛1 + 𝑛2 𝐹 = 𝑠1 2 𝑠2 2 ; df= 𝑛1βˆ’1; 𝑛2 βˆ’ 1