# How to find the expected value of a parametric function?

Suppose $$a \ge 0$$ is a parameter and $$X_1$$ is an uniform random variable in $$[1,4]$$ and $$X_2$$ is an uniform random variable in $$[1/2,1]$$. How to find the expected value of $$\max\{5-X_1a, 3-X_2a,0\}$$?

• Do you mean a uniform random variables?
– JimB
Mar 4 at 5:44
• Yes. I updated my question Mar 4 at 5:54

dist = TransformedDistribution[Max[5 - x1 a, 3 - x2 a, 0],