How this calculation works
Find sharp lower and upper probabilities for a Boolean event when only specified marginal and intersection probabilities are known.
q_a≥0; Σ_aq_a=1; Σ_(a satisfying C)q_a=P(C); minimize/maximize Σ_(a in query)q_a.A worked example
With P(A)=P(B)=1/2 and no dependence information, P(A∩B) can range sharply from 0 to 1/2. Opposite outcomes attain zero; identical outcomes attain one half.
Good to know
2–5 Boolean events, explicit rational marginal/intersection constraints and accepted truth-table atoms. Finite atom-probability linear programs with feasibility checks and resource caps. Inconsistent constraints are distinct from an empty query; no independence assumption or unsupported dependence inference.
Reference: Salako: constructive Boole Frechet probability bounds (opens in a new tab) ↗
Partial probabilities do not determine a joint model
Knowing separate event probabilities usually leaves their dependence unknown. If A and B each have probability one half, their intersection might be empty, identical to either event or something in between. Multiplying the margins would introduce independence as an additional assumption. This calculator instead asks for the smallest and largest query probability compatible with the entered information.
Sharp means that a feasible joint distribution attains each reported endpoint. A familiar inequality can provide a valid bound without being sharp once extra information is supplied. By searching the full finite atom model, the calculation accounts for all constraints together rather than combining pairwise inequalities in an ad hoc way or silently filling unspecified intersections with products.
Compare this with the Union probability from intersection calculator. Optimize a compound-event probability over every joint distribution compatible with supplied marginals/intersections, rather than use a fully specified two-event identity or assume independence.
Represent each possible outcome by a bit string
For n Boolean events, an atom is a length-n string describing whether every event occurs. A one in a position means that event occurs, and a zero means it does not. The atoms partition the full probability space into 2^n disjoint possibilities. The probability assigned to each atom is nonnegative and all atom probabilities sum to one.
Enter two to five events, probability constraints and the accepted query bit strings. Event indices start at zero. A constraint listing indices describes the intersection of those events, with other events unrestricted. Fractions are useful when the intended input is exact. Bit-string order must match event-index order; reversing that order can change an asymmetric query.
Convert intersections to linear equalities
Each supplied intersection probability equals the sum of atom probabilities whose relevant bits are all one. A marginal is the same construction with one listed event. Consequently, all the information forms linear equality constraints on nonnegative atom masses. Normalization supplies one additional equality, even when the user does not enter it as a row.
Duplicate or redundant rows do not create additional information. Contradictory rows create an infeasible model, which is a different outcome from a feasible query with probability zero. For example, asking for an intersection larger than one of its marginals is inconsistent. The solver must check feasibility before reporting either probability endpoint.
Optimize the query twice
The query indicator is one for accepted atoms and zero for all other atoms. Its expected value is the desired query probability. Minimizing that linear expression gives the lower bound; maximizing it gives the upper bound. An atom-mass witness shows how a compatible dependence pattern reaches each endpoint.
A resource-cap failure is not evidence that the supplied constraints are impossible. It means the bounded solve did not settle the result. Similarly, numerical residuals must be checked against the original constraints before an endpoint is accepted. Exact rational input states the model precisely, but a numerical implementation must still distinguish exact model arithmetic from its own optimization diagnostics.
Work through the two-event default
The default constrains P(A) and P(B) to one half and queries only atom 11, where both occur. Assigning mass one half to 10 and one half to 01 satisfies both margins with intersection zero. Assigning mass one half to 00 and one half to 11 satisfies the same margins with intersection one half.
Those two witnesses attain the lower and upper bounds. The independent distribution would assign one quarter to every atom and give intersection one quarter, but it is only one compatible model among many. The interval from zero to one half expresses the uncertainty left by unspecified dependence rather than uncertainty caused by a small numerical sample.
Add information only when it is justified
A known pairwise intersection can tighten bounds for a more complicated query. A statement about a union can also be represented through its accepted atoms, but the constraint input on this page uses the displayed intersection convention. Do not translate a conditional probability into an unconditional intersection without also supplying the conditioning event probability.
The calculator treats the entered probabilities as fixed constraints. It does not estimate them, attach sampling confidence sets or reconcile contradictory survey estimates automatically. Rounded empirical values can be inconsistent with each other even when the underlying population probabilities are valid. Resolving that problem requires an explicit uncertainty or adjustment model rather than arbitrary changes by the solver.
Use the interval as a dependence-sensitive answer
A wide range is often the correct conclusion when little joint information is available. It identifies what cannot be determined from the current assumptions. A zero-width range means the supplied constraints determine this particular query probability; it does not necessarily mean that they determine the complete joint distribution over all atoms.
This page handles finite Boolean logic, not continuous random-variable dependence or a fitted copula. It is useful when a claim must remain valid across every joint distribution compatible with declared facts. Keep the endpoint witnesses with the result so that a sharp bound remains distinguishable from a convenient but unverified independence estimate.
A few questions, answered
Why not multiply the marginal probabilities?
That would add independence, which is not implied by the supplied margins.
What makes an endpoint sharp?
A feasible atom-probability distribution attains it while satisfying all entered constraints.
Does infeasible mean the query is false?
No. It means the probability constraints cannot all hold together.
Does a zero-width interval identify the whole joint distribution?
No. It identifies the query probability; other joint details can remain undetermined.