SlideShare a Scribd company logo
1 of 27
Download to read offline
P value, Power & Type I & II error
Dr. S. A. Rizwan, M.D.
Public Health Specialist
SBCM, Joint Program – Riyadh
Ministry of Health, Kingdom of Saudi Arabia
Learning	objectives
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Define	p	value
• Describe	the	meaning	and	limitations	of	p	value
• Define	power	of	a	test	and	its	meaning	
• Describe	type	1	and	type	2	errors	in	hypothesis	
testing	and	how	they	affect	the	interpretation	of	
results
• Understand	how	consideration	of	p	value,	type	1	
and	2	errors	relate	to	sample	size	calculation
2
Section	1:	
P	value
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh 3
P	value
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Defined	as	the	probability	of	obtaining	a	result	
equal	to	or	more	extreme	than	what	was	actually	
observed
• First	introduced	by Karl	Pearson in	his Pearson's	
chi-squared	test
• It	can	also	be	seen	in	relation	to	the	probability	of	
making	a	Type	I	error
4
P	value
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
The	vertical	coordinate	is	the	probability	density	of	each	outcome,	computed	under	the	null	hypothesis.	
The p-value	is	the	area	under	the	curve	past	the	observed	data	point.
5
P	value	– choice	of	cut	off	value
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Arbitrary	cut-off	0.05	(5%	chance	of	a	false+	conclusion)
• If	p<0.05	statistically	significant- Reject	H0,	Accept	H1
• If	p>0.05	statistically	not	significant,	Accept	H0,	Reject	H1
• Testing	potential	harmful	interventions	‘α’	value	is	set	
below	0.05
• Depends upon	the	research	question!
6
P	value	– degrees	of	magnitude
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Very	small	(<0.001),	the	results	are	said	to	be	
highly	significant
• Near	0.05,	it	is	said	to	be	borderline	significant
• Near	1.0,	result	does	not	matter!
7
P	value	– how	to	calculate	it?
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Depending	upon	the	statistic	we	are	interested	in	
predetermined	p	values	and	their	critical	values	
are	displayed	in	statistical	tables
• So	each	type	of	distribution	has	its	own	table
• It	is	also	possible	to	calculate	exact	p	values	with	
computers	instead	of	using	such	tables
8
P	value	– interpretation
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• If	the	results	are	statistically	significant,	decide	whether	the	
observed	differences	are	clinically	important
• If	not	significant,	see	if	the	sample	size	was	adequate	enough	
not	to	have	missed	a	clinically	important	difference
• Power of	the	study	tells	us	the	strength	which	we	can	conclude	
that	there	is	no	difference	between	the	two	groups
9
P	value	– interpretation
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Statistical	significance	does	not	necessarily	mean	real	significance
• If	sample	size	is	large,	even	small	differences	can	have	a	low	p-value
• Lack	of	significance	doesn’t	necessarily	mean	null	hypothesis	is	true
• If	sample	size	is	small,	there	could	be	a	real	difference,	but	we	are	not	
able	to	detect	it
• If	you	perform	a	large	number	of	tests	in	a	study,	1	in	20	will	be	
significant	merely	by	chance
10
Section	2:	
Type	1	and	2	errors
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh 11
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• These	are	errors	that	arise	when	performing	hypothesis	testing	and	
decision	making
• Type	1	error	(false	positive	conclusion)
• Stating	difference	when	there	is	no	difference,	alpha
• Related	to	p	value,	how?
• Set	at	1/20	or	0.05	or	5%
• The	probability	is	distributed	at	the	tails	of	the	normal	curve	i.e.,	0.025	on	
either	tail
• Type	2	error (false	negative	conclusion)
• Stating	no	difference	when	there	is	a	difference,	beta
• Occurs	when	sample	size	is	too	small.
• Conventional	values	are	0.1	or	0.2
• Related	to	power,	how?
What	are	these	errors?
12
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
What	are	these	errors?
13
Reality:
No effect
Reality:
Effect exists
Research concludes:
Fail to reject null;
No effect
CORRECT FAILURE TO
REJECT
TYPE 2 ERROR (β)
Researcher concludes:
Reject null;
Effect exists
TYPE 1 ERROR (α) CORRECT REJECT (1-β)
• Advanced	learning:	Do	you	know	there	are	type	3	and	4	also?
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
Example	1
14
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
Example	2
15
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
Example	3
16
Section	3:	
Power	of	the	study
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh 17
Power	of	the	study
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• The	ability	to	detect	a	statistically	significant	association
• It	can	also	be	seen	as	the	probability	of	not	missing	an	effect,	
due	to	sampling	error,	when	there	really	is	an	effect
• It	is	also	the	probability	of	avoiding	a	type	2	error,	i.e.,	1	– beta
• A	prospective	power	analysis	is	used	before	collecting	data,	to	
consider	design	sensitivity
• A	retrospective	power	analysis	is	used	in	order	to	know	
whether	the	studies	you	are	interpreting	were	well	enough	
designed
18
Factors	affecting	power
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• All	else	being	equal:
1. As	sample	sizes	increase,	power	increases
2. As	population	variances	decrease,	power	increases
3. As	the	difference increases,	power	increases
4. Statistical	power	is	greater	for	one-tailed	tests
5. The	greater	the	probability	of	making	a	Type	I	error,	the	
greater	the	power
19
Calculating	Power:	Example
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• A	study	of	n	=	16	retains	null	H:	μ	=	170	at	α	=	0.05	(two-sided);	
σ	is	40.	What	was	the	power	of	test’s	conditions	to	identify	a	
population	mean	of	190?
( )
5160.0
04.0
40
16|190170|
96.1
||
1 0
1 2
=
Φ=
⎟
⎟
⎠
⎞
⎜
⎜
⎝
⎛ −
+−Φ=
⎟
⎟
⎠
⎞
⎜
⎜
⎝
⎛ −
+−Φ=− −
σ
µµ
β α
n
z a
20
Calculating	Power:	Example
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Top	curve	assumes	null	H	is	true	
• Bottom	curve	assumes	alternative	H	is	true
• α	is	set	to	0.05	(two-sided)
• We	will	reject	null	when	a		sample	mean	exceeds	
189.6	(right	tail,	top	curve)
• The	probability	of	getting	a	value	greater	than	189.6	
on	the	bottom	curve	is	0.5160,	corresponding	to	the	
power	of	the	test
21
Power	vs.	confidence	intervals
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Once	we	have	constructed	a	confidence	interval,	power	calculations	
yield	no	additional	insights
• It	is	pointless	to	perform	power	calculations	for	hypotheses	outside	
of	the	confidence	interval
• Confidence	intervals	better	inform	readers	about	the	possibility	of	
an	inadequate	sample	size	than	do	post	hoc	power	calculations
22
How	do	the	errors	relate	to	sample	size?
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Sample	size	for	one-sample	z	test:
• 1	– β	≡	desired	power
• α	≡	desired	significance	level	(two-sided)	
• σ	≡	population	standard	deviation
• Δ	=	μ0	– μa	≡	the	difference	worth	detecting
( )
2
2
11
2
2
Δ
+
=
−− αβσ zz
n
23
How	do	the	errors	relate	to	sample	size?
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• How	large	a	sample	is	needed	for	a	one-sample	z	test	
with	90%	power	and	α	=	0.05	(two-tailed)	when	σ	=	
40?	Let	H0:	μ	=	170	and	Ha:	μ	=	190	(thus,	Δ	=	μ0	−	μa
=	170	– 190	=	−20)
• Sample	size	should	be	42	to	ensure	adequate	power.
( ) 99.41
20
)96.128.1(40
2
22
2
2
11
2
2
=
−
+
=
Δ
+
=
−− αβσ zz
n
24
How	do	the	errors	relate	to	sample	size?
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
N	=	16 N	=	42
25
Take	home	messages
Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• P	value,	type	1	and	2	errors,	
alpha,	beta,	power,	critical	
value	and	hypothesis	testing,	
sample	size	are	all	related	to	
each	other
26
Thank	you!
Email	your	queries	to	sarizwan1986@outlook.com	
27

More Related Content

What's hot

What's hot (20)

Null hypothesis
Null hypothesisNull hypothesis
Null hypothesis
 
Bias in clinical research
Bias in clinical research Bias in clinical research
Bias in clinical research
 
PPT on Sample Size, Importance of Sample Size,
PPT on Sample Size, Importance of Sample Size,PPT on Sample Size, Importance of Sample Size,
PPT on Sample Size, Importance of Sample Size,
 
Study designs
Study designsStudy designs
Study designs
 
Type of randomization
Type of randomizationType of randomization
Type of randomization
 
Test of significance in Statistics
Test of significance in StatisticsTest of significance in Statistics
Test of significance in Statistics
 
Observational study design
Observational study designObservational study design
Observational study design
 
Sample size calculation
Sample  size calculationSample  size calculation
Sample size calculation
 
Observational study
Observational  study Observational  study
Observational study
 
Tests of significance
Tests of significanceTests of significance
Tests of significance
 
Sample Size Determination
Sample Size DeterminationSample Size Determination
Sample Size Determination
 
Randomisation techniques
Randomisation techniquesRandomisation techniques
Randomisation techniques
 
Student's t test
Student's t testStudent's t test
Student's t test
 
Types of study design
Types of study designTypes of study design
Types of study design
 
Cross sectional study
Cross sectional studyCross sectional study
Cross sectional study
 
Statistical tests of significance and Student`s T-Test
Statistical tests of significance and Student`s T-TestStatistical tests of significance and Student`s T-Test
Statistical tests of significance and Student`s T-Test
 
Sample size
Sample sizeSample size
Sample size
 
Experimental Study
Experimental StudyExperimental Study
Experimental Study
 
Statistical Power
Statistical PowerStatistical Power
Statistical Power
 
Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)
 

