Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Joint Probability Calculator


A
?
Ac
?
Marginal
P(B)
?
B
?
P(AB)
?
P(AcB)
?
P(B)
?
Bc
?
P(ABc)
?
P(AcBc)
?
P(Bc)
?
Marginal
P(A)
?
P(A)
?
P(Ac)
?
Total
1.000
?
How to use:
  • Direct Entry: Enter the four joint probabilities directly in the center cells. They must sum to 1.
  • From Marginals: Enter marginal probabilities (P(A), P(B)) AND one joint probability (e.g., P(AB)), then click "Calculate from Marginals" to compute the remaining three.
  • Auto-calculation: When you enter 2 out of 3 values in any row or column, the third is automatically calculated.
  • Complements: When you enter a marginal (e.g., P(A)), its complement (P(Ac)) is automatically calculated.

What is Joint Probability?

Joint probability measures the likelihood that two events occur together. For events A and B, P(AB) represents the probability that both happen simultaneously.

Key Concepts

Sample Space: All four joint probabilities represent mutually exclusive outcomes that cover the entire sample space.

Marginal Probabilities: The sum of joint probabilities across a row or column gives the probability of a single event.

Complement: P(Ac) = 1 - P(A) represents the probability that A does NOT occur.

The Law of Total Probability

The four joint probabilities partition the sample space into mutually exclusive and exhaustive events. Therefore, they must sum to exactly 1.








Entering Joint Probabilities

The calculator's 2×2 table contains four editable cells representing joint probabilities for all combinations of events A and B. Enter probabilities as decimals between 0 and 1 in each cell. P(A∩B) is the probability both events occur simultaneously. P(A∩B̄) gives the probability A occurs but B doesn't. P(Ā∩B) represents B occurring without A. P(Ā∩B̄) is the probability neither event occurs.

All four values must sum to exactly 1, as they partition the entire sample space. The calculator validates this constraint and displays an error message if the sum deviates from 1. Adjust values incrementally to maintain the sum—when increasing one cell, decrease another.

Default values demonstrate a valid distribution: P(A∩B)=0.25, P(A∩B̄)=0.25, P(Ā∩B)=0.15, P(Ā∩B̄)=0.35. These sum to 1.00 and automatically populate marginal probabilities. Modify any cell by typing a new decimal value or using the increment arrows.

Each cell displays mathematical notation above the input field. Hover over the question mark icon next to any notation for tooltip explanations. This helps distinguish intersection symbols (∩), complement notation (Ā, B̄), and marginal probability labels.

Understanding Marginal Probabilities

Marginal probabilities appear in the highlighted yellow cells along the right column and bottom row, calculated automatically from joint probabilities. These read-only values cannot be edited directly—they update as you modify joint probabilities.

P(B) in the right column equals P(A∩B) + P(Ā∩B), summing the first row. This gives the total probability of B occurring regardless of A's status. Similarly, P(B̄) equals P(A∩B̄) + P(Ā∩B̄), summing the second row for the probability B doesn't occur.

P(A) in the bottom row equals P(A∩B) + P(A∩B̄), summing the first column. This marginal probability represents A occurring regardless of B. P(Ā) sums the second column: P(Ā∩B) + P(Ā∩B̄), giving the probability A doesn't occur.

The bottom-right cell shows Σ=1, confirming all probabilities sum to 1. Marginals must also satisfy P(A) + P(Ā) = 1 and P(B) + P(B̄) = 1. The calculator enforces these relationships automatically through the joint probability constraint.

Marginal probabilities derive from the sum rule (law of total probability): to find the probability of one event, sum over all possible states of the other event. The table structure makes this summation visually clear through row and column totals.

Using Random and Reset Buttons

The Random button generates a valid joint probability distribution by creating four random values that sum to exactly 1. The algorithm generates four random numbers, normalizes them to sum to 1, then rounds to three decimal places. The final value adjusts slightly to ensure the sum equals 1.000 after rounding.

Random distributions help explore how different joint probabilities produce varying marginal probabilities. Generate multiple random examples to see relationships between joint and marginal distributions. Notice how changing joint probabilities shifts marginals, and how certain patterns (like independence) appear in the numbers.

The Reset button restores default values: P(A∩B)=0.25, P(A∩B̄)=0.25, P(Ā∩B)=0.15, P(Ā∩B̄)=0.35. Use reset to clear custom values and return to the example distribution. This default demonstrates a case where A and B are not independent—P(A∩B) ≠ P(A)×P(B).

Both buttons provide quick ways to populate the table without manual entry. Random is useful for experimentation; reset provides a clean starting point for new calculations.

Reading the Probability Table Structure

The table follows standard contingency table layout with events as row and column headers. Rows partition by event B (top row for B, bottom row for B̄). Columns partition by event A (left column for A, right column for Ā). Each interior cell represents the joint probability of its row and column events.

Event headers appear in the leftmost column and top row, showing A, Ā, B, and B̄ in mathematical notation. The overline notation (Ā, B̄) indicates complements—events not occurring. Headers establish which combination each cell represents.

Interior cells contain editable joint probabilities with white backgrounds. These four cells partition the sample space into mutually exclusive, exhaustive events. Exactly one of these four outcomes must occur in any trial.

Marginal cells have yellow backgrounds distinguishing them from joint probabilities. Right column marginals sum across rows; bottom row marginals sum down columns. These read-only cells update automatically as joint probabilities change.

