Joint distribution of sums of exponential random variables

math
Author

Stefan Eng

Published

May 17, 2020

This is a problem from Ross’s Stochastic Processes []. Let S1=X1S2=X1+X2S3=X1+X2+X3 where X1,X2,X3 are i.i.d exponential random variables with rate λ. Find the joint distribution of S1,S2,S3.

Let f be the PDF of each X1,X2,X3 (since identically distributed). Since X1,X2,X3 are independent the joint PDF is f(x,y,z)=f(x)f(y)f(z)=λ3eλxeλyeλz Then we can find the joint CDF of S1,S2,S3 P(S1t1,S2t2,S3t3)=0t10t2x0t3xyf(x,y,z) dz dy dx=0t10t2x0t3xyλeλzλeλyλeλx dz dy dx=0t1λeλx0t2x(1eλ(t3xy))λeλy dy dx=0t1λeλx[0t2xλeλy dy0t2xeλ(t3x) dy] dx=0t1λeλx[(1eλ(t2x))(t2x)eλ(t3x)] dx=0t1λeλx dx0t1λeλt2 dx0t1(t2x)eλt3 dx=1eλt1λt1eλt2t1t2eλt3+12t12eλt3

Simulation

We can confirm these results with a simple simulation in R.

# Computed joint CDF
expect_joint <- function(t1, t2, t3, lambda = 1) {
  1 - exp(- lambda * t1) - lambda * t1 * exp(-lambda * t2) - 
    t1 * t2 * exp(-lambda * t3) + 1/2 * t1^2 *exp(- lambda * t3)
}

# Simulate 1000 realizations of S1, S2, S3
sim <- function(t1, t2, t3, rate = 1, n = 1000) {
  s1 <- rexp(n, rate)
  s2 <- s1 + rexp(n, rate)
  s3 <- s2 + rexp(n, rate)
  
  mean(s1 <= t1 & s2 <= t2 & s3 <= t3)
}

# P(S1 <= 1, S2 <= 2, S3 <= 3) with lambda = 1
t1 <- 1
t2 <- 2
t3 <- 3
rate <- 1
# Replicate the simulation 1000 times
sim_res <- replicate(1000, sim(t1, t2, t3, rate))

cat("Simulated mean:", round(mean(sim_res), 3))
Simulated mean: 0.422
cat("Expected joint distribution:", round(expect_joint(t1, t2, t3, rate), 3))
Expected joint distribution: 0.422

```

References

[1]
Ross, S.M. et al. 1996. Stochastic processes. Wiley New York.