Similar to P value, Power, Type 1 and 2 errors

Tests of hypothesis (Statistical testing)
Tests of hypothesis (Statistical testing)Tests of hypothesis (Statistical testing)
Tests of hypothesis (Statistical testing)Rizwan S A
 
Sample size in health sciences - Basics and selected examples
Sample size in health sciences - Basics and selected examplesSample size in health sciences - Basics and selected examples
Sample size in health sciences - Basics and selected examplesRizwan S A
 
Student's t test and variations
Student's t test and variationsStudent's t test and variations
Student's t test and variationsRizwan S A
 
Statistical tests for data involving quantitative data
Statistical tests for data involving quantitative dataStatistical tests for data involving quantitative data
Statistical tests for data involving quantitative dataRizwan S A
 
Chi square test and its types
Chi square test and its typesChi square test and its types
Chi square test and its typesRizwan S A
 
Types of variables
Types of variablesTypes of variables
Types of variablesRizwan S A
 
Cohort study - basics
Cohort study - basicsCohort study - basics
Cohort study - basicsRizwan S A
 
Use of checklists in critical appraisal of health literature
Use of checklists in critical appraisal of health literatureUse of checklists in critical appraisal of health literature
Use of checklists in critical appraisal of health literatureRizwan S A
 
Statistical tests for categorical data
Statistical tests for categorical dataStatistical tests for categorical data
Statistical tests for categorical dataRizwan S A
 
