STA730 Final Assignment Solution