GLOBAL KNOWLEDGE ARK

Mathematics · Article

Conditional probability and independence

Learn how information changes a probability law, use conditional products and partitions, and distinguish independence from disjointness, selection and hidden mixtures. Explore reporting protocols, Simpson reversals and the boundary of conditioning on a null event.

Back to Mathematics

After reading, you can

  • State the event being predicted, the information being conditioned on and the positive denominator required by event conditioning.
  • Construct a conditional probability law from valid finite weights and use its complement and union rules.
  • Derive multiplication, chain and total-probability rules without silently assuming independence.
  • Distinguish unchanged marginals, disjointness, pairwise independence, mutual independence and conditional independence.
  • Explain how mixtures, selection and report procedures change conditional probabilities.
  • Compare stratum and aggregate rates using their actual population weights, with appropriate causal limits.
  • Recognize undefined null-event ratios and the additional joint-model assumptions used by a conditional-density version.
01

What changes when information arrives?

Suppose a student is selected uniformly from a fixed group of 120. Of the 60 students in a club, 24 cycle to school and 36 do not. Of the 60 outside the club, 12 cycle and 48 do not. Before receiving any further information, the cycling probability for this selection is 36/120=3/10. If you learn that the selected student belongs to the club, the relevant group becomes its 60 members, and the cycling probability becomes 24/60=2/5. The student has not been selected a second time. The information changes which possible selections remain compatible with what you know.

Let A be the event that the selected student cycles and B the event that the student belongs to the club. Write P(A|B), read as the probability of A given B. The vertical bar separates the question from the information. Here A|B asks about cycling within the club. Reversing it gives B|A, a different question: membership within the 36 cyclists. That probability is 24/36=2/3. Keeping the highlighted group and its denominator visible is often more useful than memorizing a verbal slogan.

The same cell, containing 24 students, supports three distinct answers. Dividing it by 120 gives the joint probability P(A∩B)=1/5. Dividing it by the club total 60 gives P(A|B)=2/5. Dividing it by the cycling total 36 gives P(B|A)=2/3. Each calculation is coherent, but each answers a different question. A sentence such as “the probability of club and cycling” must therefore be clarified before choosing a denominator.

The selected denominator changes the questionThe orange cell stays fixed. The highlighted row or column supplies the conditional denominator. Selected conditional: 2/5. Joint probability: 1/5. Grand total: 120.The selected denominator changes the questionCyclesDoes not cycle24361248ClubNo clubNumerator 24; selected row total 60.Conditional probability: 2/5.
The orange cell stays fixed. The highlighted row or column supplies the conditional denominator.

Uniform selection from the stated fixed collection. Counts do not establish a causal effect.

Student collection with exact margins
MembershipCyclesDoes not cycleTotal
Club243660
No club124860
Total3684120
W2: cycles given club: computed probability checks
QuantityExact valueMeaning
Selected conditional2/5Cycles given club
Joint probability1/5Club and cycles, divided by grand total
Grand total120Number of students in the fixed collection

These probabilities are exact for uniform selection from the stated finite group. They are not automatically probabilities for students elsewhere or for future behavior. The table also supplies no evidence that joining the club causes cycling. We first need a clear selection procedure and events; questions about generalization, uncertainty and intervention require further assumptions. Conditional probability gives a language for those questions, rather than settling them by itself.

Information need not concern an earlier event. A recorded final score can be used to ask about an earlier play, just as knowledge of a play can be used to ask about the score. The symbol | specifies the information available to the calculation, not the direction of time or a physical influence. In this lesson we will repeatedly separate the mathematical restriction from the mechanism that produced or reported it.

02

Restrict the mass, then normalize it

On a probability space (Ω,ℱ,P), take events A and B with P(B)>0. Event conditioning is defined by P(A|B)=P(A∩B)/P(B). The intersection keeps only outcomes satisfying both the question and the information. Division by the retained mass makes B carry total conditional probability one. Outcomes outside B have conditional probability zero. Nothing in this definition requires the original outcomes to be equally likely.

For a concrete weighted model, let Ω={a,b,c,d}, with masses 1/10,2/10,3/10,4/10. Let B={a,b,d} and A={a,c,d}. The information B removes c and retains mass 7/10. The retained part of A has mass 5/10. Thus P(A|B)=5/7. The conditional masses, in the original outcome order, are 1/7,2/7,0,4/7. They sum to one and preserve the relative weights of the retained outcomes: d remains four times as likely as a.

Counting two retained outcomes in A out of three retained outcomes in B would give 2/3, which is incorrect in this model. Counting works when the detailed outcomes being counted have equal original mass. In general, conditioning rescales probability mass, not the number of labels. A diagram that assigns equal areas to unequal-mass outcomes can hide this distinction; use labelled mass bars or a construction whose areas deliberately represent the stated weights.

Retain B, then rescale its probability massConditioning rescales retained mass; counting labels is valid only under an equal-mass law. P(A): 4/5. P(B): 7/10. P(A ∩ B): 1/2. P(A | B): 5/7. P(B | A): 5/8.Retain B, then rescale its probability massOriginal lawConditional law given Ba1/101/7ab1/52/7bc3/100cd2/54/7dP(A ∩ B) / P(B) = 1/2 / 7/10 = 5/7
Conditioning rescales retained mass; counting labels is valid only under an equal-mass law.

The original finite law is validated before any conditioning. Blue retains B; orange also belongs to A. Bar heights encode mass.

Original and conditional atom probabilities
AtomOriginal massIn AIn BMass given B
a1/10truetrue1/7
b1/5falsetrue2/7
c3/10truefalse0
d2/5truetrue4/7
W1: unequal masses: computed probability checks
QuantityExact valueMeaning
P(A)4/5Original A mass
P(B)7/10Retained reference mass
P(A ∩ B)1/2Mass retained in both events
P(A | B)5/7Defined only for positive P(B)
P(B | A)5/8A different reference mass

The positivity requirement is essential. If P(B)=0, then P(A∩B)=0 by containment, so the proposed ratio is 0/0. It supplies no value. Do not replace it by zero, one or an arbitrary default. A software display should say that this event conditional is undefined and identify the zero denominator. A model can sometimes supply additional conditional structure on null observations, but that is a further construction discussed at the end of the lesson.

Validity comes before normalization. Original probabilities must be nonnegative and sum to one. Dividing arbitrary negative numbers or a mistaken probability table by a convenient total does not validate the declared model. If the input instead consists of nonnegative relative weights, explicitly say that they are weights and define their normalized probability law first. After that, positive-event conditioning has a precise, separate meaning.

03

The familiar probability rules still work inside B

Fix one positive-probability event B and define Q_B(A)=P(A|B). This is a probability law on the original event collection ℱ. Its total mass is Q_B(Ω)=P(B)/P(B)=1; it also assigns Q_B(B)=1. If A₁,A₂,… are disjoint, the intersections Aᵢ∩B remain disjoint. Countable additivity of P, followed by division by the same positive constant P(B), gives Q_B(⋃ᵢAᵢ)=ΣᵢQ_B(Aᵢ). Nonnegativity is inherited as well. Alternatively, one can regard the possible outcomes as B itself, with its trace event collection.

Consequently, complements and unions follow the ordinary rules under this new law. P(Aᶜ|B)=1−P(A|B), and P(A∪C|B)=P(A|B)+P(C|B)−P(A∩C|B). Every term uses the same condition B. Replacing one term by P(A) or P(C) would mix two reference laws and would need a separate reason, such as a proved independence relation. The subtraction handles overlap; it is not an independence assumption.

For two independent fair six-sided dice, the ordered outcome space has 36 equally weighted pairs. Condition on B={sum≥9}. There are 4+3+2+1=10 retained pairs, for sums 9,10,11,12. Within B, let A mean that the first die is 6 and C that the second die is 6. Each event has four retained pairs, but their common pair (6,6) has been counted twice. Thus P(A∪C|B)=4/10+4/10−1/10=7/10, and the conditional probability of neither is 3/10.

Condition on a region of the 36-cell latticeThe grid performs the conditioning operation. Green cells form the union within the blue/green retained region. P(B): 5/18. P(first 6 | B): 2/5. P(second 6 | B): 2/5. P(both 6 | B): 1/10. P(either 6 | B): 7/10.Condition on a region of the 36-cell latticeKeep sums ≥ 9; each original cell has mass 1/36.First die112233445566234567345678456789567891067891011789101112Retained 10; first-six 4; second-six 4; shared 1.Union given retained region: 7/10.
The grid performs the conditioning operation. Green cells form the union within the blue/green retained region.

Two independent fair six-sided dice; ordered pairs are equally likely.

W3: sum at least nine: exact quantities
QuantityExact valueInterpretation
P(B)5/18Probability of the conditioning region
P(first 6 | B)2/5Count within the retained region
P(second 6 | B)2/5Count within the retained region
P(both 6 | B)1/10Conditional overlap
P(either 6 | B)7/10Conditional union counts the overlap once
W3: sum at least nine: computed probability checks
QuantityExact valueMeaning
P(B)5/18Probability of the conditioning region
P(first 6 | B)2/5Count within the retained region
P(second 6 | B)2/5Count within the retained region
P(both 6 | B)1/10Conditional overlap
P(either 6 | B)7/10Conditional union counts the overlap once

A conditional complement always refers to the same reference space. Aᶜ∩B means “B holds and A does not,” rather than “neither A nor B.” In the dice example, P(Aᶜ|B)=6/10=3/5 counts all retained pairs whose first die is not 6, including some whose second die is 6. Translating the words into intersections before doing arithmetic prevents these different complements from becoming confused.

Monotonicity and bounds also carry over. If A⊆C then P(A|B)≤P(C|B). An intersection under B cannot exceed either conditional marginal, and a union under B cannot exceed one. These checks catch many denominator or double-counting errors. They are necessary consistency checks, not replacements for identifying the correct events or for verifying the original probability model.

04

A path probability is a product of conditional steps

Rearranging the definition gives P(A∩B)=P(B)P(A|B), provided P(B)>0. If P(A)>0, the same intersection is P(A)P(B|A). These are two descriptions of one joint event. Neither formula assumes that A and B are independent. The conditional factor is exactly what allows information from the first event to change the probability of the next.

For three events with positive conditioning prefixes, P(A∩B∩C)=P(A)P(B|A)P(C|A∩B). More generally, multiply P(A₁) by P(A₂|A₁), then P(A₃|A₁∩A₂), and continue through the full retained history. Derive the rule by repeatedly applying the two-event identity, or by cancelling the positive intermediate denominators. Do not shorten the history to only the immediately preceding event unless the model justifies that simplification.

