Min-Max Inclusion-Exclusion: Derive Extremum Identities by Thresholds
An extremum may be hard to handle directly even when the minimum of a selected subset has a clean formula. Min-max inclusion-exclusion is a bridge between the two. The safest derivation goes through threshold events, because the same reasoning extends to expectation and kth order statistics.
The indicator identity
For a finite nonempty set of nonnegative values and a threshold , the statement is a union of events . Inclusion-exclusion gives
For nonnegative integers, sum over positive integer thresholds. Each variable contributes exactly true thresholds. For nonnegative real values, integrate over . Either way,
Negative finite values can be handled by shifting all values by a common lower bound and then shifting the result back. The threshold proof should not silently integrate an infinite negative tail.
numeric check
Take . Singleton minima sum to 15. Pair minima are 2, 2, and 5, totaling 9. The triple minimum is 2. Thus , the maximum.
This is not a faster algorithm for finding a maximum in an ordinary array. It replaces an easy linear computation with exponentially many subsets. The identity becomes useful only when the subset minimum is algebraically simpler than the original maximum and the number of underlying events is small.
The kth largest value
Let denote the kth largest, counting duplicates. Its threshold event says that at least of the original events occur. The corresponding sieve is
Why this binomial coefficient? Fix a threshold met by exactly values. The total weight of surviving subsets is
One way to verify it is to write and use . The binomial sum becomes
If , the empty sum is zero. Thus every threshold is counted exactly when it should be, which proves the order-statistic identity, including ties.
For the second largest of , pair minima contribute 9 and the triple contributes , giving 5.
Expected maxima of waiting times
Let be independent nonnegative waiting times. If the minimum over a selected subset has a simple expectation, linearity gives
For independent exponential clocks with rates , the minimum has rate and mean its reciprocal. Therefore the expected final finishing time is a signed subset sum of reciprocals. Independence is used to derive the minimum’s distribution, not in the algebraic extremum identity itself.
For two clocks of rates two and three, the expectation is . Verify this small case before trusting a larger subset implementation. In modular problems, ensure all denominators are invertible; an ordinary rational expectation does not automatically have a valid modular representative under every modulus.
Exercise. Derive the expected second-largest finishing time for three independent clocks using the order-statistic coefficients. Compare it with the identity “sum of all three times minus maximum minus minimum.” Both routes should agree.
Support & Share
If this article helped you, please share or support!





























































Conversation
Comments powered by Waline