Computational investing, part I: homework 6