For example, if P(A)=3/5, P(B|A)=1/4 and P(C|A∩B)=2/3, the joint probability is (3/5)(1/4)(2/3)=1/10. The prefixes A and A∩B have probabilities 3/5 and 3/20, so both displayed conditionals are defined. A tree can show each branch factor next to its edge and the joint path mass at its endpoint. A branch labelled 1/4 here describes B among paths already in A, rather than the unconditional probability of B.

If a prefix has probability zero, every longer intersection contained in it has probability zero. That conclusion follows from containment. The next event ratio is undefined, so writing “0 times the undefined probability” is not a valid derivation. Stop the ratio-based chain at the null prefix and state the zero-intersection argument. A generative model may separately specify transition rules at unreachable histories; such rules are additional choices and are not uniquely recovered from the event-ratio definition.

Branch factors and path factors have different normalization rules. The mutually exclusive outgoing branch probabilities at a reached node sum to one. The masses of all terminal paths in an exhaustive finite tree also sum to one, but the branch probabilities from different nodes do not form one probability distribution. This distinction helps when reading a tree, designing a simulation or checking an interactive calculation.

05

The remaining population changes after each draw

An urn contains five red and three blue balls. At each step select uniformly from the remaining physical balls, record the color and do not replace the selected ball. For the ordered sequence red, blue, red, the successive probabilities are 5/8,3/7,4/6. After the first red, four red and three blue remain. After the blue, four red and two blue remain. The sequence probability is therefore (5/8)(3/7)(4/6)=5/28.

Every numerator and denominator belongs to the population at that point in the history. The second numerator is still three because no blue ball has yet been removed; the third red numerator is four because one red has been removed. Writing a general “multiply the color probabilities” instruction without these updates would hide the mechanism. With replacement and a new uniform draw each time, the stated experiment changes and the corresponding product is (5/8)(3/8)(5/8)=75/512.

An edge probability belongs to its whole historyThe tree shows remaining contents and actual conditional edges. Orange traces the requested ordered sequence. Requested path probability: 5/28. Draw 1 conditional: 5/8. Draw 2 conditional: 3/7. Draw 3 conditional: 2/3.An edge probability belongs to its whole history5 red, 3 blue; no replacement; requested RBR.5R 3BR: 5/8B: 3/84R 3BR: 4/7B: 3/75R 2BR: 5/7B: 2/73R 3BR: 1/2B: 1/24R 2BR: 2/3B: 1/34R 2BR: 2/3B: 1/35R 1BR: 5/6B: 1/62R 3B3R 2B3R 2B4R 1B3R 2B4R 1B4R 1B5R 0BRequested path joint mass = 5/28.Multiply the displayed positive-prefix transition probabilities.
The tree shows remaining contents and actual conditional edges. Orange traces the requested ordered sequence.

Uniform draw among the balls currently present. Each drawn ball is removed. Dashed edges from null histories are not event-ratio conditionals.

Requested path with its complete history
PrefixNext conditionalJoint massRemaining contents / boundary
R5/85/84 red, 3 blue remain
RB3/715/564 red, 2 blue remain
RBR2/35/283 red, 2 blue remain
W4: RBR without replacement: computed probability checks
QuantityExact valueMeaning
Requested path probability5/28Joint mass is zero once a prefix has zero mass
Draw 1 conditional5/8Given prefix empty history
Draw 2 conditional3/7Given prefix R
Draw 3 conditional2/3Given prefix RB

The first and second red events have the same marginal probability, 5/8, in the without-replacement experiment. To see the second marginal directly, partition by the first color: P(R₂)=(5/8)(4/7)+(3/8)(5/7)=5/8. Yet P(R₂|R₁)=4/7, different from 5/8. Equal marginals at two positions do not establish independence; marginals describe each position separately and do not determine their joint behavior.

The joint red-red probability is P(R₁∩R₂)=(5/8)(4/7)=5/14, whereas the product of the two marginals is (5/8)²=25/64. Those unequal quantities diagnose dependence. The balls need not have a physical influence across draws: removal changes the composition of the remaining set. Dependence concerns the probability law and can arise from a constraint on available outcomes.

Color sequences also differ from unordered color totals. A calculation for red-blue-red covers one order. If the question asks for exactly two red balls in three draws, enumerate or count all compatible orders, making sure they are disjoint and weighted correctly. A fixed ordered path should never silently become the probability of every ordering. Later named distributions will organize such counting, but the conditional tree already explains why the factors have their stated values.

06

Combine conditional rates with the right weights

Suppose B₁,B₂,… form a finite or countable measurable partition of Ω: their cells are disjoint and their union is the whole space. Then the events A∩Bᵢ form a disjoint partition of A. Additivity gives P(A)=ΣᵢP(A∩Bᵢ). For positive cells, replace each intersection by P(Bᵢ)P(A|Bᵢ). In a formula that also allows null cells, write P(A)=Σ_{i:P(Bᵢ)>0}P(Bᵢ)P(A|Bᵢ). A zero-mass cell contributes a zero intersection; its undefined event conditional is omitted.

Consider a trip that takes exactly one of three routes, with route probabilities 1/2,1/3,1/6. The conditional lateness rates are 1/10,1/5,2/5. The late-and-route masses are 1/20,1/15,1/15. Adding them gives P(late)=11/60. A probability-width bar can make the calculation visible: each route occupies its stated fraction of the whole width, and the late portion occupies its conditional fraction within that route. The highlighted areas sum to the total lateness probability.

Add the probability areas across a partitionThe rectangle has total area one. Orange area is the probability of lateness. P(late): 11/60. P(late ∩ R1): 1/20. P(late ∩ R2): 1/15. P(late ∩ R3): 1/15.Add the probability areas across a partitionR1: 1/21/10R2: 1/31/5R3: 1/62/5Orange joint pieces add to 11/60.Width = route weight; height fraction = lateness within route.
The rectangle has total area one. Orange area is the probability of lateness.

Exactly one of the three route events occurs. Zero-mass strata contribute zero joint mass; their ratios are not supplied.

Partition weights, conditional rates and joint pieces
RouteWeightRate given routeJoint lateness
R11/21/101/20
R21/31/51/15
R31/62/51/15
W6: observed route weights: computed probability checks
QuantityExact valueMeaning
P(late)11/60Sum of disjoint joint pieces
P(late ∩ R1)1/20Route weight 1/2
P(late ∩ R2)1/15Route weight 1/3
P(late ∩ R3)1/15Route weight 1/6

The unweighted average of the three rates, (1/10+1/5+2/5)/3=7/30, describes a different mixture in which the routes are chosen equally often. It is not the probability for the trip model just stated. Rates need weights representing the actual reference population. The weights can change when the question changes; using a common target population is legitimate if it is explicitly specified, rather than silently substituted for the observed population.

A list of groups is not automatically a partition. If one group means “weekend trips” and another means “rainy trips,” some trips may belong to both and some to neither. Adding their joint lateness probabilities can double-count or omit outcomes. Refine the groups into disjoint cells, such as weekend/rainy, weekend/dry, weekday/rainy and weekday/dry, before applying the partition sum.

Total probability combines forward conditional descriptions. Here it asks how route frequencies and route-specific lateness combine into a trip-level outcome. The reverse question—what the route probabilities become after lateness is observed—uses the same joint masses but a new denominator. That is the starting point for Bayes’s rule in the next lesson; the present task is to keep the partition and its weights correct.

07

Independence is an equality of probabilities

Events A and B are independent when P(A∩B)=P(A)P(B). This product equality is the definition used here. If P(B)>0, it is equivalent to P(A|B)=P(A), because division by P(B) is then allowed. If P(A)>0, it is also equivalent to P(B|A)=P(B). Independence is symmetric even though the two conditional questions have different denominators. Use the product definition when a marginal may be zero.

For one fair six-sided die, take A={2,4,6}, the even faces, and B={3,6}, the multiples of three. Their probabilities are 1/2 and 1/3; their intersection {6} has probability 1/6. Since 1/6=(1/2)(1/3), the events are independent. Knowing that B holds leaves two equally likely possibilities, 3 and 6, one even, so P(A|B)=1/2 as a separate check. Independent events can overlap; here their overlap is essential to the product equality.

Independence is the equality of two massesThe same probability scale compares the actual intersection and the product. Undefined ratios are not needed to test a null event. P(A): 1/2. P(B): 1/3. P(A ∩ B): 1/6. P(A)P(B): 1/6. P(A | B): 1/2. P(B | A): 1/3.Independence is the equality of two massesA={2,4,6}; B={3,6}; uniform die.Actual intersection P(A ∩ B)1/6Product P(A)P(B)1/6The exact masses agree: independent.P(A | B)=1/2; P(B | A)=1/3.A null marginal never invalidates the product test.
The same probability scale compares the actual intersection and the product. Undefined ratios are not needed to test a null event.

One fair die; all six faces have probability 1/6.

W5: even and multiple of three: exact quantities
QuantityExact valueInterpretation
P(A)1/2First marginal
P(B)1/3Second marginal
P(A ∩ B)1/6Actual intersection
P(A)P(B)1/6Equal: independent
P(A | B)1/2Requires positive P(B)
P(B | A)1/3Requires positive P(A)
W5: even and multiple of three: computed probability checks
QuantityExact valueMeaning
P(A)1/2First marginal
P(B)1/3Second marginal
P(A ∩ B)1/6Actual intersection
P(A)P(B)1/6Equal: independent
P(A | B)1/2Requires positive P(B)
P(B | A)1/3Requires positive P(A)

A null event N is independent of every event E under this definition. Containment gives P(E∩N)=0=P(E)P(N). This does not make P(E|N) defined by an event ratio. Its denominator is still zero. A sure event S, with P(S)=1, is likewise independent of every E because the missing part E∩Sᶜ is null. Null and sure refer to probability, not necessarily to the literal empty set and the literal whole set.

An event is independent of itself exactly when p=p², so p is zero or one. Otherwise, learning that the event itself holds certainly changes its own conditional probability to one. This provides a quick check on informal claims that information is always harmless or that one can freely multiply probabilities of repeated descriptions of the same event. Repeating a label does not create an independent experiment.

