版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、习题答案Ex5.1 x t.test(x,mu=225) One Sample t-testdata: xt = -3.4783, df = 19, p-value = 0.002516alternative hypothesis: true mean is not equal to 22595 percent confidence interval: 172.3827 211.9173sample estimates:mean of x 192.15原假设:油漆工人的血小板计数与正常成年男子无差异。备择假设:油漆工人的血小板计数与正常成年男子有差异。p值小于0.05,拒绝原假设,认为油漆工人
2、的血小板计数与正常成年男子有差异。上述检验是双边检验。也可采用单边检验。备择假设:油漆工人的血小板计数小于正常成年男子。 t.test(x,mu=225,alternative=less) One Sample t-testdata: xt = -3.4783, df = 19, p-value = 0.001258alternative hypothesis: true mean is less than 22595 percent confidence interval: -Inf 208.4806sample estimates:mean of x 192.15同样可得出油漆工人的血小板
3、计数小于正常成年男子的结论。Ex5.2 pnorm(1000,mean(x),sd(x)1 0.5087941 x 1 1067 919 1196 785 1126 936 918 1156 920 948 pnorm(1000,mean(x),sd(x)1 0.5087941x A B t.test(A,B,paired=TRUE) Paired t-testdata: A and Bt = -0.6513, df = 7, p-value = 0.5357alternative hypothesis: true difference in means is not equal to 095
4、 percent confidence interval: -15.62889 8.87889sample estimates:mean of the differences -3.375p值大于0.05,接受原假设,两种方法治疗无差异。Ex5.4(2)方差相同模型t检验: t.test(x,y,var.equal=TRUE) Two Sample t-testdata: x and yt = -0.6419, df = 38, p-value = 0.5248alternative hypothesis: true difference in means is not equal to 09
5、5 percent confidence interval: -2.326179 1.206179sample estimates:mean of x mean of y 2.065 2.625 方差不同模型t检验: t.test(x,y) Welch Two Sample t-testdata: x and yt = -0.6419, df = 36.086, p-value = 0.525alternative hypothesis: true difference in means is not equal to 095 percent confidence interval: -2.3
6、2926 1.20926sample estimates:mean of x mean of y 2.065 2.625 (3)方差检验: var.test(x,y) F test to compare two variancesdata: x and yF = 1.5984, num df = 19, denom df = 19, p-value = 0.3153alternative hypothesis: true ratio of variances is not equal to 195 percent confidence interval: 0.6326505 4.0381795
7、sample estimates:ratio of variances 1.598361接受原假设,两组数据方差相同。Ex5.5 a b t.test(a,b,var.equal=TRUE) Two Sample t-testdata: a and bt = -8.8148, df = 20, p-value = 2.524e-08alternative hypothesis: true difference in means is not equal to 095 percent confidence interval: -48.24975 -29.78358sample estimates
8、:mean of x mean of y 125.5833 164.6000可认为两者有差别。Ex5.6二项分布总体的假设检验: binom.test(57,400,p=0.147) Exact binomial testdata: 57 and 400number of successes = 57, number of trials = 400, p-value = 0.8876alternative hypothesis: true probability of success is not equal to 0.14795 percent confidence interval: 0.
9、1097477 0.1806511sample estimates:probability of success 0.1425P 值0.05,故接受原假设,表示调查结果支持该市老年人口的看法Ex5.7二项分布总体的假设检验: binom.test(178,328,p=0.5,alternative=greater) Exact binomial testdata: 178 and 328number of successes = 178, number of trials = 328, p-value = 0.06794alternative hypothesis: true probability of su
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026四川经准特种设备检验有限公司第一次招聘急需紧缺专业技术人员33人备考题库及完整答案详解1套
- 2026年大连市教育基金会招聘工作人员备考题库含答案详解(精练)
- 服务质量回访制度电话记录
- 2026年衢州市江山市赴武汉大学提前招聘新教师3人备考题库附答案详解(满分必刷)
- 2026海南椰岛(集团)股份有限公司招聘备考题库附答案详解(轻巧夺冠)
- 2026河南郑州市城市照明和绿化景观服务中心公益性岗位招聘8人备考题库附答案详解(模拟题)
- 2026山东第二医科大学附属医院招聘学科骨干、博士研究生50人备考题库含答案详解ab卷
- 2026重庆工商职业学院公开招聘非编4人备考题库含答案详解(综合题)
- 2026北京大学生命科学学院招聘劳动合同制工作人员3人备考题库及答案详解1套
- 用户体验测试分析报告
- 2026山东国泽实业有限公司招聘驻济人员4人笔试备考试题及答案解析
- 填介词或冠词(解析版)-2026年高考英语二轮复习(新高考)
- 2026年广东广州市高三一模高考生物试卷试题(含答案详解)
- 2023-2024学年广东深圳南山外国语学校八年级(下)期中语文试题及答案
- 《眼科临床诊疗指南(2025版)》
- 2026年旅游导游资格考试题库及答案
- 大连红星美凯龙考核制度
- 部编版五年级道德与法治下册全册全套课件
- 2025年上半年四川省中小学教师招聘考试教育公共基础真题及答案
- 生活泵房卫生管理制度
- 2026年工商银行客服(高级)考试题库(含答案)
评论
0/150
提交评论