This reasoning applies whenever a system can be in different states, and each state affects the outcome differently.
When the outcome depends on which case you're in:
A diagnostic test's accuracy differs for people who actually have the disease versus those who don't. The overall rate of positive tests depends on both groups.
When data comes from mixed sources:
Survey results combine responses from different age groups, regions, or demographics. The overall pattern reflects contributions from each subgroup.
When you don't know the underlying condition:
A machine might be operating in good condition or degraded condition. Failure rates differ in each state, but if you don't know which state it's in, you need to consider both possibilities.
When processes have multiple pathways:
A delivery can be delayed by weather, traffic, or mechanical failure. Each pathway has its own probability, and the total delay probability accounts for all routes.
The intuition is always the same: the final probability is a weighted blend of case-specific probabilities. Each scenario contributes its piece, weighted by how likely that scenario is to occur in the first place.
| Pattern |
Characteristic cases |
Example domain |
| Outcome depends on a hidden state |
disease present vs absent; machine in good vs degraded condition |
diagnostic testing, machine reliability |
| Data from mixed sources |
subgroups with different behavior — age groups, regions, demographics |
survey aggregation, population studies |
| Unknown underlying condition |
several possible operating states, each with its own failure rate |
equipment monitoring, quality control |
| Multiple pathways to an outcome |
an event can occur through several independent routes, each with its own probability |
delivery delays, system failures, route-based risk |