Independence may be a stipulation in an ideal model, a consequence of a construction, or a hypothesis to investigate from data. A finite sample rarely reproduces a theoretical product equality exactly, and approximate sample agreement does not prove the underlying law is independent. Conversely, the exact die model permits an exact mathematical check because the law is specified. Keep model identities separate from the statistical task of estimating or testing them.

08

What follows from independence—and what does not

If A and B are independent, then Aᶜ and B are independent. Indeed, P(Aᶜ∩B)=P(B)−P(A∩B)=P(B)−P(A)P(B)=(1−P(A))P(B). Repeating the argument complements either event or both. Therefore probabilities of “neither” can be multiplied as P(Aᶜ∩Bᶜ)=(1−P(A))(1−P(B)) when the original independence assumption is justified. This is a derived closure property, not a license to multiply arbitrary complement probabilities.

Disjointness is a different relation: A∩D=∅. For disjoint events, the joint probability is zero. Their product equals zero only if at least one marginal is zero, so disjoint events with positive probabilities are dependent. For the fair die, the even event A and odd event D each have probability 1/2 and are disjoint. Their joint probability zero differs from their marginal product 1/4. Learning that the result is even excludes oddness.

A two-by-two event table is a useful diagnostic. Its cells are P(A∩B), P(A∩Bᶜ), P(Aᶜ∩B) and P(Aᶜ∩Bᶜ). All must be nonnegative and sum to one. Given marginals a=P(A), b=P(B), and joint j, those cells are j,a−j,b−j,1−a−b+j. Independence asks whether j=ab. Feasibility separately requires max(0,a+b−1)≤j≤min(a,b); a purported dependence example outside those bounds is not a probability law.

For positive P(B), the conditional difference P(A|B)−P(A)=(j−ab)/b gives a direction and scale for one comparison. A positive difference means that A is more likely within B in this law; a negative difference means it is less likely. This expression does not identify why the association occurs. Different sampling procedures, common influences or selection rules can produce the same event table.

A visually separate pair of circles cannot certify independence, and equal marginal probabilities cannot certify it either. The product equality concerns masses. In the urn example, the first and second red events have identical marginals but the wrong joint product for independence. Use a numerical law, a justified construction or a theorem with its assumptions; use the diagram to explain those facts rather than as a substitute for them.

09

Independence inside a stated condition

Fix an event C with P(C)>0. Events A and B are conditionally independent given C when P(A∩B|C)=P(A|C)P(B|C). This is ordinary independence under the conditional law Q_C. All three terms refer to the same retained population. Conditional marginals may themselves be zero, so the product equality remains the safest definition. If P(B∩C)>0, an equivalent statement is P(A|B∩C)=P(A|C). This last ratio formulation needs its additional positive denominator.

For example, consider two device-success events within a fixed environment C. If each conditional success probability is 3/4 and the conditional joint success probability is 9/16, the product equality holds under C. Merely learning that both devices operate in the same named environment does not establish those numbers or their factorization. Shared power interruptions or other omitted influences could leave dependence within that environment. State the independence assumption or verify it from the specified conditional law.

Independence given one event C says nothing by itself about Cᶜ. If a model says that A and B are independent given the environment, and the environment has several possible categories, check the product equality in every positive-probability category. This is stronger than checking one favorable category. Zero-mass categories do not have event-ratio conditionals to test. Later, conditioning on a numerical variable requires the corresponding almost-everywhere qualifications rather than a ratio at every exact value.

A conditional independence statement can simplify a chain, but only in the context in which it was justified. Under C, independence of A and B permits P(A∩B|C)=P(A|C)P(B|C). It does not permit replacing the factors by unconditional probabilities, and it does not imply independence involving a third event. Keep the given information attached to each factor until there is a separate reason to remove it.

This distinction matters in scientific models. A description might assume independent measurement errors after fixing a temperature regime, or independent outcomes after fixing a chosen latent category. Such assumptions can make a model useful and computable, but their adequacy is a question about the measurement or generating process. The next two constructions show that neither conditional nor unconditional independence automatically survives a change of reference population.

10

Independent within groups, dependent after mixing

Choose a favorable or unfavorable environment with equal probability. Given the chosen environment, stipulate that two devices succeed independently. Each device has success probability 3/4 in the favorable environment and 1/4 in the unfavorable environment. Let A and B denote their success events. The shared environment is selected once for both devices; choosing a new independent environment for each would define a different model.

Within the favorable environment, the success table has cells 9/16 for both, 3/16 for A only, 3/16 for B only and 1/16 for neither. Within the unfavorable environment, the corresponding cells are 1/16,3/16,3/16,9/16. Each table factors into its conditional marginals. Mixing the two tables with weights 1/2 gives cells 5/16,3/16,3/16,5/16. These are actual joint masses under the mixed law, rather than an average of selected conditional ratios.

Total probability gives P(A)=P(B)=(1/2)(3/4)+(1/2)(1/4)=1/2. It gives P(A∩B)=(1/2)(9/16)+(1/2)(1/16)=5/16. The product of the mixed marginals is only 1/4, so the mixed events are dependent. Equivalently, P(A|B)=(5/16)/(1/2)=5/8, above P(A)=1/2. Independence in both environment categories has not become independence after the category is hidden.

Independent inside strata, dependent after mixing?Inside each positive stratum, cell areas are conditional products. Mixing uses the stratum weights. P(A)=P(B): 1/2. P(A ∩ B): 5/16. P(A)P(B): 1/4. P(A | B): 5/8.Independent inside strata, dependent after mixing?Favorable: weight 1/29/163/163/161/16Unfavorable: weight 1/21/163/163/169/16Mixture intersection P(A ∩ B)5/16Product of mixture marginals1/4The shared stratum changes the unconditional product test.
Inside each positive stratum, cell areas are conditional products. Mixing uses the stratum weights.

Within each positive-mass stratum, the two devices succeed independently. Both devices have the displayed stratum-specific success rate.

Conditional model in each stratum
StratumWeightP(A|stratum)P(A∩B|stratum)
Favorable1/23/49/16
Unfavorable1/21/41/16
W7: shared high or low environment: computed probability checks
QuantityExact valueMeaning
P(A)=P(B)1/2Weighted marginal success rate
P(A ∩ B)5/16Weighted within-stratum products
P(A)P(B)1/4Marginal dependence
P(A | B)5/8Conditional in the mixture, not within a stratum

The mechanism is visible without an advanced formula. A success by the second device is more compatible with the favorable environment, where the first device also has a higher success rate. Outcomes with both successes or both failures therefore receive more mass than an independent table with marginals 1/2 would assign. This explanation uses the stated mixture model; an observed event table alone would not prove that this particular hidden mechanism generated it.

If the two environment-specific rates were the same for each device across environments, this particular source of mixture dependence would disappear. More generally, mixing can preserve independence in special cases, so the lesson is not that every mixture creates dependence. The valid conclusion is that conditional factorization does not generally pass through a weighted sum. Compute the joint sum and compare it with the product of the summed marginals.

11

Selection can change the relation between events

Start with two independent fair bits X and Y: the ordered outcomes 00,01,10,11 each have probability 1/4. Let A={X=1} and B={Y=1}. Initially P(A)=P(B)=1/2 and P(A∩B)=1/4, so they are independent. Now retain an outcome exactly when C={X=1 or Y=1}. Selection removes 00 and keeps the other three equally weighted outcomes.

Under C, the conditional probability table has mass 1/3 on each of 01,10,11. Thus P(A|C)=P(B|C)=2/3, but P(A∩B|C)=1/3. The product of the conditional marginals is 4/9, different from 1/3. A and B are dependent within the selected sample even though they were independent before selection. Conditional independence does not follow from unconditional independence.

Select outcomes, then recompute the product testFiltering can change dependence even though the original joint law is unchanged. P(selection): 3/4. P(X=1 | selection): 2/3. P(Y=1 | selection): 2/3. Selected joint: 1/3. Selected product: 4/9.Select outcomes, then recompute the product testOriginally, the four bit pairs each have probability 1/4.00not retained01given selection: 1/310given selection: 1/311given selection: 1/3Selected joint 1/3; selected marginal product 4/9.Compare inside the selected probability law.
Filtering can change dependence even though the original joint law is unchanged.

Two independent fair bits before selection. The inclusion event is explicitly specified.

Selection and conditional masses
PairOriginal massRetained?Mass given selection
001/4false0
011/4true1/3
101/4true1/3
111/4true1/3
W8: retain at least one 1: computed probability checks
QuantityExact valueMeaning
P(selection)3/4Original mass of the retained region
P(X=1 | selection)2/3Selected marginal
P(Y=1 | selection)2/3Selected marginal
Selected joint1/3Both one-events in the selected law
Selected product4/9Does not certify independence

The direction of the change is also informative. Within the selected sample, knowing that B holds leaves 01 and 11 equally likely, so P(A|B∩C)=1/2. This is below P(A|C)=2/3. Selection required at least one of two inclusion reasons. Learning that one reason holds reduces the need for the other as an explanation for inclusion. The negative association is a property of this explicitly stated filter, not a general rule for every selection scheme.

The same issue appears when studying only records that pass a screen, only published results or only devices sent for repair. The retained records can have a different dependence structure from the original population. To calculate it, specify how inclusion depends on the recorded outcomes and, when relevant, on additional variables. The word selected is not enough: deterministic filtering and probabilistic inclusion can assign different weights to the same visible labels.

A causal diagram may describe a situation where two causes both influence selection into a sample. Conditioning on their common effect can then create association between the causes. The bit filter is a transparent numerical example of that possibility. Drawing such a diagram for real data requires substantive knowledge; the association alone does not identify the arrows or justify an intervention claim. The safe mathematical habit is to keep the inclusion event explicit.

12

Checking every pair is not enough

Take independent fair bits X and Y and define Z=X XOR Y: Z is one when the bits differ and zero when they agree. The complete outcomes (X,Y,Z) are (0,0,0),(0,1,1),(1,0,1),(1,1,0), each with probability 1/4. Define A={X=1}, B={Y=1} and C={Z=1}. Each event has probability 1/2. Every pair intersection has probability 1/4, so every pair is independent.

The triple intersection A∩B∩C is empty. When X and Y are both one, their XOR is zero. Its probability is therefore zero, whereas P(A)P(B)P(C)=1/8. The three events are pairwise independent but not mutually independent. A table of all outcomes makes the missing triple directly visible. Three pairwise product checks cannot recover a combination that the construction rules out.

