SlideShare a Scribd company logo
Introduction to Data Analytics
Lecture: Inferential Statistics – Single sample tests
NPTEL MOOC
By
Prof. Nandan Sudarsanam, DoMS, IIT-M and
Prof. B. Ravindran, CS&E, IIT-M
Single sample z-test
• What are you testing? Population Mean
• Known variance and unknown variance
• Small sample size and large sample size
• Example: Average phosphate in blood is less than 4.8 mg/dl, with a
known standard deviation of 0.4 mg/dl
• Data: 4.1, 3.9, 5.3, 4.7………
Single sample z-test
• Using the rubric for this example:
• Have a null and alternate hypothesis; H0:𝜇0 ≤ 4.8 and Halt:𝜇0 > 4.8
• Do some basic calculations/arithmetic on the data to create a single number
called the “test statistic”; 𝑧𝑠𝑡𝑎𝑡 =
𝑥−𝜇0
𝜎
𝑛
• 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
Single sample z-test
• Why is the z-stat a z distribution (or in other words a 𝑁 0, 12
)
𝑁 𝜇, 𝜎2
𝑁 𝜇, (𝜎
𝑛
)2
Now subtract 𝜇
𝑁 0, (𝜎
𝑛
)2
Now divide by 𝜎
𝑛
𝑁 0, (1)2
Single sample z-test
• The p-value is the probability of seeing a test statistic as
extreme as the calculated value if the null hypothesis is true.
• If 𝑧𝑠𝑡𝑎𝑡 was computed to be 1.2 then
• P-value, Based on the standard null hypothesis:
• H0: 𝜇 ≤ 4.8
• If null hypothesis was:
• H0: 𝜇 ≥ 4.8
• H0: 𝜇 = 4.8 (two tailed)
• Excel for right tail: =1-NORM.S.DIST(1.2,TRUE)
• Excel for left tail = NORM.S.DIST(1.2,TRUE)
• Excel for two-tail = 2*(1-NORM.S.DIST(1.2,TRUE))
Examples and formulas
Single Sample Tests What are you testing Example
z-test mean Phosphate in blood
t-test mean Phosphate in blood
Chi-Square test standard deviation Equal treatment
Proportion z-test proportion/likelihood Defective products
𝑡 =
𝑥−𝜇
(𝑠
𝑛
)
; df = n-1
z=
𝑥−𝜇
(𝜎
𝑛
)
χ2=(𝑛 − 1)
𝑠2
𝜎0
2; df = n-1
𝑧 =
𝑝 − 𝑝0
𝑝(1 − 𝑝0)
𝑛
• Unknown
Variance
• Small sample
size
• Using DOF
• Excel uses T.DIST,
T.DIST.RT, and
T.DIST.2T
• Binomial Approximation to
the Normal
• Also needs DOF
• Excel uses
CHISQ.DIST and
CHISQ.DIST.RT

More Related Content

Similar to 8.pdf

Intro to tests of significance qualitative
Intro to tests of significance qualitativeIntro to tests of significance qualitative
Intro to tests of significance qualitative
Pandurangi Raghavendra
 
Statistical analysis.pptx
Statistical analysis.pptxStatistical analysis.pptx
Statistical analysis.pptx
Chinna Chadayan
 
Comparing means
Comparing meansComparing means
Comparing means
University of Jaffna
 
Environmental statistics
Environmental statisticsEnvironmental statistics
Environmental statistics
Georgios Ath. Kounis
 
Test of-significance : Z test , Chi square test
Test of-significance : Z test , Chi square testTest of-significance : Z test , Chi square test
Test of-significance : Z test , Chi square test
dr.balan shaikh
 
tests of significance
tests of significancetests of significance
tests of significance
benita regi
 
jhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhg
jhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhgjhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhg
jhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhg
UMAIRASHFAQ20
 
Test of significance in Statistics
Test of significance in StatisticsTest of significance in Statistics
Test of significance in Statistics
Vikash Keshri
 
Identifying the sampling distribution module5
Identifying the sampling distribution module5Identifying the sampling distribution module5
Identifying the sampling distribution module5
REYEMMANUELILUMBA
 
Presentation 7.pptx
Presentation 7.pptxPresentation 7.pptx
Presentation 7.pptx
MuhammadUsman653449
 
Absence of a gold standard in diagnostic test accuracy research
Absence of a gold standard in diagnostic test accuracy researchAbsence of a gold standard in diagnostic test accuracy research
Absence of a gold standard in diagnostic test accuracy research
Maarten van Smeden
 
Statistics pres 3.31.2014
Statistics pres 3.31.2014Statistics pres 3.31.2014
Statistics pres 3.31.2014
tjcarter
 
