I am reading Paul Wilmott's Frequently Asked Questions in Quantitative Finance, and there is a question that states the following:
Every day a trader either makes 50% with prob- ability 0.6 or loses 50% with probability 0.4. What is the probability the trader will be ahead at the end of a year, 260 trading days? Over what number of days does the trader have the maximum probability of making money?
He explains how to break even the trader's best chance is at ~164 days. This is simple, he solves for $1.5^n 0.5^{260-n}$. But then he says that the trader's average return per day is:
$1−e^{0.6 \ln1.5 + 0.4\ln0.5}$ = −3.34%
Where does this formula come from? Any idea how to get the formula on the left hand side?