Two-way tables and association

二维列联表与关联

How do two-way tables reveal association?

Compare conditional proportions across rows or columns; a clear difference signals association.

SkillKP000927

Sign in to read the whole lesson, with 1 interactive aid, 3 exercises

Sign in / Sign up

Mastery goals

  • Can compute marginal and conditional relative frequencies from a two-way table
  • Can determine whether two categorical variables appear associated

In practice, keeping the raw data is costly, so people often sort the data into categories as their research needs, count them and keep them in a table. A data table of the form of Table 8.3-1 is called a contingency table. A contingency table gives the cross-classified frequencies of paired data on categorical variables. Taking Table 8.3-1 as an example, it contains the following information about and :

  • the first two numbers in the last row are the numbers of sample points in the events and ;
  • the first two numbers in the last column are the numbers of sample points in the events and ;
  • the numbers in the four cells in the middle are the core of the table: they give the numbers of sample points in the events ;
  • the number in the bottom right cell is the total number of sample points in the sample space.

Both answers to the problem above used survey data on all the students of the school, and these data completely determine the proportions and conditional probabilities needed. For most real problems, however, we cannot get data on all the objects we care about, so we cannot calculate the relevant proportions or conditional probabilities exactly. In that case, the viewpoint of the classical model and conditional probability above gives us a way to approach the problem. A fairly simple way is to obtain a certain amount of sample data by random sampling, and then infer the answer by the principle that the frequency of a random event settles down to its probability.

If we regard the whole population of objects we care about as the sample space of a classical model, we can describe the problem in the language of probability, and then infer the answer by the principle that frequency settles down to probability. Many statistical methods are built on this idea.

Related points

All points in this topic

Cite this page: Two-way tables and association · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP000927