Medical statistics2
Medical statistics2Medical statistics2
Medical statistics2
Amany El-seoud
 
univariate and bivariate analysis in spss
univariate and bivariate analysis in spss univariate and bivariate analysis in spss
univariate and bivariate analysis in spss
Subodh Khanal
 
Unit-5.-t-test.ppt
Unit-5.-t-test.pptUnit-5.-t-test.ppt
Unit-5.-t-test.ppt
frelynmaeDillo
 
Hypothesis Testing.pptx
Hypothesis Testing.pptxHypothesis Testing.pptx
Hypothesis Testing.pptx
RishabhJain661896
 
Data in science
Data in science Data in science
Data in science
Sreejith Aravindakshan
 
linearity concept of significance, standard deviation, chi square test, stude...
linearity concept of significance, standard deviation, chi square test, stude...linearity concept of significance, standard deviation, chi square test, stude...
linearity concept of significance, standard deviation, chi square test, stude...
KavyasriPuttamreddy
 
Aron chpt 8 ed
Aron chpt 8 edAron chpt 8 ed
Aron chpt 8 ed
Sandra Nicks
 
Aron chpt 8 ed
Aron chpt 8 edAron chpt 8 ed
Aron chpt 8 ed
Sandra Nicks
 

Similar to 8.pdf (20)

Intro to tests of significance qualitative
Intro to tests of significance qualitativeIntro to tests of significance qualitative
Intro to tests of significance qualitative
 
Statistical analysis.pptx
Statistical analysis.pptxStatistical analysis.pptx
Statistical analysis.pptx
 
Comparing means
Comparing meansComparing means
Comparing means
 
Environmental statistics
Environmental statisticsEnvironmental statistics
Environmental statistics
 
Test of-significance : Z test , Chi square test
Test of-significance : Z test , Chi square testTest of-significance : Z test , Chi square test
Test of-significance : Z test , Chi square test
 
tests of significance
tests of significancetests of significance
tests of significance
 
jhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhg
jhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhgjhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhg
jhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhg
 
Test of significance in Statistics
Test of significance in StatisticsTest of significance in Statistics
Test of significance in Statistics
 
Identifying the sampling distribution module5
Identifying the sampling distribution module5Identifying the sampling distribution module5
Identifying the sampling distribution module5
 
Presentation 7.pptx
Presentation 7.pptxPresentation 7.pptx
Presentation 7.pptx
 
Absence of a gold standard in diagnostic test accuracy research
Absence of a gold standard in diagnostic test accuracy researchAbsence of a gold standard in diagnostic test accuracy research
Absence of a gold standard in diagnostic test accuracy research
 
Statistics pres 3.31.2014
Statistics pres 3.31.2014Statistics pres 3.31.2014
Statistics pres 3.31.2014
 
Medical statistics2
Medical statistics2Medical statistics2
Medical statistics2
 
univariate and bivariate analysis in spss
univariate and bivariate analysis in spss univariate and bivariate analysis in spss
univariate and bivariate analysis in spss
 
Unit-5.-t-test.ppt
Unit-5.-t-test.pptUnit-5.-t-test.ppt
Unit-5.-t-test.ppt
 
Hypothesis Testing.pptx
Hypothesis Testing.pptxHypothesis Testing.pptx
Hypothesis Testing.pptx
 
Data in science
Data in science Data in science
Data in science
 
linearity concept of significance, standard deviation, chi square test, stude...
linearity concept of significance, standard deviation, chi square test, stude...linearity concept of significance, standard deviation, chi square test, stude...
linearity concept of significance, standard deviation, chi square test, stude...
 
Aron chpt 8 ed
Aron chpt 8 edAron chpt 8 ed
Aron chpt 8 ed
 
Aron chpt 8 ed
Aron chpt 8 edAron chpt 8 ed
Aron chpt 8 ed
 

More from ChrisMartin260004

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

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

Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Henry Hollis
 
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGHKHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
shreyassri1208
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
Steve Thomason
 
Creation or Update of a Mandatory Field is Not Set in Odoo 17
Creation or Update of a Mandatory Field is Not Set in Odoo 17Creation or Update of a Mandatory Field is Not Set in Odoo 17
Creation or Update of a Mandatory Field is Not Set in Odoo 17
Celine George
 
Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
danielkiash986
 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
heathfieldcps1
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
zuzanka
 
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapitolTechU
 
FinalSD_MathematicsGrade7_Session2_Unida.pptx
FinalSD_MathematicsGrade7_Session2_Unida.pptxFinalSD_MathematicsGrade7_Session2_Unida.pptx
FinalSD_MathematicsGrade7_Session2_Unida.pptx
JennySularte1
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
Nguyen Thanh Tu Collection
 
220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science
Kalna College
 
