When a Sum Needs Its Own Distribution
Independent sums often match familiar distribution families, but independence alone does not guarantee that they do. If the individual distributions do not combine into a recognizable standard form, the sum can still be handled directly: condition on one variable, or equivalently integrate the product of the component densities over the values that can produce the specified sum.
A useful example is the sum of a uniform variable and an exponential variable. The density changes form at the upper endpoint of the uniform variable, so using a single formula over the whole range is a common source of errors. The key is to identify which values of the uniform variable are possible for a given sum.
The exponential convention matters: \(\lambda\) is the rate, so \(E[Y]=1/\lambda\). The assumptions of independence and the stated supports are essential to the convolution below. Since both variables are nonnegative, \(S\) cannot be negative. For a specified positive value \(s\), the contribution from \(X=x\) requires \(Y=s-x\geq 0\), as well as \(0\leq x\leq a\). Thus \(x\) must lie between \(\max(0,s-a)\) and \(\min(a,s)\).
Deriving the Piecewise Density
For independent continuous variables, the density of their sum at \(s\) is the integral of \(f_X(x)f_Y(s-x)\) over all feasible \(x\). In this model, the feasible interval changes when \(s\) passes \(a\). If \(0<s<a\), every \(x\) from 0 to \(s\) is allowed. If \(s\geq a\), the possible values run from \(s-a\) to \(a\).
The first piece follows by integrating over \(0\leq x\leq s\):
For \(s\geq a\), the lower limit becomes \(s-a\), so the integral is instead
This calculation explains the change in form: below \(a\), increasing \(s\) increases the range of feasible uniform values; at and above \(a\), the feasible interval has fixed length \(a\) and shifts to the right. The two formulas agree at \(s=a\), where each gives \((1-e^{-\lambda a})/a\). The density is positive for \(s>0\), zero for \(s\leq 0\), and the support—the closure of the set where the density is positive—is \([0,\infty)\).
As a check, the total probability in the upper piece is
Integrating the lower piece from 0 to \(a\) gives \(1-(1-e^{-\lambda a})/(a\lambda)\). The two probabilities sum to 1, as required.
The Cumulative Distribution Function
Integrating the density gives a convenient CDF for probability calculations. For \(0<s<a\), integrate the lower density from 0 to \(s\). For \(s\geq a\), it is often simpler to integrate the upper tail from \(s\) to infinity and subtract from 1.
For example, when \(s\geq a\), the tail integral is
Both CDF pieces give the same value at \(s=a\), so there is no jump there. Because \(S\) is continuous, the probability of any single exact value is zero; interval probabilities are found by subtracting CDF values.
Worked Example: Probability Across the Change Point
In a hypothetical service process, a setup time \(X\) is uniform from 0 to 2 hours, and an independent delay \(Y\) is exponential with rate 1 per hour. Find the probability that the total time \(S=X+Y\) is between 1 and 3 hours. Give the probability to four decimal places.
Method. Use \(P(1<S<3)=F_S(3)-F_S(1)\). Here \(a=2\) and \(\lambda=1\). The value 1 is below \(a\), while 3 is above \(a\), so the two CDF evaluations use different pieces.
At \(s=1\), the lower piece gives
At \(s=3\), the upper piece gives
Therefore,
The probability lies between 0 and 1, and the interval crosses the change point \(a=2\), so using both CDF pieces is necessary. A common mistake is to use the lower CDF piece at \(s=3\), even though that expression applies only below 2.
Worked Example: Density and CDF Below the Uniform Endpoint
A hypothetical device has a random calibration time \(X\sim\operatorname{Uniform}(0,1)\) hours and an independent waiting time \(Y\sim\operatorname{Exponential}(2)\), with rate 2 per hour. Find both \(f_S(0.75)\) and \(P(S\leq 0.75)\), where \(S=X+Y\). Give each result to four decimal places.
Method. Since \(0<0.75< a=1\), use the lower pieces of both the density and CDF. The parameter values are \(a=1\), \(\lambda=2\), and \(s=0.75\), so \(\lambda s=1.5\).
The density is
The CDF is
The CDF value is a probability and is between 0 and 1. The density is a rate of probability per unit of time, not a probability; it need not be less than 1. The calculation avoids applying the upper density piece before the sum reaches the uniform endpoint.
Worked Example: An Upper-Tail CDF and an Interval Probability
Let \(X\sim\operatorname{Uniform}(0,1)\) and \(Y\sim\operatorname{Exponential}(1)\) be independent, and put \(S=X+Y\). Find \(F_S(1.2)\) and \(P(0.8<S\leq 1.2)\). Give each answer to four decimal places.
Method. With \(a=1\), the value 1.2 uses the upper CDF piece. The value 0.8 uses the lower piece. First calculate each CDF, then subtract for the interval.
At \(s=1.2\),
At \(s=0.8\),
Thus,
As a check, the interval probability is positive and less than \(F_S(1.2)\), as it must be. The upper CDF can also be written \(1-(e-1)e^{-1.2}\); these are algebraically equivalent forms.
Common Mistake: Using the Wrong Piece
The formulas are separated by the threshold \(a\), not by whether \(s\) is “close” to the uniform interval. In particular, \(0<s<a\) requires the lower density piece, and \(s\geq a\) requires the upper piece. The integration limits change at that threshold, so the formulas cannot be swapped.
For the second example, a wrong calculation would apply the upper density formula at \(s=0.75\):
This is not the density at 0.75: the upper formula was derived for \(s\geq 1\), but \(0.75<1\). The correct lower-piece calculation is \(1-e^{-1.5}\approx 0.7769\). The problem is not that a density exceeds 1—densities can do so—but that the formula was used outside its valid range.
Why Direct Convolution Is Useful
The sum \(X+Y\) is determined by its distribution even when it is not identified as one of the familiar named families. Convolution gives a direct route to its density, and the CDF then gives tail and interval probabilities. This is especially valuable when a problem supplies simple component distributions but asks about a sum whose distribution does not match a standard closure pattern.
The practical steps are consistent across such calculations:
Record independence, supports, parameters, and the parameterization of each density.
For a fixed sum \(s\), require both \(x\) and \(s-x\) to lie in their respective supports.
Use the limits implied by the supports, splitting into cases when those limits change.
Confirm nonnegativity, the correct support, agreement at a piece boundary, and total probability 1.
This uniform-exponential calculation illustrates why the support and the integration limits should be identified before any algebra. A plausible-looking exponential expression can still be wrong if it comes from integrating over values that cannot occur.
Check Your Understanding
For each problem, state the applicable piece before calculating. Round probabilities and density values to four decimal places.
- Let \(X\sim\operatorname{Uniform}(0,2)\) and \(Y\sim\operatorname{Exponential}(1)\) be independent. Find \(f_{X+Y}(1)\). (Answer: 0.3161)
- Let \(X\sim\operatorname{Uniform}(0,1)\) and \(Y\sim\operatorname{Exponential}(2)\) be independent. Find \(P(X+Y\leq 0.5)\). (Answer: 0.1839)
- Let \(X\sim\operatorname{Uniform}(0,2)\) and \(Y\sim\operatorname{Exponential}(1)\) be independent. Find \(P(X+Y\leq 3)\). (Answer: 0.8410)
- Let \(X\sim\operatorname{Uniform}(0,1.5)\) and \(Y\sim\operatorname{Exponential}(2)\) be independent. Find \(P(X+Y>2)\). (Answer: 0.1165)
- Let \(X\sim\operatorname{Uniform}(0,1)\) and \(Y\sim\operatorname{Exponential}(1)\) be independent. Find \(P(X+Y\leq 1.5\mid X+Y>0.5)\). (Answer: 0.5709)