Answer:
![Var(Y) = E(Y^2) -[E(Y)]^2 = \frac{112}{5} -[\frac{12}{5}]^2 =\frac{128}{75}](https://tex.z-dn.net/?f=%20Var%28Y%29%20%3D%20E%28Y%5E2%29%20-%5BE%28Y%29%5D%5E2%20%3D%20%5Cfrac%7B112%7D%7B5%7D%20-%5B%5Cfrac%7B12%7D%7B5%7D%5D%5E2%20%3D%5Cfrac%7B128%7D%7B75%7D)
Step-by-step explanation:
Previous concepts
The expected value of a random variable X is the n-th moment about zero of a probability density function f(x) if X is continuous, or the weighted average for a discrete probability distribution, if X is discrete.
The variance of a random variable X represent the spread of the possible values of the variable. The variance of X is written as Var(X).
Solution to the problem
Since the warranty on a machine specifies that it will be replaced at failure or age 4 and the distribution for X is defined between 0 and 5 then if we define the random variable Y ="the age of the machine at the time of replacement" we know that the values for Y needs to be between 0 and 4 or between 4 and and we can define the following density function:


for other case
Now we can apply the definition of expected value and we have this:


And for the second moment we have:


And the variance would be given by:
![Var(Y) = E(Y^2) -[E(Y)]^2 = \frac{112}{5} -[\frac{12}{5}]^2 =\frac{128}{75}](https://tex.z-dn.net/?f=%20Var%28Y%29%20%3D%20E%28Y%5E2%29%20-%5BE%28Y%29%5D%5E2%20%3D%20%5Cfrac%7B112%7D%7B5%7D%20-%5B%5Cfrac%7B12%7D%7B5%7D%5D%5E2%20%3D%5Cfrac%7B128%7D%7B75%7D)