STAT730 Advance Research Assignment 2 solution (2016)