The Elements of Quantitative Investing