差值的置信区间计算 95%consumer confidencee interval for the difference between 2 proportions

置信区间(Confidence Interval)
&&一直做着的不确定性分析,很多时候会涉及到置信区间的概念,但一直没能有个清晰的认识,今天终于从网上查资料,具体核实了置信区间的含义。
&&95%置信区间(Confidence Interval,CI):当给出某个估计值的95%置信区间为【a,b】时,可以理解为我们有95%的信心(Confidence)可以说样本的平均值介于a到b之间,而发生错误的概率为5%。&
& 有时也会说90%,99%的置信区间,具体含义可参考95%置信区间。
&&置信区间具体计算方式为:
&&(1)知道样本均值(M)和标准差(ST)时:
&&置信区间下限:a=M - n*ST;&&&&&置信区间上限:a=M&+ n*ST;&
&&当求取90% 置信区间时 n=1.645&&
& 当求取95% 置信区间时 n=1.96
&&当求取99% 置信区间时 n=2.576
&&(2)通过利用蒙特卡洛(Monte Carlo)方法获得估计值分布时:
&&先对所有估计值样本进行排序,&置信区间下限:a为排序后第lower%百分位值;&&&&&置信区间上限:b为排序后第upper%百分位值.
&&当求取90% 置信区间时&lower=5& upper=95;
& 当求取95% 置信区间时 lower=2.5& upper=97.5
&&当求取99% 置信区间时 lower=0.5& upper=99.5
&&当样本足够大时,(1)和(2)获取的结果基本相等。
&&参考资料:&
&&&附刚准备MATLAB 求取置信区间源码:
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
%%% 置信区间的定义90%,95%,99%clearclcsampledata=randn(10000,1);a=0.01; %0.01 对应99%置信区间, 0.05 对应95%置信区间 ,0.1 对应90%置信区间if a==0.01&&& n=2.576; % 2.576 对应99%置信区间, 1.96 对应95%置信区间 ,1.645 对应90%置信区间elseif a==0.05&&& n=1.96;elseif a==0.1&&& n=1.645;end%计算对应百分位值meana=mean(sampledata);stda=std(sampledata);sorta=sort(sampledata);& %对数据从小到大排序leng=size(sampledata,1);CIa(1:2,1)=[sorta(leng*a/2);sorta(leng*(1-a/2))];%利用公式计算置信区间CIf(1:2,1)=[meana-n*meana+n*stda];
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
&&最后修改于
请各位遵纪守法并注意语言文明精品:统计学 置信区间 置信区间 95 置信区间 什么叫置信区间 excel 置信区间 置信..
扫扫二维码,随身浏览文档
手机或平板扫扫即可继续访问
Confidenceinterval统计--置信区间
举报该文档为侵权文档。
举报该文档含有违规或不良信息。
反馈该文档无法正常浏览。
举报该文档为重复文档。
推荐理由:
将文档分享至:
分享完整地址
文档地址:
粘贴到BBS或博客
flash地址:
支持嵌入FLASH地址的网站使用
html代码:
&embed src='/DocinViewer-4.swf' width='100%' height='600' type=application/x-shockwave-flash ALLOWFULLSCREEN='true' ALLOWSCRIPTACCESS='always'&&/embed&
450px*300px480px*400px650px*490px
支持嵌入HTML代码的网站使用
您的内容已经提交成功
您所提交的内容需要审核后才能发布,请您等待!
3秒自动关闭窗口====各位数学大牛帮解一道小题,关于置信区间的========Two random samples are taken,with each group asked if they support a particular candidate.A summary of the sample sizes and proportions of each group answering ``yes'' are given be_百度作业帮
====各位数学大牛帮解一道小题,关于置信区间的========Two random samples are taken,with each group asked if they support a particular candidate.A summary of the sample sizes and proportions of each group answering ``yes'' are given below:Pop1:n1=93 p1=0.753 Pop2:n2=93 p2=0.575 Suppose that the data yields (0.4) for a confidence interval for the difference p1-p2 of the population proportions.What is the confidence level?(Give your answer in terms of percentages.) Question:Confidence Level =_________________________?在得到了critical value Z的情况下怎么反推出 confidence level 就是%的那个。
ree挚爱0089C
Suppose the true expectations of the two kinds of random variables, denoted as X1 and X2, are p10 and p20 respectively. The null hypothesis is H0: p10 - p20 = 0.Thus, we can construct the statistic : p1 - p2 / sd(p1 - p2) to test H0, where sd(p1 - p2) signifies the standard deviation of (p1 - p2). Since sd(p1 - p2) is unknown, we can replace it by its consistent estimator se(p1 - p2), i.e., the standard error of (p1 - p2).Now, note that Var(p1 - p2) = Var(p1) + Var(p2) = Var(X1)/93 + Var(X2)/93. Moreover, Var(X1) can be estimated by the sample variance of sample 1, which is p1(1-p1). Similarly, we can use p2(1-p2) to estimate Var(X2). Consequently, se(p1 - p2) = {[p1(1-p1) + p2(1-p2)]/93}^(0.5).Suppose the confidence level is c. Thus, the confidence interval is-c < (p1 - p2 - (p10 - p20))/se(p1-p2)
我得到的Z也是1.8728但是confidence level 怎么求呢?
这个一般按中心极限定理假设正态分布能近似该统计量,所以只需查表或用软件算一下它对应的percentile就行了,我刚算了下,应该是6.109573%。
大神好像不对诶。。哎郁闷了。。你是用表算的还是软件。用表是用table a吗 然后用1.87去寻找百分比?
但我这样算出来是0.9693. 我第一次的时候得出的答案就是这个,但不对。。不知道错哪了。
你算出来的是P(X<c)=0.9694521,但这是双边检验,所以P(-c<Xc) = confidence level,所以confidence level= 1- 0.9389042 = 6.1096%
还是不对诶。不过还是谢谢你了。
其他类似问题
有中文的吗?
扫描下载二维码Confidence Interval for Population Mean总体均值的置信区间论文 总结 英语 资..
扫扫二维码,随身浏览文档
手机或平板扫扫即可继续访问
Confidence Interval for Population Mean总体均值的置信区间
举报该文档为侵权文档。
举报该文档含有违规或不良信息。
反馈该文档无法正常浏览。
举报该文档为重复文档。
推荐理由:
将文档分享至:
分享完整地址
文档地址:
粘贴到BBS或博客
flash地址:
支持嵌入FLASH地址的网站使用
html代码:
&embed src='/DocinViewer-4.swf' width='100%' height='600' type=application/x-shockwave-flash ALLOWFULLSCREEN='true' ALLOWSCRIPTACCESS='always'&&/embed&
450px*300px480px*400px650px*490px
支持嵌入HTML代码的网站使用
您的内容已经提交成功
您所提交的内容需要审核后才能发布,请您等待!
3秒自动关闭窗口2生物统计学作业_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
2生物统计学作业
上传于||暂无简介
阅读已结束,如果下载本文需要使用
想免费下载本文?
下载文档到电脑,查找使用更方便
还剩31页未读,继续阅读
你可能喜欢

我要回帖

更多关于 in confidence 的文章

 

随机推荐