lecture notes for sta 220 5213946