Joint Probability Calculator

Calculate joint, union, and conditional probabilities for two events, with contingency tables, Venn diagram visualization, lift analysis, and repeated-event chains.

For repeated independent events
Joint P(A ∩ B)
12.0000%
P(A) × P(B)
Union P(A ∪ B)
58.0000%
P(A) + P(B) − P(A ∩ B)
P(A|B)
30.0000%
Conditional probability of A given B
P(B|A)
40.0000%
Conditional probability of B given A
P(neither)
42.0000%
P(A\' ∩ B\') = 1 − P(A ∪ B)
Lift / Association
1.0000
Lift = 1 → independent

Joint Probability Contingency Table

BB\'Total
A12.00%18.00%30.00%
A\'28.00%42.00%70.00%
Total40.00%60.00%100%

Venn Diagram

18.0%
28.0%
12.0%
A
B

Repeated Independent Events (P(A)^n)

n EventsP(all A)P(at least one not A)Visual
130.0000%70.0000%
29.0000%91.0000%
32.7000%97.3000%
40.8100%99.1900%
50.2430%99.7570%
Planning notes, formulas, and examples

About the Joint Probability Calculator

The joint probability calculator computes P(A ∩ B) for two events, whether independent or dependent. It builds the full contingency table showing all possible combinations — both events occurring, only A, only B, or neither — and visualizes the overlap with a Venn diagram.

Joint probability is the foundation of multivariate statistics, Bayesian analysis, and machine learning. Understanding how two events combine — whether through independence (P(A∩B) = P(A)×P(B)) or dependence (P(A∩B) = P(A|B)×P(B)) — is critical for risk assessment, medical diagnosis, market basket analysis, and quality control.

This calculator also computes union probability, both conditional probabilities, lift (association strength), and the probability of repeated independent events in a chain. It is useful when you want to compare observed overlap against an independence baseline or see how quickly repeated trials change the chance of at least one match.

When This Page Helps

Joint probability connects simple AND/OR questions to dependence analysis, Bayesian reasoning, and multivariate models. This calculator makes overlap explicit with a contingency table, Venn diagram, conditional probabilities, and lift, so you can see how two events interact.

It is useful when comparing sampled data against an independence assumption, checking whether two outcomes co-occur more often than expected, or teaching the relationship between joint and conditional probability.

How to Use the Inputs

  1. Select whether events A and B are independent or dependent.
  2. Enter P(A) and P(B) as percentages.
  3. For dependent events, also enter P(A|B) — the probability of A given B occurred.
  4. Set the number of events for the repeated chain table.
  5. Review joint probability, union, conditionals, and lift analysis.
  6. Study the contingency table and Venn diagram for a visual breakdown.
Formula used
Independent: P(A ∩ B) = P(A) × P(B). Dependent: P(A ∩ B) = P(A|B) × P(B). Union: P(A ∪ B) = P(A) + P(B) − P(A ∩ B). Lift = P(A ∩ B) / [P(A) × P(B)].

Example Calculation

Result: P(A ∩ B) = 12%, P(A ∪ B) = 58%

For independent events with P(A) = 0.3 and P(B) = 0.4, the joint probability is 0.3 × 0.4 = 0.12 (12%), and the union is 0.3 + 0.4 − 0.12 = 0.58 (58%).

Tips & Best Practices

  • Independent events have lift = 1. Lift > 1 means positive association (events tend to co-occur); lift < 1 means they tend not to co-occur.
  • The contingency table rows and columns must sum to the marginal probabilities — use it to verify your calculations.
  • For dependent events, knowing P(A|B) lets you compute P(B|A) via Bayes' theorem: P(B|A) = P(A|B)×P(B)/P(A).
  • Joint probability can never exceed either marginal probability: P(A ∩ B) ≤ min(P(A), P(B)).
  • In market basket analysis, high lift between products suggests placing them near each other or bundling them.
  • The repeated events chain shows how quickly probability drops for independent repeated trials.

From Joint Probability to Bayesian Networks

Joint distributions over multiple variables form the backbone of Bayesian networks. A Bayesian network factors the joint distribution P(A,B,C,...) into conditional probabilities along a directed acyclic graph. Understanding two-event joint probability is the first step toward these powerful models.

Association Rules in Data Mining

Market basket analysis uses joint probability concepts extensively. Support = P(A ∩ B), confidence = P(A|B), and lift = P(A ∩ B) / [P(A)×P(B)]. Rules with high support, confidence, and lift identify meaningful product associations in retail data.

Chi-Square Test and Independence

The chi-square test for independence compares observed joint frequencies to expected frequencies under independence (P(A)×P(B)). Large deviations signal dependence. This calculator's lift metric provides the same insight for two events — lift ≠ 1 suggests dependence.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Joint probability P(A ∩ B) is the probability both A and B occur. Conditional probability P(A|B) is the probability of A assuming B has already occurred. They're related: P(A ∩ B) = P(A|B) × P(B).