https://onfin.github.io/notes/diversification_math