stat542 hw 12 solution