People Management and Risk (PMR) Module 20589Lessons Lea.docx
People Management and Risk (PMR) Module 20589Lessons Lea.docxPeople Management and Risk (PMR) Module 20589Lessons Lea.docx
People Management and Risk (PMR) Module 20589Lessons Lea.docxpauline234567
 
Invited Presentation at the Eastern Cardiothoracic Surgical Society 2018
Invited Presentation at the Eastern Cardiothoracic Surgical Society 2018Invited Presentation at the Eastern Cardiothoracic Surgical Society 2018
Invited Presentation at the Eastern Cardiothoracic Surgical Society 2018Robert Poston
 
Planning, implementation, monitoring and evaluation of health education progr...
Planning, implementation, monitoring and evaluation of health education progr...Planning, implementation, monitoring and evaluation of health education progr...
Planning, implementation, monitoring and evaluation of health education progr...Jimma University
 
Choosing a statistical test
Choosing a statistical testChoosing a statistical test
Choosing a statistical testRizwan S A
 
Evidence based medicine or health practice
Evidence based medicine or health practiceEvidence based medicine or health practice
Evidence based medicine or health practiceRizwan S A
 
Safety reports rmp risk management plan pharmacovigilance
Safety reports rmp risk management plan pharmacovigilanceSafety reports rmp risk management plan pharmacovigilance
Safety reports rmp risk management plan pharmacovigilanceAzierta
 
Project Risk Management - Week 2 Individual Assignmen
 Project Risk Management - Week 2  Individual Assignmen Project Risk Management - Week 2  Individual Assignmen
Project Risk Management - Week 2 Individual Assignmentroutmanboris
 
OVER VIEW risk management 22016 NEW ASLI
OVER VIEW risk management 22016 NEW ASLIOVER VIEW risk management 22016 NEW ASLI
OVER VIEW risk management 22016 NEW ASLIsssheid
 

Similar to P value, Power, Type 1 and 2 errors (20)

Tests of hypothesis (Statistical testing)
Tests of hypothesis (Statistical testing)Tests of hypothesis (Statistical testing)
Tests of hypothesis (Statistical testing)
 
Sample size in health sciences - Basics and selected examples
Sample size in health sciences - Basics and selected examplesSample size in health sciences - Basics and selected examples
Sample size in health sciences - Basics and selected examples
 
Student's t test and variations
Student's t test and variationsStudent's t test and variations
Student's t test and variations
 
Statistical tests for data involving quantitative data
Statistical tests for data involving quantitative dataStatistical tests for data involving quantitative data
Statistical tests for data involving quantitative data
 
Chi square test and its types
Chi square test and its typesChi square test and its types
Chi square test and its types
 
Types of variables
Types of variablesTypes of variables
Types of variables
 
Cohort study - basics
Cohort study - basicsCohort study - basics
Cohort study - basics
 
Use of checklists in critical appraisal of health literature
Use of checklists in critical appraisal of health literatureUse of checklists in critical appraisal of health literature
Use of checklists in critical appraisal of health literature
 
Statistical tests for categorical data
Statistical tests for categorical dataStatistical tests for categorical data
Statistical tests for categorical data
 
train the trainer
train the trainertrain the trainer
train the trainer
 
People Management and Risk (PMR) Module 20589Lessons Lea.docx
People Management and Risk (PMR) Module 20589Lessons Lea.docxPeople Management and Risk (PMR) Module 20589Lessons Lea.docx
People Management and Risk (PMR) Module 20589Lessons Lea.docx
 
