zhangyi-hu / pymcef

Python Monte Carlo Efficient Frontier (PyMCEF) package
BSD 3-Clause "New" or "Revised" License
14 stars 2 forks source link

crash when two assets have exactly the same mean return in the MC simulation. #1

Closed zhangyi-hu closed 7 years ago

zhangyi-hu commented 7 years ago

If two assets have exactly the same mean return in the MC simulation. A division by zero might occur.

Such a realization has zero probability if the distribution is continuous. In some case, when all the assets have the same cap or floor of return, it can occur with positive probability.

zhangyi-hu commented 7 years ago

fixed since 0.2.5