Conditional probability from two-way tables

从二维表计算条件概率

How do you read conditional probability from a two-way table?

Turn the table into counts or proportions; a cell divided by its row or column total gives the conditional probability.

SkillKP000840

Sign in to read the whole lesson, with 2 exercises

Sign in / Sign up

Mastery goals

  • Can compute joint, marginal and conditional probabilities from a two-way table

The problem above can also be answered in another way: set up a classical probability model and use the language of conditional probability. Let be the set of all students in the school; this is the population of objects we care about. Consider the classical probability model with sample space , and define a pair of categorical variables and as follows: for each student in , let

We hope to answer the question by comparing the conditional probabilities and . By the intuitive meaning of conditional probability, if one girl and one boy are chosen at random from the school, then the probability that the girl belongs to the group who exercise regularly is , and the probability that the boy belongs to that group is . So “sex has no effect on how regularly students exercise” can be described as

and “sex has an effect on how regularly students exercise” can be described as

To make things clear, we organise the data in a table, as in Table 8.3-1.

Table 8.3-1 (number of students)

SexNot regularly ()Regularly ()Total
Girls ()
Boys ()
Total
girlsboys331192473128523601
Table 8.3-1 as a picture: the whole rectangle is the sample space (all students of the school); the left column is the girls () and the right column the boys (), with widths in proportion to the numbers of students, which are written on top; in each column the shaded part is the students who exercise regularly () and the blank part those who do not (), with the numbers written beside them.

We write for the intersection of the events and , and for the intersection of and . By the formulas for the classical model and for conditional probability,

Since is greater than , we conclude that among the students of this school, sex affects how regularly they exercise: girls and boys at this school differ in how regularly they exercise, and boys exercise more regularly.

Related points

All points in this topic

Cite this page: Conditional probability from two-way tables · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP000840