solutions for problemset 2 statistics