Computational investing, part I: homework 7