Pairwise checks do not replace the triple checkColored columns display the complete joint support. Every pair and the triple must satisfy its own product equality. P(X=1): 1/2. P(Y=1): 1/2. P(Z=1): 1/2. Pair XY intersection: 1/4. Pair XZ intersection: 1/4. Pair YZ intersection: 1/4. Triple intersection: 0. Triple marginal product: 1/8.Pairwise checks do not replace the triple checkXYZMass0001/40111/41011/41101/4Triple intersection0Product of three marginals1/8Pairwise independent: yes; mutually independent: no.
Colored columns display the complete joint support. Every pair and the triple must satisfy its own product equality.

Independent X,Y; P(X=1)=1/2, P(Y=1)=1/2; Z=X XOR Y.

Complete finite joint law
XYZProbability
0001/4
0111/4
1011/4
1101/4
W9: Z is the XOR: computed probability checks
QuantityExact valueMeaning
P(X=1)1/2One-event marginal
P(Y=1)1/2One-event marginal
P(Z=1)1/2One-event marginal
Pair XY intersection1/4Compare with its own marginal product
Pair XZ intersection1/4Compare with its own marginal product
Pair YZ intersection1/4Compare with its own marginal product
Triple intersection0Actual three-event intersection
Triple marginal product1/8Mutual independence fails

A finite family A₁,…,Aₙ is mutually independent when P(⋂_{i∈I}Aᵢ)=∏_{i∈I}P(Aᵢ) for every subset I of at least two distinct indices. For three events, this requires all three pair equalities and the triple equality. For a larger family, it also requires all intermediate subcollections. Checking only the full intersection is insufficient, just as checking only the pairs is insufficient. For an infinite family, independence means this property for every finite subfamily.

Conditioning exposes another feature of the XOR example. Given C, only 01 and 10 remain. Under that condition, A and B each have probability 1/2 but their joint probability is zero. They are not conditionally independent given C. The third event can therefore reveal a relation between a pair whose unconditioned table factors. This conclusion follows from the explicit selected rows and does not contradict their original pairwise independence.

In applications, a statement such as “the trials are independent” normally needs a joint independence assumption, rather than a collection of separate pair checks. Sampling constructions, repeated physical mechanisms and pseudo-random generators require an appropriate joint model. A long list of plausible marginals or pairwise agreements does not by itself justify a product for the probability that many events all occur.

13

What exactly was observed or reported?

Two independent fair coins give the ordered outcomes HH,HT,TH,TT, each with probability 1/4. If the information is exactly “at least one coin is H,” the retained outcomes are HH,HT,TH and the probability of HH is 1/3. If the information is exactly “the first coin is H,” the retained outcomes are HH,HT and the probability of HH is 1/2. These answers differ because the events being conditioned on differ.

A report reweights the same original toss pairsArrow labels are P(report | toss pair). Conditional bars use the resulting report-weighted masses. P(report): 3/4. P(HH | report): 1/3.A report reweights the same original toss pairsReport exactly that at least one H exists.HH1Mass given report: 1/3HT1Mass given report: 1/3TH1Mass given report: 1/3TT0Mass given report: 0P(report)=3/4; P(HH | report)=1/3.
Arrow labels are P(report | toss pair). Conditional bars use the resulting report-weighted masses.

Two independent fair coins. The report event is exactly the stated event.

The observation mechanism changes retained weights
PairOriginal massP(report | pair)P(pair | report)
HH1/411/3
HT1/411/3
TH1/411/3
TT1/400
W11: at least one head exists: computed probability checks
QuantityExact valueMeaning
P(report)3/4Average report chance across the four toss pairs
P(HH | report)1/3Actual protocol-conditioned probability

Now specify a third procedure. Independently choose an index J uniformly from {1,2}, reveal that indexed coin and report its observed face. Condition on the revealed face being H. An HH outcome always produces that report; HT and TH produce it only when their H coin is chosen; TT never does. The probability of the report is 1/4+(1/4)(1/2)+(1/4)(1/2)=1/2. The joint probability of HH and the report is 1/4, so the conditional probability of HH is 1/2.

The expanded sample space includes both tosses and the reveal index, with eight equally weighted detailed outcomes. After conditioning on a revealed H, two retained outcomes belong to HH, one to HT and one to TH. The visible toss labels therefore have conditional masses 1/2,1/4,1/4. Treating those three labels as equally likely would erase the reporting weights. This is the same distinction between detailed outcomes and coarsened labels introduced in the preceding lesson.

The phrase “a head was seen” does not tell us which procedure produced the information. It might mean that every coin was inspected and a statement about existence was reported, that the first coin was inspected, or that one random coin was inspected. Before calculating, identify the report rule and any randomness or selective withholding it uses. If the rule is not known, the problem may be under-specified rather than difficult.

Scientific observations also arrive through procedures: instruments have detection rules, surveys have response mechanisms and databases contain inclusion criteria. A conditional calculation should encode the event actually observed, including a reporting or selection variable when needed. Do not invent a report mechanism to force a preferred answer. When several plausible mechanisms remain, state the corresponding assumptions and show how the conclusions depend on them.

14

When aggregate rates reverse the within-group comparison

Consider a synthetic record of task successes for methods A and B. For easy tasks, A has 18 successes in 20 trials and B has 72 in 90. For hard tasks, A has 24 successes in 80 trials and B has 2 in 10. Within easy tasks the rates are 9/10 versus 4/5; within hard tasks they are 3/10 versus 1/5. A is higher by 1/10 in both strata. Yet the aggregate rates are A:42/100=21/50 and B:74/100=37/50, so the pooled comparison goes the other way.

There is no arithmetic contradiction. Easy tasks make up only 1/5 of A’s recorded trials but 9/10 of B’s. The aggregate for A is (1/5)(9/10)+(4/5)(3/10)=21/50. For B it is (9/10)(4/5)+(1/10)(1/5)=37/50. Each total uses its own actual composition. A within-stratum comparison and a comparison of differently composed populations answer different descriptive questions.

Stratum rates and population weights are separateUpper bars show success within each stratum. Lower areas use the selected population weights; blue is easy-task success and orange hard-task success. Observed P(success | A): 21/50. Observed P(success | B): 37/50. Selected-weight A rate: 21/50. Selected-weight B rate: 37/50. Selected A minus B: -8/25.Stratum rates and population weights are separateEasy: method A = 9/10Hard: method A = 3/10Easy: method B = 4/5Hard: method B = 1/5AEasy weight 1/5; aggregate success 21/50.BEasy weight 9/10; aggregate success 37/50.
Upper bars show success within each stratum. Lower areas use the selected population weights; blue is easy-task success and orange hard-task success.

The original table is observational and synthetic. Methods retain their different observed easy-task weights. Common weights define a target summary; causal interpretation needs further assumptions.

Preserved original counts and current weighting
StratumA successes / trialsA rateB successes / trialsB rate
Easy18/209/1072/904/5
Hard24/803/102/101/5
Observed all42/10021/5074/10037/50
Selected easy weight1/59/10
W10: observed method weights: computed probability checks
QuantityExact valueMeaning
Observed P(success | A)21/50Original 18/20 and 24/80 counts
Observed P(success | B)37/50Original 72/90 and 2/10 counts
Selected-weight A rate21/50A uses its observed task mix
Selected-weight B rate37/50B uses its observed task mix
Selected A minus B-8/25A rate comparison; no causal effect is inferred

Suppose a target task population is explicitly defined as half easy and half hard. Weighting each method’s stratum rates by that common composition gives A:(1/2)(9/10)+(1/2)(3/10)=3/5 and B:(1/2)(4/5)+(1/2)(1/5)=1/2. More generally, if the common easy-task weight is w with 0≤w≤1, the summaries are A(w)=3/10+(3/5)w and B(w)=1/5+(3/5)w. Their difference is 1/10 for every common w. The observed aggregates instead use two different weights, w_A=1/5 and w_B=9/10.

These calculations illustrate Simpson’s reversal: an association can reverse after combining groups with different compositions. A display should keep the observed method-specific weights separate from a common target weight. Moving a common-weight slider changes a stated target-population question; it must not silently rewrite the observed records. Likewise, a pooled rate should not be presented as if it were an average with equal stratum weights.

The table alone does not establish which method would cause more successes if assigned to the same tasks. Assignment, task classification, unrecorded influences and selection can matter. In some causal settings a stratum is an appropriate variable to account for; in others conditioning on it can distort the question. Choosing the causal comparison requires knowledge of how the records arose. The algebra supports precise descriptive and target-weighted summaries while keeping that scientific limitation visible.

When reporting a reversal, give the counts, denominators, stratum definitions and target population. A percentage without its population weight can hide the entire mechanism. For finite records selected uniformly within the named groups, the proportions above are exact probabilities for that record-selection experiment. Generalizing them to future tasks or interventions is a further inferential step, with uncertainty and assumptions of its own.

15

A zero-probability observation needs more structure

A nonempty event can have probability zero. For a uniform coordinate Y on (0,1), every exact value y has probability P(Y=y)=0, even though the observed coordinate has some value in that interval. Countable additivity does not say that an uncountable union of null singletons is null. The probability-zero statement therefore does not make every precise observation logically impossible.

For a null event N, the event-ratio definition of P(A|N) gives no answer. Every intersection A∩N is null, so all choices of A lead to 0/0. Also, N is independent of every A in the product sense. These two facts are compatible: the product equality remains meaningful, while its conditional-ratio equivalence required a positive denominator. Do not use the informal phrase “independence means the information changes nothing” to assign values to undefined ratios.

In ordinary measurements, an instrument commonly reports a range, a rounded value or a signal generated by a noisy process. A range can have positive probability and can be conditioned on directly. If the model instead uses an exact continuous observation, it may supply a conditional distribution through a joint law and an appropriate mathematical construction. The next section gives one density-based version. It does not obtain a new number by evaluating the event ratio at zero.

Conditional distributions given a numerical observation are generally determined by the joint law only almost everywhere with respect to the observation’s distribution. In a density model, changing the conditional distribution at one observation value of probability zero can leave every joint probability unchanged. For the triangular example below, the natural slice at Y=3/4 gives probability 1/3 to X≤1/4. Replacing that one conditional distribution by a point mass at X=1/8 would give one, or by a point mass at X=1/2 would give zero, without changing joint integrals. Such exceptional-value modifications are different versions; the smooth slice or a specified observation protocol supplies the additional choice.

This does not make continuous conditioning useless or arbitrary in routine smooth models. Continuity assumptions, a specified density and an explicit measurement procedure can select a natural version and permit stable calculations. It does mean that an exact null set, stated without the conditioning variable or limiting procedure, does not universally identify one answer. Different observation rules or neighborhoods can encode different information. Identify the rule rather than claiming that every possible way of shrinking to a null set must agree.

