I would like to derive the Cumulative Distribution Function and Probability Density Function of a random variable ($Z$) which is a linear combination of two exponential random variables with different parameters. i.e.
$Z = aX +bY$ ; $X \sim \exp({\lambda_1})$ and $X \sim \exp({\lambda_2})$ ; where, $a$ and $b$ are positive constants
$f_X (x) = \lambda_1 e^{\lambda_1 x}$
$f_Y (y) = \lambda_2 e^{\lambda_2 y}$
Please note that $X$ and $Y$ are independent.
I searched through the internet and I found the answer for $Z = X + Y$ is a hypoexponential distribution, but I couldn't find an answer for a linear combination.
Could you please explain the methods and possible some references for me to learn this ?
specifying some details would be appreciated
$X$ and $Y$ are independent?
$a,b$ are real parameters? or non negative? (this changes a lot the calculation)
For the rest you can use the standard CDF's method
$$F_Z(z)=\int_{aX+bY \leq z}f_{XY}(x,y)dxdy$$
and
$$f_Z(z)=\frac{d}{dz}F$$
Hint for the calculations
$$F_Z(z)=\mathbb{P}[Z \leq z]=\mathbb{P}[aX+bY \leq z]=\mathbb{P}[Y \leq \frac{z}{b}-\frac{a}{b}X]$$
This is the drawing
Then this is the integral to solve
$$F_Z(z)=\int_{0}^{\frac{z}{a}}\lambda e^{-\lambda x}dx\int_{0}^{\frac{z}{b}-\frac{a}{b}x}\theta e^{-\theta y}dy$$
[I changed the exp parameters in $\lambda$ and $\theta$ to simplify the notation]
Other methods:
Use the Fundamental Transformation Theorem (Jacobian Method)
Considering that if $X\sim exp(\theta)$ then $aX\sim exp(\frac{\theta}{a})$ you can modify the parameters of your marginal distribution and calculate the density of the sum immediately by convolution
The first method is useful to improve your brainstorming