Joint Probability Calculator

Joint Probability Calculator

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).

Enter the probabilities to find the chance both happen

What is Joint Probability?

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.

Joint Probability Formula

Multiplication rule as given in OpenStax Introductory Statistics, section 3.2. See Sources.

1. The general multiplication rule

P(A and B) = P(A) × P(B | A) = P(B) × P(A | B)

2. When the events are independent

P(A and B) = P(A) × P(B)
Test: P(A and B) ÷ (P(A) × P(B)) = 1

A ratio above 1 means the events happen together more often than chance would suggest; below 1, less often.

3. Extending to more events

P(A and B and C) = P(A) × P(B | A) × P(C | A and B)

Worked Example: Drawing Two Aces

Given:
Two cards drawn from a shuffled 52-card deck without putting the first back. What's the chance both are aces?
Step 1:
First card is an ace:
P(A) = 4/52
Step 2:
Second is an ace, given the first was:
3 aces left in 51 cards → P(B | A) = 3/51
Step 3:
Multiply:
4/52 × 3/51 = 12/2,652 = 1/221 ≈ 0.004525
Result:
1 in 221

If you put the first card back and reshuffled, the draws would be independent: (4/52)² = 1 in 169, noticeably more likely.

With and Without Replacement Compared

The chance that two cards drawn from a 52-card deck are both of a given kind.

Joint probabilities with and without replacement
Both cards areWithout replacementWith replacement
Aces (4)1 in 2211 in 169
Hearts (13)1 in 171 in 16
Red (26)1 in 4.11 in 4

Common Joint Probability Mistakes

  • Multiplying dependent probabilities as if independent. Without replacement, each draw changes what's left. Use the conditional probability for the second event.
  • Adding instead of multiplying. "Both" means multiply; "either" uses the addition rule.
  • Assuming real-world events are independent. Two parts in the same machine, two days of weather or two relatives' health are often linked, so multiplying understates how often they coincide.
  • Using P(A | B) where P(B | A) is needed. In P(A) × P(B | A), the condition must be the event you multiplied by first.

Joint Probability FAQs

Can I enter fractions?

Yes: 4/52, 7.7% and 0.0769 all work.

What’s the difference between joint and conditional probability?

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.

Is joint probability symmetric?

Yes: P(A and B) = P(B and A). Conditional probabilities aren’t: P(B | A) is usually different from P(A | B).

Does a joint probability of 0 mean independent?

No, the opposite. If both events can happen on their own but never together, they’re mutually exclusive, which is strong dependence.

Why is “with replacement” more likely here?

Putting the first ace back keeps four aces in the deck for the second draw. Without replacement there are only three.

How do I get the joint probability from a table of counts?

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.

What does the “actual ÷ independent” ratio mean?

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.

Does a ratio of exactly 1 prove independence?

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.

Sources

Related Tools