The distinction matters when moving from ideal event models to scientific measurements. Ask which quantities are observed, at what resolution, with what noise and selection mechanism. Use a positive-event calculation when that is the stated information. Use an appropriate conditional-law construction when the model calls for exact numerical observations. If the required structure is absent, preserve the missing-information limitation instead of filling it with a default probability.

16

Advanced bridge: normalize a joint-density slice

This optional section uses integration. Let X and Y be dimensionless numerical coordinates with specified joint density f(x,y)=2 on the triangle 0<x<y<1 and zero elsewhere. Density means that probabilities are integrals over regions. The total is ∫₀¹∫₀ʸ2 dx dy=∫₀¹2y dy=1. The model therefore defines a valid joint probability law. Its support and density are assumptions of this example, not consequences of knowing that each coordinate is continuous.

The marginal density of Y is f_Y(y)=∫f(x,y)dx=2y for 0<y<1. For a supplied joint-density version, at a slice with 0<f_Y(y)<∞ define f_{X|Y}(x|y)=f(x,y)/f_Y(y). In this example it is 1/y on 0<x<y, zero elsewhere, and its integral over x is one. This is a normalized density slice. It is not the ratio P(X=x,Y=y)/P(Y=y), whose denominator is zero in this continuous model.

At y=3/4, the natural slice is uniform on (0,3/4), with density 4/3 per unit of x. Its probability for X≤1/4 is ∫₀^{1/4}(4/3)dx=1/3. A density value greater than one is allowed; probabilities are areas under the density, not its heights. If x carried a physical unit, the conditional density would have the reciprocal unit, and integration over x would again give a dimensionless probability.

Check the selected version through one explicit positive-probability observation. Let B_ε={3/4−ε<Y<3/4+ε}, with 0<ε<1/4. The band stays within (0,1), and its lower edge exceeds 1/4. Its probability is ∫_{3/4−ε}^{3/4+ε}2y dy=3ε. The part with X≤1/4 has probability ∫_{3/4−ε}^{3/4+ε}∫₀^{1/4}2 dx dy=ε. Thus P(X≤1/4|B_ε)=1/3 for every stated ε, and this band procedure agrees with the slice value as its width shrinks.

A positive band and a normalized density sliceThe orange band has positive joint probability. The right graph normalizes a positive-marginal slice; a zero-marginal slice stays undefined. fY(y): 3/2. Density-slice probability: 1/3. P(band): 3/20. P(X≤threshold ∩ band): 1/20. P(X≤threshold | band): 1/3.A positive band and a normalized density slicey=3/4; X≤1/4; band half-width 1/20.Joint density 2 on 0<x<y<1Y01 (x)10Band probability: 3/20Normalized slice01 (x)Top density: 4/3Selected slice area: 1/3Band = positive event probability; slice = conditional density.No event ratio with denominator P(Y=y)=0 is evaluated.
The orange band has positive joint probability. The right graph normalizes a positive-marginal slice; a zero-marginal slice stays undefined.

Specified joint Lebesgue density 2 on 0<x<y<1. Conditional distributions from a joint law are identified only almost everywhere in Y. The displayed slice uses the natural density version; it is not a universal null-set conditioning rule. Band integration includes the zero density outside the stated triangular support.

W12: uniform triangular joint law: exact quantities
QuantityExact valueInterpretation
fY(y)3/2Marginal density, not point probability
Density-slice probability1/3Natural conditional-density version of the specified joint law
P(band)3/20A separately specified positive-probability observation
P(X≤threshold ∩ band)1/20Exact double-integral result
P(X≤threshold | band)1/3May be defined even when the exact density slice is not
W12: uniform triangular joint law: computed probability checks
QuantityExact valueMeaning
fY(y)3/2Marginal density, not point probability
Density-slice probability1/3Natural conditional-density version of the specified joint law
P(band)3/20A separately specified positive-probability observation
P(X≤threshold ∩ band)1/20Exact double-integral result
P(X≤threshold | band)1/3May be defined even when the exact density slice is not

That verification concerns this model and these bands. It is not a proof that every joint law has a density, or that every null-event limit is uniquely determined. Even continuous marginals can have a singular joint law: if Y=X for a uniform X, all mass lies on a diagonal of zero area, so no two-dimensional Lebesgue density describes the joint law. A conditional distribution can still be meaningful there, but this particular density-ratio formula is unavailable. At exceptional or zero-marginal-density slices, do not claim the formula supplies a value.

The central pattern of the lesson is now visible in both settings: identify the retained information, keep the original mass or density model explicit, and normalize only where the construction permits it. In finite experiments that means positive-event ratios; in this smooth continuous example it means a specified conditional-density version and a checked observation scheme. The objects differ, while the need to state assumptions remains the same.

Conditional probability connects event algebra to experimental design, reliability, data selection and scientific modeling. The next lesson uses the same joint masses to update possible explanations after evidence arrives. Random variables and distributions then formalize numerical outcomes, moments summarize their behavior, and named distribution models organize common constructions. None of those later tools removes the need to specify the sampling, reporting and dependence assumptions established here.

Change a stated model or observation below. Exact values and the figure update together. Undefined conditionals and invalid models keep their own explanations.

1. Renormalize retained probability mass

W1: unequal masses. Computed from the stated model.

Retain B, then rescale its probability massConditioning rescales retained mass; counting labels is valid only under an equal-mass law. P(A): 4/5. P(B): 7/10. P(A ∩ B): 1/2. P(A | B): 5/7. P(B | A): 5/8.Retain B, then rescale its probability massOriginal lawConditional law given Ba1/101/7ab1/52/7bc3/100cd2/54/7dP(A ∩ B) / P(B) = 1/2 / 7/10 = 5/7
Conditioning rescales retained mass; counting labels is valid only under an equal-mass law.

The original finite law is validated before any conditioning. Blue retains B; orange also belongs to A. Bar heights encode mass.

Original and conditional atom probabilities
AtomOriginal massIn AIn BMass given B
a1/10truetrue1/7
b1/5falsetrue2/7
c3/10truefalse0
d2/5truetrue4/7
W1: unequal masses: computed probability checks
QuantityExact valueMeaning
P(A)4/5Original A mass
P(B)7/10Retained reference mass
P(A ∩ B)1/2Mass retained in both events
P(A | B)5/7Defined only for positive P(B)
P(B | A)5/8A different reference mass

2. Choose the conditioning denominator

W2: cycles given club. Computed from the stated model.

The selected denominator changes the questionThe orange cell stays fixed. The highlighted row or column supplies the conditional denominator. Selected conditional: 2/5. Joint probability: 1/5. Grand total: 120.The selected denominator changes the questionCyclesDoes not cycle24361248ClubNo clubNumerator 24; selected row total 60.Conditional probability: 2/5.
The orange cell stays fixed. The highlighted row or column supplies the conditional denominator.

Uniform selection from the stated fixed collection. Counts do not establish a causal effect.

Student collection with exact margins
MembershipCyclesDoes not cycleTotal
Club243660
No club124860
Total3684120
W2: cycles given club: computed probability checks
QuantityExact valueMeaning
Selected conditional2/5Cycles given club
Joint probability1/5Club and cycles, divided by grand total
Grand total120Number of students in the fixed collection

3. Filter an ordered dice lattice

W3: sum at least nine. Computed from the stated model.

Condition on a region of the 36-cell latticeThe grid performs the conditioning operation. Green cells form the union within the blue/green retained region. P(B): 5/18. P(first 6 | B): 2/5. P(second 6 | B): 2/5. P(both 6 | B): 1/10. P(either 6 | B): 7/10.Condition on a region of the 36-cell latticeKeep sums ≥ 9; each original cell has mass 1/36.First die112233445566234567345678456789567891067891011789101112Retained 10; first-six 4; second-six 4; shared 1.Union given retained region: 7/10.
The grid performs the conditioning operation. Green cells form the union within the blue/green retained region.

Two independent fair six-sided dice; ordered pairs are equally likely.

W3: sum at least nine: exact quantities
QuantityExact valueInterpretation
P(B)5/18Probability of the conditioning region
P(first 6 | B)2/5Count within the retained region
P(second 6 | B)2/5Count within the retained region
P(both 6 | B)1/10Conditional overlap
P(either 6 | B)7/10Conditional union counts the overlap once
W3: sum at least nine: computed probability checks
QuantityExact valueMeaning
P(B)5/18Probability of the conditioning region
P(first 6 | B)2/5Count within the retained region
P(second 6 | B)2/5Count within the retained region
P(both 6 | B)1/10Conditional overlap
P(either 6 | B)7/10Conditional union counts the overlap once

4. Follow changing urn contents

W4: RBR without replacement. Computed from the stated model.

An edge probability belongs to its whole historyThe tree shows remaining contents and actual conditional edges. Orange traces the requested ordered sequence. Requested path probability: 5/28. Draw 1 conditional: 5/8. Draw 2 conditional: 3/7. Draw 3 conditional: 2/3.An edge probability belongs to its whole history5 red, 3 blue; no replacement; requested RBR.5R 3BR: 5/8B: 3/84R 3BR: 4/7B: 3/75R 2BR: 5/7B: 2/73R 3BR: 1/2B: 1/24R 2BR: 2/3B: 1/34R 2BR: 2/3B: 1/35R 1BR: 5/6B: 1/62R 3B3R 2B3R 2B4R 1B3R 2B4R 1B4R 1B5R 0BRequested path joint mass = 5/28.Multiply the displayed positive-prefix transition probabilities.
The tree shows remaining contents and actual conditional edges. Orange traces the requested ordered sequence.

Uniform draw among the balls currently present. Each drawn ball is removed. Dashed edges from null histories are not event-ratio conditionals.

Requested path with its complete history
PrefixNext conditionalJoint massRemaining contents / boundary
R5/85/84 red, 3 blue remain
RB3/715/564 red, 2 blue remain
RBR2/35/283 red, 2 blue remain
W4: RBR without replacement: computed probability checks
QuantityExact valueMeaning
Requested path probability5/28Joint mass is zero once a prefix has zero mass
Draw 1 conditional5/8Given prefix empty history
Draw 2 conditional3/7Given prefix R
Draw 3 conditional2/3Given prefix RB

5. Test independence by products

W5: even and multiple of three. Computed from the stated model.