Invited Presentation at the Eastern Cardiothoracic Surgical Society 2018
Invited Presentation at the Eastern Cardiothoracic Surgical Society 2018Invited Presentation at the Eastern Cardiothoracic Surgical Society 2018
Invited Presentation at the Eastern Cardiothoracic Surgical Society 2018
 
Planning, implementation, monitoring and evaluation of health education progr...
Planning, implementation, monitoring and evaluation of health education progr...Planning, implementation, monitoring and evaluation of health education progr...
Planning, implementation, monitoring and evaluation of health education progr...
 
Choosing a statistical test
Choosing a statistical testChoosing a statistical test
Choosing a statistical test
 
Evidence based medicine or health practice
Evidence based medicine or health practiceEvidence based medicine or health practice
Evidence based medicine or health practice
 
Safety reports rmp risk management plan pharmacovigilance
Safety reports rmp risk management plan pharmacovigilanceSafety reports rmp risk management plan pharmacovigilance
Safety reports rmp risk management plan pharmacovigilance
 
Project Risk Management - Week 2 Individual Assignmen
 Project Risk Management - Week 2  Individual Assignmen Project Risk Management - Week 2  Individual Assignmen
Project Risk Management - Week 2 Individual Assignmen
 
Presentation
PresentationPresentation
Presentation
 
OVER VIEW risk management 22016 NEW ASLI
OVER VIEW risk management 22016 NEW ASLIOVER VIEW risk management 22016 NEW ASLI
OVER VIEW risk management 22016 NEW ASLI
 
IFPRI - The Problem of Impact Evaluation
IFPRI - The Problem of Impact EvaluationIFPRI - The Problem of Impact Evaluation
IFPRI - The Problem of Impact Evaluation
 

More from Rizwan S A

Introduction to scoping reviews
Introduction to scoping reviewsIntroduction to scoping reviews
Introduction to scoping reviewsRizwan S A
 
Sources of demographic data 2019
Sources of demographic data 2019Sources of demographic data 2019
Sources of demographic data 2019Rizwan S A
 
Effect sizes in meta-analysis
Effect sizes in meta-analysisEffect sizes in meta-analysis
Effect sizes in meta-analysisRizwan S A
 
Presenting the results of meta-analysis
Presenting the results of meta-analysisPresenting the results of meta-analysis
Presenting the results of meta-analysisRizwan S A
 
Heterogeneity in meta-analysis
Heterogeneity in meta-analysisHeterogeneity in meta-analysis
Heterogeneity in meta-analysisRizwan S A
 
Overview of the systematic review process
Overview of the systematic review processOverview of the systematic review process
Overview of the systematic review processRizwan S A
 
Biases in meta-analysis
Biases in meta-analysisBiases in meta-analysis
Biases in meta-analysisRizwan S A
 
Moderator analysis in meta-analysis
Moderator analysis in meta-analysisModerator analysis in meta-analysis
Moderator analysis in meta-analysisRizwan S A
 
Fixed-effect and random-effects models in meta-analysis
Fixed-effect and random-effects models in meta-analysisFixed-effect and random-effects models in meta-analysis
Fixed-effect and random-effects models in meta-analysisRizwan S A
 
Inverse variance method of meta-analysis and Cochran's Q
Inverse variance method of meta-analysis and Cochran's QInverse variance method of meta-analysis and Cochran's Q
Inverse variance method of meta-analysis and Cochran's QRizwan S A
 
Data extraction/coding and database structure in meta-analysis
Data extraction/coding and database structure in meta-analysisData extraction/coding and database structure in meta-analysis
Data extraction/coding and database structure in meta-analysisRizwan S A
 
Introduction & rationale for meta-analysis
Introduction & rationale for meta-analysisIntroduction & rationale for meta-analysis
Introduction & rationale for meta-analysisRizwan S A
 
Types of correlation coefficients
Types of correlation coefficientsTypes of correlation coefficients
Types of correlation coefficientsRizwan S A
 
Checking for normality (Normal distribution)
Checking for normality (Normal distribution)Checking for normality (Normal distribution)
Checking for normality (Normal distribution)Rizwan S A
 
Analysis of small datasets
Analysis of small datasetsAnalysis of small datasets
Analysis of small datasetsRizwan S A
 
A introduction to non-parametric tests
A introduction to non-parametric testsA introduction to non-parametric tests
A introduction to non-parametric testsRizwan S A
 
Kruskal Wallis test, Friedman test, Spearman Correlation
Kruskal Wallis test, Friedman test, Spearman CorrelationKruskal Wallis test, Friedman test, Spearman Correlation
Kruskal Wallis test, Friedman test, Spearman CorrelationRizwan S A
 
Kolmogorov Smirnov good-of-fit test
Kolmogorov Smirnov good-of-fit testKolmogorov Smirnov good-of-fit test
Kolmogorov Smirnov good-of-fit testRizwan S A
 
