统计之 - 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
在数据分析领域,Excel作为一种普及率极高且功能强大的工具,无疑为无数专业人士提供了便捷的解决方案。尽管Excel自带了丰富的功 ...
2025-01-17在这个瞬息万变的时代,许多人都在寻找能让他们脱颖而出的职业。而数据分析师,作为大数据和人工智能时代的热门职业,自然吸引了 ...
2025-01-14Python作为一门功能强大的编程语言,已经成为数据分析和可视化领域的重要工具。无论你是数据分析的新手,还是经验丰富的专业人士 ...
2025-01-10完全靠数据决策,真的靠谱吗? 最近几年,“数据驱动”成了商界最火的关键词之一,但靠数据就能走天下?其实不然!那些真正成功 ...
2025-01-09SparkSQL 结构化数据处理流程及原理是什么?Spark SQL 可以使用现有的Hive元存储、SerDes 和 UDF。它可以使用 JDBC/ODB ...
2025-01-09在如今这个信息爆炸的时代,数据已然成为企业的生命线。无论是科技公司还是传统行业,数据分析正在深刻地影响着商业决策以及未来 ...
2025-01-08“数据为王”相信大家都听说过。当前,数据信息不再仅仅是传递的媒介,它成为了驱动经济发展的新燃料。对于企业而言,数据指标体 ...
2025-01-07在职场中,当你遇到问题的时候,如果感到无从下手,或者抓不到重点,可能是因为你掌握的思维模型不够多。 一个好用的思维模型, ...
2025-01-06在现代企业中,数据分析师扮演着至关重要的角色。每天都有大量数据涌入,从社交媒体到交易平台,数据以空前的速度和规模生成。面 ...
2025-01-06在职场中,许多言辞并非表面意思那么简单,有时需要听懂背后的“潜台词”。尤其在数据分析的领域里,掌握常用术语就像掌握一门新 ...
2025-01-04在当今信息化社会,数据分析已成为各行各业的核心驱动力。它不仅仅是对数字进行整理与计算,而是在数据的海洋中探寻规律,从而指 ...
2025-01-03又到一年年终时,各位打工人也迎来了展示成果的关键时刻 —— 年终述职。一份出色的年终述职报告,不仅能全面呈现你的工作价值, ...
2025-01-03在竞争激烈的商业世界中,竞品分析对于企业的发展至关重要。今天,我们就来详细聊聊数据分析师写竞品分析的那些事儿。 一、明确 ...
2025-01-03在数据分析的江湖里,有两个阵营总是争论不休。一派信奉“大即是美”,认为数据越多越好;另一派坚守“小而精”,力挺质量胜于规 ...
2025-01-02数据分析是一个复杂且多维度的过程,从数据收集到分析结果应用,每一步都是对信息的提炼与升华。可视化分析结果,以图表的形式展 ...
2025-01-02在当今的数字化时代,数据分析师扮演着一个至关重要的角色。他们如同现代企业的“解密专家”,通过解析数据为企业提供决策支持。 ...
2025-01-02数据分析报告至关重要 一份高质量的数据分析报告不仅能够揭示数据背后的真相,还能为企业决策者提供有价值的洞察和建议。 年薪 ...
2024-12-31数据分析,听起来好像是技术大咖的专属技能,但其实是一项人人都能学会的职场硬核能力!今天,我们来聊聊数据分析的核心流程,拆 ...
2024-12-31提到数据分析,你脑海里可能会浮现出一群“数字控”抱着电脑,在海量数据里疯狂敲代码的画面。但事实是,数据分析并没有你想象的 ...
2024-12-31关于数据分析师是否会成为失业高危职业,近年来的讨论层出不穷。在这个快速变化的时代,技术进步让人既兴奋又不安。今天,我们从 ...
2024-12-30