Creative Restart 2024: Mike Martin - Finding a way around “no”
Creative Restart 2024: Mike Martin - Finding a way around “no”Creative Restart 2024: Mike Martin - Finding a way around “no”
Creative Restart 2024: Mike Martin - Finding a way around “no”
Taste
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
سمير بسيوني
 
Skimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S EliotSkimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S Eliot
nitinpv4ai
 
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxxSimple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
RandolphRadicy
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
deepaannamalai16
 
欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】
欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】
欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】
andagarcia212
 
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
ShwetaGawande8
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
nitinpv4ai
 
How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17
Celine George
 

Recently uploaded (20)

Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
 
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGHKHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
 
Creation or Update of a Mandatory Field is Not Set in Odoo 17
Creation or Update of a Mandatory Field is Not Set in Odoo 17Creation or Update of a Mandatory Field is Not Set in Odoo 17
Creation or Update of a Mandatory Field is Not Set in Odoo 17
 
Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
 
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
 
FinalSD_MathematicsGrade7_Session2_Unida.pptx
FinalSD_MathematicsGrade7_Session2_Unida.pptxFinalSD_MathematicsGrade7_Session2_Unida.pptx
FinalSD_MathematicsGrade7_Session2_Unida.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
 
220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science
 
Creative Restart 2024: Mike Martin - Finding a way around “no”
Creative Restart 2024: Mike Martin - Finding a way around “no”Creative Restart 2024: Mike Martin - Finding a way around “no”
Creative Restart 2024: Mike Martin - Finding a way around “no”
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
 
Skimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S EliotSkimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S Eliot
 
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxxSimple-Present-Tense xxxxxxxxxxxxxxxxxxx
Simple-Present-Tense xxxxxxxxxxxxxxxxxxx
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
 
欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】
欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】
欧洲杯下注-欧洲杯下注押注官网-欧洲杯下注押注网站|【​网址​🎉ac44.net🎉​】
 
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
 
How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17
 

8.pdf

  • 1. Introduction to Data Analytics Lecture: Inferential Statistics – Single sample tests NPTEL MOOC By Prof. Nandan Sudarsanam, DoMS, IIT-M and Prof. B. Ravindran, CS&E, IIT-M
  • 2. Single sample z-test • What are you testing? Population Mean • Known variance and unknown variance • Small sample size and large sample size • Example: Average phosphate in blood is less than 4.8 mg/dl, with a known standard deviation of 0.4 mg/dl • Data: 4.1, 3.9, 5.3, 4.7………
  • 3. Single sample z-test • Using the rubric for this example: • Have a null and alternate hypothesis; H0:𝜇0 ≤ 4.8 and Halt:𝜇0 > 4.8 • Do some basic calculations/arithmetic on the data to create a single number called the “test statistic”; 𝑧𝑠𝑡𝑎𝑡 = 𝑥−𝜇0 𝜎 𝑛 • 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. Single sample z-test • Why is the z-stat a z distribution (or in other words a 𝑁 0, 12 ) 𝑁 𝜇, 𝜎2 𝑁 𝜇, (𝜎 𝑛 )2 Now subtract 𝜇 𝑁 0, (𝜎 𝑛 )2 Now divide by 𝜎 𝑛 𝑁 0, (1)2
  • 5. Single sample z-test • The p-value is the probability of seeing a test statistic as extreme as the calculated value if the null hypothesis is true. • If 𝑧𝑠𝑡𝑎𝑡 was computed to be 1.2 then • P-value, Based on the standard null hypothesis: • H0: 𝜇 ≤ 4.8 • If null hypothesis was: • H0: 𝜇 ≥ 4.8 • H0: 𝜇 = 4.8 (two tailed) • Excel for right tail: =1-NORM.S.DIST(1.2,TRUE) • Excel for left tail = NORM.S.DIST(1.2,TRUE) • Excel for two-tail = 2*(1-NORM.S.DIST(1.2,TRUE))
  • 6. Examples and formulas Single Sample Tests What are you testing Example z-test mean Phosphate in blood t-test mean Phosphate in blood Chi-Square test standard deviation Equal treatment Proportion z-test proportion/likelihood Defective products 𝑡 = 𝑥−𝜇 (𝑠 𝑛 ) ; df = n-1 z= 𝑥−𝜇 (𝜎 𝑛 ) χ2=(𝑛 − 1) 𝑠2 𝜎0 2; df = n-1 𝑧 = 𝑝 − 𝑝0 𝑝(1 − 𝑝0) 𝑛 • Unknown Variance • Small sample size • Using DOF • Excel uses T.DIST, T.DIST.RT, and T.DIST.2T • Binomial Approximation to the Normal • Also needs DOF • Excel uses CHISQ.DIST and CHISQ.DIST.RT