PROBABILITY WORKSHEETS

Checking a conditional probability by reconstructing the joint event

A conditional probability divides a joint probability by the probability of the conditioning event. Multiplying the result back by that same probability recovers the joint, which makes a simple round-trip check.

Two directions of one relationship

The definition of conditional probability is P(A given B) = P(A and B) / P(B), valid when P(B) is positive. Rearranged, it reads P(A and B) = P(A given B) × P(B). These are the same relationship written in two directions, and the site has a calculator for each. The conditional probability calculator divides a joint probability by the probability of B. The joint probability calculator multiplies a conditional probability by the probability of B. Running one after the other with the same B is a check that the arithmetic and the event labels line up, which is useful whenever a worksheet passes probabilities between steps.

The default round trip

Suppose the probability of A and B together is 0.12 and the probability of B is 0.3. The conditional calculator returns 0.12 / 0.3 = 0.4, the probability of A among cases where B holds. Entering 0.4 as the conditional probability and 0.3 as the probability of B in the joint calculator returns 0.4 × 0.3 = 0.12. The number you started with comes back unchanged. If it does not, the likeliest reasons are that a different B was used in the second step, that the conditional was rounded before multiplying, or that the joint and the conditional referred to different events.

Reading 0.4 correctly

The conditional probability 0.4 says that among cases with B, 40 percent also have A. It does not say that A has probability 0.4 overall. The unconditional probability of A could be higher, lower or equal, and nothing in this calculation reveals it. If the probability of A alone were 0.4, then A and B would be independent, since P(A given B) = P(A). If it were 0.3, then knowing B raises the chance of A from 0.3 to 0.4. The conditional value is a statement about a restricted group, and reading it as a general probability is one of the most common errors in this topic.

A second numerical pair

Take a joint probability of 0.06 and a conditioning probability of 0.25. The conditional is 0.06 / 0.25 = 0.24. The reverse step gives 0.24 × 0.25 = 0.06. A less tidy ratio works the same way: a joint of 0.35 with P(B) = 0.5 gives 0.7. Note that the conditional can approach 1 when the joint is nearly as large as P(B), which happens when almost all cases with B also have A. The joint can never exceed P(B), since A and B together is a subset of B. If a worksheet shows a joint larger than the conditioning probability, one of the two was mistyped or mislabeled.

Swapping the roles of A and B

The relationship can be read with the events exchanged. If P(A) = 0.4 in the 0.12 example, then P(B given A) = 0.12 / 0.4 = 0.3, and the joint calculator confirms 0.3 × 0.4 = 0.12. Both versions give the same joint, so P(A given B) × P(B) = P(B given A) × P(A), here 0.4 × 0.3 = 0.3 × 0.4. This symmetry is the starting point for Bayes theorem, which rearranges it to P(A given B) = P(B given A) × P(A) / P(B). Keeping track of which event is on which side of the bar is the main discipline needed, and writing the labels beside each number helps. A concrete reading of the two directions: out of 1000 imagined cases, 300 have B, 120 have both A and B, and 400 have A. Then 120 of the 300 cases with B also have A, giving 0.4, and 120 of the 400 cases with A also have B, giving 0.3. The same 120 joint cases sit under two different denominators.

When the conditioning event has probability zero

Division by zero has no meaning, and the conditional calculator rejects a conditioning probability of zero. With a joint of 0 and P(B) = 0, the calculator reports that the conditioning event needs a positive probability, and no conditional value is produced. That is an expected rejection and not a defect. It reflects the fact that conditioning on an event that never occurs does not define a ratio. If P(B) is positive and the joint is 0, the conditional is 0, because the two events never occur together. The distinction is that zero in the numerator is fine, while zero in the denominator is not.

Rounding in a round trip

A conditional that does not terminate, such as 0.04 / 0.12 = 0.3333…, will not multiply back to exactly the original joint if it is rounded first. Entering 0.333 and multiplying by 0.12 gives 0.03996, a small discrepancy of 0.00004. The discrepancy is rounding, not a modeling problem. Keeping more digits shrinks it. When a round trip is used as a check, compare to the precision of the rounded input rather than expecting every digit to match. Passing unrounded values between steps, for instance by copying full-precision outputs, removes the issue entirely.

Where these probabilities come from

The joint and the conditioning probabilities in this guide are supplied numbers. In practice they might come from a table of counts, a probability tree or a model. A table of counts gives them by dividing cell and row totals by the grand total, and the conditional is then the cell count divided by the row total. The OpenStax introductory business statistics text covers these tables. In every case the arithmetic is the same, and the quality of the answer depends on whether the supplied probabilities describe the situation you care about.

What the round trip does and does not check

The round trip verifies that a conditional and a joint probability are consistent with a stated P(B). It does not establish that the events are well defined, that the probabilities came from a valid model, or that A and B are related in any causal way. A high conditional probability does not by itself show that B causes A. It also assumes the ratio form of conditional probability, which is the standard definition for events with positive probability. Reporting the triple together, the joint, the conditioning probability and the conditional, lets a reader redo the check in either direction. A conditional quoted alone, such as 0.4, cannot be turned back into a joint without the conditioning probability, and it cannot be checked at all.

Reproduce the checks

Conditional calculation

Open the Conditional Probability Calculator and enter:

Probability of A and B
0.12
Probability of B
0.3

Expected output:

Probability of A given B

0.4

The denominator is the probability of B.

Reconstruct the joint event

Open the Joint Probability Calculator and enter:

Probability of A given B
0.4
Probability of B
0.3

Expected output:

Probability of A and B

0.12

Use the same conditioning event in the reverse relationship.

Zero-probability condition

Open the Conditional Probability Calculator and enter:

Probability of A and B
0
Probability of B
0

Expected rejection:

conditioning event

The denominator cannot identify a conditional ratio.

References and implementation scope

The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.

Sources

Related tasks