+ All Categories
Home > Health & Medicine > P value, Power, Type 1 and 2 errors

P value, Power, Type 1 and 2 errors

Date post: 21-Apr-2017
Category:
Upload: rizwan-s-a
View: 90 times
Download: 4 times
Share this document with a friend
27
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
Transcript
Page 1: P value, Power, Type 1 and 2 errors

P value, Power & Type I & II errorDr. S. A. Rizwan, M.D.

Public Health SpecialistSBCM, Joint Program – Riyadh

Ministry of Health, Kingdom of Saudi Arabia

Page 2: P value, Power, Type 1 and 2 errors

Learningobjectives

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh

• Definepvalue• Describethemeaningandlimitationsofpvalue• Definepowerofatestanditsmeaning• Describetype1andtype2errorsinhypothesistestingandhowtheyaffecttheinterpretationofresults

• Understandhowconsiderationofpvalue,type1and2errorsrelatetosamplesizecalculation

2

Page 3: P value, Power, Type 1 and 2 errors

Section1:Pvalue

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh 3

Page 4: P value, Power, Type 1 and 2 errors

Pvalue

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh

• Definedastheprobabilityofobtainingaresultequaltoormoreextremethanwhatwasactuallyobserved

• Firstintroducedby KarlPearson inhis Pearson'schi-squaredtest

• ItcanalsobeseeninrelationtotheprobabilityofmakingaTypeIerror

4

Page 5: P value, Power, Type 1 and 2 errors

Pvalue

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh

Theverticalcoordinateistheprobability densityofeachoutcome,computedunderthenullhypothesis.The p-valueistheareaunderthecurvepasttheobserveddatapoint.

5

Page 6: P value, Power, Type 1 and 2 errors

Pvalue– choiceofcutoffvalue

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh

• Arbitrarycut-off0.05(5%chanceofafalse+conclusion)• Ifp<0.05statisticallysignificant- RejectH0,AcceptH1• Ifp>0.05statisticallynotsignificant,AcceptH0,RejectH1

• Testingpotentialharmful interventions‘α’valueissetbelow0.05

• Depends upontheresearchquestion!

6

Page 7: P value, Power, Type 1 and 2 errors

Pvalue– degreesofmagnitude

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh

• Verysmall(<0.001),theresultsaresaidtobehighlysignificant

• Near0.05,itissaidtobeborderlinesignificant• Near1.0,resultdoesnotmatter!

7

Page 8: P value, Power, Type 1 and 2 errors

Pvalue– howtocalculateit?

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh

• Dependinguponthestatisticweareinterestedinpredeterminedpvaluesandtheircriticalvaluesaredisplayedinstatisticaltables

• Soeachtypeofdistributionhasitsowntable

• Itisalsopossibletocalculateexactpvalueswithcomputersinsteadofusingsuchtables

8

Page 9: P value, Power, Type 1 and 2 errors

Pvalue– interpretation

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh

• Iftheresultsarestatisticallysignificant,decidewhethertheobserveddifferencesareclinicallyimportant

• Ifnotsignificant,seeifthesamplesizewasadequateenoughnottohavemissedaclinicallyimportantdifference

• Power ofthestudytellsusthestrengthwhichwecanconcludethatthereisnodifferencebetweenthetwogroups

9

Page 10: P value, Power, Type 1 and 2 errors

Pvalue– interpretation

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh

• Statisticalsignificancedoesnotnecessarilymeanrealsignificance

• Ifsamplesizeislarge,evensmalldifferencescanhavealowp-value

• Lackofsignificancedoesn’tnecessarilymeannullhypothesisistrue

• Ifsamplesizeissmall,therecouldbearealdifference,butwearenotabletodetectit

• Ifyouperformalargenumberoftestsinastudy,1in20willbesignificantmerelybychance

10

Page 11: P value, Power, Type 1 and 2 errors

Section2:Type1and2errors

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh 11

Page 12: P value, Power, Type 1 and 2 errors

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh

• Theseareerrorsthatarisewhenperforminghypothesistestinganddecisionmaking

• Type1error(falsepositiveconclusion)• Statingdifferencewhenthereisnodifference,alpha• Relatedtopvalue,how?• Setat1/20or0.05or5%• Theprobability isdistributedatthetailsofthenormalcurvei.e.,0.025on

eithertail

• Type2error (falsenegativeconclusion)• Statingnodifferencewhenthereisadifference,beta• Occurswhensamplesizeistoosmall.• Conventionalvaluesare0.1or0.2• Relatedtopower,how?

