Code written for Astronomy 193: Noise and Statistics