京公网安备 11010802034615号
经营许可证编号:京B2-20210330
统计之 - Contingency Table
In statistics, a Contingency Table(also referred to as Cross Tabulationor cross tab) is a type of table in a matrix format that displays the(multivariate) frequency distribution of thecategorical variables.The term contingency table was first used by Karl Pearson in "On the Theoryof Contingency and Its Relation to Association and Normal Correlation",[1]part of the Drapers' Company Research Memoirs Biometric Series I published in1904.
A crucial problem of multivariate statistics is finding(direct-)dependence structure underlying the variables contained inhigh-dimensional contingency tables. If some of the conditional independencesare revealed, then even the storage of the data can be done in a smarter way(see Lauritzen (2002)). In order to do this one can use information theoryconcepts, which gain the information only from the distribution of probability,which can be expressed easily from the contingency table by the relative frequencies.
Suppose that we have two variables, sex (male or female) and handedness(right- or left-handed). Further suppose that 100 individuals are randomlysampled from a very large population as part of a study of sex differences inhandedness. A contingency table can be created to display the numbers ofindividuals who are male and right-handed, male and left-handed, female andright-handed, and female and left-handed. Such a contingency table is shown below.
The numbers of the males, females, and right- and left-handedindividuals are called Marginal Totals. The grand total, i.e., the totalnumber of individuals represented in the contingency table, is the number inthe bottom right corner.
The table allows us to see at a glance that the proportionof men who are right-handed is about the same as the proportion of women whoare right-handed although the proportions are not identical. The significanceof the difference between the two proportions can be assessed with a variety ofstatistical tests including Pearson's chi-squared test, the G-test, Fisher'sexact test, and Barnard's test, provided the entries in the table representindividuals randomly sampled from the population about which we want to draw aconclusion. If the proportions of individuals in the different columns varysignificantly between rows (or vice versa), we say that there is a contingencybetween the two variables. In other words, the two variables are notindependent. If there is no contingency, we say that the two variables areindependent.
The example above is the simplest kind of contingency table,a table in which each variable has only two levels; this is called a 2 x 2contingency table. In principle, any number of rows and columns may be used.There may also be more than two variables, but higher order contingency tablesare difficult to represent on paper. The relation between ordinal variables, orbetween ordinal and categorical variables, may also be represented incontingency tables, although such a practice is rare.
数据分析咨询请扫描二维码
若不方便扫码,搜微信号:CDAshujufenxi
【核心关键词】贷款、报表、课程、专业、建模、缺失值、营销、互联网、银行、办公自动化、数据分析、数据预处理、特征工程、贷 ...
2026-06-05在数据库数据查询、业务报表统计、多表关联分析中,LEFT JOIN左连接是使用率最高的SQL关联查询语句。其核心特性是保留左表全部数 ...
2026-06-05 很多数据分析师能熟练地写SQL、做透视表、算描述性统计,但当被问到“如何预测用户流失概率”“如何归因销量下滑的关键因素 ...
2026-06-05任何一款产品从诞生、普及到最终退出市场,都会遵循一套固定的发展规律,这就是产品生命周期理论。在市场竞争日益激烈、产品迭代 ...
2026-06-04在Excel数据分析、办公统计、业务报表制作场景中,数据透视表是数据汇总、分类统计、快速复盘的核心工具,能够高效完成海量原始 ...
2026-06-04 很多数据分析师拿到数据就开始清洗、建模,但当被问到“这批数据属于什么类型——结构化还是非结构化?分类变量还是数值变量 ...
2026-06-04在问卷调查与社会科学数据分析中,卡方检验是最常用、最基础的非参数检验方法,广泛应用于市场调研、用户分析、行为统计、满意度 ...
2026-06-03【核心关键词】贷款、报表、课程、专业、建模、缺失值、营销、互联网、银行、办公自动化、数据分析、数据预处理、特征工程、贷 ...
2026-06-03 很多数据分析师画过趋势图、做过业绩预测,但当被问到“这个月销售额增长20%,到底是长期趋势自然增长,还是促销活动的短期 ...
2026-06-03逻辑回归是数据分析、机器学习、统计建模中应用最广泛的二分类预测模型,常用于风险判断、行为预测、归因分析等场景。在SPSS、Py ...
2026-06-02数字经济时代,市场竞争日趋同质化,用户消费需求愈发个性化、多元化,传统依托经验、粗放式、广撒网的营销模式弊端日益凸显。长 ...
2026-06-02 很多数据分析师做过按月份的销售额趋势图,画过按天的流量折线图,但当被问到“时间序列和普通数据有什么本质区别”“季节性 ...
2026-06-02在市场竞争日趋饱和、用户需求不断细分的当下,企业创业创新、产品迭代与市场拓展不再依赖经验决策,而是需要系统化、工具化的商 ...
2026-06-01【核心关键词】调度、岗位、数据库、企业、报表、培训、程序、数据分析、数据加工、业务部门、企业数据、调度工具、业务指标、 ...
2026-06-01 很多数据分析师能熟练地计算指标、搭建标签体系,但当被问到“画像到底在解决什么问题”“画像和标签是什么关系”“画像如何 ...
2026-06-01在数据统计分析、数据清洗、异常值识别与数据分布研究中,箱型图是最直观、高效、专业的可视化分析工具。相较于柱状图、折线图仅 ...
2026-05-29Tkinter是Python内置的标准GUI图形界面库,具备无需额外安装、调用简单、兼容性强、轻量化高效等优势,是Python快速开发桌面小程 ...
2026-05-29 很多分析师在设计标签时思路清晰,但真到落地环节却面临“数据在手,不知如何转化为可用标签”的困境:或因加工方式选择不当 ...
2026-05-29【核心关键词】大数据、经理、专业、金融、客户、传统、建模、数据产品、互联网金融、产品经理、数据分析、金融行业、数据模型 ...
2026-05-28 很多分析师每天和数据打交道,但当被问到“标签是什么”“标签和指标有什么区别”“标签体系如何设计”时,却常常答不上来。 ...
2026-05-28