Answer:
![E(A+B) = E(A)+E(B)=4+0.5 =4.5 hours](https://tex.z-dn.net/?f=E%28A%2BB%29%20%3D%20E%28A%29%2BE%28B%29%3D4%2B0.5%20%3D4.5%20hours)
![Var(A+B)= Var(A)+Var(B)=3+0.25 hours^2=3.25 hours^2](https://tex.z-dn.net/?f=Var%28A%2BB%29%3D%20Var%28A%29%2BVar%28B%29%3D3%2B0.25%20hours%5E2%3D3.25%20hours%5E2)
Step-by-step explanation:
Let A the random variable that represent "The arrival time of the plumber ". And we know that the distribution of A is given by:
![A\sim Uniform(1 ,7)](https://tex.z-dn.net/?f=A%5Csim%20Uniform%281%20%2C7%29)
And let B the random variable that represent "The time required to fix the broken faucet". And we know the distribution of B, given by:
![B\sim Exp(\lambda=\frac{1}{30 min})](https://tex.z-dn.net/?f=B%5Csim%20Exp%28%5Clambda%3D%5Cfrac%7B1%7D%7B30%20min%7D%29)
Supposing that the two times are independent, find the expected value and the variance of the time at which the plumber completes the project.
So we are interested on the expected value of A+B, like this
![E(A +B)](https://tex.z-dn.net/?f=E%28A%20%2BB%29)
Since the two random variables are assumed independent, then we have this
![E(A+B) = E(A)+E(B)](https://tex.z-dn.net/?f=E%28A%2BB%29%20%3D%20E%28A%29%2BE%28B%29)
So we can find the individual expected values for each distribution and then we can add it.
For ths uniform distribution the expected value is given by
where X is the random variable, and a,b represent the limits for the distribution. If we apply this for our case we got:
![E(A)=\frac{1+7}{2}=4 hours](https://tex.z-dn.net/?f=E%28A%29%3D%5Cfrac%7B1%2B7%7D%7B2%7D%3D4%20hours)
The expected value for the exponential distirbution is given by :
![E(X)= \int_{0}^\infty x \lambda e^{-\lambda x} dx](https://tex.z-dn.net/?f=E%28X%29%3D%20%5Cint_%7B0%7D%5E%5Cinfty%20x%20%5Clambda%20e%5E%7B-%5Clambda%20x%7D%20dx)
If we use the substitution
we have this:
![E(X)=\frac{1}{\lambda} \int_{0}^\infty y e^{-\lambda y} dy =\frac{1}{\lambda}](https://tex.z-dn.net/?f=E%28X%29%3D%5Cfrac%7B1%7D%7B%5Clambda%7D%20%5Cint_%7B0%7D%5E%5Cinfty%20y%20e%5E%7B-%5Clambda%20y%7D%20dy%20%3D%5Cfrac%7B1%7D%7B%5Clambda%7D)
Where X represent the random variable and
the parameter. If we apply this formula to our case we got:
![E(B) =\frac{1}{\lambda}=\frac{1}{\frac{1}{30}}=30min](https://tex.z-dn.net/?f=E%28B%29%20%3D%5Cfrac%7B1%7D%7B%5Clambda%7D%3D%5Cfrac%7B1%7D%7B%5Cfrac%7B1%7D%7B30%7D%7D%3D30min)
We can convert this into hours and we got E(B) =0.5 hours, and then we can find:
![E(A+B) = E(A)+E(B)=4+0.5 =4.5 hours](https://tex.z-dn.net/?f=E%28A%2BB%29%20%3D%20E%28A%29%2BE%28B%29%3D4%2B0.5%20%3D4.5%20hours)
And in order to find the variance for the random variable A+B we can find the individual variances:
![Var(A)= \frac{(b-a)^2}{12}=\frac{(7-1)^2}{12}=3 hours^2](https://tex.z-dn.net/?f=Var%28A%29%3D%20%5Cfrac%7B%28b-a%29%5E2%7D%7B12%7D%3D%5Cfrac%7B%287-1%29%5E2%7D%7B12%7D%3D3%20hours%5E2)
![Var(B) =\frac{1}{\lambda^2}=\frac{1}{(\frac{1}{30})^2}=900 min^2 x\frac{1hr^2}{3600 min^2}=0.25 hours^2](https://tex.z-dn.net/?f=Var%28B%29%20%3D%5Cfrac%7B1%7D%7B%5Clambda%5E2%7D%3D%5Cfrac%7B1%7D%7B%28%5Cfrac%7B1%7D%7B30%7D%29%5E2%7D%3D900%20min%5E2%20x%5Cfrac%7B1hr%5E2%7D%7B3600%20min%5E2%7D%3D0.25%20hours%5E2)
We have the following property:
![Var(X+Y)= Var(X)+Var(Y) +2 Cov(X,Y)](https://tex.z-dn.net/?f=Var%28X%2BY%29%3D%20Var%28X%29%2BVar%28Y%29%20%2B2%20Cov%28X%2CY%29)
Since we have independnet variable the Cov(A,B)=0, so then:
![Var(A+B)= Var(A)+Var(B)=3+0.25 hours^2=3.25 hours^2](https://tex.z-dn.net/?f=Var%28A%2BB%29%3D%20Var%28A%29%2BVar%28B%29%3D3%2B0.25%20hours%5E2%3D3.25%20hours%5E2)