Independence is the equality of two massesThe same probability scale compares the actual intersection and the product. Undefined ratios are not needed to test a null event. P(A): 1/2. P(B): 1/3. P(A ∩ B): 1/6. P(A)P(B): 1/6. P(A | B): 1/2. P(B | A): 1/3.Independence is the equality of two massesA={2,4,6}; B={3,6}; uniform die.Actual intersection P(A ∩ B)1/6Product P(A)P(B)1/6The exact masses agree: independent.P(A | B)=1/2; P(B | A)=1/3.A null marginal never invalidates the product test.
The same probability scale compares the actual intersection and the product. Undefined ratios are not needed to test a null event.

One fair die; all six faces have probability 1/6.

W5: even and multiple of three: exact quantities
QuantityExact valueInterpretation
P(A)1/2First marginal
P(B)1/3Second marginal
P(A ∩ B)1/6Actual intersection
P(A)P(B)1/6Equal: independent
P(A | B)1/2Requires positive P(B)
P(B | A)1/3Requires positive P(A)
W5: even and multiple of three: computed probability checks
QuantityExact valueMeaning
P(A)1/2First marginal
P(B)1/3Second marginal
P(A ∩ B)1/6Actual intersection
P(A)P(B)1/6Equal: independent
P(A | B)1/2Requires positive P(B)
P(B | A)1/3Requires positive P(A)

6. Add weighted partition pieces

W6: observed route weights. Computed from the stated model.

Add the probability areas across a partitionThe rectangle has total area one. Orange area is the probability of lateness. P(late): 11/60. P(late ∩ R1): 1/20. P(late ∩ R2): 1/15. P(late ∩ R3): 1/15.Add the probability areas across a partitionR1: 1/21/10R2: 1/31/5R3: 1/62/5Orange joint pieces add to 11/60.Width = route weight; height fraction = lateness within route.
The rectangle has total area one. Orange area is the probability of lateness.

Exactly one of the three route events occurs. Zero-mass strata contribute zero joint mass; their ratios are not supplied.

Partition weights, conditional rates and joint pieces
RouteWeightRate given routeJoint lateness
R11/21/101/20
R21/31/51/15
R31/62/51/15
W6: observed route weights: computed probability checks
QuantityExact valueMeaning
P(late)11/60Sum of disjoint joint pieces
P(late ∩ R1)1/20Route weight 1/2
P(late ∩ R2)1/15Route weight 1/3
P(late ∩ R3)1/15Route weight 1/6

7. Compare a mixture with its strata

W7: shared high or low environment. Computed from the stated model.

Independent inside strata, dependent after mixing?Inside each positive stratum, cell areas are conditional products. Mixing uses the stratum weights. P(A)=P(B): 1/2. P(A ∩ B): 5/16. P(A)P(B): 1/4. P(A | B): 5/8.Independent inside strata, dependent after mixing?Favorable: weight 1/29/163/163/161/16Unfavorable: weight 1/21/163/163/169/16Mixture intersection P(A ∩ B)5/16Product of mixture marginals1/4The shared stratum changes the unconditional product test.
Inside each positive stratum, cell areas are conditional products. Mixing uses the stratum weights.

Within each positive-mass stratum, the two devices succeed independently. Both devices have the displayed stratum-specific success rate.

Conditional model in each stratum
StratumWeightP(A|stratum)P(A∩B|stratum)
Favorable1/23/49/16
Unfavorable1/21/41/16
W7: shared high or low environment: computed probability checks
QuantityExact valueMeaning
P(A)=P(B)1/2Weighted marginal success rate
P(A ∩ B)5/16Weighted within-stratum products
P(A)P(B)1/4Marginal dependence
P(A | B)5/8Conditional in the mixture, not within a stratum

8. Condition a selected sample

W8: retain at least one 1. Computed from the stated model.

Select outcomes, then recompute the product testFiltering can change dependence even though the original joint law is unchanged. P(selection): 3/4. P(X=1 | selection): 2/3. P(Y=1 | selection): 2/3. Selected joint: 1/3. Selected product: 4/9.Select outcomes, then recompute the product testOriginally, the four bit pairs each have probability 1/4.00not retained01given selection: 1/310given selection: 1/311given selection: 1/3Selected joint 1/3; selected marginal product 4/9.Compare inside the selected probability law.
Filtering can change dependence even though the original joint law is unchanged.

Two independent fair bits before selection. The inclusion event is explicitly specified.

Selection and conditional masses
PairOriginal massRetained?Mass given selection
001/4false0
011/4true1/3
101/4true1/3
111/4true1/3
W8: retain at least one 1: computed probability checks
QuantityExact valueMeaning
P(selection)3/4Original mass of the retained region
P(X=1 | selection)2/3Selected marginal
P(Y=1 | selection)2/3Selected marginal
Selected joint1/3Both one-events in the selected law
Selected product4/9Does not certify independence

9. Check every event subcollection

W9: Z is the XOR. Computed from the stated model.

Pairwise checks do not replace the triple checkColored columns display the complete joint support. Every pair and the triple must satisfy its own product equality. P(X=1): 1/2. P(Y=1): 1/2. P(Z=1): 1/2. Pair XY intersection: 1/4. Pair XZ intersection: 1/4. Pair YZ intersection: 1/4. Triple intersection: 0. Triple marginal product: 1/8.Pairwise checks do not replace the triple checkXYZMass0001/40111/41011/41101/4Triple intersection0Product of three marginals1/8Pairwise independent: yes; mutually independent: no.
Colored columns display the complete joint support. Every pair and the triple must satisfy its own product equality.

Independent X,Y; P(X=1)=1/2, P(Y=1)=1/2; Z=X XOR Y.

Complete finite joint law
XYZProbability
0001/4
0111/4
1011/4
1101/4
W9: Z is the XOR: computed probability checks
QuantityExact valueMeaning
P(X=1)1/2One-event marginal
P(Y=1)1/2One-event marginal
P(Z=1)1/2One-event marginal
Pair XY intersection1/4Compare with its own marginal product
Pair XZ intersection1/4Compare with its own marginal product
Pair YZ intersection1/4Compare with its own marginal product
Triple intersection0Actual three-event intersection
Triple marginal product1/8Mutual independence fails

10. Separate observed and common weights

W10: observed method weights. Computed from the stated model.

Stratum rates and population weights are separateUpper bars show success within each stratum. Lower areas use the selected population weights; blue is easy-task success and orange hard-task success. Observed P(success | A): 21/50. Observed P(success | B): 37/50. Selected-weight A rate: 21/50. Selected-weight B rate: 37/50. Selected A minus B: -8/25.Stratum rates and population weights are separateEasy: method A = 9/10Hard: method A = 3/10Easy: method B = 4/5Hard: method B = 1/5AEasy weight 1/5; aggregate success 21/50.BEasy weight 9/10; aggregate success 37/50.
Upper bars show success within each stratum. Lower areas use the selected population weights; blue is easy-task success and orange hard-task success.

The original table is observational and synthetic. Methods retain their different observed easy-task weights. Common weights define a target summary; causal interpretation needs further assumptions.

Preserved original counts and current weighting
StratumA successes / trialsA rateB successes / trialsB rate
Easy18/209/1072/904/5
Hard24/803/102/101/5
Observed all42/10021/5074/10037/50
Selected easy weight1/59/10
W10: observed method weights: computed probability checks
QuantityExact valueMeaning
Observed P(success | A)21/50Original 18/20 and 24/80 counts
Observed P(success | B)37/50Original 72/90 and 2/10 counts
Selected-weight A rate21/50A uses its observed task mix
Selected-weight B rate37/50B uses its observed task mix
Selected A minus B-8/25A rate comparison; no causal effect is inferred

11. Specify the report procedure

W11: at least one head exists. Computed from the stated model.

A report reweights the same original toss pairsArrow labels are P(report | toss pair). Conditional bars use the resulting report-weighted masses. P(report): 3/4. P(HH | report): 1/3.A report reweights the same original toss pairsReport exactly that at least one H exists.HH1Mass given report: 1/3HT1Mass given report: 1/3TH1Mass given report: 1/3TT0Mass given report: 0P(report)=3/4; P(HH | report)=1/3.
Arrow labels are P(report | toss pair). Conditional bars use the resulting report-weighted masses.

Two independent fair coins. The report event is exactly the stated event.

The observation mechanism changes retained weights
PairOriginal massP(report | pair)P(pair | report)
HH1/411/3
HT1/411/3
TH1/411/3
TT1/400
W11: at least one head exists: computed probability checks
QuantityExact valueMeaning
P(report)3/4Average report chance across the four toss pairs
P(HH | report)1/3Actual protocol-conditioned probability

12. Extend carefully to a density slice

W12: uniform triangular joint law. Computed from the stated model.

A positive band and a normalized density sliceThe orange band has positive joint probability. The right graph normalizes a positive-marginal slice; a zero-marginal slice stays undefined. fY(y): 3/2. Density-slice probability: 1/3. P(band): 3/20. P(X≤threshold ∩ band): 1/20. P(X≤threshold | band): 1/3.A positive band and a normalized density slicey=3/4; X≤1/4; band half-width 1/20.Joint density 2 on 0<x<y<1Y01 (x)10Band probability: 3/20Normalized slice01 (x)Top density: 4/3Selected slice area: 1/3Band = positive event probability; slice = conditional density.No event ratio with denominator P(Y=y)=0 is evaluated.
The orange band has positive joint probability. The right graph normalizes a positive-marginal slice; a zero-marginal slice stays undefined.

Specified joint Lebesgue density 2 on 0<x<y<1. Conditional distributions from a joint law are identified only almost everywhere in Y. The displayed slice uses the natural density version; it is not a universal null-set conditioning rule. Band integration includes the zero density outside the stated triangular support.

W12: uniform triangular joint law: exact quantities
QuantityExact valueInterpretation
fY(y)3/2Marginal density, not point probability
Density-slice probability1/3Natural conditional-density version of the specified joint law
P(band)3/20A separately specified positive-probability observation
P(X≤threshold ∩ band)1/20Exact double-integral result
P(X≤threshold | band)1/3May be defined even when the exact density slice is not
W12: uniform triangular joint law: computed probability checks
QuantityExact valueMeaning
fY(y)3/2Marginal density, not point probability
Density-slice probability1/3Natural conditional-density version of the specified joint law
P(band)3/20A separately specified positive-probability observation
P(X≤threshold ∩ band)1/20Exact double-integral result
P(X≤threshold | band)1/3May be defined even when the exact density slice is not