Mantel Haenszel methods in epidemiology (Stratification)
Mantel Haenszel methods in epidemiology (Stratification) Mantel Haenszel methods in epidemiology (Stratification)
Mantel Haenszel methods in epidemiology (Stratification) Rizwan S A
 
Critical Appraisal of health literature
Critical Appraisal of health literatureCritical Appraisal of health literature
Critical Appraisal of health literatureRizwan S A
 

More from Rizwan S A (20)

Introduction to scoping reviews
Introduction to scoping reviewsIntroduction to scoping reviews
Introduction to scoping reviews
 
Sources of demographic data 2019
Sources of demographic data 2019Sources of demographic data 2019
Sources of demographic data 2019
 
Effect sizes in meta-analysis
Effect sizes in meta-analysisEffect sizes in meta-analysis
Effect sizes in meta-analysis
 
Presenting the results of meta-analysis
Presenting the results of meta-analysisPresenting the results of meta-analysis
Presenting the results of meta-analysis
 
Heterogeneity in meta-analysis
Heterogeneity in meta-analysisHeterogeneity in meta-analysis
Heterogeneity in meta-analysis
 
Overview of the systematic review process
Overview of the systematic review processOverview of the systematic review process
Overview of the systematic review process
 
Biases in meta-analysis
Biases in meta-analysisBiases in meta-analysis
Biases in meta-analysis
 
Moderator analysis in meta-analysis
Moderator analysis in meta-analysisModerator analysis in meta-analysis
Moderator analysis in meta-analysis
 
Fixed-effect and random-effects models in meta-analysis
Fixed-effect and random-effects models in meta-analysisFixed-effect and random-effects models in meta-analysis
Fixed-effect and random-effects models in meta-analysis
 
Inverse variance method of meta-analysis and Cochran's Q
Inverse variance method of meta-analysis and Cochran's QInverse variance method of meta-analysis and Cochran's Q
Inverse variance method of meta-analysis and Cochran's Q
 
Data extraction/coding and database structure in meta-analysis
Data extraction/coding and database structure in meta-analysisData extraction/coding and database structure in meta-analysis
Data extraction/coding and database structure in meta-analysis
 
Introduction & rationale for meta-analysis
Introduction & rationale for meta-analysisIntroduction & rationale for meta-analysis
Introduction & rationale for meta-analysis
 
Types of correlation coefficients
Types of correlation coefficientsTypes of correlation coefficients
Types of correlation coefficients
 
Checking for normality (Normal distribution)
Checking for normality (Normal distribution)Checking for normality (Normal distribution)
Checking for normality (Normal distribution)
 
Analysis of small datasets
Analysis of small datasetsAnalysis of small datasets
Analysis of small datasets
 
A introduction to non-parametric tests
A introduction to non-parametric testsA introduction to non-parametric tests
A introduction to non-parametric tests
 
Kruskal Wallis test, Friedman test, Spearman Correlation
Kruskal Wallis test, Friedman test, Spearman CorrelationKruskal Wallis test, Friedman test, Spearman Correlation
Kruskal Wallis test, Friedman test, Spearman Correlation
 
Kolmogorov Smirnov good-of-fit test
Kolmogorov Smirnov good-of-fit testKolmogorov Smirnov good-of-fit test
Kolmogorov Smirnov good-of-fit test
 
Mantel Haenszel methods in epidemiology (Stratification)
Mantel Haenszel methods in epidemiology (Stratification) Mantel Haenszel methods in epidemiology (Stratification)
Mantel Haenszel methods in epidemiology (Stratification)
 
Critical Appraisal of health literature
Critical Appraisal of health literatureCritical Appraisal of health literature
Critical Appraisal of health literature
 

Recently uploaded

Call Girls Service Chennai Jiya 7001305949 Independent Escort Service Chennai
Call Girls Service Chennai Jiya 7001305949 Independent Escort Service ChennaiCall Girls Service Chennai Jiya 7001305949 Independent Escort Service Chennai
Call Girls Service Chennai Jiya 7001305949 Independent Escort Service ChennaiNehru place Escorts
 
Book Call Girls in Kasavanahalli - 7001305949 with real photos and phone numbers
Book Call Girls in Kasavanahalli - 7001305949 with real photos and phone numbersBook Call Girls in Kasavanahalli - 7001305949 with real photos and phone numbers
Book Call Girls in Kasavanahalli - 7001305949 with real photos and phone numbersnarwatsonia7
 
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...narwatsonia7
 
call girls in green park DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in green park  DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️call girls in green park  DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in green park DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️saminamagar
 
Call Girls In Andheri East Call 9920874524 Book Hot And Sexy Girls
Call Girls In Andheri East Call 9920874524 Book Hot And Sexy GirlsCall Girls In Andheri East Call 9920874524 Book Hot And Sexy Girls
Call Girls In Andheri East Call 9920874524 Book Hot And Sexy Girlsnehamumbai
 
