Two-Way Table vs Conditional Probability

Both terms below come up in the same part of the course, and students mix them up. Here is each one defined on its own, side by side, so you can see where they part company.

Two-way table

Graphs and displays

A two-way table displays counts for two categorical variables at once, with one variable's categories as rows and the other's as columns.

A two-way table, also called a contingency table, cross-classifies each individual by two categorical variables to show where the categories overlap. Row and column totals, called marginal totals, let you compute conditional and joint proportions to compare groups. For example, a table of 100 students by grade level in rows and whether they play a sport in columns reveals the sport rate within each grade. Such a table is the input to a chi-square test of independence or homogeneity, through its expected counts.

Full entry for two-way table

Conditional probability

Probability

Conditional probability is the probability that one event occurs given that another event has already occurred.

Conditional probability updates the chance of an event once you know another event has happened. It is written P(AB)=P(A and B)P(B)P(A \mid B) = \frac{P(A \text{ and } B)}{P(B)} (the probability of AA given BB), the probability of both divided by the probability of the given event. For example, if 40 percent of students take both Spanish and art and 50 percent take Spanish, then the chance of art given Spanish is 0.40/0.50=0.80.40 / 0.50 = 0.8. Restricting attention to BB is what given means.

Full entry for conditional probability

Where each one fits in the course