USING R FOR REGRESSION AND MACHINE LEARNING IN INVESTMENT