I am trying to learn about expected value calculations in sports betting... As an example, say I am a sports bettor, and there is a race with 3 horses, $a$, $b$ and $c$ and I know their respective true probabilities, $\Pr(a)$, $\Pr(b)$ and $\Pr(c)$. Assume that a bookkeeper is offering the implied probabilities (consider these the probabilities decided by the market), $\hat{\Pr(a)}$, $\hat{\Pr(b)}$ and $\hat{\Pr(c)}$. I am trying to find the maximum possible expected value, $EV_{max}$, by deciding the wagers, $w_a$, $w_b$ and $w_c$ that I should place on the respective horses. I framed this as a maximisation function (essentially return weighted by probability of event), but am unsure how to select the optimal wagers.
$EV_{max}=\\max(\Pr(a)(\frac{w_a}{\hat{\Pr(a)}}-w_a-w_b-w_c)+\\\Pr(b)(\frac{w_b}{\hat{Pr(b)}}-w_a-w_b-w_c)+\\\Pr(c)(\frac{w_c}{\hat{Pr(c)}}-w_a-w_b-w_c))$