码迷,mamicode.com
首页 > 其他好文 > 详细

【统计学】第九章 分类数据分析

时间:2019-08-24 11:50:10      阅读:222      评论:0      收藏:0      [点我收藏+]

标签:公式   view   取值   body   offset   cell   text   hidden   正是   

Evernote Export

分类数据分析与卡方统计量

统计数据的类型有:分类数据、顺序数据和数值型数据,分类数据是对事物进行分类的结果,其特征是,结果虽然是用数值显示,但是不同的数值描述了调查对象的不同特征。
对分类数据进行分析的统计方法主要是利用卡方分布,又称卡方检验。
卡方检验的应用主要表现在:
1.拟合优度检验--一个变量的检验
2.独立向检验(列联表是进行独立性检验的重要工具)--两个变量之间的检验
卡方统计量χ2主要用于两个分类变量之间的相关度。若用f0表示观察值频数,用f0表示期望频数,则χ2统计量可以写为χ2=fe技术图片(f0fe)2
统计量有如下特征
1.χ20,因为它是对平方结果的汇总
2.χ2的分布于自由度有关
3.χ2描述了观察值与期望值的接近程度
χ2检验正是通过对χ2的计算结果与χ2的临界值进行比较,做出是否拒绝原假设的决策。

拟合优度检验

拟合优度检验:拟合优度检验是用χ2统计量进行统计显著性检验的重要程度之一。它是依据总体分布的状况,计算出分类变量中的各类别的期望频数,与分布的观察频数进行比较,判断期望频数是否有显著差异,从而达到对分类变量进行分析的目的。

列联分析:独立性检验

拟合优度检验是对一个变量的检验,当遇到两个分类变量的问题看这两个变量是否存在联系
对于两个分类变量的分析,成为独立性分析

列联表中的相关测度

相关系数:一般用来描述2X2列联表,=n技术图片χ2技术图片,n为列联表中的总频数,也就是样本量
列联相关系数:当行数或列数大于2的时候,使用列联表关系系数,计算公式c=χ2+n技术图片χ2技术图片,当c=0时,两个变量相互独立
优点:1.计算简便,2.对总体分布没有要求;缺点:最大值依赖于行数,随着R和C的增大而增大,根据不同行数和列数计算的列联系数不便于比较,除非两个列联表的行数与列数一致
V相关系数:由于系数无上限,c系数小于1,提出V系数,V=nmin[(R1),(C1)]技术图片2技术图片,两个变量相互独立时,V=0,两个变量完全相关时,V=1,V的取值介入0~1之间
数值分析
前面利用卡方分布对两个分类变量之间的相关性进行了统计检验

列联分析中应注意的问题

%23%23%23%23%20%E5%88%86%E7%B1%BB%E6%95%B0%E6%8D%AE%E5%88%86%E6%9E%90%E4%B8%8E%E5%8D%A1%E6%96%B9%E7%BB%9F%E8%AE%A1%E9%87%8F%0A%3E%E7%BB%9F%E8%AE%A1%E6%95%B0%E6%8D%AE%E7%9A%84%E7%B1%BB%E5%9E%8B%E6%9C%89%EF%BC%9A%E5%88%86%E7%B1%BB%E6%95%B0%E6%8D%AE%E3%80%81%E9%A1%BA%E5%BA%8F%E6%95%B0%E6%8D%AE%E5%92%8C%E6%95%B0%E5%80%BC%E5%9E%8B%E6%95%B0%E6%8D%AE%EF%BC%8C%E5%88%86%E7%B1%BB%E6%95%B0%E6%8D%AE%E6%98%AF%E5%AF%B9%E4%BA%8B%E7%89%A9%E8%BF%9B%E8%A1%8C%E5%88%86%E7%B1%BB%E7%9A%84%E7%BB%93%E6%9E%9C%EF%BC%8C%E5%85%B6%E7%89%B9%E5%BE%81%E6%98%AF%EF%BC%8C%E7%BB%93%E6%9E%9C%E8%99%BD%E7%84%B6%E6%98%AF%E7%94%A8%E6%95%B0%E5%80%BC%E6%98%BE%E7%A4%BA%EF%BC%8C%E4%BD%86%E6%98%AF%E4%B8%8D%E5%90%8C%E7%9A%84%E6%95%B0%E5%80%BC%E6%8F%8F%E8%BF%B0%E4%BA%86%E8%B0%83%E6%9F%A5%E5%AF%B9%E8%B1%A1%E7%9A%84%E4%B8%8D%E5%90%8C%E7%89%B9%E5%BE%81%E3%80%82%0A%3E%E5%AF%B9%E5%88%86%E7%B1%BB%E6%95%B0%E6%8D%AE%E8%BF%9B%E8%A1%8C%E5%88%86%E6%9E%90%E7%9A%84%E7%BB%9F%E8%AE%A1%E6%96%B9%E6%B3%95%E4%B8%BB%E8%A6%81%E6%98%AF%E5%88%A9%E7%94%A8%E5%8D%A1%E6%96%B9%E5%88%86%E5%B8%83%EF%BC%8C%E5%8F%88%E7%A7%B0%E5%8D%A1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E5%B8%83%E8%BF%9B%E8%A1%8C%E6%A3%80%E9%AA%8C%E7%9A%84%E6%97%B6%E5%80%99%EF%BC%8C%E6%9C%9F%E6%9C%9B%E5%80%BC%E5%BA%94%E8%AF%A5%E8%B6%B3%E5%A4%9F%E5%A4%A7%0A%3E%E5%A6%82%E6%9E%9C%E5%8F%AA%E6%9C%892%E4%B8%AA%E5%8D%95%E5%85%83%EF%BC%8C%E6%AF%8F%E4%B8%AA%E5%8D%95%E5%85%83%E5%BF%85%E9%A1%BB%E6%98%AF5%E6%88%96%E8%80%855%E4%BB%A5%E4%B8%8A%0A%3E%E5%A6%82%E6%9E%9C%E4%B8%A4%E4%B8%AA%E4%BB%A5%E4%B8%8A%E7%9A%84%E5%8D%95%E5%85%83%EF%BC%8C%E5%A6%82%E6%9E%9C20%25%E7%9A%84%E5%8D%95%E5%85%83%E6%9C%9F%E6%9C%9B%E9%A2%91%E6%95%B0%E6%98%AF%E5%B0%8F%E4%BA%8E5%E7%9A%84%EF%BC%8C%E5%88%99%E4%B8%8D%E8%83%BD%E7%94%A8%E5%8D%A1%E6%96%B9%E5%88%86%E5%B8%83%E8%BF%9B%E8%A1%8C%E6%A3%80%E9%AA%8C%0A

 

【统计学】第九章 分类数据分析

标签:公式   view   取值   body   offset   cell   text   hidden   正是   

原文地址:https://www.cnblogs.com/pandaboy1123/p/11403872.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!