Worked examples

Condition unequal probability masses

Outcomes a,b,c,d have probabilities 1/10,2/10,3/10,4/10. For A={a,c,d} and B={a,b,d}, find P(A|B), P(B|A) and the conditional outcome law under B.

  1. The original law is valid: all four masses are nonnegative and sum to one. The information event has mass P(B)=1/10+2/10+4/10=7/10, so conditioning on it is allowed.
  2. The shared outcomes are a and d, with total mass P(A∩B)=5/10. Hence P(A|B)=(5/10)/(7/10)=5/7.
  3. For the reversed question, P(A)=1/10+3/10+4/10=8/10. Therefore P(B|A)=(5/10)/(8/10)=5/8. The numerator is the same, but the reference mass differs.
  4. Under B, divide each retained original mass by 7/10 and assign zero to c. The masses are 1/7,2/7,0,4/7. Their sum is one, and the A mass is 1/7+4/7=5/7. Counting retained labels would give the wrong answer because their original weights differ.

P(A|B)=5/7 and P(B|A)=5/8; the conditional outcome law is (1/7,2/7,0,4/7).

Read a joint cell, a row and a column

Uniformly select one of 120 students. The club has 24 cyclists and 36 noncyclists; the nonclub group has 12 cyclists and 48 noncyclists. Find the joint and both directional conditional probabilities, then test independence.

  1. Let A mean cycles and B mean club. There are 36 cyclists,60 club members and 120 students in all. The shared cell has 24 students.
  2. The joint probability uses the grand total: P(A∩B)=24/120=1/5. The condition B uses the club total: P(A|B)=24/60=2/5.
  3. The condition A uses the cycling total: P(B|A)=24/36=2/3. Both conditions have positive probability, so the ratios are defined.
  4. The marginal product is P(A)P(B)=(36/120)(60/120)=3/20, different from the joint 1/5. The events are dependent in this group-selection model. The arithmetic describes association in these fixed records and supplies no causal conclusion.

The joint is 1/5; cycling given club is 2/5; club given cycling is 2/3. The events are dependent.

Apply inclusion–exclusion in a retained region

Roll two independent fair six-sided dice and condition on their sum being at least 9. What is the conditional probability that at least one die is 6, and that neither is 6?

  1. Use ordered pairs, each of original probability 1/36. The retained sums 9,10,11,12 have 4,3,2,1 pairs respectively, for 10 retained pairs.
  2. Let A={first die 6} and C={second die 6}. Each event has 4 retained pairs, and their intersection contains the single retained pair(6,6).
  3. Under the same condition B={sum≥9}, inclusion–exclusion gives P(A∪C|B)=4/10+4/10−1/10=7/10.
  4. The complement under B has probability 1−7/10=3/10. This result uses overlap subtraction, not an independence assumption for A and C under B.

At least one 6 has conditional probability 7/10; neither has probability 3/10.

Follow the complete removal history

Draw three balls uniformly without replacement from five red and three blue balls. Find P(red,blue,red), compare the with-replacement experiment, and check whether the first two red events are independent.

  1. Along the red-blue-red path, the successive remaining populations give factors 5/8,3/7,4/6. Their product is 5/28. All displayed conditioning prefixes have positive probability.
  2. With replacement and independent uniform draws, the experiment has factors 5/8,3/8,5/8, giving 75/512. The changed factors come from the changed procedure.
  3. Without replacement, P(R₂|R₁)=4/7. Partitioning by the first color gives P(R₂)=(5/8)(4/7)+(3/8)(5/7)=5/8, equal to the first marginal.
  4. Nevertheless, P(R₁∩R₂)=(5/8)(4/7)=5/14 differs from P(R₁)P(R₂)=25/64. Equal position marginals do not establish independence. A null prefix in another model would force the full path mass to zero by containment, without defining a ratio on that prefix.

The ordered path has probability 5/28, versus 75/512 with replacement. The first two red events are dependent despite equal marginals 5/8.

Separate independence, disjointness and null cases

For a fair die, compare A={2,4,6}, B={3,6}, D={1,3,5}, and the empty event N. Which relevant pairs are independent, and which null conditionals are defined?

  1. P(A)=1/2, P(B)=1/3 and P(A∩B)=P({6})=1/6. The product equality holds, so A and B are independent.
  2. Aᶜ={1,3,5} has intersection{3} with B, of probability 1/6. This equals P(Aᶜ)P(B), illustrating independence under complementation.
  3. A and D are disjoint with positive marginals 1/2,1/2. Their joint 0 differs from their product 1/4; they are dependent.
  4. For every E, P(E∩N)=0=P(E)P(N), so E and N are independent by products. P(E|N) is undefined under event conditioning. P(N|E)=0 is defined when P(E)>0. A sure event is also independent of every event.

A and B are independent, as are Aᶜ and B. A and D are dependent. N is independent of every event, but conditioning on N by an event ratio is undefined.

Weight route-specific lateness rates

A trip takes exactly one route with probabilities 1/2,1/3,1/6. Its conditional lateness probabilities on the routes are 1/10,1/5,2/5. Find the overall lateness probability.

  1. The route events are a disjoint exhaustive partition with positive probabilities. Their weights sum to 1.
  2. The late-and-route masses are(1/2)(1/10)=1/20, (1/3)(1/5)=1/15 and(1/6)(2/5)=1/15.
  3. Adding these disjoint joint masses gives P(late)=1/20+1/15+1/15=11/60.
  4. The unweighted average 7/30 would instead assign each route probability 1/3. It answers a different mixture question. Reversing the question to infer a route after observing lateness requires a new normalization, developed in the next lesson.

The overall lateness probability is 11/60, using actual route-frequency weights.

Mix two conditionally independent tables

Choose a favorable or unfavorable environment with equal probability. Within each environment, two devices succeed independently, with individual success probability 3/4 or 1/4 respectively. Are their success events independent after mixing?

  1. Within each environment the joint success probability is the product of the two stipulated conditional rates:9/16 in favorable conditions and 1/16 in unfavorable conditions.
  2. Each mixed marginal is(1/2)(3/4)+(1/2)(1/4)=1/2. The mixed joint is(1/2)(9/16)+(1/2)(1/16)=5/16.
  3. The marginal product is 1/4, different from 5/16. Thus A and B are dependent under the mixed law, although independent in both positive environment strata.
  4. Since P(B)=1/2, P(A|B)=(5/16)/(1/2)=5/8. A second-device success changes the relative compatibility of the two environments. This mechanism belongs to the stated model, rather than being inferred from a table alone.

They are not marginally independent: the joint is 5/16, while the product of marginals is 1/4.

Filter an independent bit pair

Let X,Y be independent fair bits. Retain only outcomes with at least one bit 1. Are A={X=1} and B={Y=1} conditionally independent in the retained population?

  1. The original four outcomes 00,01,10,11 each have mass 1/4. Under C={at least one 1}, the three retained outcomes 01,10,11 each have conditional mass 1/3.
  2. Both conditional marginals are 2/3, but the joint has conditional probability 1/3. Its proposed independent value would be(2/3)(2/3)=4/9.
  3. The unequal values 1/3 and 4/9 show conditional dependence. Originally the joint was 1/4, equal to the original marginal product.
  4. A further check gives P(A|B∩C)=1/2, below P(A|C)=2/3. Learning one inclusion reason changes the probability of the other within this selected sample.

No. Selection changes the joint to 1/3 and marginals to 2/3, so the conditional product equality fails.

Check the missing triple

For independent fair bits X,Y, define Z=X XOR Y. Test pairwise and mutual independence of A={X=1}, B={Y=1}, C={Z=1}.

  1. List the complete joint outcomes:000,011,101,110, each of probability 1/4. Each event A,B,C contains two rows, so each marginal is 1/2.
  2. Each pair intersection contains one row and has probability 1/4=(1/2)(1/2). Every pair is independent.
  3. The triple 111 is absent, so P(A∩B∩C)=0, different from the three-marginal product 1/8. Mutual independence fails.
  4. Given C, the remaining rows are 011 and 101. The A and B conditional marginals are 1/2 each, but their joint is 0. Pairwise independence in the original law does not imply conditional independence given C.

The events are pairwise independent and are not mutually independent.

Keep observed composition separate from a common target

Easy-task successes are A:18/20 and B:72/90; hard-task successes are A:24/80 and B:2/10. Compare within strata, in the aggregates, and for a half-easy half-hard target.

  1. Within easy tasks, the rates are 9/10 and 4/5; within hard tasks,3/10 and 1/5. A exceeds B by 1/10 in each stratum.
  2. A’s observed easy-task weight is 1/5; B’s is 9/10. Their aggregates are 42/100=21/50 and 74/100=37/50. Different compositions reverse the pooled comparison.
  3. Under an explicit common half/half target, the rate summaries become A:(9/10+3/10)/2=3/5 and B:(4/5+1/5)/2=1/2.
  4. For a common easy-task weight w, A(w)=3/10+(3/5)w and B(w)=1/5+(3/5)w, so the difference stays 1/10. Neither the observed nor standardized comparison alone establishes a causal effect; that requires additional knowledge of assignment and data generation.

A is higher within each stratum and under the stated common target; B is higher in the differently weighted observed aggregates.

Include the reveal rule in the sample space

Two independent fair coins are tossed. Find P(HH) given each of: at least one H; first coin H; a uniformly and independently selected coin revealed H.

  1. For the at-least-one event, retain HH,HT,TH with equal original weights. The conditional HH probability is 1/3.
  2. For the first-coin event, retain HH,HT. The conditional HH probability is 1/2.
  3. For the random reveal, augment the sample space with the independent fair index J. The report-H probability is 1/4+1/8+1/8=1/2, while P(HH and report H)=1/4.
  4. The random-reveal conditional is therefore 1/2. Its retained toss-label masses are 1/2,1/4,1/4 for HH,HT,TH. They are not equal despite having the same three visible labels as the at-least-one event.

The three probabilities are 1/3,1/2,1/2. The reporting procedures determine different conditional laws.

Compare a density version with positive-width bands