The table's grid structure makes probability relationships visible: row sums, column sums, and the total sum all maintain probability axioms. This visual organization clarifies how joint probabilities relate to marginals through summation.

Interpreting Tooltips and Mathematical Notation

Hover over any question mark icon (?) next to probability notation to see explanatory tooltips. These tooltips define what each probability represents in plain English. For P(A∩B), the tooltip reads "Probability of both A and B occurring." For P(Ā∩B̄), it explains "Probability of neither A nor B occurring."

The intersection symbol ∩ denotes "and"—both events happening simultaneously. P(A∩B) means A and B both occur. This differs from union (∪, meaning "or") which isn't used in this table since cells represent exclusive combinations.

The overline (Ā, B̄) represents complement—the event not occurring. Ā means "not A" or "A does not occur." Every event splits into event and complement with probabilities summing to 1: P(A) + P(Ā) = 1.

Marginal notation appears as "Marginal A" or "Marginal B" in bold, indicating these are totals summed over the other event. Tooltips explain "Total probability for event A (sum of column)" to clarify these represent unconditional probabilities obtained by summing joint probabilities.

The notation uses standard probability theory conventions. Understanding ∩ for intersection and overline for complement is essential for reading any probability table or formula.

What is Joint Probability?

Joint probability quantifies the likelihood of two or more events occurring simultaneously. For events A and B, the joint probability P(A∩B) gives the probability both happen together in a single trial. This differs from asking about each event separately.

Joint probabilities satisfy probability axioms: they're non-negative (≥0) and the sum over all possible joint outcomes equals 1. For two binary events, four mutually exclusive outcomes exist: both occur, only A occurs, only B occurs, neither occurs. These four joint probabilities partition the sample space completely.

Mutual exclusivity of the four cells means exactly one outcome occurs per trial. You can't simultaneously have both A and B occur while also having neither occur. The four joint probabilities represent exhaustive, non-overlapping possibilities.

Joint distributions specify complete probabilistic relationships between events. Knowing all joint probabilities allows calculating any related probability: marginals, conditionals, unions, or intersections. The joint distribution contains maximum information about how events relate.

For comprehensive theory on joint probability including derivations, properties, and applications to multiple events, see joint probability theory.

Joint vs Marginal vs Conditional Probability

Joint probability P(A∩B) asks about two events together: "What's the probability both A and B occur?" It focuses on the intersection, requiring both events simultaneously. Joint probabilities fill the interior table cells.

Marginal probability P(A) or P(B) asks about single events without conditioning on others: "What's the probability of A, regardless of B?" Marginals are obtained by summing joint probabilities over all states of other events. P(A) = P(A∩B) + P(A∩B̄), summing across B and B̄. Marginals appear in the table's edges (margins).

Conditional probability P(A|B) asks about one event given another occurred: "What's the probability of A, knowing B happened?" Conditionals restrict attention to outcomes where the conditioning event occurred. Calculate conditionals from joint and marginal probabilities: P(A|B) = P(A∩B)/P(B), dividing the joint by the marginal.

These three probability types answer different questions using the same underlying joint distribution. Joint probabilities are most fundamental—they determine both marginals (through summation) and conditionals (through division). This table displays joint and marginal probabilities; conditionals require additional calculation.

The calculator doesn't compute conditionals directly, but you can calculate them manually: divide any joint probability by its corresponding marginal. For example, P(A|B) = P(A∩B)/P(B) using values from the table.

Sum Rule and Probability Tables

The sum rule (law of total probability) states that marginal probabilities equal the sum of joint probabilities over other events. For event A: P(A) = Σ_b P(A∩B=b), summing over all possible values of B. In the 2×2 table, this simplifies to P(A) = P(A∩B) + P(A∩B̄).

This rule explains how marginal probabilities in the table's edges derive from joint probabilities in the interior. Sum across a row to get the row's marginal probability; sum down a column to get the column's marginal. The yellow highlighted cells display these sums.

Verification: All joint probabilities must sum to 1 since they partition the sample space. Additionally, each pair of marginals must sum to 1: P(A) + P(Ā) = 1 and P(B) + P(B̄) = 1. The table enforces these constraints through its structure and validation.

The sum rule connects joint and marginal distributions, allowing you to work backward and forward. Given marginals and independence, you can construct joints (P(A∩B) = P(A)×P(B) when independent). Given joints, you compute marginals through summation.

Understanding the sum rule clarifies why the table has its specific structure: interior cells represent joint probabilities, edge cells show marginals computed by summing, and the corner displays the total sum verifying probability axioms.

Related Probability Tools and Calculators

Conditional Probability Calculator - Compute P(A|B) from joint and marginal probabilities with contingency tables and Venn diagrams.

Bayes' Theorem Calculator - Calculate posterior probabilities reversing conditional probabilities for diagnostic and inference problems.

Probability Tree Diagram Generator - Visualize joint, marginal, and conditional probabilities through branching tree structures.

Independence Test Calculator - Determine whether events are independent by comparing P(A∩B) with P(A)×P(B).

Venn Diagram Probability Calculator - Calculate probabilities for intersections, unions, and complements using visual set diagrams.

Three-Event Probability Calculator - Extend to three events with 8 joint probabilities and three-dimensional relationships.

Multinomial Distribution Calculator - Handle multiple categorical events with joint probabilities over many categories.

Contingency Table Analysis - Perform chi-square tests and compute measures of association for categorical data.