Discrete Sum Distribution & Dependence Bounds
Enter weighted outcomes for two quantities in a shared unit. Calculate their independent sum distribution, find a sum covering a target share, and see the exact best and worst chances at a selected limit across all possible pairings.
Find the distribution of a sum
Compare an independent sum with the full range of chances allowed by the two input distributions.
Outcomes and limit
Enter each outcome with its whole-number weight. Use commas or tabs, one row per outcome, and one shared unit.
The chance at this limit can change with dependence.
Chance at or below 2
- If independent
- 87.5%
- Lowest attainable
- 75%
- Highest attainable
- 100%
Under independence, the smallest sum covering at least 90% is 4.
Independent mean 1.5 · variance 1.75.
Sum probabilities and dependence range
Sums from 0 to 4. The tallest mark has probability 50%.
- At or below limit
- Above limit
- Limit
- Sum
- 2
- Probability of this sum
- 50%
- Probability at or below this sum
- 87.5%
Pairings that attain the bounds
Show pairing tables
Positive teal cells contribute to the chance at or below the limit.
| A / B | B1 · 0 | B2 · 2 |
|---|---|---|
| A1 · 0 | 50% | 25% |
| A2 · 2 | 0% | 25% |
Export the sum and dependence worksheet
Save the sum probabilities, exact bound pairings, input weights and threshold results.
View CSV text
How to use this calculator
- Enter one outcome and positive whole-number weight per line for A and B. Use a common outcome unit.
- Enter the inclusive capacity limit and a coverage percentage. Read the independent chance and smallest independent sum at the coverage target.
- Compare the lowest and highest attainable chances when the dependence is unknown. Open the pairing tables to see which joint probabilities attain each bound.
- Inspect each possible sum by keyboard and download the exact probabilities and pairings.
The Formula
The mathematical logic powering this calculation is:
Each outcome’s marginal probability is its weight divided by its distribution’s total weight. Under independence a pair’s probability is the product of its two marginal probabilities. Add the probabilities of pairs with the same total to obtain the discrete sum distribution. Cumulative probability includes the mass exactly at the selected sum. The coverage result is the smallest attainable sum whose independent cumulative probability reaches the target.
With unknown dependence, each possible joint table must preserve the two marginal distributions as its row and column totals. Permit flow from an A row to a B column only when their sum is at or below the inclusive limit. Give each row its supply and each column its demand from the marginal probabilities. The largest possible flow gives the upper probability bound. Maximize flow through the complementary pairs, strictly above the limit, to find one minus the lower bound. Both resulting flows can be completed to full joint tables with the same marginal totals using the remaining rows and columns. The worksheet displays a pairing that attains each bound at the entered limit.
For exact arithmetic, use the product of the two weight totals as a common denominator. Multiply A weights by total B and B weights by total A. All capacities and feasible pairings use integer numerator units. The chart and displayed percentages use numerical previews. The bounds describe all possible pairings given the entered marginal weights at the selected limit. Different limits can have different attaining pairings.
Enter 1–8 rows per distribution, each with a signed decimal outcome in ±1 billion and a whole weight 1 through 1 billion. The inclusive limit can be within ±2 billion. Enter a coverage greater than 0% through 100%. Decimal inputs allow up to six fractional places. These are probability calculations conditional on the input distributions.Worked Example
If you input:
- A value × weight: 0 × 3, 2 × 1
- B value × weight: 0 × 1, 2 × 1
- Inclusive limit: 2
- Coverage target: 90%
Result:
Independent chance at or below 2 is 87.5%. All pairings preserving the two input distributions give a range of 75% to 100%. The smallest independent total covering at least 90% is 4.
Frequently Asked Questions
Why do weights need to be whole numbers?
They describe relative frequencies, and each distribution is normalized separately. For example, 30 and 70 represent the same probabilities as 3 and 7.
How is the independent sum probability calculated?
Multiply the probabilities of each A and B pair and add the products for all pairs producing the same total.
What does a range of 75% to 100% mean?
With the same two input distributions, there is at least one joint pairing giving 75% at or below the limit and one giving 100%. Every feasible pairing falls inside that range.
Does a sum equal to the capacity limit count?
Yes. At or below includes equality. A total must exceed the limit to count on the other side.
Does the coverage result apply under unknown dependence?
The coverage result comes from the independent sum distribution. The lower and upper bounds apply to the specific capacity limit and may be attained by different pairings at other limits.
Similar Calculators
Expected Value & Outcome Risk Calculator
Calculate expected value, variance and standard deviation from discrete outcomes. Compare probabilities, target risk and average gaps for two alternatives.
Binomial Probability Calculator
Find exact, cumulative, or upper-tail binomial probabilities for repeated yes/no events.
Acceptance Sampling & Hypergeometric Calculator
Calculate exact hypergeometric lot acceptance, producer risk and consumer risk. Explore the operating characteristic curve and find sample sizes that meet both limits.
