Calculating the expected value of a random variable that's a function of a random variable

401 Views Asked by At

I am working on the following problem:

enter image description here

I'm having a hard time putting all of this information together:

The cost of the maintenance is $Z = X + Y$, where $X$ is the cost of the first machine and $Y$ is the cost of the second machine.

The payment $T$ by the insurer is $Z$ if $0 \leq Z \leq 6000$ and $6000$ if $Z > 6000$.

$$ T(Z) = \left\{ \begin{array}{lr} Z & \text{if } 0 \leq Z \leq 6000\\ 6000 & \text{if } Z > 6000 \end{array} \right. $$

We want to find $E[T(Z)] = T(Z)\cdot Pr[T(Z)].$

From here I am uncertain about how to proceed. I know that a uniform random variable on $[0, 4000]$ has expected value $\frac{4000}{2} = 2000$. This has a probability of $\frac{1}{3}$ of occurring.

I would think $E[X] = E[Y] = \frac{4000}{6}$, and so $E[Z] = \frac{4000}{3}$.

I am just unsure of how to factor in what the insurer is actually paying.

2

There are 2 best solutions below

0
On BEST ANSWER

The probability of $(0,0)$ occurring is $\frac23\cdot\frac23$; the probability of $(0,y)$ occurring, for $0<y\le4000$, is $\frac23\cdot\frac13\cdot\frac{dy}{4000}$ (and similarly for $(x,0)$); the probability of $(x,y)$ occurring, for $0<x,y\le 4000$, is $\frac13\cdot\frac13\cdot\frac{dx}{4000}\cdot\frac{dy}{4000}$. Therefore the expectation is $$ \frac49\cdot0 + \int_0^{4000} \frac{y\,dy}{18000} + \int_0^{4000} \frac{x\,dx}{18000} + \int_0^{4000} \int_0^{4000} \frac{\min\{x+y,6000\}\,dx\,dy}{12000^2}. $$ Solving this calculus problem (splitting the last integral at the line $x+y=6000$) gives the answer $\frac{35750}{27} \approx 1324.07$.

0
On

The average probability of a repair $R$ is 1/3 in one year. The probability of n repairs in the year is a Poisson distribution

$$P(n) = \frac {R^n e^{-R}}{n!} $$ Assume each machine is independent, so the repair cost of two machines is twice the repair cost of one. The repair cost is uniformly distributed between 0 and 4000, so the expected average cost of each repair is 2000. The average annual cost is the cumulative probability of 0 to $n$ repairs times the average cost of $n$ repairs, which equals $n\cdot2000$. $$Cost\text{(one machine)} = (1\cdot2000)\left(\frac 1 3\right)^1 \frac {exp(-1/3)} {1!}+(2\cdot2000)\left(\frac 1 3\right)^2 \frac {exp(-1/3)} {2!}+(3\cdot2000)\left(\frac 1 3\right)^3 \frac {exp(-1/3)} {3!}+(4\cdot2000)\left(\frac 1 3\right)^4 \frac {exp(-1/3)} {4!}+(5\cdot2000)\left(\frac 1 3\right)^5 \frac {exp(-1/3)} {5!} = 666.65$$ The expected cost to repair one machine is 666.65 dollars per year, which is 1333.30 dollars for two machines. I carried the math to 5 repairs a year, but the fifth repair only adds 0.05 cents to the cumulative payout per machine.