Recover an overall probability by weighting conditional probabilities across a complete partition. A venue-routing example explains why fill rates must be weighted and how Bayes uses the total.
Law of total probability
The law of total probability computes the probability of an event by splitting the possibilities into non-overlapping, exhaustive cases, finding the event’s conditional probability in each case, and weighting by how likely each case is.
For an execution model, this answers a concrete question: if orders go to several venues with different fill rates, what is the fill probability for an order before its venue is known? Averaging the venue rates equally generally answers the wrong question. The routing probabilities determine the weights.
The partition is what makes the sum valid
Let B1,…,Bn be a partition of the sample space: the cases are mutually exclusive, and together cover every outcome. Thus
Bi∩Bj=∅(i=j),i=1⋃nBi=Ω.
If each P(Bi)>0, then for any event F,
P(F)=i=1∑nP(F∣Bi)P(Bi).
Why? Every outcome in F belongs to exactly one case, so its pieces F∩Bi are disjoint and cover F. Add their joint probabilities, then use the definition of conditional probability:
P(F)=i∑P(F∩Bi)=i∑P(F∣Bi)P(Bi).
There is no independence assumption. Multiplying a case’s probability by a conditional probability is the general multiplication rule. Replacing that conditional probability with P(F) would require the relevant independence.
One order, one venue, one deadline
Consider a hypothetical routing policy. Each order goes to exactly one of venues A, B or C. Define F as the entire order is filled by a fixed deadline. Use the same order population, deadline and full-fill criterion in every row.
Synthetic venue mixture: A, B and C receive 50%, 30% and 20% of orders, with conditional fill rates 90%, 80% and 50%. Blue probability areas are 45%, 24% and 10% of all orders, totalling 79%; unfilled areas total 21%.
Original hypothetical model. Widths represent routing probabilities and blue heights represent conditional full-fill probabilities. Blue areas, rather than heights alone, add to the overall probability.
An equivalent construction uses 100 equally likely model slots: 50 assigned to A, of which 45 fill; 30 assigned to B, of which 24 fill; and 20 assigned to C, of which 10 fill. There are 79 filled slots overall. These are a way to represent the stipulated probabilities, not claimed trading observations or a guarantee of 79 fills in the next 100 orders.
The equal-weight average is
30.90+0.80+0.50=1511≈0.7333.
It gives each venue one-third of the weight, which differs from this policy’s routing mix. A weighted average must lie between the smallest and largest conditional probabilities; here 0.50≤0.79≤0.90. That is a useful calculation check, though it cannot detect every wrong weight.
The complement, not fully filled by the deadline, has probability 1−0.79=0.21. Summing the unfilled joint masses gives the same answer: 0.05+0.06+0.10=0.21. Partial fills and fills completed later both belong in that complement.
What can break the calculation?
Overlapping cases double-count outcomes. “Routed to A at some point” and “routed to B at some point” need not be disjoint when an order can be rerouted. Partition by complete routing histories, or choose another classification that assigns each order exactly once. Likewise, a model that permits rejection before routing needs a case for that outcome; dropping it leaves the partition incomplete.
Zero-probability cases need no invented conditional rate. The joint-mass form P(F)=∑iP(F∩Bi) remains valid even if a case has zero probability. Its joint contribution is zero. Omit it from the conditional-product sum: the elementary ratio defining P(F∣Bi) is undefined when P(Bi)=0. Zero probability does not generally mean logical impossibility, particularly in continuous models. A countable partition uses the same argument with an infinite sum; conditioning on individual values of a continuously distributed variable requires a different, density or conditional-law formulation.
Correct arithmetic does not validate the inputs. A historical fill rate may reflect a different order size, urgency, market regime or selection policy. Changing routing weights and retaining old conditional rates is a scenario assumption, not proof of the new policy’s performance. The identity combines coherent probabilities; it does not estimate them or establish causality.
The total becomes Bayes’ denominator
Before observing a fill, venue C has probability 20%. Given that a full fill occurred, its share is smaller because only 0.10 of the total probability mass is both C and filled. Bayes’ theorem gives
Total probability adds the three successful joint masses; Bayes divides one of them by that total. The resulting 12.66% is the probability of venue C given a full fill, distinct from C’s 50% probability of a full fill given that venue.
For notation and conditioning basics, Probability Fundamentals is available in full with a free signed-in account. For the partition proof, probability trees and the Bayes connection, read the corresponding sections of Conditional Probability, Total Probability, and Bayes’ Rule; the public page is a preview and the full lesson requires membership.
Sources
Dimitri P. Bertsekas and John N. Tsitsiklis, Introduction to Probability, 2nd edition, Athena Scientific, 2008, §§1.3–1.4 — conditional probability, total probability and Bayes’ rule.