How to Find the Probability That X₂ Is Larger Than X₁
At a glance
- 1. Define the distributions
Identify each variable’s mean and variance, and determine whether the variables are independent or correlated.
- 2. Form the difference
Set D = X₂ − X₁; the event X₂ > X₁ is the event D > 0.
- 3. Find D’s distribution
For jointly normal variables, D is normal with mean μ₂ − μ₁ and variance σ₁² + σ₂² − 2Cov(X₁, X₂).
- 4. Standardize and evaluate
Convert zero to a standard-normal score and use the normal CDF to find the probability that D is positive.
Try it: Normal probability calculator
To find the probability that one random quantity exceeds another, look at their difference: exactly when . For normal variables, this turns the comparison into a normal-tail probability. The answer depends not only on the two means and variances, but also on whether the variables are dependent.
If the variables are independent and normally distributed, the probability is
where and are the mean and variance of , and is the standard normal cumulative distribution function. The formula changes slightly when the variables are correlated.
Why the difference gives the answer
Define . Then the comparison is simply
When and are independent normal variables, their difference is normal as well. Its mean is , and its variance is the sum of their variances:
Standardizing gives a standard normal variable. The cutoff becomes the standardized value . Using the symmetry of the standard normal distribution yields the formula above.
Here, uses the convention that the second parameter is the variance, not the standard deviation.
Worked example: independent normal variables
Suppose
and assume they are independent. Their means are and , and their variances are and . Thus has mean and variance :
The standard deviation of is . Therefore,
So is larger than about 71% of the time under these assumptions. Notice that this is not the probability that is positive; it is the probability that its realized value exceeds the realized value of .
If the variables are correlated
If and are jointly normal but not necessarily independent, their difference is still normal. Its variance includes the covariance:
Consequently,
provided the difference has positive variance. If the correlation is , then , so the denominator is
For example, if both variables have variance and correlation , the difference has variance . Positive correlation reduces the variability of the difference in this case. Ignoring that dependence would give a different probability.
What if the variables are not normal?
Knowing only the means and variances is generally not enough to determine for nonnormal variables. You need information about their distributions and dependence. If they are independent and have continuous densities, one general expression is
where is the density of and is the cumulative distribution function of . This adds up the probability that takes a value near and is below that value.
A useful special case does not require normality: if and are independent, identically distributed, and continuous, symmetry gives . For independent, identically distributed variables that can tie, the correct statement is .
Common mistakes
- Adding standard deviations instead of variances. For independent variables, add and , then take the square root.
- Assuming independence without justification. If the variables are correlated, include their covariance when they are jointly normal.
- Using only the difference of means. The mean difference sets the center, but the spread also affects the probability.
- Confusing the event with a one-variable probability. compares two random outcomes; it is not generally the same as .
- Applying the normal formula to arbitrary distributions. The difference is normal if the variables are jointly normal; independent normal marginals are one common sufficient case. Normal marginal distributions alone do not guarantee a jointly normal pair.
References
- Introduction to Mathematical Statistics — Robert V. Hogg, Joseph W. McKean, and Allen T. Craig
- Probability and Statistical Inference — Robert V. Hogg, Elliot A. Tanis, and Dale L. Zimmerman
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.