已阅读5页,还剩37页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
comparisonoftwosamples summerprogrambrianhealy previousclasses hypothesistestingnullandalternativehypothesesteststatisticp valueconclusionconfidenceintervalscomparisonofcitohypothesistestpowerandsamplesize whatarewedoingtoday two samplet testpairedt testindependentsamplesequalvarianceunequalvariancesamplesizefortwosamples bigpicture uptothispoint wehaveonlyconcernedourselveswithonesample oftenwewanttocompareonegrouptoanother whathappenswhenwearecomparingtwosamples variabilityinbothsamples andpotentiallytwosamplesarerelatedmuchofthetheoryisthesame example oneofthefirststudiesianalyzedwasatumorsizestudy havinganaccuratemeasureoftumorsizeisextremelyimportantbecauseitallowsaphysiciantoaccuratelydetermineifatumorisgrowing shrinkingorremainingconstant theproblemisthatoftenthemeasurementsofthetumorsizevaryfromphysiciantophysician inthepast tumorsizewasmeasuredusingthelineardistanceacrossthetumor butthiswasfoundtobeveryvariablebecauseoftheirregularshapeofsometumors anewmethodcalledtherecistcriteriatracestheoutsideofthetumor therecistmethodwasbelievedtogivemoreconsistentmeasuresofthevolumeofthetumor availabledata foraportionofthestudy apairofdoctorswereshownthesamesetoftumorpictures thevolumeofthetumorwasmeasuredbytwoseparatephysiciansundersimilarconditions questionofinterest didthemeasurementsfromthetwophysicianssignificantlydiffer ifnot thentherewouldbenoevidencethatthevolumemeasurementschangebasedonphysician 20scansweremeasuredbyeachphysician 10areshownhere measurementsincm3whatcanyousayaboutthesesamples twomeasurementonthesamepersontheyarerelatedsowemustaccountforthismuchresearchinstatisticsdealswithhowtohandlecorrelateddata butinthiscaseitisprettyeasy dependentsample wecanmeasuretheeffectofthetreatmentineachpersonbytakingthedifferenceinsteadofhavingtwosamples wecanconsiderourdatasettobeonesampleofdifferencesjustliketheonesampleproblem differences volumefromdr 1populationmean samplemean volumefromdr 2populationmean samplemean differencepopulationmean samplemean distributionofdifferences assumingdi sarenormallydistributed canuset distributionwithn 1dofwherenisthenumberofdifferencesstandarddeviationofdifferencesteststatisticactsjustlikeonesample picture wecanseethattheassumptionofnormalityofthedifferencesisreasonableinthiscase pairedt test nullhypothesis nodifferencebetweenphysicianseffecttwodependentsamples alpha 0 05teststatistic t statisticwithdofp value 0 53failtorejectnullhypothesisconclusion thereisnoevidenceofadifferenceintumorvolumemeasurementbasedonphysician confidenceinterval confidenceintervalforpairedt testconstructedinthesamewayasone samplet testforourexample theconfidenceintervalis 1 010 54 notethattheconclusionfromthehypothesistestandtheconfidenceintervalarethesame pairedt testinr usingthehelpmenu determinehowtocompletethepairedt testinr pairedt testinr data read table p pairedscans dat header f dr1 data 1 dr2 data 2 t test dr1 dr2 paired t theoutputprovidesthep valueandtheconfidenceintervalpairedt testdata data 1 anddata 2 t 0 6456 df 19 p value 0 5262alternativehypothesis truedifferenceinmeansisnotequalto095percentconfidenceinterval 1 01802790 5380279sampleestimates meanofthedifferences 0 24 extensions someadditionalexamplesofpairedsamplesare differencesbetweenleftandrighteyedifferencesbetweendominantandrecessivehandmatchedsampleswhenyouhavemorethantwosamples techniquesaccountforthecorrelationbetweenthesamplesmultivariate longitudinaldata unpairedsamples oftenitisimpracticaltodesignstudytousethesamepatientsforbothgroupex comparisonofcholesterolinmalesandfemalesex timeconstraintssincethesamplesarenotpaired wecannotusethedifferencebetweentheindividualsamplesmustadjustpreviousanalysis example anotheraspectofthetumorvolumestudywastryingtocomparethetumorvolumeamongpatientswithdifferentformsofcancer theaveragetumorsizeisimportanttoknowtheeffectoftreatmentcanbedetermined inthisstudy patientswithbrain breastandlivertumors butinitiallywewillonlycomparethebrainandbreastcancers allofthetumorsweremeasuredusingtherecistmethod nullhypothesis thenullhypothesisisthatthereisnodifferencebetweenthevolumeofthetumorinthetwoformsofcancerh0 mbrain mbreast ormbrain mbreast 0moregenerally wecantestifthedifferencebetweentwogroupsisaspecificvalue m1 m2 dthisoccurswhencomparingtwotreatmentgroupsandweareinterestedifthetwogroupsaredifferentbyaspecificamount eachpatientcontributesoneobservationcanestimatefromthesamplemeanandstandarddeviationinbraincancergroupwithmeanandstandarddeviationinbreastcancergroupwitharethetwogroupsthesame h0 m1 m2 orm1 m2 0todeterminethis wearegoingtolookatwealsoneedtoknow differenceinthesamplemeans wearegoingtousethedifferenceofthemeansasourteststatistic butweneedtoestimatethevarianceofthisdifferencetodetermineifthedifferenceissignificantbasicformofteststatistic standarddeviationsknownunknowntheestimateofthestandarddeviationchangeswhenthesampleshaveequalvarianceorthesampleshaveunequalvariance equalvariance sometimeswewillbewillingtoassumethatthevarianceinthetwogroupsisequal ifweknowthisvariance wecanusethez statisticoftenwehavetoestimates2withthesamplevariancefromeachofthesamples sincewehavetwoestimatesofonequantity wepoolthetwoestimates equalvariancecontinued theestimateofsisgivenby thet statisticbasedonthepooledvarianceisverysimilartothez statisticasalways thet statistichasat distributionwithdegreesoffreedom forthetumorvolumestudy therewere20braincancersubjectsand28breastcancersubjectsthesummarystatisticsandhistogramforthedataaregivenherewhatcanyousayaboutthedistributions doestheequalvarianceassumptionseemvalidinthiscase hypothesistest h0 meanbraintumorsize meanbreasttumorsizetwoindependentsampleswithequalvariance alpha 0 05p value 0 046rejectnullhypothesisconclusion thereisasignificantdifferenceinthesizeofbrainandbreastcancertumors rcode ifweonlyhadtheteststatisticsabove wecancalculatetheteststatisticandthencompareittothet distributionusingpt 2 054 df 46 todeterminetheareainthelowertailhowdoweconvertthisintotheappropriatep value withthefulldata wecanusedata read table cancer dat header t gr data 1 size data 2 t test size gr 0 size gr 1 var equal t routput twosamplet testdata size gr 0 andsize gr 1 t 2 054 df 46 p value 0 04568alternativehypothesis truedifferenceinmeansisnotequalto095percentconfidenceinterval 2 65174438 0 02682705sampleestimates meanofxmeanofy16 1500017 48929 unequalvariance often weareunwillingtoassumethatthevariancesareequalwenowwritetheteststatisticas thedistributionofthisstatisticisdifficulttoderiveandweapproximatethedistributionusingat distributionwithndegreesoffreedom thisiscalledthesatterthwaiteorwelchapproximationwhenyoucompleteatwo samplet testinrandthevariancesarenotassumedequal thisapproximationisused example forthecomparisonofthebraincancerstothelivercancers thevariancesaremuchmoredifferent let susetheunequalvariancetwosamplet testinthiscase example h0 meanbraintumorsize meanlivertumorsizetwoindependentsampleswithequalvariance alpha 0 05p value 0 0044rejectnullhypothesisconclusion thereisasignificantdifferenceinthesizeofthebrainandlivertumorsize routput t test size gr 0 size gr 2 welchtwosamplet testdata size gr 0 andsize gr 2 t 3 1666 df 22 48 p value 0 00439alternativehypothesis truedifferenceinmeansisnotequalto095percentconfidenceinterval 5 288291 1 105827sampleestimates meanofxmeanofy16 1500019 34706 practice getthetvdatasetfromthecoursefolderwewanttocomparetheamountoftvtheboysandgirlswatch performthemostappropriatetest boysarecodedas0andgirlsarecodedas1 canwetestifthevariancesareequal sincewecanneverbesureifthevariancesareequal couldwetestiftheyareequal ofcoursewecan but rememberthereiserrorineverystatisticaltestsometimesitisjustpreferredtousetheunequalvarianceunlessthereisagoodreason equalityofvariance h0 s12 s22totestthishypothesis weusethesamplevariances ifoneofthevariancesismuchlargerthantheother thisisevidenceagainstthenullaswediscussedacoupleclassesago testofequality onewaytotestifthetwovariancesareequalistocheckiftheratioisequalto1 h0 ratio 1 underthenull theratiosimplifiestotheratioof2chi squarerandomvariableshasanf distributionthef distributionisdefinedbythenumeratoranddenominatordegreesoffreedomherewehaveanf distributionwithn1 1andn2 1degreesoffreedomthisworksbetterwith f distribution hereisthef distributionwith5and500degreesoffreedomnotetheskewofthedistribution example var test size gr 1 size gr 0 ftesttocomparetwovariancesdata size gr 1 andsize gr 0 f 1 719 numdf 27 denomdf 19 p value 0 2247alternativehypothesis trueratioofvariancesisnotequalto195percentconfidenceinterval 0 7103353 904512sampleestimates ratioofvariances1 719033 var test size gr 2 size gr 0 ftesttocomparetwovariancesdata size gr 2 andsize gr 0 f 4
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 员工培训计划通知函(4篇)
- 2026年广州医科大学附属肿瘤医院招聘卫生专业技术、医师助理及行政辅助岗位考试备考题库及答案详解
- 宁德核电项目部招聘厨师、帮厨7人笔试参考题库及答案详解
- 2026年8月南通通奥体育发展有限公司招聘劳务派遣人员部分岗位降低开考比例笔试参考题库及答案详解
- 2026年8月四川广安岳池县人力资源和社会保障局公开考试招聘事业单位工作人员考察合格人员选岗考试备考试题及答案详解
- 2026上海松江区卫生健康系统编外卫生专业技术人员招聘考试备考试题及答案详解
- 2026年云南迪庆白马雪山高山冰缘生态系统野外科学观测研究站招聘工作人员1人笔试模拟试题及答案详解
- 2026年资阳市安岳县从“大学生志愿服务西部计划”项目人员中考核招聘乡镇事业单位人员1人考试参考题库及答案详解
- 理县2026年社会工作服务政策性岗位招募(5人)笔试参考题库及答案详解
- 2026北京大学材料科学与工程学院招聘1名劳动合同制工作人员笔试模拟试题及答案详解
- 企业档案盘库管理办法
- 2026年急诊科心电监护仪规范使用护理操作
- 2026年四川省内江市辅警考试真题及答案
- 重庆市“五方面人员”选拔考试题型及答案(完整版)
- 标书制作全流程培训2026版课件
- 2026年生态环境保护培训试题(含答案)
- 配送食材供货难点分析及解决方案
- 2025年国企资金管理岗招聘笔试试题及答案
- 四川省水利工程设计概(估)算编制规定2025
- 消费卡顶账协议书
- 海关AEO培训法律法规培训
评论
0/150
提交评论