Whataretheseerrors?

12

Page 13: P value, Power, Type 1 and 2 errors

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh

Whataretheseerrors?

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-β)

• Advancedlearning:Doyouknowtherearetype3and4also?

Page 14: P value, Power, Type 1 and 2 errors

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh

Example1

14

Page 15: P value, Power, Type 1 and 2 errors

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh

Example2

15

Page 16: P value, Power, Type 1 and 2 errors

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh

Example3

16

Page 17: P value, Power, Type 1 and 2 errors

Section3:Powerofthestudy

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh 17

Page 18: P value, Power, Type 1 and 2 errors

Powerofthestudy

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh

• Theabilitytodetectastatisticallysignificantassociation

• Itcanalsobeseenastheprobabilityofnotmissinganeffect,duetosamplingerror,whentherereallyisaneffect

• Itisalsotheprobabilityofavoidingatype2error,i.e.,1– beta

• Aprospectivepoweranalysisisusedbeforecollectingdata,toconsiderdesignsensitivity

• Aretrospectivepoweranalysisisusedinordertoknowwhetherthestudiesyouareinterpretingwerewellenoughdesigned

18

Page 19: P value, Power, Type 1 and 2 errors

Factorsaffectingpower

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh

• Allelsebeingequal:

1. Assamplesizesincrease,powerincreases2. Aspopulation variancesdecrease,powerincreases3. Asthedifference increases,powerincreases4. Statisticalpowerisgreaterforone-tailedtests5. ThegreatertheprobabilityofmakingaTypeIerror,the

greaterthepower

19

Page 20: P value, Power, Type 1 and 2 errors

CalculatingPower:Example

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh

• Astudyofn=16retainsnullH:μ=170atα=0.05(two-sided);σis40.Whatwasthepoweroftest’sconditionstoidentifyapopulationmeanof190?

( )5160.004.0

4016|190170|96.1

||1 0

1 2

=

Φ=

⎟⎟⎠

⎞⎜⎜⎝

⎛ −+−Φ=

⎟⎟

⎜⎜

⎛ −+−Φ=− − σ

µµβ α

nz a

20

Page 21: P value, Power, Type 1 and 2 errors

CalculatingPower:Example

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh

• TopcurveassumesnullHistrue

• BottomcurveassumesalternativeHistrue

• αissetto0.05(two-sided)

• Wewillrejectnullwhenasamplemeanexceeds189.6(righttail,topcurve)

• Theprobability ofgettingavaluegreaterthan189.6onthebottomcurveis0.5160,correspondingtothepowerofthetest

21

Page 22: P value, Power, Type 1 and 2 errors

Powervs.confidenceintervals

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh

• Oncewehaveconstructedaconfidenceinterval,powercalculationsyieldnoadditional insights

• Itispointlesstoperformpowercalculationsforhypothesesoutsideoftheconfidenceinterval

• Confidenceintervalsbetterinformreadersaboutthepossibilityofaninadequatesamplesizethandoposthocpowercalculations

22

Page 23: P value, Power, Type 1 and 2 errors

Howdotheerrorsrelatetosamplesize?

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh

• Samplesizeforone-sampleztest:• 1– β≡desiredpower• α≡desiredsignificancelevel(two-sided)• σ≡population standarddeviation• Δ=μ0– μa≡thedifferenceworthdetecting

( )2

211

2

2

Δ

+=

−− αβσ zzn

23

Page 24: P value, Power, Type 1 and 2 errors

Howdotheerrorsrelatetosamplesize?

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh

• Howlargeasampleisneededforaone-sampleztestwith90%powerandα=0.05(two-tailed)whenσ=40?LetH0:μ=170andHa:μ=190(thus,Δ=μ0−μa=170– 190=−20)

• Samplesizeshouldbe42toensureadequatepower.

( )99.41

20)96.128.1(40

2

22

2

211

22 =

+=

Δ

+=

−− αβσ zzn

24

Page 25: P value, Power, Type 1 and 2 errors

Howdotheerrorsrelatetosamplesize?

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh

N=16 N=42

25

Page 26: P value, Power, Type 1 and 2 errors

Takehomemessages

Demystifying statistics! – Lecture 5 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh

• Pvalue,type1and2errors,alpha,beta,power,criticalvalueandhypothesistesting,samplesizeareallrelatedtoeachother

26


Recommended