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.
Sign in to read the whole lesson, with 2 exercises
Sign in / Sign upMastery 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)
| Sex | Not regularly () | Regularly () | Total |
|---|---|---|---|
| Girls () | |||
| Boys () | |||
| Total |
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 topicCite this page: Conditional probability from two-way tables · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP000840