Call Girls Service Noida Maya 9711199012 Independent Escort Service Noida
Call Girls Service Noida Maya 9711199012 Independent Escort Service NoidaCall Girls Service Noida Maya 9711199012 Independent Escort Service Noida
Call Girls Service Noida Maya 9711199012 Independent Escort Service NoidaPooja Gupta
 
Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...
Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...
Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...narwatsonia7
 
Call Girls Jp Nagar Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Jp Nagar Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Jp Nagar Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Jp Nagar Just Call 7001305949 Top Class Call Girl Service Availablenarwatsonia7
 
Call Girls Service In Shyam Nagar Whatsapp 8445551418 Independent Escort Service
Call Girls Service In Shyam Nagar Whatsapp 8445551418 Independent Escort ServiceCall Girls Service In Shyam Nagar Whatsapp 8445551418 Independent Escort Service
Call Girls Service In Shyam Nagar Whatsapp 8445551418 Independent Escort Serviceparulsinha
 
VIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service Lucknow
VIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service LucknowVIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service Lucknow
VIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service Lucknownarwatsonia7
 
Call Girls Service in Bommanahalli - 7001305949 with real photos and phone nu...
Call Girls Service in Bommanahalli - 7001305949 with real photos and phone nu...Call Girls Service in Bommanahalli - 7001305949 with real photos and phone nu...
Call Girls Service in Bommanahalli - 7001305949 with real photos and phone nu...narwatsonia7
 
Call Girls ITPL Just Call 7001305949 Top Class Call Girl Service Available
Call Girls ITPL Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls ITPL Just Call 7001305949 Top Class Call Girl Service Available
Call Girls ITPL Just Call 7001305949 Top Class Call Girl Service Availablenarwatsonia7
 
Call Girl Service Bidadi - For 7001305949 Cheap & Best with original Photos
Call Girl Service Bidadi - For 7001305949 Cheap & Best with original PhotosCall Girl Service Bidadi - For 7001305949 Cheap & Best with original Photos
Call Girl Service Bidadi - For 7001305949 Cheap & Best with original Photosnarwatsonia7
 
Call Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service Availablenarwatsonia7
 
Call Girls Jayanagar Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Jayanagar Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Jayanagar Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Jayanagar Just Call 7001305949 Top Class Call Girl Service Availablenarwatsonia7
 
Russian Call Girls in Pune Riya 9907093804 Short 1500 Night 6000 Best call gi...
Russian Call Girls in Pune Riya 9907093804 Short 1500 Night 6000 Best call gi...Russian Call Girls in Pune Riya 9907093804 Short 1500 Night 6000 Best call gi...
Russian Call Girls in Pune Riya 9907093804 Short 1500 Night 6000 Best call gi...Miss joya
 
Dwarka Sector 6 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few Cl...
Dwarka Sector 6 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few Cl...Dwarka Sector 6 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few Cl...
Dwarka Sector 6 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few Cl...rajnisinghkjn
 
97111 47426 Call Girls In Delhi MUNIRKAA
97111 47426 Call Girls In Delhi MUNIRKAA97111 47426 Call Girls In Delhi MUNIRKAA
97111 47426 Call Girls In Delhi MUNIRKAAjennyeacort
 
Call Girls Whitefield Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Whitefield Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Whitefield Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Whitefield Just Call 7001305949 Top Class Call Girl Service Availablenarwatsonia7
 
Low Rate Call Girls Pune Esha 9907093804 Short 1500 Night 6000 Best call girl...
Low Rate Call Girls Pune Esha 9907093804 Short 1500 Night 6000 Best call girl...Low Rate Call Girls Pune Esha 9907093804 Short 1500 Night 6000 Best call girl...
Low Rate Call Girls Pune Esha 9907093804 Short 1500 Night 6000 Best call girl...Miss joya
 

Recently uploaded (20)

Call Girls Service Chennai Jiya 7001305949 Independent Escort Service Chennai
Call Girls Service Chennai Jiya 7001305949 Independent Escort Service ChennaiCall Girls Service Chennai Jiya 7001305949 Independent Escort Service Chennai
Call Girls Service Chennai Jiya 7001305949 Independent Escort Service Chennai
 
Book Call Girls in Kasavanahalli - 7001305949 with real photos and phone numbers
Book Call Girls in Kasavanahalli - 7001305949 with real photos and phone numbersBook Call Girls in Kasavanahalli - 7001305949 with real photos and phone numbers
Book Call Girls in Kasavanahalli - 7001305949 with real photos and phone numbers
 
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...
Russian Call Girls Chickpet - 7001305949 Booking and charges genuine rate for...
 
call girls in green park DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in green park  DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️call girls in green park  DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
call girls in green park DELHI 🔝 >༒9540349809 🔝 genuine Escort Service 🔝✔️✔️
 
Call Girls In Andheri East Call 9920874524 Book Hot And Sexy Girls
Call Girls In Andheri East Call 9920874524 Book Hot And Sexy GirlsCall Girls In Andheri East Call 9920874524 Book Hot And Sexy Girls
Call Girls In Andheri East Call 9920874524 Book Hot And Sexy Girls
 
