"Suppose that the investor has a quadratic utility function. That is,
$$U \left[ W \right] = W - \frac{1}{250}W^2.$$
Assume the investor is maximizing its expected utility and is considering in investing $100 either in the risk-free asset that yields 3% per year or to a risky asset that yields 10% per year with probability 0.5 and -2% with probability 0.5
What is the optimal weight on the risky portfolio?"