In the optional joint-density model f(x,y)=2 on 0<x<y<1, use the natural density slice to find P(X≤1/4|Y=3/4), then check it using the bands 3/4−ε<Y<3/4+ε for 0<ε<1/4.

  1. The joint density integrates to∫₀¹2 y dy=1. Its Y marginal density is 2 y on(0,1), positive and finite at 3/4.
  2. The normalized conditional slice is 1/y on 0<x<y. At y=3/4 it is 4/3, so the probability up to 1/4 is(4/3)(1/4)=1/3.
  3. A stated band has probability∫_{3/4−ε}^{3/4+ε}2 y dy=3ε. Its part with X≤1/4 has probability(2ε)(1/4)(2)=ε. The positive-event ratio isε/(3ε)=1/3.
  4. Agreement holds for this explicit band procedure. The exact-event ratio at Y=3/4 is still 0/0 and undefined. The joint law identifies conditional distributions only almost everywhere, and a singular joint law may not admit this density formula.

The specified natural slice gives 1/3, matching every stated positive-band calculation. This does not define a general null-event ratio.

Try it yourself

  1. Given P(A)=3/5, P(B)=1/2 and P(A∩B)=1/5, find P(A|B) and P(B|A).

    Show the answer and reasoning

    P(A|B)=2/5; P(B|A)=1/3.

    Both conditioning probabilities are positive. Divide the shared intersection 1/5 by 1/2 for the first question and by 3/5 for the second. Reversing the bar changes the reference population, not the intersection.

  2. A fair six-sided die is known to be at least 3. Find the conditional probabilities of even and odd.

    Show the answer and reasoning

    Each conditional probability is 1/2.

    The retained equally weighted faces are 3,4,5,6. Two are even and two odd. The denominator is four retained outcomes; using six would mix the original and conditional laws.

  3. For positive P(C), suppose P(A|C)=9/20, P(B|C)=2/5 and P(A∩B|C)=3/20. Find P(A∪B|C) and P((A∪B)ᶜ|C).

    Show the answer and reasoning

    The conditional union is 7/10 and its complement is 3/10.

    Use inclusion–exclusion under the same law Q_C:9/20+8/20−3/20=14/20. Subtract the overlap once, then take the complement within C.

  4. Six green and four orange balls are drawn uniformly without replacement. Find the probability that the first two are green, the second-green probability given first-green, and the marginal second-green probability.

    Show the answer and reasoning

    Both green:1/3; second given first green:5/9; second marginal:3/5.

    The joint is(6/10)(5/9)=1/3. For the marginal, partition on the first color:(6/10)(5/9)+(4/10)(6/9)=3/5. Equal first and second marginals coexist with dependence.

  5. Draw three balls uniformly without replacement from four blue and two red. Find the probability of the ordered sequence blue,blue,red.

    Show the answer and reasoning

    The ordered probability is 1/5.

    The factors are 4/6,3/5,2/4. No red has been removed before the third draw, so its numerator remains 2. Their product is 1/5. Other color orders are separate events.

  6. For positive prefixes, let P(A)=3/5, P(B|A)=1/4 and P(C|A∩B)=2/3. Find the triple probability. In a separate model with P(A∩B)=0, what can be said about the triple and the last conditional?

    Show the answer and reasoning

    The first triple is 1/10. In the separate null-prefix model the triple is 0 and the event-ratio conditional given A∩B is undefined.

    The valid chain gives(3/5)(1/4)(2/3)=1/10. In the other model, A∩B∩C⊆A∩B proves zero by containment. Do not retain incompatible probabilities from the first model or multiply zero by an undefined ratio.

  7. Independent events A,B have probabilities 2/5 and 3/4. Find the probabilities of neither and of at least one.

    Show the answer and reasoning

    Neither has probability 3/20; at least one has 17/20.

    Independence is preserved under complements, so P(Aᶜ∩Bᶜ)=(3/5)(1/4)=3/20. The union is the complement of neither. The multiplication needs the stated independence assumption.

  8. Events have marginals 1/4 and 2/3 and intersection 1/6. Are they independent? Find the probability of the first given the second.

    Show the answer and reasoning

    They are independent; the conditional probability is 1/4.

    The marginal product is(1/4)(2/3)=1/6, exactly the stated joint. The second marginal is positive, so dividing the joint by 2/3 gives 1/4. Diagram shape is not part of the check.

  9. Disjoint events have probabilities 1/3 and 1/5. Are they independent?

    Show the answer and reasoning

    No; they are dependent.

    Disjointness makes the joint 0, while the marginal product is 1/15. Both positive marginals rule out the null-event exception for disjoint independent events.

  10. Let P(N)=0 and P(B)=2/7. Test independence and discuss P(N|B) and P(B|N). Must N be empty?

    Show the answer and reasoning

    N and B are independent; P(N|B)=0; P(B|N) is undefined by event ratios. N need not be empty.

    Containment forces the intersection to 0, equal to the product. The first ratio has positive denominator 2/7; the second has denominator 0. Continuous models can have nonempty null events, so zero mass does not imply emptiness.

  11. A disjoint exhaustive partition has weights 1/4,1/2,1/4 and conditional success rates 1/5,2/5,4/5. Find overall success.

    Show the answer and reasoning

    Overall success has probability 9/20.

    The disjoint success masses are 1/20,1/5,1/5, which sum to 9/20. The actual partition weights belong in the sum; an unweighted rate average would change the mixture.

  12. A partition has cells B₁,B₂ with probabilities 1 and 0. If P(A|B₁)=2/5, find P(A). Must P(A|B₂) be supplied?

    Show the answer and reasoning

    P(A)=2/5. The null-cell event conditional is undefined and is not needed.

    The first joint is 1×2/5. The second intersection is null by containment. Total probability sums intersections, or sums weighted conditionals only over positive cells; it does not require an invented ratio on B₂.

  13. Choose either of two environments with probability 1/2. Within each, events A,B are independent and each has success rate 4/5 or 1/5, respectively. Are they independent after mixing?

    Show the answer and reasoning

    No. Each mixed marginal is 1/2, but the mixed joint is 17/50 rather than 1/4.

    The joint is(1/2)(16/25)+(1/2)(1/25)=17/50. Conditional factorization in each environment does not allow factorization after the weighted sum. The shared environment must be chosen once for both events.

  14. For independent fair bits X,Y, condition on their agreement. Are the events X=1 and Y=1 independent under that condition?

    Show the answer and reasoning

    No. The conditional joint is 1/2, while the product of conditional marginals is 1/4.

    Agreement retains 00 and 11 with equal conditional mass 1/2. Each one-event then has probability 1/2, and their intersection is the retained outcome 11 of probability 1/2. Selection has changed their relation.

  15. For independent fair bits X,Y and Z=X XOR Y, set E={X=1}, F={Y=0}, G={Z=1}. Test pairwise and mutual independence.

    Show the answer and reasoning

    The events are pairwise independent, but not mutually independent.

    Each marginal is 1/2 and each pair intersection is one of the four equally weighted joint rows, with mass 1/4. The triple is the row(1,0,1), of mass 1/4, whereas the marginal triple product is 1/8. A violating triple need not be empty.

  16. Easy tasks give A:4/5 and B:21/30 successes; hard tasks give A:9/45 and B:2/20. Compare stratum rates, aggregate rates and rates under a common half-easy half-hard target. What causal conclusion follows?

    Show the answer and reasoning

    A is higher in each stratum and in the common target(1/2 versus 2/5); its aggregate 13/50 is lower than B’s 23/50. No causal superiority follows from the table alone.

    The stratum rates are A:4/5,1/5 and B:7/10,1/10. Aggregate denominators are 50 for each method but their task compositions differ. Common half/half weighting produces the stated summaries. Assignment and selection assumptions remain necessary for an intervention claim.

  17. Toss three independent fair coins. Find the probability of all H given at least one H, and given that the first coin is H.

    Show the answer and reasoning

    The probabilities are 1/7 and 1/4, respectively.

    There are eight equally weighted ordered toss outcomes. The first information event retains seven, and the second retains four; each contains the one all-H outcome. Different information changes the denominator.

  18. Optional calculus extension: a joint density is 6 x on 0<x<y<1 and zero elsewhere. Find f_Y(y), then use the natural density version to calculate P(X≤2/5|Y=4/5).

    Show the answer and reasoning

    f_Y(y)=3 y² for 0<y<1, zero elsewhere; the conditional probability is 1/4.

    Integrating 6 x over 0<x<y gives 3 y², whose integral over 0<y<1 is 1. At positive interior y, the conditional density is 2 x/y² on 0<x<y. Its integral up to 2/5 at y=4/5 is(2/5)²/(4/5)²=1/4. This is a specified conditional-density construction, not a ratio of null event probabilities.

What to carry forward

  • P(A|B)=P(A∩B)/P(B) requires P(B)>0; the condition selects the denominator and defines a new probability law.
  • Multiplication and chain rules use the full stated history; they do not require independence. Null prefixes require a containment argument, not an undefined factor.
  • Total probability sums disjoint joint masses and weights conditional rates by the correct positive partition probabilities.
  • Independence means a product equality. It differs from disjointness, equal marginals, pairwise independence and conditional independence.
  • Mixtures, selection and report mechanisms can change dependence and conditional weights; specify how information was obtained.
  • Aggregate and stratum rates can reverse because populations have different compositions. Common target weights and causal assumptions are separate choices.
  • Null-event ratios remain undefined. Conditional-density versions require a suitable joint model and are identified only almost everywhere; a stated measurement procedure can select a useful version.

References

Sources for the concepts and teaching approaches in this article.

  1. Massachusetts Institute of Technology2 sources
    1. 6.041SC Probabilistic Systems Analysis and Applied Probability, Fall 2013John N. Tsitsiklis, MIT OpenCourseWareLecture notes · PDFLecture 2: Conditioning and Bayes' RuleLecture 3: IndependenceLecture 9: Multiple Continuous Random Variables, Transcriptocw.mit.edu
    2. Reading 3: Conditional Probability, Independence and Bayes' TheoremJeremy Orloff and Jonathan Bloom, MIT OpenCourseWareCourse reading · PDFocw.mit.eduRead source
  2. 3.4 Contingency TablesBarbara Illowsky and Susan Dean, OpenStaxOpen textbookopenstax.orgRead source
  3. Introduction to Probability, Chapter 4Charles M. Grinstead and J. Laurie Snell, Dartmouth CollegeOpen textbook · PDFmath.dartmouth.eduRead source
  4. Understanding Simpson's ParadoxJudea Pearl, UCLA Cognitive Systems LaboratoryResearch paper · PDFftp.cs.ucla.eduRead source
  5. Stats 210A, Fall 2024, Homework 1University of California, Berkeley, Statistics 210AUniversity problem sheet · PDFstat210a.berkeley.eduRead source