Find the probability that two events both happen, whether they're independent or one affects the other, and check whether two events with a known joint probability are independent.
P(A and B) = P(A) × P(B | A)
As a decimal (0.25), a percentage (25%) or a fraction (1/4).
Joint probability is the chance that two events both happen. It's the probability of the first, multiplied by the probability of the second once the first has happened.
When the events are independent, like a coin toss and a dice roll, the second probability doesn't change, so you simply multiply. When the first event changes the odds of the second, as when drawing cards without putting them back, you have to use the updated probability.
Comparing a real joint probability with the independent prediction P(A) × P(B) is also the simplest test of whether two events are linked.
Multiplication rule as given in OpenStax Introductory Statistics, section 3.2. See Sources.
A ratio above 1 means the events happen together more often than chance would suggest; below 1, less often.
If you put the first card back and reshuffled, the draws would be independent: (4/52)² = 1 in 169, noticeably more likely.
The chance that two cards drawn from a 52-card deck are both of a given kind.
| Both cards are | Without replacement | With replacement |
|---|---|---|
| Aces (4) | 1 in 221 | 1 in 169 |
| Hearts (13) | 1 in 17 | 1 in 16 |
| Red (26) | 1 in 4.1 | 1 in 4 |
Yes: 4/52, 7.7% and 0.0769 all work.
Joint is P(A and B), out of everything. Conditional is P(B | A), out of only the cases where A happened. Joint = P(A) × conditional.
Yes: P(A and B) = P(B and A). Conditional probabilities aren’t: P(B | A) is usually different from P(A | B).
No, the opposite. If both events can happen on their own but never together, they’re mutually exclusive, which is strong dependence.
Putting the first ace back keeps four aces in the deck for the second draw. Without replacement there are only three.
Divide the count in the cell where both happen by the grand total. For 30 people who both smoke and exercise out of 200, P = 30 ÷ 200 = 0.15.
It’s how many times more (or less) often the events happen together than if they were unrelated. Epidemiologists call a version of this the lift or observed-to-expected ratio.
For true probabilities, yes. With probabilities estimated from data, a ratio near 1 is consistent with independence; a chi-square test tells you whether a gap is bigger than chance.
Related Tools
Basic probability calculations.
P(A|B) calculations.
Three event probabilities.
Conditional probability.
Probability-weighted average.
Decision theory.