
I have that the expected value will be $$\int_0^{200}f(x)g(x)\mathrm dx$$ where g(x) is the profit function, but I am unsure what to actually substitute g(x) for.
Any help would be very much appreciated.

I have that the expected value will be $$\int_0^{200}f(x)g(x)\mathrm dx$$ where g(x) is the profit function, but I am unsure what to actually substitute g(x) for.
Any help would be very much appreciated.
Copyright © 2021 JogjaFile Inc.
The profit has been given to you:
$$g(x) = \begin{cases}x-0.5(n-x) &, x \le n \\ n-5(x-n)&, x >n \end{cases}$$
Upon evaluating the expectation, it can be expressed in terms of $n$.