STAT545A Homework 6