Call Girls Service Noida Maya 9711199012 Independent Escort Service Noida
Call Girls Service Noida Maya 9711199012 Independent Escort Service NoidaCall Girls Service Noida Maya 9711199012 Independent Escort Service Noida
Call Girls Service Noida Maya 9711199012 Independent Escort Service Noida
 
Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...
Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...
Call Girls Electronic City Just Call 7001305949 Top Class Call Girl Service A...
 
Call Girls Jp Nagar Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Jp Nagar Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Jp Nagar Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Jp Nagar Just Call 7001305949 Top Class Call Girl Service Available
 
Call Girls Service In Shyam Nagar Whatsapp 8445551418 Independent Escort Service
Call Girls Service In Shyam Nagar Whatsapp 8445551418 Independent Escort ServiceCall Girls Service In Shyam Nagar Whatsapp 8445551418 Independent Escort Service
Call Girls Service In Shyam Nagar Whatsapp 8445551418 Independent Escort Service
 
VIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service Lucknow
VIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service LucknowVIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service Lucknow
VIP Call Girls Lucknow Nandini 7001305949 Independent Escort Service Lucknow
 
Call Girls Service in Bommanahalli - 7001305949 with real photos and phone nu...
Call Girls Service in Bommanahalli - 7001305949 with real photos and phone nu...Call Girls Service in Bommanahalli - 7001305949 with real photos and phone nu...
Call Girls Service in Bommanahalli - 7001305949 with real photos and phone nu...
 
Call Girls ITPL Just Call 7001305949 Top Class Call Girl Service Available
Call Girls ITPL Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls ITPL Just Call 7001305949 Top Class Call Girl Service Available
Call Girls ITPL Just Call 7001305949 Top Class Call Girl Service Available
 
Call Girl Service Bidadi - For 7001305949 Cheap & Best with original Photos
Call Girl Service Bidadi - For 7001305949 Cheap & Best with original PhotosCall Girl Service Bidadi - For 7001305949 Cheap & Best with original Photos
Call Girl Service Bidadi - For 7001305949 Cheap & Best with original Photos
 
Call Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Hsr Layout Just Call 7001305949 Top Class Call Girl Service Available
 
Call Girls Jayanagar Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Jayanagar Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Jayanagar Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Jayanagar Just Call 7001305949 Top Class Call Girl Service Available
 
Russian Call Girls in Pune Riya 9907093804 Short 1500 Night 6000 Best call gi...
Russian Call Girls in Pune Riya 9907093804 Short 1500 Night 6000 Best call gi...Russian Call Girls in Pune Riya 9907093804 Short 1500 Night 6000 Best call gi...
Russian Call Girls in Pune Riya 9907093804 Short 1500 Night 6000 Best call gi...
 
Dwarka Sector 6 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few Cl...
Dwarka Sector 6 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few Cl...Dwarka Sector 6 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few Cl...
Dwarka Sector 6 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few Cl...
 
97111 47426 Call Girls In Delhi MUNIRKAA
97111 47426 Call Girls In Delhi MUNIRKAA97111 47426 Call Girls In Delhi MUNIRKAA
97111 47426 Call Girls In Delhi MUNIRKAA
 
Call Girls Whitefield Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Whitefield Just Call 7001305949 Top Class Call Girl Service AvailableCall Girls Whitefield Just Call 7001305949 Top Class Call Girl Service Available
Call Girls Whitefield Just Call 7001305949 Top Class Call Girl Service Available
 
Low Rate Call Girls Pune Esha 9907093804 Short 1500 Night 6000 Best call girl...
Low Rate Call Girls Pune Esha 9907093804 Short 1500 Night 6000 Best call girl...Low Rate Call Girls Pune Esha 9907093804 Short 1500 Night 6000 Best call girl...
Low Rate Call Girls Pune Esha 9907093804 Short 1500 Night 6000 Best call girl...
 

P value, Power, Type 1 and 2 errors

  • 1. P value, Power & Type I & II error Dr. S. A. Rizwan, M.D. Public Health Specialist SBCM, Joint Program – Riyadh Ministry of Health, Kingdom of Saudi Arabia
  • 2. Learning objectives Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh • Define p value • Describe the meaning and limitations of p value • Define power of a test and its meaning • Describe type 1 and type 2 errors in hypothesis testing and how they affect the interpretation of results • Understand how consideration of p value, type 1 and 2 errors relate to sample size calculation 2
  • 3. Section 1: P value Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh 3
  • 4. P value Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh • Defined as the probability of obtaining a result equal to or more extreme than what was actually observed • First introduced by Karl Pearson in his Pearson's chi-squared test • It can also be seen in relation to the probability of making a Type I error 4
  • 5. P value Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh The vertical coordinate is the probability density of each outcome, computed under the null hypothesis. The p-value is the area under the curve past the observed data point. 5
  • 6. P value – choice of cut off value Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh • Arbitrary cut-off 0.05 (5% chance of a false+ conclusion) • If p<0.05 statistically significant- Reject H0, Accept H1 • If p>0.05 statistically not significant, Accept H0, Reject H1 • Testing potential harmful interventions ‘α’ value is set below 0.05 • Depends upon the research question! 6
  • 7. P value – degrees of magnitude Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh • Very small (<0.001), the results are said to be highly significant • Near 0.05, it is said to be borderline significant • Near 1.0, result does not matter! 7
  • 8. P value – how to calculate it? Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh • Depending upon the statistic we are interested in predetermined p values and their critical values are displayed in statistical tables • So each type of distribution has its own table • It is also possible to calculate exact p values with computers instead of using such tables 8
  • 9. P value – interpretation Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh • If the results are statistically significant, decide whether the observed differences are clinically important • If not significant, see if the sample size was adequate enough not to have missed a clinically important difference • Power of the study tells us the strength which we can conclude that there is no difference between the two groups 9
  • 10. P value – interpretation Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh • Statistical significance does not necessarily mean real significance • If sample size is large, even small differences can have a low p-value • Lack of significance doesn’t necessarily mean null hypothesis is true • If sample size is small, there could be a real difference, but we are not able to detect it • If you perform a large number of tests in a study, 1 in 20 will be significant merely by chance 10
  • 11. Section 2: Type 1 and 2 errors Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh 11
  • 12. Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh • These are errors that arise when performing hypothesis testing and decision making • Type 1 error (false positive conclusion) • Stating difference when there is no difference, alpha • Related to p value, how? • Set at 1/20 or 0.05 or 5% • The probability is distributed at the tails of the normal curve i.e., 0.025 on either tail • Type 2 error (false negative conclusion) • Stating no difference when there is a difference, beta • Occurs when sample size is too small. • Conventional values are 0.1 or 0.2 • Related to power, how? What are these errors? 12
  • 13. Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh What are these errors? 13 Reality: No effect Reality: Effect exists Research concludes: Fail to reject null; No effect CORRECT FAILURE TO REJECT TYPE 2 ERROR (β) Researcher concludes: Reject null; Effect exists TYPE 1 ERROR (α) CORRECT REJECT (1-β) • Advanced learning: Do you know there are type 3 and 4 also?
  • 14. Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh Example 1 14
  • 15. Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh Example 2 15
  • 16. Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh Example 3 16
  • 17. Section 3: Power of the study Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh 17
  • 18. Power of the study Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh • The ability to detect a statistically significant association • It can also be seen as the probability of not missing an effect, due to sampling error, when there really is an effect • It is also the probability of avoiding a type 2 error, i.e., 1 – beta • A prospective power analysis is used before collecting data, to consider design sensitivity • A retrospective power analysis is used in order to know whether the studies you are interpreting were well enough designed 18
  • 19. Factors affecting power Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh • All else being equal: 1. As sample sizes increase, power increases 2. As population variances decrease, power increases 3. As the difference increases, power increases 4. Statistical power is greater for one-tailed tests 5. The greater the probability of making a Type I error, the greater the power 19
  • 20. Calculating Power: Example Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh • A study of n = 16 retains null H: μ = 170 at α = 0.05 (two-sided); σ is 40. What was the power of test’s conditions to identify a population mean of 190? ( ) 5160.0 04.0 40 16|190170| 96.1 || 1 0 1 2 = Φ= ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎝ ⎛ − +−Φ= ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎝ ⎛ − +−Φ=− − σ µµ β α n z a 20
  • 21. Calculating Power: Example Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh • Top curve assumes null H is true • Bottom curve assumes alternative H is true • α is set to 0.05 (two-sided) • We will reject null when a sample mean exceeds 189.6 (right tail, top curve) • The probability of getting a value greater than 189.6 on the bottom curve is 0.5160, corresponding to the power of the test 21
  • 22. Power vs. confidence intervals Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh • Once we have constructed a confidence interval, power calculations yield no additional insights • It is pointless to perform power calculations for hypotheses outside of the confidence interval • Confidence intervals better inform readers about the possibility of an inadequate sample size than do post hoc power calculations 22
  • 23. How do the errors relate to sample size? Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh • Sample size for one-sample z test: • 1 – β ≡ desired power • α ≡ desired significance level (two-sided) • σ ≡ population standard deviation • Δ = μ0 – μa ≡ the difference worth detecting ( ) 2 2 11 2 2 Δ + = −− αβσ zz n 23
  • 24. How do the errors relate to sample size? Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh • How large a sample is needed for a one-sample z test with 90% power and α = 0.05 (two-tailed) when σ = 40? Let H0: μ = 170 and Ha: μ = 190 (thus, Δ = μ0 − μa = 170 – 190 = −20) • Sample size should be 42 to ensure adequate power. ( ) 99.41 20 )96.128.1(40 2 22 2 2 11 2 2 = − + = Δ + = −− αβσ zz n 24
  • 25. How do the errors relate to sample size? Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh N = 16 N = 42 25
  • 26. Take home messages Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh • P value, type 1 and 2 errors, alpha, beta, power, critical value and hypothesis testing, sample size are all related to each other 26